Debug hooks: use rtx_insn and rtx_code_label
[gcc.git] / gcc / ChangeLog
1 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2
3 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5 "var_location" hook from rtx to rtx_insn *.
6 (debug_nothing_rtx): Delete in favor of...
7 (debug_nothing_rtx_code_label): New prototype.
8 (debug_nothing_rtx_rtx): Delete unused prototype.
9 (debug_nothing_rtx_insn): New prototype.
10
11 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
12 invoking debug_hooks->var_location (in two places, one in a NOTE
13 case of a switch statement, the other guarded by a CALL_P
14 conditional. Add checked cast to rtx_code_label * when invoking
15 debug_hooks->label (within CODE_LABEL case of switch statement).
16
17 * dbxout.c (dbx_debug_hooks): Update "label" hook from
18 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
19 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
20 (xcoff_debug_hooks): Likewise.
21 * debug.c (do_nothing_debug_hooks): Likewise.
22 (debug_nothing_rtx): Delete in favor of...
23 (debug_nothing_rtx_insn): New function.
24 (debug_nothing_rtx_rtx): Delete unused function.
25 (debug_nothing_rtx_code_label): New function.
26 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
27 debug_nothing_rtx to debug_nothing_rtx_code_label.
28 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
29 to rtx_insn *.
30 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
31 debug_nothing_rtx to debug_nothing_rtx_insn.
32 (sdbout_label): Strengthen param "insn" from rtx to
33 rtx_code_label *.
34 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
35 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
36 "var_location" hook from debug_nothing_rtx to
37 debug_nothing_rtx_insn.
38
39 2014-08-21 David Malcolm <dmalcolm@redhat.com>
40
41 * recog.h (insn_output_fn): Update this function typedef to match
42 the changes below to the generated output functions, strengthening
43 the 2nd param from rtx to rtx_insn *.
44
45 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
46 insn when invoking an output function, to match the new signature
47 of insn_output_fn with a stronger second param.
48
49 * genconditions.c (write_header): In the generated code for
50 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
51 to match the other changes in this patch.
52
53 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
54 the generated "gen_" functions from rtx to rtx_insn * within their
55 implementations.
56
57 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
58 the subfunctions within the generated "recog_", "split", "peephole2"
59 function trees from rtx to rtx_insn *. For now, the top-level
60 generated functions ("recog", "split", "peephole2") continue to
61 take a plain rtx for "insn", to avoid introducing dependencies on
62 other patches. Rename this 2nd param from "insn" to
63 "uncast_insn", and reintroduce "insn" as a local variable of type
64 rtx_insn *, initialized at the top of the generated function with
65 a checked cast on "uncast_insn".
66 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
67 the generated "gen_" functions from rtx to rtx_insn * within their
68 prototypes.
69
70 * genoutput.c (process_template): Strengthen the 2nd param within
71 the generated "output_" functions "insn" from rtx to rtx_insn *.
72
73 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
74
75 * tree-profile.c (tree_profiling): Skip external functions
76 when doing coverage instrumentation.
77 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
78
79 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
80
81 * config/rs6000/altivec.h (vec_cpsgn): New #define.
82 (vec_mergee): Likewise.
83 (vec_mergeo): Likewise.
84 (vec_cntlz): Likewise.
85 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
86 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
87 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
88 VMRGEW, and VMRGOW.
89 * doc/extend.texi: Document various forms of vec_cpsgn,
90 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
91 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
92 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
93 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
94 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
95
96 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
97
98 * config/rs6000/rs6000.c (context.h): New include.
99 (tree-pass.h): Likewise.
100 (make_pass_analyze_swaps): New decl.
101 (rs6000_option_override): Register pass_analyze_swaps.
102 (swap_web_entry): New subsclass of web_entry_base (df.h).
103 (special_handling_values): New enum.
104 (union_defs): New function.
105 (union_uses): Likewise.
106 (insn_is_load_p): Likewise.
107 (insn_is_store_p): Likewise.
108 (insn_is_swap_p): Likewise.
109 (rtx_is_swappable_p): Likewise.
110 (insn_is_swappable_p): Likewise.
111 (chain_purpose): New enum.
112 (chain_contains_only_swaps): New function.
113 (mark_swaps_for_removal): Likewise.
114 (swap_const_vector_halves): Likewise.
115 (adjust_subreg_index): Likewise.
116 (permute_load): Likewise.
117 (permute_store): Likewise.
118 (handle_special_swappables): Likewise.
119 (replace_swap_with_copy): Likewise.
120 (dump_swap_insn_table): Likewise.
121 (rs6000_analyze_swaps): Likewise.
122 (pass_data_analyze_swaps): New pass_data.
123 (pass_analyze_swaps): New rtl_opt_pass.
124 (make_pass_analyze_swaps): New function.
125 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
126
127 2014-08-21 David Malcolm <dmalcolm@redhat.com>
128
129 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
130 type from rtx to rtx_insn *.
131 (create_copy_of_insn_rtx): Likewise.
132 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
133 (create_copy_of_insn_rtx): Likewise, also for local "res".
134
135 2014-08-21 David Malcolm <dmalcolm@redhat.com>
136
137 * rtl.h (find_first_parameter_load): Strengthen return type from
138 rtx to rtx_insn *.
139 * rtlanal.c (find_first_parameter_load): Strengthen return type
140 from rtx to rtx_insn *. Add checked cast for now, to postpone
141 strengthening the params.
142
143 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
144
145 PR fortran/44054
146 * diagnostic.c: Set default caret.
147 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
148 line is needed.
149 * diagnostic.h (struct diagnostic_context):
150
151 2014-08-21 David Malcolm <dmalcolm@redhat.com>
152
153 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
154 (sel_bb_head): Strengthen return type insn_t (currently just an
155 rtx) to rtx_insn *.
156 (sel_bb_end): Likewise.
157
158 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
159 (sel_bb_head): Strengthen return type and local "head" from
160 insn_t (currently just an rtx) to rtx_insn *.
161 (sel_bb_end): Likewise for return type.
162 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
163 working with insn.
164
165 2014-08-21 David Malcolm <dmalcolm@redhat.com>
166
167 * basic-block.h (get_last_bb_insn): Strengthen return type from
168 rtx to rtx_insn *.
169 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
170 end".
171
172 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
173
174 PR fortran/44054
175 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
176 to here ...
177 (diagnostic_report_diagnostic): ... from here.
178 * toplev.c (general_init): Move code to c-family.
179
180 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
181
182 * df.h (web_entry_base): Replace existing struct web_entry with a
183 new class web_entry_base with only the predecessor member.
184 (unionfind_root): Remove declaration and move to class member.
185 (unionfind_union): Remove declaration and move to friend
186 function.
187 (union_defs): Remove declaration.
188 * web.c (web_entry_base::unionfind_root): Modify to be member
189 function and adjust accessors.
190 (unionfind_union): Modify to be friend function and adjust
191 accessors.
192 (web_entry): New subclass of web_entry_base containing the reg
193 member.
194 (union_match_dups): Modify for struct -> class changes.
195 (union_defs): Likewise.
196 (entry_register): Likewise.
197 (pass_web::execute): Likewise.
198
199 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
200
201 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
202 builtin define __VEC_ELEMENT_REG_ORDER__.
203
204 2014-08-20 Martin Jambor <mjambor@suse.cz>
205 Wei Mi <wmi@google.com>
206
207 PR ipa/60449
208 PR middle-end/61776
209 * tree-ssa-operands.c (update_stmt_operands): Remove
210 MODIFIED_NORETURN_CALLS.
211 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
212 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
213 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
214 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
215 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
216 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
217 (gimple_call_set_ctrl_altering): New func.
218 (gimple_call_ctrl_altering_p): Ditto.
219 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
220 (make_blocks): Use gimple_call_initialize_ctrl_altering.
221 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
222 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
223 remove MODIFIED_NORETURN_CALLS.
224
225 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
226
227 * coverage.c (coverage_compute_profile_id): Return non-0;
228 also handle symbols with unique name.
229 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
230
231 2014-08-20 Steve Ellcey <sellcey@mips.com>
232
233 PR middle-end/49191
234 * doc/sourcebuild.texi (non_strict_align): New.
235
236 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
237
238 * cgraphunit.c (ipa_passes, compile): Reshedule
239 symtab_remove_unreachable_nodes passes; update comments.
240 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
241 TODO_remove_functions before the pass; the functions ought to be
242 already removed.
243 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
244 TODO_remove_functions.
245 * passes.c (pass_data_early_local_passes): Do not schedule function
246 removal.
247 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
248
249 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
250
251 PR c/59304
252 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
253 before setting the option.
254 * diagnostic.c (diagnostic_classify_diagnostic): Record
255 command-line status.
256
257 2014-08-20 Richard Biener <rguenther@suse.de>
258
259 PR lto/62190
260 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
261 to build uint{16,32,64}_type_node.
262
263 2014-08-20 Terry Guo <terry.guo@arm.com>
264
265 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
266 with immediate_operand.
267
268 2014-08-20 David Malcolm <dmalcolm@redhat.com>
269
270 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
271 "insn" from an as_a to a safe_as_a, for the case when "insn" is
272 NULL.
273
274 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
275
276 PR preprocessor/51303
277 * incpath.c (remove_duplicates): Use cpp_warning.
278
279 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
280
281 PR c/60975
282 PR c/53063
283 * doc/options.texi (CPP): Document it.
284 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
285 * optc-gen.awk: Handle CPP.
286 * opth-gen.awk: Likewise.
287
288 2014-08-19 David Malcolm <dmalcolm@redhat.com>
289
290 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
291 rtx_insn *.
292 (duplicate_insn_chain): Likewise.
293 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
294 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
295 checked cast for now (until we can strengthen the params in the
296 same way).
297 (duplicate_insn_chain): Likewise.
298
299 2014-08-19 David Malcolm <dmalcolm@redhat.com>
300
301 * rtl.h (next_cc0_user): Strengthen return type from rtx to
302 rtx_insn *.
303 (prev_cc0_setter): Likewise.
304
305 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
306 rtx_insn *, adding checked casts for now as necessary.
307 (prev_cc0_setter): Likewise.
308
309 2014-08-19 David Malcolm <dmalcolm@redhat.com>
310
311 * expr.h (emit_move_insn): Strengthen return type from rtx to
312 rtx_insn *.
313 (emit_move_insn_1): Likewise.
314 (emit_move_complex_push): Likewise.
315 (emit_move_complex_parts): Likewise.
316
317 * expr.c (emit_move_via_integer): Strengthen return type from rtx
318 to rtx_insn *. Replace use of NULL_RTX with NULL when working
319 with insns.
320 (emit_move_complex_push): Strengthen return type from rtx to
321 rtx_insn *.
322 (emit_move_complex): Likewise, also for local "ret".
323 (emit_move_ccmode): Likewise.
324 (emit_move_multi_word): Likewise for return type and locals
325 "last_insn", "seq".
326 (emit_move_insn_1): Likewise for return type and locals "result",
327 "ret".
328 (emit_move_insn): Likewise for return type and local "last_insn".
329 (compress_float_constant): Likewise.
330
331 2014-08-19 David Malcolm <dmalcolm@redhat.com>
332
333 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
334 from rtx to rtx_insn *.
335
336 * rtl.h (emit_insn_before): Likewise.
337 (emit_insn_before_noloc): Likewise.
338 (emit_insn_before_setloc): Likewise.
339 (emit_jump_insn_before): Likewise.
340 (emit_jump_insn_before_noloc): Likewise.
341 (emit_jump_insn_before_setloc): Likewise.
342 (emit_call_insn_before): Likewise.
343 (emit_call_insn_before_noloc): Likewise.
344 (emit_call_insn_before_setloc): Likewise.
345 (emit_debug_insn_before): Likewise.
346 (emit_debug_insn_before_noloc): Likewise.
347 (emit_debug_insn_before_setloc): Likewise.
348 (emit_label_before): Likewise.
349 (emit_insn_after): Likewise.
350 (emit_insn_after_noloc): Likewise.
351 (emit_insn_after_setloc): Likewise.
352 (emit_jump_insn_after): Likewise.
353 (emit_jump_insn_after_noloc): Likewise.
354 (emit_jump_insn_after_setloc): Likewise.
355 (emit_call_insn_after): Likewise.
356 (emit_call_insn_after_noloc): Likewise.
357 (emit_call_insn_after_setloc): Likewise.
358 (emit_debug_insn_after): Likewise.
359 (emit_debug_insn_after_noloc): Likewise.
360 (emit_debug_insn_after_setloc): Likewise.
361 (emit_label_after): Likewise.
362 (emit_insn): Likewise.
363 (emit_debug_insn): Likewise.
364 (emit_jump_insn): Likewise.
365 (emit_call_insn): Likewise.
366 (emit_label): Likewise.
367 (gen_clobber): Likewise.
368 (emit_clobber): Likewise.
369 (gen_use): Likewise.
370 (emit_use): Likewise.
371 (emit): Likewise.
372
373 (emit_barrier_before): Strengthen return type from rtx to
374 rtx_barrier *.
375 (emit_barrier_after): Likewise.
376 (emit_barrier): Likewise.
377
378 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
379 from rtx to rtx_insn *. Add checked casts for now when converting
380 "last" from rtx to rtx_insn *.
381 (emit_insn_before_noloc): Likewise for return type.
382 (emit_jump_insn_before_noloc): Likewise.
383 (emit_call_insn_before_noloc): Likewise.
384 (emit_debug_insn_before_noloc): Likewise.
385 (emit_barrier_before): Strengthen return type and local "insn"
386 from rtx to rtx_barrier *.
387 (emit_label_before): Strengthen return type from rtx to
388 rtx_insn *. Add checked cast for now when returning param
389 (emit_pattern_after_noloc): Strengthen return type from rtx to
390 rtx_insn *. Add checked casts for now when converting "last" from
391 rtx to rtx_insn *.
392 (emit_insn_after_noloc): Strengthen return type from rtx to
393 rtx_insn *.
394 (emit_jump_insn_after_noloc): Likewise.
395 (emit_call_insn_after_noloc): Likewise.
396 (emit_debug_insn_after_noloc): Likewise.
397 (emit_barrier_after): Strengthen return type from rtx to
398 rtx_barrier *.
399 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
400 Add checked cast for now when converting "label" from rtx to
401 rtx_insn *.
402 (emit_pattern_after_setloc): Strengthen return type from rtx to
403 rtx_insn *. Add checked casts for now when converting "last" from
404 rtx to rtx_insn *.
405 (emit_pattern_after): Strengthen return type from rtx to
406 rtx_insn *.
407 (emit_insn_after_setloc): Likewise.
408 (emit_insn_after): Likewise.
409 (emit_jump_insn_after_setloc): Likewise.
410 (emit_jump_insn_after): Likewise.
411 (emit_call_insn_after_setloc): Likewise.
412 (emit_call_insn_after): Likewise.
413 (emit_debug_insn_after_setloc): Likewise.
414 (emit_debug_insn_after): Likewise.
415 (emit_pattern_before_setloc): Likewise. Add checked casts for now
416 when converting "last" from rtx to rtx_insn *.
417 (emit_pattern_before): Strengthen return type from rtx to
418 rtx_insn *.
419 (emit_insn_before_setloc): Likewise.
420 (emit_insn_before): Likewise.
421 (emit_jump_insn_before_setloc): Likewise.
422 (emit_jump_insn_before): Likewise.
423 (emit_call_insn_before_setloc): Likewise.
424 (emit_call_insn_before): Likewise.
425 (emit_debug_insn_before_setloc): Likewise.
426 (emit_debug_insn_before): Likewise.
427 (emit_insn): Strengthen return type and locals "last", "insn",
428 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
429 within cases where we know we have an insn.
430 (emit_debug_insn): Likewise.
431 (emit_jump_insn): Likewise.
432 (emit_call_insn): Strengthen return type and local "insn" from rtx
433 to rtx_insn *.
434 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
435 a checked cast to rtx_insn * for now on "label".
436 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
437 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
438 (emit_use): Likewise.
439 (gen_use): Likewise, also for local "seq".
440 (emit): Likewise for return type and local "insn".
441 (rtx_insn): Likewise for return type and local "new_rtx".
442
443 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
444 from rtx to rtx_barrier *.
445
446 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
447 changed return type from rtx to rtx_insn *, we must update
448 "emit_fn" type, and this in turn means updating...
449 (frame_insn): ...this. Strengthen return type from rtx to
450 rtx_insn *. Introduce a new local "insn" of the appropriate type.
451
452 2014-08-19 David Malcolm <dmalcolm@redhat.com>
453
454 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
455 rtx to rtx_jump_table_data *. Also for local.
456 * rtl.h (emit_jump_table_data): Likewise.
457
458 2014-08-19 David Malcolm <dmalcolm@redhat.com>
459
460 * basic-block.h (create_basic_block_structure): Strengthen third
461 param "bb_note" from rtx to rtx_note *.
462 * rtl.h (emit_note_before): Strengthen return type from rtx to
463 rtx_note *.
464 (emit_note_after): Likewise.
465 (emit_note): Likewise.
466 (emit_note_copy): Likewise. Also, strengthen param similarly.
467 * function.h (struct rtl_data): Strengthen field
468 "x_stack_check_probe_note" from rtx to rtx_note *.
469
470 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
471 from rtx to rtx_note *.
472 * cfgrtl.c (create_basic_block_structure): Strengthen third param
473 "bb_note" from rtx to rtx_note *.
474 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
475 when calling emit_note_copy.
476 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
477 rtx_note *.
478 (emit_note_after): Likewise.
479 (emit_note_before): Likewise.
480 (emit_note_copy): Likewise. Also, strengthen param similarly.
481 (emit_note): Likewise.
482 * except.c (emit_note_eh_region_end): Likewise for return type.
483 Strengthen local "next" from rtx to rtx_insn *.
484 (convert_to_eh_region_ranges): Strengthen local "note"
485 from rtx to rtx_note *.
486 * final.c (change_scope): Likewise.
487 (reemit_insn_block_notes): Likewise, for both locals named "note".
488 Also, strengthen local "insn" from rtx to rtx_insn *.
489 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
490 rtx to rtx_note *.
491 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
492 strengthen local "seq" from rtx to rtx_insn *.
493 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
494 to rtx_note *.
495 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
496 vec<rtx_note *>.
497 (get_bb_note_from_pool): Strengthen return type from rtx to
498 rtx_note *.
499 (sel_create_basic_block): Strengthen local "new_bb_note" from
500 insn_t to rtx_note *.
501 * var-tracking.c (emit_note_insn_var_location): Strengthen local
502 "note" from rtx to rtx_note *.
503 (emit_notes_in_bb): Likewise.
504
505 2014-08-19 David Malcolm <dmalcolm@redhat.com>
506
507 * function.h (struct rtl_data): Strengthen field
508 "x_parm_birth_insn" from rtx to rtx_insn *.
509 * function.c (struct assign_parm_data_all): Strengthen fields
510 "first_conversion_insn" and "last_conversion_insn" from rtx to
511 rtx_insn *.
512
513 2014-08-19 David Malcolm <dmalcolm@redhat.com>
514
515 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
516 to rtx_insn *; also for local "var_end_seq".
517 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
518 (maybe_cleanup_end_of_block): Likewise for param "last" and local
519 "insn".
520 (expand_gimple_cond): Likewise for locals "last2" and "last".
521 (mark_transaction_restart_calls): Likewise for local "insn".
522 (expand_gimple_stmt): Likewise for return type and locals "last"
523 and "insn".
524 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
525 (avoid_complex_debug_insns): Likewise for param "insn".
526 (expand_debug_locations): Likewise for locals "insn", "last",
527 "prev_insn" and "insn2".
528 (expand_gimple_basic_block): Likewise for local "last".
529 (construct_exit_block): Likewise for locals "head", "end",
530 "orig_end".
531 (pass_expand::execute): Likewise for locals "var_seq",
532 "var_ret_seq", "next".
533
534 2014-08-19 David Malcolm <dmalcolm@redhat.com>
535
536 * asan.h (asan_emit_stack_protection): Strengthen return type from
537 rtx to rtx_insn *.
538 * asan.c (asan_emit_stack_protection): Likewise. Add local
539 "insns" to hold the return value.
540
541 2014-08-19 David Malcolm <dmalcolm@redhat.com>
542
543 * basic-block.h (bb_note): Strengthen return type from rtx to
544 rtx_note *.
545 * sched-int.h (bb_note): Likewise.
546 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
547
548 2014-08-19 David Malcolm <dmalcolm@redhat.com>
549
550 * rtl.h (make_insn_raw): Strengthen return type from rtx to
551 rtx_insn *.
552
553 * emit-rtl.c (make_insn_raw): Strengthen return type and local
554 "insn" from rtx to rtx_insn *.
555 (make_debug_insn_raw): Strengthen return type from rtx to
556 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
557 (make_jump_insn_raw): Strengthen return type from rtx to
558 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
559 (make_call_insn_raw): Strengthen return type from rtx to
560 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
561 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
562 callback from rtx to rtx_insn *; likewise for local "insn" and
563 "next", adding a checked cast to rtx_insn in the relevant cases of
564 the switch statement.
565 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
566 callback from rtx to rtx_insn *.
567 (emit_pattern_after_setloc): Likewise.
568 (emit_pattern_after): Likewise.
569 (emit_pattern_before_setloc): Likewise.
570 (emit_pattern_before): Likewise.
571
572 2014-08-19 David Malcolm <dmalcolm@redhat.com>
573
574 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
575 rtx_call_insn *.
576 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
577 accepting an rtx_insn *.
578 (last_call_insn): Strengthen return type from rtx to
579 rtx_call_insn *.
580
581 2014-08-19 David Malcolm <dmalcolm@redhat.com>
582
583 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
584 "insns" from rtx to rtx_insn *.
585 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
586 locals "insn" and "prev".
587
588 2014-08-19 David Malcolm <dmalcolm@redhat.com>
589
590 * rtl.h (tablejump_p): Strengthen third param from rtx * to
591 rtx_jump_table_data **.
592
593 * cfgbuild.c (make_edges): Introduce local "table", using it in
594 place of "tmp" for jump table data.
595 (find_bb_boundaries): Strengthen local "table" from rtx to
596 rtx_jump_table_data *.
597 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
598 (outgoing_edges_match): Likewise for locals "table1" and "table2".
599 (try_crossjump_to_edge): Likewise.
600 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
601 "table".
602 (patch_jump_insn): Introduce local "table", using it in place of
603 "tmp" for jump table data.
604 (force_nonfallthru_and_redirect): Introduce local "table", so that
605 call to tablejump_p can receive an rtx_jump_table_data **. Update
606 logic around the call to overwrite "note" appropriately if
607 tablejump_p returns non-zero.
608 (get_last_bb_insn): Introduce local "table", using it in place of
609 "tmp" for jump table data.
610 * dwarf2cfi.c (create_trace_edges): Likewise.
611
612 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
613 from rtx to rtx_jump_table_data *.
614 (create_fix_barrier): Strengthen local "tmp" from rtx to
615 rtx_jump_table_data *.
616 (arm_reorg): Likewise for local "table".
617
618 * config/s390/s390.c (s390_chunkify_start): Likewise.
619
620 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
621
622 * jump.c (delete_related_insns): Strengthen local "lab_next" from
623 rtx to rtx_jump_table_data *.
624
625 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
626 rtx_jump_table_data **. Add a checked cast when writing through
627 the pointer: we know there that local "table" is non-NULL and that
628 JUMP_TABLE_DATA_P (table) holds.
629 (label_is_jump_target_p): Introduce local "table", using it in
630 place of "tmp" for jump table data.
631
632 2014-08-19 Marek Polacek <polacek@redhat.com>
633
634 PR c++/62153
635 * doc/invoke.texi: Document -Wbool-compare.
636
637 2014-08-19 David Malcolm <dmalcolm@redhat.com>
638
639 * rtl.h (entry_of_function): Strengthen return type from rtx to
640 rtx_insn *.
641 * cfgrtl.c (entry_of_function): Likewise.
642
643 2014-08-19 David Malcolm <dmalcolm@redhat.com>
644
645 * emit-rtl.h (get_insns): Strengthen return type from rtx to
646 rtx_insn *, adding a checked cast for now.
647 (get_last_insn): Likewise.
648
649 2014-08-19 David Malcolm <dmalcolm@redhat.com>
650
651 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
652 rtx_code_label *.
653
654 * emit-rtl.c (gen_label_rtx): Likewise.
655
656 2014-08-19 David Malcolm <dmalcolm@redhat.com>
657
658 * rtl.h (previous_insn): Strengthen return type from rtx to
659 rtx_insn *.
660 (next_insn): Likewise.
661 (prev_nonnote_insn): Likewise.
662 (prev_nonnote_insn_bb): Likewise.
663 (next_nonnote_insn): Likewise.
664 (next_nonnote_insn_bb): Likewise.
665 (prev_nondebug_insn): Likewise.
666 (next_nondebug_insn): Likewise.
667 (prev_nonnote_nondebug_insn): Likewise.
668 (next_nonnote_nondebug_insn): Likewise.
669 (prev_real_insn): Likewise.
670 (next_real_insn): Likewise.
671 (prev_active_insn): Likewise.
672 (next_active_insn): Likewise.
673
674 * emit-rtl.c (next_insn): Strengthen return type from rtx to
675 rtx_insn *, adding a checked cast.
676 (previous_insn): Likewise.
677 (next_nonnote_insn): Likewise.
678 (next_nonnote_insn_bb): Likewise.
679 (prev_nonnote_insn): Likewise.
680 (prev_nonnote_insn_bb): Likewise.
681 (next_nondebug_insn): Likewise.
682 (prev_nondebug_insn): Likewise.
683 (next_nonnote_nondebug_insn): Likewise.
684 (prev_nonnote_nondebug_insn): Likewise.
685 (next_real_insn): Likewise.
686 (prev_real_insn): Likewise.
687 (next_active_insn): Likewise.
688 (prev_active_insn): Likewise.
689
690 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
691 param "stepfunc" so that it returns an rtx_insn * rather than an
692 rtx, to track the change to prev_nonnote_insn_bb, which is the
693 only function this is called with.
694 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
695
696 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
697
698 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
699 assert.
700
701 2014-08-19 David Malcolm <dmalcolm@redhat.com>
702
703 * coretypes.h (class rtx_debug_insn): Add forward declaration.
704 (class rtx_nonjump_insn): Likewise.
705 (class rtx_jump_insn): Likewise.
706 (class rtx_call_insn): Likewise.
707 (class rtx_jump_table_data): Likewise.
708 (class rtx_barrier): Likewise.
709 (class rtx_code_label): Likewise.
710 (class rtx_note): Likewise.
711
712 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
713 adding the invariant DEBUG_INSN_P (X).
714 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
715 the invariant NONJUMP_INSN_P (X).
716 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
717 the invariant JUMP_P (X).
718 (class rtx_call_insn): New, a subclass of rtx_insn, adding
719 the invariant CALL_P (X).
720 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
721 invariant JUMP_TABLE_DATA_P (X).
722 (class rtx_barrier): New, a subclass of rtx_insn, adding the
723 invariant BARRIER_P (X).
724 (class rtx_code_label): New, a subclass of rtx_insn, adding
725 the invariant LABEL_P (X).
726 (class rtx_note): New, a subclass of rtx_insn, adding
727 the invariant NOTE_P(X).
728 (is_a_helper <rtx_debug_insn *>::test): New.
729 (is_a_helper <rtx_nonjump_insn *>::test): New.
730 (is_a_helper <rtx_jump_insn *>::test): New.
731 (is_a_helper <rtx_call_insn *>::test): New.
732 (is_a_helper <rtx_jump_table_data *>::test): New functions,
733 overloaded for both rtx and rtx_insn *.
734 (is_a_helper <rtx_barrier *>::test): New.
735 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
736 for both rtx and rtx_insn *.
737 (is_a_helper <rtx_note *>::test): New.
738
739 2014-08-19 Marek Polacek <polacek@redhat.com>
740
741 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
742 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
743 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
744 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
745
746 2014-08-19 David Malcolm <dmalcolm@redhat.com>
747
748 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
749 rtx_insn *. To help with transition, for now, convert from an
750 access macro into a pair of functions: BND_TO, returning an
751 rtx_insn *, and...
752 (SET_BND_TO): New function, for use where BND_TO is used as an
753 lvalue.
754
755 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
756 SET_BND_TO.
757 (BND_TO): New function, adding a checked cast.
758 (SET_BND_TO): New function.
759
760 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
761 SET_BND_TO.
762 (compute_av_set_on_boundaries): Likewise.
763
764 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
765
766 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
767 destination if it is used in source.
768 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
769 (*popcount<mode>2_falsedep_1): Likewise.
770
771 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
772
773 PR other/62168
774 * configure.ac: Set install_gold_as_default to no first.
775 * configure: Regenerated.
776
777 2014-08-19 David Malcolm <dmalcolm@redhat.com>
778
779 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
780 "note_list" field will eventually be an rtx_insn *. To help with
781 transition, for now, convert from an access macro into a pair of
782 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
783 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
784 used as an lvalue.
785
786 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
787 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
788
789 * sel-sched-ir.c (init_bb): Likewise.
790 (sel_restore_notes): Likewise.
791 (move_bb_info): Likewise.
792 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
793 (SET_BB_NOTE_LIST): New function.
794
795 2014-08-19 David Malcolm <dmalcolm@redhat.com>
796
797 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
798 field will eventually be an rtx_insn *. To help with transition,
799 for now, convert from an access macro into a pair of functions:
800 VINSN_INSN_RTX, returning an rtx_insn *, and...
801 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
802 is used as an lvalue.
803
804 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
805 SET_VINSN_INSN_RTX where it's used as an lvalue.
806 (VINSN_INSN_RTX): New function.
807 (SET_VINSN_INSN_RTX): New function.
808
809 2014-08-19 David Malcolm <dmalcolm@redhat.com>
810
811 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
812 eventually be rtx_insn *, but to help with transition, for now,
813 convert from an access macro into a pair of functions: DEP_PRO
814 returning an rtx_insn * and...
815 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
816 lvalue, returning an rtx&.
817 (DEP_CON): Analogous changes to DEP_PRO above.
818 (SET_DEP_CON): Likewise.
819
820 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
821 an lvalue to SET_DEP_CON.
822 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
823 (sd_copy_back_deps): Likewise for DEP_CON.
824 (DEP_PRO): New function, adding a checked cast for now.
825 (DEP_CON): Likewise.
826 (SET_DEP_PRO): New function.
827 (SET_DEP_CON): Likewise.
828
829 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
830
831 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
832 (extra_options): Add i386/cygwin.opt.
833 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
834 (CPP_SPEC): Accept -pthread.
835 (LINK_SPEC): Ditto.
836 (GOMP_SELF_SPECS): Update comment.
837 * config/i386/cygwin.opt: New file for -pthread flag.
838
839 2014-08-19 David Malcolm <dmalcolm@redhat.com>
840
841 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
842 * df.h (DF_REF_INSN): Convert from a macro to a function, so
843 that we can return an rtx_insn *.
844
845 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
846
847 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
848 when building executables, not DLLs. Add --large-address-aware
849 under the same conditions.
850 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
851 when building executables, not DLLs. Add --large-address-aware
852 under the same conditions when using -m32.
853
854 * config/i386/cygwin-stdint.h: Throughout, make type
855 definitions dependent on target architecture, not host.
856
857 2014-08-19 David Malcolm <dmalcolm@redhat.com>
858
859 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
860 the return type from rtx to rtx_insn *, which will enable various
861 conversions in followup patches. For now this is is done by a
862 checked cast.
863 (NEXT_INSN): Likewise.
864 (SET_PREV_INSN): Convert to an inline function. This is intended
865 for use as an lvalue, and so returns an rtx& to allow in-place
866 modification.
867 (SET_NEXT_INSN): Likewise.
868
869 2014-07-08 Mark Wielaard <mjw@redhat.com>
870
871 PR debug/59051
872 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
873
874 2014-08-19 Marek Polacek <polacek@redhat.com>
875
876 PR c/61271
877 * cgraphunit.c (handle_alias_pairs): Fix condition.
878
879 2014-08-19 Richard Biener <rguenther@suse.de>
880
881 * gimple-fold.c (fold_gimple_assign): Properly build a
882 null-pointer constant when devirtualizing addresses.
883
884 2014-07-07 Mark Wielaard <mjw@redhat.com>
885
886 * dwarf2out.c (decl_quals): New function.
887 (modified_type_die): Take one cv_quals argument instead of two,
888 one for const and one for volatile.
889 (add_type_attribute): Likewise.
890 (generic_parameter_die): Call add_type_attribute with one modifier
891 argument.
892 (base_type_for_mode): Likewise.
893 (add_bounds_info): Likewise.
894 (add_subscript_info): Likewise.
895 (gen_array_type_die): Likewise.
896 (gen_descr_array_type_die): Likewise.
897 (gen_entry_point_die): Likewise.
898 (gen_enumeration_type_die): Likewise.
899 (gen_formal_parameter_die): Likewise.
900 (gen_subprogram_die): Likewise.
901 (gen_variable_die): Likewise.
902 (gen_const_die): Likewise.
903 (gen_field_die): Likewise.
904 (gen_pointer_type_die): Likewise.
905 (gen_reference_type_die): Likewise.
906 (gen_ptr_to_mbr_type_die): Likewise.
907 (gen_inheritance_die): Likewise.
908 (gen_subroutine_type_die): Likewise.
909 (gen_typedef_die): Likewise.
910 (force_type_die): Likewise.
911
912 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
913
914 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
915 if unset.
916 * configure: Regenerate.
917
918 2014-08-19 Richard Biener <rguenther@suse.de>
919
920 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
921 DECL_EXTERNALs in BLOCKs as non-references.
922 * tree-streamer-out.c (streamer_write_chain): Likewise.
923
924 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
925 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
926 Anna Tikhonova <anna.tikhonova@intel.com>
927 Ilya Tocar <ilya.tocar@intel.com>
928 Andrey Turetskiy <andrey.turetskiy@intel.com>
929 Ilya Verbin <ilya.verbin@intel.com>
930 Kirill Yukhin <kirill.yukhin@intel.com>
931 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
932
933 * config/i386/sse.md
934 (define_mode_iterator VI48_AVX512F): Delete.
935 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
936 (define_mode_iterator VI2_AVX512VL): Ditto.
937 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
938 Delete.
939 (define_insn
940 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
941 New.
942 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
943 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
944 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
945 with VI48_AVX512F_AVX512VL): New.
946 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
947 with VI2_AVX512VL): Ditto.
948
949 2014-08-19 Marek Polacek <polacek@redhat.com>
950
951 * doc/invoke.texi: Document -Wc99-c11-compat.
952
953 2014-08-19 David Malcolm <dmalcolm@redhat.com>
954
955 * rtl.h (PREV_INSN): Split macro in two: the existing one,
956 for rvalues, and...
957 (SET_PREV_INSN): New macro, for use as an lvalue.
958 (NEXT_INSN, SET_NEXT_INSN): Likewise.
959
960 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
961 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
962 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
963 (fixup_abnormal_edges): Likewise.
964 (unlink_insn_chain): Likewise.
965 (fixup_reorder_chain): Likewise.
966 (cfg_layout_delete_block): Likewise.
967 (cfg_layout_merge_blocks): Likewise.
968 * combine.c (update_cfg_for_uncondjump): Likewise.
969 * emit-rtl.c (link_insn_into_chain): Likewise.
970 (remove_insn): Likewise.
971 (delete_insns_since): Likewise.
972 (reorder_insns_nobb): Likewise.
973 (emit_insn_after_1): Likewise.
974 * final.c (rest_of_clean_state): Likewise.
975 (final_scan_insn): Likewise.
976 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
977 * haifa-sched.c (concat_note_lists): Likewise.
978 (remove_notes): Likewise.
979 (restore_other_notes): Likewise.
980 (move_insn): Likewise.
981 (unlink_bb_notes): Likewise.
982 (restore_bb_notes): Likewise.
983 * jump.c (delete_for_peephole): Likewise.
984 * optabs.c (emit_libcall_block_1): Likewise.
985 * reorg.c (emit_delay_sequence): Likewise.
986 (fill_simple_delay_slots): Likewise.
987 * sel-sched-ir.c (sel_move_insn): Likewise.
988 (sel_remove_insn): Likewise.
989 (get_bb_note_from_pool): Likewise.
990 * sel-sched.c (move_nop_to_previous_block): Likewise.
991
992 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
993 * config/c6x/c6x.c (gen_one_bundle): Likewise.
994 (c6x_gen_bundles): Likewise.
995 (hwloop_optimize): Likewise.
996 * config/frv/frv.c (frv_function_prologue): Likewise.
997 (frv_register_nop): Likewise.
998 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
999 (ia64_reorg): Likewise.
1000 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1001 (mep_make_bundle): Likewise.
1002 (mep_bundle_insns): Likewise.
1003 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1004 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1005 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1006
1007 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1008
1009 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1010 return type from rtx to rtx_insn *.
1011 (BB_END): Likewise.
1012 (BB_HEADER): Likewise.
1013 (BB_FOOTER): Likewise.
1014 (SET_BB_HEAD): Convert to a function.
1015 (SET_BB_END): Likewise.
1016 (SET_BB_HEADER): Likewise.
1017 (SET_BB_FOOTER): Likewise.
1018
1019 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1020 Strengthen the return type from rtx to rtx_insn *. For now, this
1021 is done by adding a checked cast, but this will eventually
1022 become a field lookup.
1023 (BB_END): Likewise.
1024 (BB_HEADER): Likewise.
1025 (BB_FOOTER): Likewise.
1026 (SET_BB_HEAD): New function, from macro of same name. This is
1027 intended for use as an lvalue, and so returns an rtx& to allow
1028 in-place modification.
1029 (SET_BB_END): Likewise.
1030 (SET_BB_HEADER): Likewise.
1031 (SET_BB_FOOTER): Likewise.
1032
1033 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1034
1035 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1036 for rvalues, and...
1037 (SET_BB_HEAD): New macro, for use as a lvalue.
1038 (BB_END, SET_BB_END): Likewise.
1039 (BB_HEADER, SET_BB_HEADER): Likewise.
1040 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1041
1042 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1043 of BB_* macros into SET_BB_* macros.
1044 (fix_crossing_unconditional_branches): Likewise.
1045 * caller-save.c (save_call_clobbered_regs): Likewise.
1046 (insert_one_insn): Likewise.
1047 * cfgbuild.c (find_bb_boundaries): Likewise.
1048 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1049 (outgoing_edges_match): Likewise.
1050 (try_optimize_cfg): Likewise.
1051 * cfgexpand.c (expand_gimple_cond): Likewise.
1052 (expand_gimple_tailcall): Likewise.
1053 (expand_gimple_basic_block): Likewise.
1054 (construct_exit_block): Likewise.
1055 * cfgrtl.c (delete_insn): Likewise.
1056 (create_basic_block_structure): Likewise.
1057 (rtl_delete_block): Likewise.
1058 (rtl_split_block): Likewise.
1059 (emit_nop_for_unique_locus_between): Likewise.
1060 (rtl_merge_blocks): Likewise.
1061 (block_label): Likewise.
1062 (try_redirect_by_replacing_jump): Likewise.
1063 (emit_barrier_after_bb): Likewise.
1064 (fixup_abnormal_edges): Likewise.
1065 (record_effective_endpoints): Likewise.
1066 (relink_block_chain): Likewise.
1067 (fixup_reorder_chain): Likewise.
1068 (fixup_fallthru_exit_predecessor): Likewise.
1069 (cfg_layout_duplicate_bb): Likewise.
1070 (cfg_layout_split_block): Likewise.
1071 (cfg_layout_delete_block): Likewise.
1072 (cfg_layout_merge_blocks): Likewise.
1073 * combine.c (update_cfg_for_uncondjump): Likewise.
1074 * emit-rtl.c (add_insn_after): Likewise.
1075 (remove_insn): Likewise.
1076 (reorder_insns): Likewise.
1077 (emit_insn_after_1): Likewise.
1078 * haifa-sched.c (get_ebb_head_tail): Likewise.
1079 (restore_other_notes): Likewise.
1080 (move_insn): Likewise.
1081 (sched_extend_bb): Likewise.
1082 (fix_jump_move): Likewise.
1083 * ifcvt.c (noce_process_if_block): Likewise.
1084 (dead_or_predicable): Likewise.
1085 * ira.c (update_equiv_regs): Likewise.
1086 * reg-stack.c (change_stack): Likewise.
1087 * sel-sched-ir.c (sel_move_insn): Likewise.
1088 * sel-sched.c (move_nop_to_previous_block): Likewise.
1089
1090 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1091 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1092
1093 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1094
1095 * rtl.h (for_each_rtx_in_insn): New function.
1096 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1097
1098 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1099
1100 * coretypes.h (class rtx_insn): Add forward declaration.
1101
1102 * rtl.h: Include is-a.h.
1103 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1104 workaround to ensure gengtype knows inheritance is occurring,
1105 whilst continuing to use the pre-existing special-casing for
1106 rtx_def.
1107 (class rtx_insn): New subclass of rtx_def, adding the
1108 invariant that we're dealing with something we can sanely use
1109 INSN_UID, NEXT_INSN, PREV_INSN on.
1110 (is_a_helper <rtx_insn *>::test): New.
1111 (is_a_helper <const rtx_insn *>::test): New.
1112
1113 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1114
1115 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1116
1117 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1118
1119 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1120 comdats as extern.
1121
1122 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1123
1124 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1125 to BUILT_IN_UNREACHABLE.
1126
1127 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1128
1129 PR target/62011
1130 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1131 New tune flag.
1132 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1133 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1134 (ffs<mode>2): Do not expand with tzcnt for
1135 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1136 (ffssi2_no_cmove): Ditto.
1137 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1138 (ctz<mode>2): New expander.
1139 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1140 (*ctz<mode>2_falsedep): New insn.
1141 (*ctz<mode>2): Rename from ctz<mode>2.
1142 (clz<mode>2_lzcnt): New expander.
1143 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1144 (*clz<mode>2_lzcnt_falsedep): New insn.
1145 (*clz<mode>2): Rename from ctz<mode>2.
1146 (popcount<mode>2): New expander.
1147 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1148 (*popcount<mode>2_falsedep): New insn.
1149 (*popcount<mode>2): Rename from ctz<mode>2.
1150 (*popcount<mode>2_cmp): Remove.
1151 (*popcountsi2_cmp_zext): Ditto.
1152
1153 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1154
1155 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1156 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1157 * config/microblaze/microblaze.h
1158 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1159
1160 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1161
1162 PR other/62168
1163 * configure.ac: Set install_gold_as_default to no for
1164 --enable-gold=no.
1165 * configure: Regenerated.
1166
1167 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1168
1169 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1170 * config.in: Add undef of HAVE_isl.
1171 * configure: Regenerate.
1172 * configure.ac: Add definition of HAVE_isl.
1173 * graphite-blocking.c: Add checking of HAVE_isl.
1174 * graphite-dependences.c: Likewise.
1175 * graphite-interchange.c: Likewise.
1176 * graphite-isl-ast-to-gimple.c: Likewise.
1177 * graphite-optimize-isl.c: Likewise.
1178 * graphite-poly.c: Likewise.
1179 * graphite-scop-detection.c: Likewise.
1180 * graphite-sese-to-poly.c: Likewise.
1181 * graphite.c: Likewise.
1182 * toplev.c: Replace the checking of HAVE_cloog with the checking
1183 of HAVE_isl.
1184
1185 2014-08-18 Richard Biener <rguenther@suse.de>
1186
1187 PR tree-optimization/62090
1188 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1189 (fold_builtin_3): Do not fold snprintf.
1190 (fold_builtin_4): Likewise.
1191 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1192 moved from builtins.c.
1193 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1194 (gimple_fold_builtin): Do not fold sprintf here.
1195
1196 2014-08-18 Richard Biener <rguenther@suse.de>
1197
1198 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1199 code to ...
1200 (maybe_canonicalize_mem_ref_addr): ... this function.
1201 (fold_stmt_1): Apply it here before all simplification.
1202
1203 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1204
1205 PR ipa/61800
1206 * cgraph.h (cgraph_node::create_indirect_edge): Add
1207 compute_indirect_info param.
1208 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1209 indirect_info only when it is required.
1210 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1211 indirect_info fore cloned indirect edge.
1212
1213 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1214 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1215 Anna Tikhonova <anna.tikhonova@intel.com>
1216 Ilya Tocar <ilya.tocar@intel.com>
1217 Andrey Turetskiy <andrey.turetskiy@intel.com>
1218 Ilya Verbin <ilya.verbin@intel.com>
1219 Kirill Yukhin <kirill.yukhin@intel.com>
1220 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1221
1222 * config/i386/sse.md
1223 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1224 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1225
1226 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1227 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1228 Anna Tikhonova <anna.tikhonova@intel.com>
1229 Ilya Tocar <ilya.tocar@intel.com>
1230 Andrey Turetskiy <andrey.turetskiy@intel.com>
1231 Ilya Verbin <ilya.verbin@intel.com>
1232 Kirill Yukhin <kirill.yukhin@intel.com>
1233 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1234
1235 * config/i386/sse.md
1236 (define_mode_iterator VF1_AVX512VL): New.
1237 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1238 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1239 New.
1240
1241 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1242 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1243 Anna Tikhonova <anna.tikhonova@intel.com>
1244 Ilya Tocar <ilya.tocar@intel.com>
1245 Andrey Turetskiy <andrey.turetskiy@intel.com>
1246 Ilya Verbin <ilya.verbin@intel.com>
1247 Kirill Yukhin <kirill.yukhin@intel.com>
1248 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1249
1250 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1251 * config/i386/i386.md
1252 (define_code_iterator any_float): New.
1253 (define_code_attr floatsuffix): New.
1254 * config/i386/sse.md
1255 (define_mode_iterator VF1_128_256VL): New.
1256 (define_mode_iterator VF2_512_256VL): New.
1257 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1258 TARGET check.
1259 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1260 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1261 New.
1262 (define_mode_attr qq2pssuff): New.
1263 (define_mode_attr sselongvecmode): New.
1264 (define_mode_attr sselongvecmodelower): New.
1265 (define_mode_attr sseintvecmode3): New.
1266 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1267 New.
1268 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1269 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1270 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1271 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1272
1273 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1275 Anna Tikhonova <anna.tikhonova@intel.com>
1276 Ilya Tocar <ilya.tocar@intel.com>
1277 Andrey Turetskiy <andrey.turetskiy@intel.com>
1278 Ilya Verbin <ilya.verbin@intel.com>
1279 Kirill Yukhin <kirill.yukhin@intel.com>
1280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1281
1282 * config/i386/sse.md
1283 (define_mode_iterator VF2_AVX512VL): New.
1284 (define_mode_attr sseintvecmode2): New.
1285 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1286 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1287 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1288 (define_insn
1289 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1290 Ditto.
1291 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1292 Ditto.
1293 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1294 Ditto.
1295
1296 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1297 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1298 Anna Tikhonova <anna.tikhonova@intel.com>
1299 Ilya Tocar <ilya.tocar@intel.com>
1300 Andrey Turetskiy <andrey.turetskiy@intel.com>
1301 Ilya Verbin <ilya.verbin@intel.com>
1302 Kirill Yukhin <kirill.yukhin@intel.com>
1303 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1304
1305 * config/i386/i386.md
1306 (define_insn "*movoi_internal_avx"): Add evex version.
1307 (define_insn "*movti_internal"): Ditto.
1308
1309 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1310 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1311 Anna Tikhonova <anna.tikhonova@intel.com>
1312 Ilya Tocar <ilya.tocar@intel.com>
1313 Andrey Turetskiy <andrey.turetskiy@intel.com>
1314 Ilya Verbin <ilya.verbin@intel.com>
1315 Kirill Yukhin <kirill.yukhin@intel.com>
1316 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1317
1318 * config/i386/i386.md
1319 (define_attr "isa"): Add avx512dq, noavx512dq.
1320 (define_attr "enabled"): Ditto.
1321 * config/i386/sse.md
1322 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1323
1324 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1325 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1326 Anna Tikhonova <anna.tikhonova@intel.com>
1327 Ilya Tocar <ilya.tocar@intel.com>
1328 Andrey Turetskiy <andrey.turetskiy@intel.com>
1329 Ilya Verbin <ilya.verbin@intel.com>
1330 Kirill Yukhin <kirill.yukhin@intel.com>
1331 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1332
1333 * config/i386/i386.c
1334 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1335 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1336 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1337 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1338 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1339 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1340 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1341 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1342 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1343 * config/i386/sse.md
1344 (define_mode_iterator VMOVE): Allow V4TI mode.
1345 (define_mode_iterator V_AVX512VL): New.
1346 (define_mode_iterator V): New handling for AVX512VL.
1347 (define_insn "avx512f_load<mode>_mask"): Delete.
1348 (define_insn "<avx512>_load<mode>_mask"): New.
1349 (define_insn "avx512f_store<mode>_mask"): Delete.
1350 (define_insn "<avx512>_store<mode>_mask"): New.
1351
1352
1353 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1354
1355 PR sanitizer/62089
1356 * asan.c (instrument_derefs): Fix bitfield check.
1357
1358 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1359
1360 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1361 * config/rs6000/htm.md (ttest): Remove clobber.
1362 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1363 (and_operand): Reformat.
1364 (and_2rld_operand): New predicate.
1365 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1366 parameter.
1367 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1368 parameter. Handle AND directly.
1369 (rs6000_split_logical_di): Remove last parameter.
1370 (rs6000_split_logical): Remove last parameter. Remove obsolete
1371 comment.
1372 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1373 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1374 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1375 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1376 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1377 and 5 anonymous splitters): Delete.
1378 (and<mode>3): New expander.
1379 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1380 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1381 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1382 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1383 (floatdisf2_internal1): Remove clobbers.
1384 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1385 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1386 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1387 (and<mode>3 for BOOL_128): Remove clobber.
1388 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1389 rs6000_split_logical.
1390 (*bool<mode>3_internal for BOOL_128): Adjust call of
1391 rs6000_split_logical.
1392 (*boolc<mode>3_internal1 for BOOL_128,
1393 *boolc<mode>3_internal2 for BOOL_128,
1394 *boolcc<mode>3_internal1 for BOOL_128,
1395 *boolcc<mode>3_internal2 for BOOL_128,
1396 *eqv<mode>3_internal1 for BOOL_128,
1397 *eqv<mode>3_internal2 for BOOL_128,
1398 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1399 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1400 clobber.
1401 (*vec_reload_and_reg_<mptrsize>): Delete.
1402
1403 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1404
1405 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1406 and split, *boolccsi3_internal3 and split): Delete.
1407 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1408 *boolccdi3_internal3 and split): Delete.
1409 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1410 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1411
1412 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1413
1414 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1415 and split, *boolcsi3_internal3 and split): Delete.
1416 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1417 *boolcdi3_internal3 and split): Delete.
1418 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1419
1420 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1421
1422 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1423 <'u'>: Also support printing the low-order 16 bits.
1424 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1425 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1426 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1427 *booldi3_internal3 and split): Delete.
1428 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1429 *bool<mode>3_dot2): New.
1430 (two anonymous define_splits for non_logical_cint_operand): Merge.
1431
1432 2014-08-17 Marek Polacek <polacek@redhat.com>
1433 Manuel López-Ibáñez <manu@gcc.gnu.org>
1434
1435 PR c/62059
1436 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1437 (diagnostic_show_locus): Don't print caret diagnostic
1438 if a column is larger than the line_width.
1439
1440 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1441
1442 * common.opt: Make the ISL AST generator to be the main code generator
1443 of Graphite.
1444
1445 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1446
1447 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1448
1449 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1450
1451 PR target/61641
1452 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1453 Declare.
1454 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1455 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1456 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1457 Define.
1458 * config/pa/pa.md (begin_brtab): Delete insn.
1459 (end_brtab): Likewise.
1460
1461 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1462
1463 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1464
1465 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1466
1467 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1468 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1469 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1470 (get_dynamic_type): Remove.
1471 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1472 (clear_speculation): Bring to ipa-deivrt.h
1473 (get_class_context): Rename to ...
1474 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1475 (contains_type_p): Update.
1476 (get_dynamic_type): Rename to ...
1477 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1478 (possible_polymorphic_call_targets): UPdate.
1479 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1480 * ipa-prop.c (ipa_analyze_call_uses): Update.
1481
1482 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1483
1484 * doc/invoke.texi (SH options): Document missing processor variant
1485 options. Remove references to Hitachi. Undocument deprecated mspace
1486 option.
1487
1488 2014-08-15 Jason Merrill <jason@redhat.com>
1489
1490 * tree.c (type_hash_canon): Uncomment assert.
1491
1492 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1493
1494 * input.h (in_system_header_at): Add comment.
1495
1496 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1497
1498 PR fortran/44054
1499 * diagnostic.c (build_message_string): Make it extern.
1500 * diagnostic.h (build_message_string): Make it extern.
1501
1502 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1503
1504 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1505 load/store from/to non-floating class pseudo.
1506
1507 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1508
1509 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1510
1511 2014-08-15 Richard Biener <rguenther@suse.de>
1512
1513 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1514 (get_constraint_for_ssa_var): Remove dead code.
1515 (get_constraint_for_1): Adjust.
1516 (find_what_var_points_to): Likewise.
1517 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1518
1519 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1520
1521 PR target/61878
1522 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1523 (_mm512_mask_cmpge_epu32_mask): Ditto.
1524 (_mm512_cmpge_epu32_mask): Ditto.
1525 (_mm512_mask_cmpge_epi64_mask): Ditto.
1526 (_mm512_cmpge_epi64_mask): Ditto.
1527 (_mm512_mask_cmpge_epu64_mask): Ditto.
1528 (_mm512_cmpge_epu64_mask): Ditto.
1529 (_mm512_mask_cmple_epi32_mask): Ditto.
1530 (_mm512_cmple_epi32_mask): Ditto.
1531 (_mm512_mask_cmple_epu32_mask): Ditto.
1532 (_mm512_cmple_epu32_mask): Ditto.
1533 (_mm512_mask_cmple_epi64_mask): Ditto.
1534 (_mm512_cmple_epi64_mask): Ditto.
1535 (_mm512_mask_cmple_epu64_mask): Ditto.
1536 (_mm512_cmple_epu64_mask): Ditto.
1537 (_mm512_mask_cmplt_epi32_mask): Ditto.
1538 (_mm512_cmplt_epi32_mask): Ditto.
1539 (_mm512_mask_cmplt_epu32_mask): Ditto.
1540 (_mm512_cmplt_epu32_mask): Ditto.
1541 (_mm512_mask_cmplt_epi64_mask): Ditto.
1542 (_mm512_cmplt_epi64_mask): Ditto.
1543 (_mm512_mask_cmplt_epu64_mask): Ditto.
1544 (_mm512_cmplt_epu64_mask): Ditto.
1545 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1546 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1547 (_mm512_cmpneq_epu32_mask): Ditto.
1548 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1549 (_mm512_cmpneq_epi64_mask): Ditto.
1550 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1551 (_mm512_cmpneq_epu64_mask): Ditto.
1552 (_mm512_castpd_ps): Ditto.
1553 (_mm512_castpd_si512): Ditto.
1554 (_mm512_castps_pd): Ditto.
1555 (_mm512_castps_si512): Ditto.
1556 (_mm512_castsi512_ps): Ditto.
1557 (_mm512_castsi512_pd): Ditto.
1558 (_mm512_castpd512_pd128): Ditto.
1559 (_mm512_castps512_ps128): Ditto.
1560 (_mm512_castsi512_si128): Ditto.
1561 (_mm512_castpd512_pd256): Ditto.
1562 (_mm512_castps512_ps256): Ditto.
1563 (_mm512_castsi512_si256): Ditto.
1564 (_mm512_castpd128_pd512): Ditto.
1565 (_mm512_castps128_ps512): Ditto.
1566 (_mm512_castsi128_si512): Ditto.
1567 (_mm512_castpd256_pd512): Ditto.
1568 (_mm512_castps256_ps512): Ditto.
1569 (_mm512_castsi256_si512): Ditto.
1570 (_mm512_cmpeq_epu32_mask): Ditto.
1571 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1572 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1573 (_mm512_cmpeq_epu64_mask): Ditto.
1574 (_mm512_cmpgt_epu32_mask): Ditto.
1575 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1576 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1577 (_mm512_cmpgt_epu64_mask): Ditto.
1578 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1579 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1580 * config/i386/i386.c (enum ix86_builtins): Add
1581 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1582 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1583 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1584 (bdesc_args): Add __builtin_ia32_si512_256si,
1585 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1586 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1587 __builtin_ia32_pd512_pd.
1588 (ix86_expand_args_builtin): Handle new FTYPEs.
1589 * config/i386/sse.md (castmode): Add 512-bit modes.
1590 (AVX512MODE2P): New.
1591 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1592 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1593
1594 2014-08-15 Richard Biener <rguenther@suse.de>
1595
1596 * fold-const.c (tree_swap_operands_p): Put all constants
1597 last, also strip sign-changing NOPs when considering further
1598 canonicalization. Canonicalize also when optimizing for size.
1599
1600 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1601
1602 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1603 one_match > zero_match case to just before simple_sequence.
1604
1605 2014-08-15 Richard Biener <rguenther@suse.de>
1606
1607 * data-streamer.h (streamer_string_index, string_for_index):
1608 Remove.
1609 * data-streamer-out.c (streamer_string_index): Make static.
1610 * data-streamer-in.c (string_for_index): Likewise.
1611 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1612 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1613
1614 2014-08-15 Richard Biener <rguenther@suse.de>
1615
1616 PR tree-optimization/62031
1617 * tree-data-ref.c (dr_analyze_indices): Do not set
1618 DR_UNCONSTRAINED_BASE.
1619 (dr_may_alias_p): All indirect accesses have to go the
1620 formerly DR_UNCONSTRAINED_BASE path.
1621 * tree-data-ref.h (struct indices): Remove
1622 unconstrained_base member.
1623 (DR_UNCONSTRAINED_BASE): Remove.
1624
1625 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1626
1627 PR middle-end/62092
1628 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1629 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1630 in OMP_CLAUSE_MAP in some outer target region.
1631
1632 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1633
1634 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1635 name_expansion_cache.
1636 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1637 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1638 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1639 (difference_cannot_overflow_p): New parameter. Use affine
1640 expansion for equality check.
1641 (iv_elimination_compare_lt): Pass new argument.
1642
1643 2014-08-14 DJ Delorie <dj@redhat.com>
1644
1645 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1646 variables to the accumulator.
1647
1648 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1649 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1650 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1651 with far-far moves.
1652
1653 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1654 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1655 (umulqihi3_virt): Likewise.
1656 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1657 (umulqihi3_real): Likewise.
1658
1659 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1660
1661 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1662
1663 PR tree-optimization/62091
1664 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1665 function_entry_reached.
1666 (walk_aliased_vdefs): Clear it here.
1667 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1668
1669 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1670
1671 * ipa-utils.h (compare_virtual_tables): Declare.
1672 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1673
1674 2014-08-14 Marek Polacek <polacek@redhat.com>
1675
1676 DR 458
1677 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1678 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1679
1680 2014-08-14 Tom de Vries <tom@codesourcery.com>
1681
1682 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1683
1684 2014-08-14 Tom de Vries <tom@codesourcery.com>
1685
1686 PR rtl-optimization/62004
1687 PR rtl-optimization/62030
1688 * ifcvt.c (rtx_interchangeable_p): New function.
1689 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1690 * emit-rtl.h (mem_attrs_eq_p): Declare.
1691
1692 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1693
1694 * graphite-scop-detection.c:
1695 Add inclusion of cp-tree.h.
1696 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1697 in case they are pointers to object types
1698
1699 2014-08-14 Richard Biener <rguenther@suse.de>
1700
1701 * BASE-VER: Change to 5.0.0
1702
1703 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1705 Anna Tikhonova <anna.tikhonova@intel.com>
1706 Ilya Tocar <ilya.tocar@intel.com>
1707 Andrey Turetskiy <andrey.turetskiy@intel.com>
1708 Ilya Verbin <ilya.verbin@intel.com>
1709 Kirill Yukhin <kirill.yukhin@intel.com>
1710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1711
1712 * config/i386/sse.md (define_mode_attr avx512): New.
1713 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1714 V4DI modes.
1715 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1716 (define_mode_attr ssse3_avx2): Ditto.
1717 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1718 (define_mode_attr avx2_avx512bw): New.
1719 (define_mode_attr ssedoublemodelower): New.
1720 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1721 V32HI, V64QI modes.
1722 (define_mode_attr ssebytemode): Allow V8DI modes.
1723 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1724 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1725 (define_mode_attr ssePSmode2): New.
1726 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1727 V16HI, V32HI modes.
1728 (define_mode_attr dbpsadbwmode): New.
1729 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1730 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1731 (vi8_sse4_1_avx2_avx512): New.
1732 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1733 mode attribute.
1734 (define_mode_attr blendbits): Move before its immediate use.
1735
1736 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1737 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1738 Anna Tikhonova <anna.tikhonova@intel.com>
1739 Ilya Tocar <ilya.tocar@intel.com>
1740 Andrey Turetskiy <andrey.turetskiy@intel.com>
1741 Ilya Verbin <ilya.verbin@intel.com>
1742 Kirill Yukhin <kirill.yukhin@intel.com>
1743 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1744
1745 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1746 * config/i386/subst.md
1747 (define_mode_iterator SUBST_V): Update.
1748 (define_mode_iterator SUBST_A): Ditto.
1749 (define_subst_attr "mask_operand7"): New.
1750 (define_subst_attr "mask_operand10"): New.
1751 (define_subst_attr "mask_operand_arg34") : New.
1752 (define_subst_attr "mask_expand_op3"): New.
1753 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1754 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1755 (define_subst_attr "mask_avx512vl_condition"): New.
1756 (define_subst_attr "round_mask_operand4"): Ditto.
1757 (define_subst_attr "round_mask_scalar_op3"): Delete.
1758 (define_subst_attr "round_mask_op4"): New.
1759 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1760 V16SImode.
1761 (define_subst_attr "round_modev8sf_condition"): New.
1762 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1763 <MODE>mode.
1764 (define_subst_attr "round_saeonly_mask_operand4"): New.
1765 (define_subst_attr "round_saeonly_mask_op4"): New.
1766 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1767 V8DImode, V16SImode.
1768 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1769 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1770 (define_subst_attr "mask_expand4_args"): New.
1771 (define_subst "mask_expand4"): New.
1772
1773 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1774 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1775 Anna Tikhonova <anna.tikhonova@intel.com>
1776 Ilya Tocar <ilya.tocar@intel.com>
1777 Andrey Turetskiy <andrey.turetskiy@intel.com>
1778 Ilya Verbin <ilya.verbin@intel.com>
1779 Kirill Yukhin <kirill.yukhin@intel.com>
1780 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1781
1782 * config/i386/i386.md
1783 (define_attr "isa"): Add avx512bw,noavx512bw.
1784 (define_attr "enabled"): Ditto.
1785 (define_split): Add 32/64-bit mask logic.
1786 (define_insn "*k<logic>qi"): New.
1787 (define_insn "*k<logic>hi"): New.
1788 (define_insn "*anddi_1"): Add mask version.
1789 (define_insn "*andsi_1"): Ditto.
1790 (define_insn "*<code><mode>_1"): Ditto.
1791 (define_insn "*<code>hi_1"): Ditto.
1792 (define_insn "kxnor<mode>"): New.
1793 (define_insn "kunpcksi"): New.
1794 (define_insn "kunpckdi"): New.
1795 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1796 (define_insn "*one_cmplhi2_1"): Ditto.
1797
1798 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1799 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1800 Anna Tikhonova <anna.tikhonova@intel.com>
1801 Ilya Tocar <ilya.tocar@intel.com>
1802 Andrey Turetskiy <andrey.turetskiy@intel.com>
1803 Ilya Verbin <ilya.verbin@intel.com>
1804 Kirill Yukhin <kirill.yukhin@intel.com>
1805 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1806
1807 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1808 V32HImode.
1809
1810 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1811 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1812 Anna Tikhonova <anna.tikhonova@intel.com>
1813 Ilya Tocar <ilya.tocar@intel.com>
1814 Andrey Turetskiy <andrey.turetskiy@intel.com>
1815 Ilya Verbin <ilya.verbin@intel.com>
1816 Kirill Yukhin <kirill.yukhin@intel.com>
1817 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1818
1819 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
1820 registers.
1821 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1822 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1823 xmm/ymm16+ when availble.
1824 * config/i386/i386.h
1825 (HARD_REGNO_NREGS): Add mask regs.
1826 (VALID_AVX512F_REG_MODE): Ditto.
1827 (VALID_AVX512F_REG_MODE) : Define.
1828 (VALID_MASK_AVX512BW_MODE): Ditto.
1829 (reg_class) (MASK_REG_P(X)): Define.
1830 * config/i386/i386.md: Do not split long moves with mask register,
1831 use kmovb if avx512bw is availible.
1832 (movdi_internal): Handle mask registers.
1833
1834 2014-08-14 Richard Biener <rguenther@suse.de>
1835
1836 PR tree-optimization/62081
1837 * tree-ssa-loop.c (pass_fix_loops): New pass.
1838 (pass_tree_loop::gate): Do not fixup loops here.
1839 * tree-pass.h (make_pass_fix_loops): Declare.
1840 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1841
1842 2014-08-14 Richard Biener <rguenther@suse.de>
1843
1844 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1845 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1846
1847 2014-08-14 Richard Biener <rguenther@suse.de>
1848
1849 PR tree-optimization/62090
1850 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
1851 (fold_builtin_2): Do not fold sprintf.
1852 (fold_builtin_3): Likewise.
1853 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
1854 moved from builtins.c.
1855 (gimple_fold_builtin): Fold sprintf.
1856
1857 2014-08-14 Richard Biener <rguenther@suse.de>
1858
1859 PR rtl-optimization/62079
1860 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
1861 run cleanup_cfg.
1862
1863 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1864
1865 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
1866 current_function_decl.
1867
1868 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1869
1870 * cgraph.c (cgraph_node::function_symbol): Fix wrong
1871 cgraph_function_node to cgraph_node::function_symbol
1872 refactoring.
1873
1874 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
1875
1876 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
1877 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
1878
1879 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
1880
1881 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
1882 warning.
1883
1884 2014-08-13 Roman Gareev <gareevroman@gmail.com>
1885
1886 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
1887 generator.
1888
1889 2014-08-12 Jakub Jelinek <jakub@redhat.com>
1890
1891 PR target/62025
1892 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
1893 any registers that are used in mem_insn.
1894
1895 2014-08-12 Steve Ellcey <sellcey@mips.com>
1896
1897 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
1898
1899 2014-08-12 Steve Ellcey <sellcey@mips.com>
1900
1901 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
1902 (MULTILIB_DIRNAMES): Ditto.
1903 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
1904 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
1905 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
1906 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
1907 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
1908 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
1909
1910 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1911
1912 PR target/61413
1913 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
1914 of __ARM_SIZEOF_WCHAR_T.
1915
1916 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1917
1918 PR target/62098
1919 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
1920 Remove unnecessary attributes.
1921
1922 2014-08-12 Yury Gribov <y.gribov@samsung.com>
1923
1924 * internal-fn.c (init_internal_fns): Fix off-by-one.
1925
1926 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1928 Anna Tikhonova <anna.tikhonova@intel.com>
1929 Ilya Tocar <ilya.tocar@intel.com>
1930 Andrey Turetskiy <andrey.turetskiy@intel.com>
1931 Ilya Verbin <ilya.verbin@intel.com>
1932 Kirill Yukhin <kirill.yukhin@intel.com>
1933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1934
1935 * config/i386/i386.c (standard_sse_constant_opcode): Use
1936 vpxord/vpternlog if avx512 is availible.
1937
1938 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1939
1940 PR middle-end/62103
1941 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
1942 bitfields, that is when size doesn't match the size of type or the
1943 size of the constructor.
1944
1945 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1946
1947 * config/rs6000/constraints.md (wh constraint): New constraint,
1948 for FP registers if direct move is available.
1949 (wi constraint): New constraint, for VSX/FP registers that can
1950 handle 64-bit integers.
1951 (wj constraint): New constraint for VSX/FP registers that can
1952 handle 64-bit integers for direct moves.
1953 (wk constraint): New constraint for VSX/FP registers that can
1954 handle 64-bit doubles for direct moves.
1955 (wy constraint): Make documentation match implementation.
1956
1957 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
1958 scalar_in_vmx_p field to simplify tests of whether SFmode or
1959 DFmode can go in the Altivec registers.
1960 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
1961 (rs6000_setup_reg_addr_masks): Likewise.
1962 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
1963 field, and wh/wi/wj/wk constraints.
1964 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
1965 the wh/wi/wj/wk constraints.
1966 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
1967 upper registers, prefer VSX registers unless the operation is a
1968 memory operation with REG+OFFSET addressing.
1969
1970 * config/rs6000/vsx.md (VSr mode attribute): Add support for
1971 DImode. Change SFmode to use ww constraint instead of d to allow
1972 SF registers in the upper registers.
1973 (VSr2): Likewise.
1974 (VSr3): Likewise.
1975 (VSr5): Fix thinko in comment.
1976 (VSa): New mode attribute that is an alternative to wa, that
1977 returns the VSX register class that a mode can go in, but may not
1978 be the preferred register class.
1979 (VS_64dm): New mode attribute for appropriate register classes for
1980 referencing 64-bit elements of vectors for direct moves and normal
1981 moves.
1982 (VS_64reg): Likewise.
1983 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
1984 register allocator to only registers the data type can handle.
1985 (vsx_le_perm_load_<mode>): Likewise.
1986 (vsx_le_perm_store_<mode>): Likewise.
1987 (vsx_xxpermdi2_le_<mode>): Likewise.
1988 (vsx_xxpermdi4_le_<mode>): Likewise.
1989 (vsx_lxvd2x2_le_<mode>): Likewise.
1990 (vsx_lxvd2x4_le_<mode>): Likewise.
1991 (vsx_stxvd2x2_le_<mode>): Likewise.
1992 (vsx_add<mode>3): Likewise.
1993 (vsx_sub<mode>3): Likewise.
1994 (vsx_mul<mode>3): Likewise.
1995 (vsx_div<mode>3): Likewise.
1996 (vsx_tdiv<mode>3_internal): Likewise.
1997 (vsx_fre<mode>2): Likewise.
1998 (vsx_neg<mode>2): Likewise.
1999 (vsx_abs<mode>2): Likewise.
2000 (vsx_nabs<mode>2): Likewise.
2001 (vsx_smax<mode>3): Likewise.
2002 (vsx_smin<mode>3): Likewise.
2003 (vsx_sqrt<mode>2): Likewise.
2004 (vsx_rsqrte<mode>2): Likewise.
2005 (vsx_tsqrt<mode>2_internal): Likewise.
2006 (vsx_fms<mode>4): Likewise.
2007 (vsx_nfma<mode>4): Likewise.
2008 (vsx_eq<mode>): Likewise.
2009 (vsx_gt<mode>): Likewise.
2010 (vsx_ge<mode>): Likewise.
2011 (vsx_eq<mode>_p): Likewise.
2012 (vsx_gt<mode>_p): Likewise.
2013 (vsx_ge<mode>_p): Likewise.
2014 (vsx_xxsel<mode>): Likewise.
2015 (vsx_xxsel<mode>_uns): Likewise.
2016 (vsx_copysign<mode>3): Likewise.
2017 (vsx_float<VSi><mode>2): Likewise.
2018 (vsx_floatuns<VSi><mode>2): Likewise.
2019 (vsx_fix_trunc<mode><VSi>2): Likewise.
2020 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2021 (vsx_x<VSv>r<VSs>i): Likewise.
2022 (vsx_x<VSv>r<VSs>ic): Likewise.
2023 (vsx_btrunc<mode>2): Likewise.
2024 (vsx_b2trunc<mode>2): Likewise.
2025 (vsx_floor<mode>2): Likewise.
2026 (vsx_ceil<mode>2): Likewise.
2027 (vsx_<VS_spdp_insn>): Likewise.
2028 (vsx_xscvspdp): Likewise.
2029 (vsx_xvcvspuxds): Likewise.
2030 (vsx_float_fix_<mode>2): Likewise.
2031 (vsx_set_<mode>): Likewise.
2032 (vsx_extract_<mode>_internal1): Likewise.
2033 (vsx_extract_<mode>_internal2): Likewise.
2034 (vsx_extract_<mode>_load): Likewise.
2035 (vsx_extract_<mode>_store): Likewise.
2036 (vsx_splat_<mode>): Likewise.
2037 (vsx_xxspltw_<mode>): Likewise.
2038 (vsx_xxspltw_<mode>_direct): Likewise.
2039 (vsx_xxmrghw_<mode>): Likewise.
2040 (vsx_xxmrglw_<mode>): Likewise.
2041 (vsx_xxsldwi_<mode>): Likewise.
2042 (vsx_xscvdpspn): Tighten constraints to only use register classes
2043 the types use.
2044 (vsx_xscvspdpn): Likewise.
2045 (vsx_xscvdpspn_scalar): Likewise.
2046
2047 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2048 wj, and wk constraints.
2049 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2050 general purpose registers.
2051
2052 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2053 direct moves.
2054 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2055 DImode instead of wm. Use wk constraint for direct move of DFmode
2056 instead of wm.
2057 (extendsidi2_lfiwax): Likewise.
2058 (lfiwax): Likewise.
2059 (lfiwzx): Likewise.
2060 (movdi_internal64): Likewise.
2061
2062 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2063 wk constraints. Make the wy constraint documentation match them
2064 implementation.
2065
2066 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2067
2068 Replacement of isl_int by isl_val
2069 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2070 (compute_bounds_for_param): use isl_val instead of isl_int
2071 (compute_bounds_for_loop): likewise
2072 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2073 (build_linearized_memory_access): use isl_val instead of isl_int
2074 (pdr_stride_in_loop): likewise
2075 * graphite-optimize-isl.c:
2076 (getPrevectorMap): use isl_val instead of isl_int
2077 * graphite-poly.c:
2078 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2079 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2080 (extern the_isl_ctx): declare
2081 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2082 (extract_affine_gmp): likewise
2083 (wrap): likewise
2084 (build_loop_iteration_domains): likewise
2085 (add_param_constraints): likewise
2086
2087 2014-08-11 Richard Biener <rguenther@suse.de>
2088
2089 PR tree-optimization/62075
2090 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2091 handle uses in patterns.
2092
2093 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2094 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2095 Anna Tikhonova <anna.tikhonova@intel.com>
2096 Ilya Tocar <ilya.tocar@intel.com>
2097 Andrey Turetskiy <andrey.turetskiy@intel.com>
2098 Ilya Verbin <ilya.verbin@intel.com>
2099 Kirill Yukhin <kirill.yukhin@intel.com>
2100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2101
2102 * common/config/i386/i386-common.c
2103 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2104 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2105 (ix86_handle_option): Handle OPT_mavx512vl.
2106 * config/i386/cpuid.h (bit_AVX512VL): Define.
2107 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2108 set -mavx512vl accordingly.
2109 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2110 OPTION_MASK_ISA_AVX512VL.
2111 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2112 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2113 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2114 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2115 * config/i386/i386.h (TARGET_AVX512VL): Define.
2116 (TARGET_AVX512VL_P(x)): Ditto.
2117 * config/i386/i386.opt: Add mavx512vl.
2118
2119 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2120
2121 PR tree-optimization/62073
2122 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2123 a basic block.
2124
2125 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2126 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2127 Anna Tikhonova <anna.tikhonova@intel.com>
2128 Ilya Tocar <ilya.tocar@intel.com>
2129 Andrey Turetskiy <andrey.turetskiy@intel.com>
2130 Ilya Verbin <ilya.verbin@intel.com>
2131 Kirill Yukhin <kirill.yukhin@intel.com>
2132 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2133
2134 * common/config/i386/i386-common.c
2135 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2136 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2137 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2138 (ix86_handle_option): Handle OPT_mavx512bw.
2139 * config/i386/cpuid.h (bit_AVX512BW): Define.
2140 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2141 set -mavx512bw accordingly.
2142 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2143 OPTION_MASK_ISA_AVX512BW.
2144 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2145 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2146 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2147 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2148 * config/i386/i386.h (TARGET_AVX512BW): Define.
2149 (TARGET_AVX512BW_P(x)): Ditto.
2150 * config/i386/i386.opt: Add mavx512bw.
2151
2152 2014-08-11 Richard Biener <rguenther@suse.de>
2153
2154 PR tree-optimization/62070
2155 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2156 Remove SSA checking.
2157
2158 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2159
2160 * asan.c (asan_check_flags): New enum.
2161 (build_check_stmt_with_calls): Removed function.
2162 (build_check_stmt): Split inlining logic to
2163 asan_expand_check_ifn.
2164 (instrument_derefs): Rename parameter.
2165 (instrument_mem_region_access): Rename parameter.
2166 (instrument_strlen_call): Likewise.
2167 (asan_expand_check_ifn): New function.
2168 (asan_instrument): Remove old code.
2169 (pass_sanopt::execute): Change handling of
2170 asan-instrumentation-with-call-threshold.
2171 (asan_clear_shadow): Fix formatting.
2172 (asan_function_start): Likewise.
2173 (asan_emit_stack_protection): Likewise.
2174 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2175 Update description.
2176 * internal-fn.c (expand_ASAN_CHECK): New function.
2177 * internal-fn.def (ASAN_CHECK): New internal function.
2178 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2179 Update description.
2180 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2181 * tree.c: Small comment fix.
2182
2183 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2184
2185 * gimple.c (gimple_call_fnspec): Support internal functions.
2186 (gimple_call_return_flags): Use const.
2187 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2188 * internal-fn.def: Add fnspec information.
2189 * internal-fn.h (internal_fn_fnspec): New function.
2190 (init_internal_fns): Declare new function.
2191 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2192 (init_internal_fns): New function.
2193 * tree-core.h: Update macro call.
2194 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2195
2196 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2197
2198 * lto-streamer.h (struct output_block::symbol): Change from
2199 struct symtab_node to plain symtab_node.
2200 (referenced_from_this_partition_p): Change first parameter
2201 from struct symtab_node to plain symtab_node.
2202
2203 2014-08-10 Marek Polacek <polacek@redhat.com>
2204
2205 PR c/51849
2206 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2207
2208 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2209
2210 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2211 DECL correctly; do not give up on types in static storage.
2212
2213 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2214
2215 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2216
2217 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2218
2219 * graphite-isl-ast-to-gimple.c:
2220 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2221
2222 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2223
2224 2014-08-08 Guozhi Wei <carrot@google.com>
2225
2226 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2227
2228 2014-08-08 Cary Coutant <ccoutant@google.com>
2229
2230 * dwarf2out.c (get_skeleton_type_unit): Remove.
2231 (output_skeleton_debug_sections): Remove skeleton type units.
2232 (output_comdat_type_unit): Likewise.
2233 (dwarf2out_finish): Likewise.
2234
2235 2014-08-07 Yi Yang <ahyangyi@google.com>
2236
2237 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2238
2239 2014-08-08 Richard Biener <rguenther@suse.de>
2240
2241 * lto-streamer.h (struct lto_input_block): Make it a class
2242 with a constructor.
2243 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2244 (struct lto_function_header, struct lto_simple_header,
2245 struct lto_simple_header_with_strings,
2246 struct lto_decl_header, struct lto_function_header): Make
2247 a simple inheritance hieararchy. Remove unused fields.
2248 (struct lto_asm_header): Remove.
2249 * lto-streamer-out.c (produce_asm): Adjust.
2250 (lto_output_toplevel_asms): Likewise.
2251 (produce_asm_for_decls): Likewise.
2252 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2253 * data-streamer-in.c (string_for_index): Likewise.
2254 * ipa-inline-analysis.c (inline_read_section): Likewise.
2255 * ipa-prop.c (ipa_prop_read_section): Likewise.
2256 (read_replacements_section): Likewise.
2257 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2258 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2259 (lto_destroy_simple_input_block): Likewise.
2260 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2261 (lto_input_toplevel_asms): Likewise.
2262
2263 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2265 Anna Tikhonova <anna.tikhonova@intel.com>
2266 Ilya Tocar <ilya.tocar@intel.com>
2267 Andrey Turetskiy <andrey.turetskiy@intel.com>
2268 Ilya Verbin <ilya.verbin@intel.com>
2269 Kirill Yukhin <kirill.yukhin@intel.com>
2270 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2271
2272 * common/config/i386/i386-common.c
2273 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2274 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2275 (ix86_handle_option): Handle OPT_mavx512dq.
2276 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2277 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2278 set -mavx512dq accordingly.
2279 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2280 OPTION_MASK_ISA_AVX512DQ.
2281 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2282 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2283 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2284 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2285 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2286 (TARGET_AVX512DQ_P(x)): Ditto.
2287 * config/i386/i386.opt: Add mavx512dq.
2288
2289 2014-08-08 Richard Biener <rguenther@suse.de>
2290
2291 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2292 target_percent, target_percent_s): Export.
2293 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2294 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2295 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2296 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2297 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2298 Move to gimple-fold.c.
2299 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2300 strcat and strcpy.
2301 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2302 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2303 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2304 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2305 (rewrite_call_expr_array): Remove.
2306 (fold_builtin_sprintf_chk): Likewise.
2307 (fold_builtin_snprintf_chk): Likewise.
2308 (fold_builtin_varargs): Remove handling of sprintf_chk,
2309 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2310 (gimple_fold_builtin_sprintf_chk): Remove.
2311 (gimple_fold_builtin_snprintf_chk): Likewise.
2312 (gimple_fold_builtin_varargs): Likewise.
2313 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2314 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2315 * gimple.c (gimple_seq_add_seq_without_update): New function.
2316 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2317 * gimple-fold.c: Include output.h.
2318 (gsi_replace_with_seq_vops): New function, split out from ...
2319 (gimplify_and_update_call_from_tree): ... here.
2320 (replace_call_with_value): New function.
2321 (replace_call_with_call_and_fold): Likewise.
2322 (var_decl_component_p): Moved from builtins.c.
2323 (gimple_fold_builtin_memory_op): Moved from builtins.c
2324 fold_builtin_memory_op and rewritten to GIMPLE.
2325 (gimple_fold_builtin_memset): Likewise.
2326 (gimple_fold_builtin_strcpy): Likewise.
2327 (gimple_fold_builtin_strncpy): Likewise.
2328 (gimple_fold_builtin_strcat): Likewise.
2329 (gimple_fold_builtin_fputs): Likewise.
2330 (gimple_fold_builtin_memory_chk): Likewise.
2331 (gimple_fold_builtin_stxcpy_chk): Likewise.
2332 (gimple_fold_builtin_stxncpy_chk): Likewise.
2333 (gimple_fold_builtin_snprintf_chk): Likewise.
2334 (gimple_fold_builtin_sprintf_chk): Likewise.
2335 (gimple_fold_builtin_strlen): New function.
2336 (gimple_fold_builtin_with_strlen): New function split out from
2337 gimple_fold_builtin.
2338 (gimple_fold_builtin): Change signature and handle
2339 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2340 here. Call gimple_fold_builtin_with_strlen.
2341 (gimple_fold_call): Adjust.
2342
2343 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2344
2345 * calls.c (precompute_arguments): Check
2346 promoted_for_signed_and_unsigned_p and set the promoted mode.
2347 (promoted_for_signed_and_unsigned_p): New function.
2348 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2349 and set the promoted mode.
2350 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2351 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2352 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2353
2354
2355 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2356
2357 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2358 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2359 (expand_call): Likewise.
2360 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2361 to get promoted mode.
2362 * combine.c (record_promoted_value): Skip > 0 comparison with
2363 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2364 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2365 of SUBREG_PROMOTED_UNSIGNED_P.
2366 (convert_modes): Likewise.
2367 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2368 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2369 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2370 SUBREG_PROMOTED_UNSIGNED_SET.
2371 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2372 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2373 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2374 SUBREG_PROMOTED_SET.
2375 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2376 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2377 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2378 of SUBREG_PROMOTED_UNSIGNED_P.
2379 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2380 (SUBREG_PROMOTED_SET): New define.
2381 (SUBREG_PROMOTED_GET): Likewise.
2382 (SUBREG_PROMOTED_SIGN): Likewise.
2383 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2384 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2385 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2386 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2387 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2388 (nonzero_bits1): Skip > 0 comparison with the results as
2389 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2390 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2391 of !SUBREG_PROMOTED_UNSIGNED_P.
2392 * simplify-rtx.c (simplify_unary_operation_1): Use new
2393 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2394 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2395 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2396 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2397
2398 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2399
2400 * ipa-devirt.c: Include gimple-pretty-print.h
2401 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2402 further tests.
2403 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2404 (get_polymorphic_call_info): Fix return value
2405 (type_change_info): New sturcture based on ipa-prop
2406 variant.
2407 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2408 based on ipa-prop variant.
2409 (extr_type_from_vtbl_ptr_store): New function
2410 based on ipa-prop variant.
2411 (record_known_type): New function.
2412 (check_stmt_for_type_change): New function.
2413 (get_dynamic_type): New function.
2414 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2415 * tree-ssa-pre.c: ipa-utils.h
2416 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2417 machinery; sanity check with ipa-prop devirtualization.
2418 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2419 polymorphic flag.
2420
2421 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2422
2423 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2424 * alias.c, cfgexpand.c, cgraphbuild.c,
2425 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2426 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2427 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2428 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2429 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2430 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2431 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2432 dse.c, except.c, gengtype.c, gimple-expr.c,
2433 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2434 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2435 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2436 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2437 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2438 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2439 pointer-set.h.
2440 * pointer-set.c: Remove file.
2441 * pointer-set.h: Remove file.
2442
2443 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2444
2445 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2446 * config/arm/types.md (f_sels, f_seld): Delete.
2447
2448 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2449
2450 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2451 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2452 (aarch64_movdi_<mode>high): Likewise.
2453 (aarch64_mov<mode>high_di): Likewise.
2454 (aarch64_movdi_<mode>low): Likewise.
2455 (aarch64_mov<mode>low_di): Likewise.
2456 (aarch64_movtilow_tilow): Likewise.
2457 Add comment explaining usage of fp,simd attributes and of
2458 TARGET_FLOAT and TARGET_SIMD.
2459
2460 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2461 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2462
2463 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2464 Use MOVN when one of the half-words is 0xffff.
2465
2466 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2467
2468 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2469
2470 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2471
2472 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2473 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2474 (rfs_str): String corresponding to RFS_* constants.
2475 (rank_for_schedule_stats_t): New typedef.
2476 (rank_for_schedule_stats): New static variable.
2477 (rfs_result): New static function.
2478 (rank_for_schedule): Track statistics for deciding heuristics.
2479 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2480 static functions.
2481 (ready_sort): Use them for debug printouts.
2482 (schedule_block): Init statistics state. Print statistics on
2483 rank_for_schedule decisions.
2484
2485 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2486
2487 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2488
2489 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2490
2491 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2492 constraint.
2493
2494 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2495
2496 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2497 function to not conflict.
2498 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2499 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2500 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2501 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2502 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2503 of pointer_map.
2504
2505 2014-08-07 Marek Polacek <polacek@redhat.com>
2506
2507 * fold-const.c (fold_binary_loc): Add folding of
2508 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2509
2510 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2511
2512 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2513 instead of type size.
2514 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2515
2516 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2517
2518 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2519 (*thumb1_movqi_insn): Likewise.
2520 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2521
2522 2014-08-07 Tom de Vries <tom@codesourcery.com>
2523
2524 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2525 (glibc_2_11_or_earlier): Remove effective-target keywords.
2526
2527 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2528
2529 * config/arm/arm.c (bdesc_2arg): Fix typo.
2530 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2531
2532 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2533
2534 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2535
2536 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2537
2538 PR debug/61923
2539 * haifa-sched.c (advance_one_cycle): Fix dump.
2540 (schedule_block): Don't advance cycle if we are already at the
2541 beginning of the cycle.
2542
2543 2014-08-06 Martin Jambor <mjambor@suse.cz>
2544
2545 PR ipa/61393
2546 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2547
2548 2014-08-06 Richard Biener <rguenther@suse.de>
2549
2550 PR lto/62034
2551 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2552 SCCs here.
2553 (lto_input_tree): Pop SCCs here.
2554
2555 2014-08-06 Richard Biener <rguenther@suse.de>
2556
2557 PR tree-optimization/61320
2558 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2559 handle misaligned loads.
2560
2561 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2562
2563 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2564 (aarch64_expand_vec_perm_const): Check for dup before zip.
2565
2566 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2567
2568 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2569 CONST_INT_P instead of GET_CODE and compare.
2570 (aarch64_select_cc_mode): Likewise.
2571 (aarch64_print_operand): Likewise.
2572 (aarch64_rtx_costs): Likewise.
2573 (aarch64_simd_valid_immediate): Likewise.
2574 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2575 (aarch64_simd_emit_pair_result_insn): Likewise.
2576
2577 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2578
2579 * gdbhooks.py (find_gcc_source_dir): New helper function.
2580 (class PassNames): New class, locating and parsing passes.def.
2581 (class BreakOnPass): New command "break-on-pass".
2582
2583 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2584
2585 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2586 getting olde.
2587
2588 2014-08-05 Richard Biener <rguenther@suse.de>
2589
2590 PR rtl-optimization/61672
2591 * emit-rtl.h (mem_attrs_eq_p): Declare.
2592 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2593 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2594 * cfgcleanup.c (merge_memattrs): Likewise.
2595 Include emit-rtl.h.
2596
2597 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2598
2599 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2600 rather than singleton vectors.
2601 (vqdmlsls_lane_s32): Likewise.
2602
2603 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2604
2605 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2606 Use VSDQ_HSI mode iterator.
2607 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2608 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2609 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2610 Use BUILTIN_VDQHS macro.
2611 (sqrdmulh_laneq): Likewise.
2612 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2613 (vqdmlals_laneq_s32): Likewise.
2614 (vqdmlslh_laneq_s16): Likewise.
2615 (vqdmlsls_laneq_s32): Likewise.
2616 (vqdmulhh_laneq_s16): Likewise.
2617 (vqdmulhs_laneq_s32): Likewise.
2618 (vqrdmulhh_laneq_s16): Likewise.
2619 (vqrdmulhs_laneq_s32): Likewise.
2620
2621 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2622
2623 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2624 (vmuld_laneq_f64): Likewise.
2625 (vmuls_laneq_f32): Likewise.
2626 (vmul_n_f64): Likewise.
2627 (vmuld_lane_f64): Reimplement in C.
2628 (vmuls_lane_f32): Likewise.
2629
2630 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2631
2632 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2633 to reservation.
2634 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2635
2636 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2637
2638 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2639 (rbitsi2): Likewise.
2640 (*arm_rev): Set predicable and predicable_short_it attributes.
2641
2642 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2643
2644 * convert.c (convert_to_integer): Guard transformation to lrint by
2645 -fno-math-errno.
2646
2647 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2648
2649 * config/aarch64/aarch64-builtins.c
2650 (aarch64_simd_builtin_type_mode): Delete.
2651 (v8qi_UP): Remap to V8QImode.
2652 (v4hi_UP): Remap to V4HImode.
2653 (v2si_UP): Remap to V2SImode.
2654 (v2sf_UP): Remap to V2SFmode.
2655 (v1df_UP): Remap to V1DFmode.
2656 (di_UP): Remap to DImode.
2657 (df_UP): Remap to DFmode.
2658 (v16qi_UP):V16QImode.
2659 (v8hi_UP): Remap to V8HImode.
2660 (v4si_UP): Remap to V4SImode.
2661 (v4sf_UP): Remap to V4SFmode.
2662 (v2di_UP): Remap to V2DImode.
2663 (v2df_UP): Remap to V2DFmode.
2664 (ti_UP): Remap to TImode.
2665 (ei_UP): Remap to EImode.
2666 (oi_UP): Remap to OImode.
2667 (ci_UP): Map to CImode.
2668 (xi_UP): Remap to XImode.
2669 (si_UP): Remap to SImode.
2670 (sf_UP): Remap to SFmode.
2671 (hi_UP): Remap to HImode.
2672 (qi_UP): Remap to QImode.
2673 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2674 (VAR1): Build builtin name.
2675 (aarch64_init_simd_builtins): Remove dead code.
2676
2677 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2678
2679 * graphite-isl-ast-to-gimple.c:
2680 (set_options): New function.
2681 (scop_to_isl_ast): Add calling of set_options.
2682
2683 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2684
2685 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2686 (analyze_iv_to_split_insn): Don't initialize them.
2687 (get_ivts_expr): Removed.
2688 (allocate_basic_variable, insert_base_initialization): Use
2689 SET_SRC instead of *get_ivts_expr.
2690 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2691
2692 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2693
2694 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2695 (translate_isl_ast_for_loop): Add checking of the
2696 flag_loop_parallelize_all.
2697 (ast_build_before_for): New function.
2698 (scop_to_isl_ast): Add checking of the
2699 flag_loop_parallelize_all.
2700 * graphite-dependences.c: Move the defenition of the
2701 scop_get_dependences from graphite-optimize-isl.c to this file.
2702 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2703 (carries_deps): Add checking of the x's value.
2704 * graphite-optimize-isl.c: Move the defenition of the
2705 scop_get_dependences to graphite-dependences.c.
2706 * graphite-poly.h: Add declarations of scop_get_dependences
2707 and carries_deps.
2708
2709 2014-08-04 Rohit <rohitarulraj@freescale.com>
2710
2711 PR target/60102
2712 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2713 names.
2714 (alt_reg_names): Likewise.
2715 (rs6000_dwarf_register_span): For SPE high registers, replace
2716 dwarf register numbers with GCC hard register numbers.
2717 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2718 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2719 register number for the corresponding GCC hard register number.
2720 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2721 newly added GCC hard register numbers for SPE high registers.
2722 (DWARF_FRAME_REGISTERS): Likewise.
2723 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2724 (DWARF_FRAME_REGNUM): Likewise.
2725 (FIXED_REGISTERS): Likewise.
2726 (CALL_USED_REGISTERS): Likewise.
2727 (CALL_REALLY_USED_REGISTERS): Likewise.
2728 (REG_ALLOC_ORDER): Likewise.
2729 (enum reg_class): Likewise.
2730 (REG_CLASS_NAMES): Likewise.
2731 (REG_CLASS_CONTENTS): Likewise.
2732 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2733
2734 2014-08-04 Richard Biener <rguenther@suse.de>
2735
2736 * gimple-fold.h (gimple_fold_builtin): Remove.
2737 * gimple-fold.c (gimple_fold_builtin): Make static.
2738 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2739 fold_stmt, not gimple_fold_builtin.
2740
2741 2014-08-04 Martin Liska <mliska@suse.cz>
2742
2743 * cgraph.h (csi_end_p): Removed.
2744 (csi_next): Likewise.
2745 (csi_node): Likewise.
2746 (csi_start): Likewise.
2747 (cgraph_node_in_set_p): Likewise.
2748 (cgraph_node_set_size): Likewise.
2749 (vsi_end_p): Likewise.
2750 (vsi_next): Likewise.
2751 (vsi_node): Likewise.
2752 (vsi_start): Likewise.
2753 (varpool_node_set_size): Likewise.
2754 (cgraph_node_set_nonempty_p): Likewise.
2755 (varpool_node_set_nonempty_p): Likewise.
2756 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2757 cgraph_node_set.
2758 * ipa-inline-transform.c: Likewise.
2759 * ipa-utils.c (cgraph_node_set_new): Removed.
2760 (cgraph_node_set_add): Likewise.
2761 (cgraph_node_set_remove): Likewise.
2762 (cgraph_node_set_find): Likewise.
2763 (dump_cgraph_node_set): Likewise.
2764 (debug_cgraph_node_set): Likewise.
2765 (free_cgraph_node_set): Likewise.
2766 (varpool_node_set_new): Likewise.
2767 (varpool_node_set_add): Likewise.
2768 (varpool_node_set_remove): Likewise.
2769 (varpool_node_set_find): Likewise.
2770 (dump_varpool_node_set): Likewise.
2771 (free_varpool_node_set): Likewise.
2772 (debug_varpool_node_set): Likewise.
2773 * tree-emutls.c (struct tls_var_data):
2774 (emutls_index): Removed.
2775 (emutls_decl): Likewise.
2776 (gen_emutls_addr): Function implementation uses newly added
2777 hash_map<varpool_node *, tls_var_data>.
2778 (clear_access_vars): Likewise.
2779 (create_emultls_var): Likewise.
2780 (ipa_lower_emutls): Likewise.
2781 (reset_access): New function.
2782
2783 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2784
2785 * config/i386/i386.c (ix86_option_override_internal): Add
2786 PTA_RDRND and PTA_MOVBE for bdver4.
2787
2788 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2789 James Greenhalgh <james.greenhalgh@arm.com>
2790
2791 * doc/md.texi (clrsb): Document.
2792 (clz): Change reference to x into operand 1.
2793 (ctz): Likewise.
2794 (popcount): Likewise.
2795
2796 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2797
2798 PR target/61713
2799 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2800 move to subtarget in serial version if result is ignored.
2801
2802 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2803 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2804
2805 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2806 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2807 (sched_analyze_insn): Update use of try_group_insn to
2808 sched_macro_fuse_insns.
2809 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2810 arguments that are not conditional jumps.
2811
2812 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2813
2814 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2815 family information. Handle BTVER2 cpu with cpuid family value.
2816
2817 2014-08-04 Tom de Vries <tom@codesourcery.com>
2818
2819 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2820 (glibc_2_11_or_earlier): Document effective-target keywords.
2821
2822 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2823
2824 * ipa-devirt.c (odr_type_warn_count): Add type.
2825 (possible_polymorphic_call_targets): Set it.
2826 (ipa_devirt): Use it.
2827
2828 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2829
2830 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2831 Document.
2832 * ipa-devirt.c: Include hash-map.h
2833 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2834 (clear_speculation): Break out of ...
2835 (get_class_context): ... here; speed up handling obviously useless
2836 speculations.
2837 (odr_type_warn_count, decl_warn_count): New structures.
2838 (final_warning_record): New structure.
2839 (final_warning_records): New static variable.
2840 (possible_polymorphic_call_targets): Cleanup handling of
2841 speculative info; do not build speculation when user do not care;
2842 record info about warnings when asked for.
2843 (add_decl_warning): New function.
2844 (type_warning_cmp): New function.
2845 (decl_warning_cmp): New function.
2846 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2847 (gate): Enable pass when warnings are requested.
2848 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
2849 options.
2850
2851 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2852
2853 * hash-map.h (default_hashmap_traits::mark_key_deleted):
2854 Fix cast.
2855 (hash_map::remove): New method.
2856 (hash_map::traverse): New method.
2857 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
2858 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
2859 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
2860 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
2861 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
2862 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
2863 pointer_map.
2864
2865 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2866
2867 * hash-set.h: new File.
2868 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
2869 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
2870 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
2871 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
2872 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
2873 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
2874 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
2875 varpool.c: Use hash_set instead of pointer_set.
2876
2877 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
2878
2879 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
2880
2881 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2882
2883 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
2884 for frame access when strict_p is false.
2885
2886 2014-08-01 Renlin Li <renlin.li@arm.com>
2887 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2888
2889 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
2890 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
2891 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
2892 Declaration.
2893 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
2894 predicate.
2895 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
2896 aarch64_mem_pair_offset.
2897
2898 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2899
2900 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
2901 offset.
2902 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
2903 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
2904
2905 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
2906
2907 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
2908
2909 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
2910
2911 PR regression/61510
2912 * cgraphunit.c (analyze_functions): Use get_create rather than get
2913 for decls which are clones of abstract functions.
2914
2915 2014-08-01 Martin Liska <mliska@suse.cz>
2916
2917 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
2918 * ipa-prop.h (count_formal_params): Global function created from static.
2919 * ipa-prop.c (count_formal_params): Likewise.
2920 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
2921 profiles for semantically equivalent functions.
2922 * passes.c (do_per_function): If we load body of a function
2923 during WPA, this condition should behave same.
2924 * varpool.c (ctor_for_folding): More tolerant assert for variable
2925 aliases created during WPA.
2926
2927 2014-08-01 Martin Liska <mliska@suse.cz>
2928
2929 * doc/invoke.texi (Options That Control Optimization): Documentation
2930 for -foptimize-strlen introduced. Optimization levels default options
2931 fixed.
2932
2933 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2934
2935 * opts.c (common_handle_option): Handle -fsanitize=alignment.
2936 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
2937 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
2938 type to bool.
2939 * stor-layout.h (min_align_of_type): New prototype.
2940 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
2941 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
2942 check.
2943 * ubsan.c: Include builtins.h.
2944 (ubsan_expand_bounds_ifn): Change return type to bool,
2945 always return true.
2946 (ubsan_expand_null_ifn): Change return type to bool, change
2947 argument to gimple_stmt_iterator *. Handle both null and alignment
2948 sanitization, take type from ckind argument's type rather than
2949 first argument.
2950 (instrument_member_call): Removed.
2951 (instrument_mem_ref): Remove t argument, add mem and base arguments.
2952 Handle both null and alignment sanitization, don't say whole
2953 struct access is member access. Build 3 argument IFN_UBSAN_NULL
2954 call instead of 2 argument.
2955 (instrument_null): Adjust instrument_mem_ref caller. Don't
2956 instrument calls here.
2957 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
2958 like SANITIZE_NULL.
2959 * stor-layout.c (min_align_of_type): New function.
2960 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
2961 Or it into SANITIZE_UNDEFINED.
2962 * doc/invoke.texi (-fsanitize=alignment): Document.
2963
2964 2014-07-31 Andi Kleen <ak@linux.intel.com>
2965
2966 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
2967
2968 2014-07-31 Andi Kleen <ak@linux.intel.com>
2969
2970 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
2971 inchash.
2972 (vn_reference_compute_hash): Dito.
2973 (vn_nary_op_compute_hash): Dito.
2974 (vn_phi_compute_hash): Dito.
2975 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
2976
2977 2014-07-31 Andi Kleen <ak@linux.intel.com>
2978
2979 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
2980 Rename to inchash:add_expr_commutative. Convert to inchash.
2981 (iterative_hash_hashable_expr): Rename to
2982 inchash:add_hashable_expr. Convert to inchash.
2983 (avail_expr_hash): Dito.
2984
2985 2014-07-31 Andi Kleen <ak@linux.intel.com>
2986
2987 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
2988 Convert to inchash.
2989
2990 2014-07-31 Andi Kleen <ak@linux.intel.com>
2991
2992 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
2993
2994 2014-07-31 Andi Kleen <ak@linux.intel.com>
2995
2996 * Makefile.in (OBJS): Add rtlhash.o
2997 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
2998 (loc_checksum): Dito.
2999 (loc_checksum_ordered): Dito.
3000 (hash_loc_operands): Dito.
3001 (hash_locs): Dito.
3002 (hash_loc_list): Dito.
3003 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3004 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3005 * rtlhash.c: New file.
3006 * rtlhash.h: New file.
3007
3008 2014-07-31 Andi Kleen <ak@linux.intel.com>
3009
3010 * inchash.h (inchash): Change inchash class to namespace.
3011 (class hash): ... Rename from inchash.
3012 (add_object): Move from macro to class template.
3013 * lto-streamer-out.c (hash_tree): Change inchash
3014 to inchash::hash.
3015 * tree.c (build_type_attribute_qual_variant): Dito.
3016 (type_hash_list): Dito.
3017 (attribute_hash_list): Dito.
3018 (iterative_hstate_expr): Rename to inchash::add_expr
3019 (build_range_type_1): Change inchash to inchash::hash
3020 and use hash::add_expr.
3021 (build_array_type_1): Dito.
3022 (build_function_type): Dito
3023 (build_method_type_directly): Dito.
3024 (build_offset_type): Dito.
3025 (build_complex_type): Dito.
3026 (make_vector_type): Dito.
3027 * tree.h (iterative_hash_expr): Dito.
3028
3029 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3030
3031 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3032
3033 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3034
3035 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3036 correct alphabetical position.
3037 (vpaddd_f64): Rewrite using builtins.
3038 (vpaddd_s64): Move to correct alphabetical position.
3039 (vpaddd_u64): New.
3040
3041 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3042
3043 PR target/61844
3044 * config/sh/sh.c (sh_legitimate_address_p,
3045 sh_legitimize_reload_address): Handle reg+reg address modes when
3046 ALLOW_INDEXED_ADDRESS is false.
3047 * config/sh/predicates.md (general_movsrc_operand,
3048 general_movdst_operand): Likewise.
3049
3050 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3051
3052 * config/aarch64/aarch64-builtins.c
3053 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3054 BYTES_BIG_ENDIAN.
3055
3056 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3057
3058 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3059 the generated mask based on BYTES_BIG_ENDIAN.
3060 (aarch64_simd_check_vect_par_cnst_half): New.
3061 * config/aarch64/aarch64-protos.h
3062 (aarch64_simd_check_vect_par_cnst_half): New.
3063 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3064 the check out to aarch64_simd_check_vect_par_cnst_half.
3065 (vect_par_cnst_lo_half): Likewise.
3066 * config/aarch64/aarch64-simd.md
3067 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3068 (move_hi_quad_<mode>): Always generate a low mask.
3069
3070 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3071
3072 * doc/invoke.texi (AVR Options): Add documentation about
3073 __AVR_DEVICE_NAME__ built-in macro.
3074
3075 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3076
3077 PR target/61948
3078 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3079 constraints are satisfied.
3080 (<shift>di3_neon): Likewise.
3081
3082 2014-07-31 Richard Biener <rguenther@suse.de>
3083
3084 PR tree-optimization/61964
3085 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3086 by structural equality.
3087
3088 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3089
3090 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3091 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3092 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3093 New enums.
3094 * gcc.c (sanitize_spec_function): Support new option.
3095 (SANITIZER_SPEC): Remove now redundant check.
3096 * opts.c (common_handle_option): Support new option.
3097 (finish_options): Check for incompatibilities.
3098 * toplev.c (process_options): Split userspace-specific checks.
3099
3100 2014-07-31 Richard Biener <rguenther@suse.de>
3101
3102 * lto-streamer.h (struct output_block): Remove global.
3103 (struct data_in): Remove labels, num_named_labels and
3104 num_unnamed_labels.
3105 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3106 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3107
3108 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3109
3110 PR c++/60517
3111 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3112 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3113 (isolate_path): New argument to avoid inserting a trap.
3114 (find_implicit_erroneous_behaviour): Handle returning the address
3115 of a local variable.
3116 (find_explicit_erroneous_behaviour): Likewise.
3117
3118 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3119
3120 PR lto/61868
3121 * toplev.c (init_random_seed): Move piece of code never called to
3122 set_random_seed.
3123 (set_random_seed): see above.
3124
3125 2014-07-31 Tom de Vries <tom@codesourcery.com>
3126
3127 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3128
3129 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3130
3131 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3132 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3133
3134 2014-07-31 Richard Biener <rguenther@suse.de>
3135
3136 * data-streamer.h (streamer_write_data_stream): Declare here,
3137 renamed from ...
3138 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3139 * lto-cgraph.c (lto_output_node): Adjust.
3140 (lto_output_varpool_node): Likewise.
3141 * data-streamer-out.c (streamer_string_index): Likewise.
3142 (streamer_write_data_stream, lto_append_block): Move from ...
3143 * lto-section-out.c (lto_output_data_stream,
3144 lto_append_block): ... here.
3145
3146 2014-07-30 Mike Stump <mikestump@comcast.net>
3147
3148 * configure.ac: Also check for popen.
3149 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3150 * configure: Regenerate.
3151 * config.in: Regenerate.
3152
3153 2014-07-30 Martin Jambor <mjambor@suse.cz>
3154
3155 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3156 parameter to gimple.
3157
3158 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3159
3160 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3161 address as second parameter to __tpf_eh_return routine.
3162
3163 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3164
3165 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3166 Thumb2.
3167
3168 2014-07-30 Tom Tromey <tromey@redhat.com>
3169
3170 PR c/59855
3171 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3172 * doc/extend.texi (Type Attributes): Document designated_init
3173 attribute.
3174
3175 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3176
3177 * graphite-isl-ast-to-gimple.c:
3178 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3179 (gcc_expression_from_isl_expression): Pass type to
3180 gcc_expression_from_isl_ast_expr_id.
3181
3182 2014-07-30 Richard Biener <rguenther@suse.de>
3183
3184 * lto-streamer.h (lto_write_data): New function.
3185 * langhooks.c (lhd_append_data): Do not free block.
3186 * lto-section-out.c (lto_write_data): New function writing
3187 raw data to the current section.
3188 (lto_write_stream): Adjust for langhook semantic change.
3189 (lto_destroy_simple_output_block): Write header directly.
3190 * lto-opts.c (lto_write_options): Write options directly.
3191 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3192 (lto_output_toplevel_asms): Likewise.
3193 (copy_function_or_variable): Copy data directly.
3194 (write_global_references): Output index table directly.
3195 (lto_output_decl_state_refs): Likewise.
3196 (write_symbol): Write data directly.
3197 (produce_symtab): Adjust.
3198 (produce_asm_for_decls): Output header and refs directly.
3199
3200 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3201
3202 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3203 to speculative_targets
3204 (get_class_context): Fix handling of contextes without outer type;
3205 avoid matching non-polymorphic types in LTO.
3206 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3207 parameter to speculative_targetsp; handle speculation.
3208 (dump_possible_polymorphic_call_targets): Update dumping.
3209
3210 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3211
3212 * common.opt (Wodr): Enable by default.
3213
3214 2014-07-29 Olivier Hainque <hainque@adacore.com>
3215
3216 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3217
3218 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3219
3220 PR bootstrap/61914
3221 * gengtype.c (strtoken): New function.
3222 (create_user_defined_type): Replace strtok with strtoken.
3223
3224 2014-07-29 Nathan Sidwell <nathan@acm.org>
3225
3226 * gcov-io.c (gcov_var): Make hidden.
3227 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3228 (gcov_do_dump): Declare.
3229 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3230
3231 2014-07-29 Martin Jambor <mjambor@suse.cz>
3232
3233 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3234 parameter to gimple.
3235 (sra_modify_assign): Likewise.
3236
3237 2014-07-29 Richard Biener <rguenther@suse.de>
3238
3239 PR middle-end/52478
3240 * expr.c (expand_expr_real_2): Revert last change.
3241
3242 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3243
3244 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3245 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3246 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3247 call.
3248 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3249 (contains_type_p): Forward declare.
3250 (polymorphic_call_target_hasher::hash): Hash speculative info.
3251 (polymorphic_call_target_hasher::equal): Compare speculative info.
3252 (get_class_context): Handle speuclation.
3253 (contains_type_p): Update.
3254 (get_polymorphic_call_info_for_decl): Update.
3255 (walk_ssa_copies): Break out from ...
3256 (get_polymorphic_call_info): ... here; set speculative context
3257 before giving up.
3258 * ipa-prop.c (ipa_write_indirect_edge_info,
3259 ipa_read_indirect_edge_info): Stream speculative context.
3260 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3261 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3262 SPECULATIVE_MAYBE_DERIVED_TYPE).
3263 (possible_polymorphic_call_targets overriders): Update.
3264 (dump_possible_polymorphic_call_targets overriders): Update.
3265 (dump_possible_polymorphic_call_target_p overriders): Update.
3266
3267 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3268
3269 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3270 ipa-devirt path; fix thinko there.
3271
3272 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3273
3274 * config/i386/i386.c (ix86_return_in_memory): Replace one
3275 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3276
3277 2014-07-28 Marek Polacek <polacek@redhat.com>
3278
3279 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3280
3281 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3282
3283 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3284 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3285 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3286 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3287 (USE_LD_AS_NEEDED): Likewise.
3288 (ASM_APP_ON): Likewise.
3289 (ASM_APP_OFF): Likewise.
3290 (TARGET_POSIX_IO): Likewise.
3291 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3292 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3293 (USE_LD_AS_NEEDED): Likewise.
3294 (ASM_APP_ON): Likewise.
3295 (ASM_APP_OFF): Likewise.
3296 (TARGET_POSIX_IO): Likewise.
3297
3298 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3299
3300 PR middle-end/61734
3301 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3302 operators other than the equality operators.
3303
3304 2014-07-28 Richard Biener <rguenther@suse.de>
3305
3306 PR middle-end/52478
3307 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3308 sure to register SImode ones, not only >= word_mode ones.
3309 * expr.c (expand_expr_real_2): When expanding -ftrapv
3310 binops do not use OPTAB_LIB_WIDEN.
3311
3312 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3313
3314 PR middle-end/61919
3315 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3316 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3317 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3318 inserting them in the insn stream.
3319
3320 2014-07-28 Marek Polacek <polacek@redhat.com>
3321
3322 PR middle-end/61913
3323 * common.opt (Wodr): Add Var.
3324
3325 2014-07-28 Richard Biener <rguenther@suse.de>
3326
3327 PR tree-optimization/61921
3328 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3329 if there is a varpool node before dereferencing it.
3330
3331 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3332
3333 * graphite-sese-to-poly.c:
3334 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3335 id of the pbb), which contains pointer to the pbb1.
3336
3337 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3338
3339 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3340
3341 * graphite-isl-ast-to-gimple.c:
3342 (graphite_create_new_guard): New function.
3343 (translate_isl_ast_node_if): New function.
3344 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3345
3346 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3347
3348 2014-07-27 Anthony Green <green@moxielogic.com>
3349
3350 * config.gcc: Add moxie-*-moxiebox* configuration.
3351 * config/moxie/moxiebox.h: New file.
3352
3353 2014-07-26 Andrew Pinski <apinski@cavium.com>
3354
3355 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3356 from the read only register.
3357
3358 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3359
3360 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3361 as the allocation class if it isn't likely to be spilled.
3362
3363 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3364
3365 * rtl.h (tls_referenced_p): Declare.
3366 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3367 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3368 (mips_cannot_force_const_mem): Use tls_referenced_p.
3369 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3370 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3371 instead of pa_tls_referenced_p.
3372 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3373 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3374 (pa_legitimate_constant_p): Likewise.
3375 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3376 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3377 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3378 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3379 rs6000_tls_referenced_p.
3380 (rs6000_tls_symbol_ref_1): Delete.
3381
3382 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3383
3384 PR target/44551
3385 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3386 Optimize inverse of a VEC_CONCAT.
3387
3388 2014-07-25 Xinliang David Li <davidxl@google.com>
3389
3390 * params.def: New parameter.
3391 * coverage.c (get_coverage_counts): Check new flag.
3392 (coverage_compute_profile_id): Check new flag.
3393 (coverage_begin_function): Check new flag.
3394 (coverage_end_function): Check new flag.
3395 * value-prof.c (coverage_node_map_initialized_p): New function.
3396 (init_node_map): Populate map with all functions.
3397 * doc/invoke.texi: Document new parameter.
3398
3399 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3400 Richard Biener <rguenther@suse.de>
3401
3402 * lto-streamer-out.c (struct sccs): Turn to ...
3403 (class DFS): ... this one; refactor the DFS walk so it can
3404 be re-done on per-SCC basis.
3405 (DFS::DFS): New constructor.
3406 (DFS::~DFS): New destructor.
3407 (hash_tree): Add new MAP argument holding in-SCC hash values;
3408 remove POINTER_TYPE hashing hack.
3409 (scc_entry_compare): Rename to ...
3410 (DFS::scc_entry_compare): ... this one.
3411 (hash_scc): Rename to ...
3412 (DFS::hash_scc): ... this one; pass output_block instead
3413 of streamer_cache; work harder to get unique and stable SCC
3414 hashes.
3415 (DFS_write_tree): Rename to ...
3416 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3417 (lto_output_tree): Update.
3418
3419 2014-07-25 Andi Kleen <ak@linux.intel.com>
3420
3421 * lto-streamer-out.c (hash_tree): Convert to inchash.
3422
3423 2014-07-25 Andi Kleen <ak@linux.intel.com>
3424
3425 * tree.c (build_type_attribute_qual_variant): Use inchash.
3426 (type_hash_list): Dito.
3427 (attribute_hash_list): Dito
3428 (iterative_hstate_expr): Dito.
3429 (iterative_hash_expr): Dito.
3430 (build_range_type_1): Dito.
3431 (build_array_type_1): Dito.
3432 (build_function_type): Dito.
3433 (build_method_type_directly): Dito.
3434 (build_offset_type): Dito.
3435 (build_complex_type): Dito.
3436 (make_vector_type): Dito.
3437 * tree.h (iterative_hash_expr): Add compat wrapper.
3438 (iterative_hstate_expr): Add.
3439
3440 2014-07-25 Andi Kleen <ak@linux.intel.com>
3441
3442 * Makefile.in (OBJS): Add inchash.o.
3443 (PLUGIN_HEADERS): Add inchash.h.
3444 * ipa-devirt.c: Include inchash.h.
3445 * lto-streamer-out.c: Dito.
3446 * tree-ssa-dom.c: Dito.
3447 * tree-ssa-pre.c: Dito.
3448 * tree-ssa-sccvn.c: Dito.
3449 * tree-ssa-tail-merge.c: Dito.
3450 * asan.c: Dito.
3451 * tree.c (iterative_hash_hashval_t): Move to ...
3452 (iterative_hash_host_wide_int): Move to ...
3453 * inchash.c: Here. New file.
3454 * tree.h (iterative_hash_hashval_t): Move to ...
3455 (iterative_hash_host_wide_int): Move to ...
3456 * inchash.h: Here. New file.
3457
3458 2014-07-25 Richard Biener <rguenther@suse.de>
3459
3460 PR middle-end/61762
3461 PR middle-end/61894
3462 * fold-const.c (native_encode_int): Add and handle offset
3463 parameter to do partial encodings of expr.
3464 (native_encode_fixed): Likewise.
3465 (native_encode_real): Likewise.
3466 (native_encode_complex): Likewise.
3467 (native_encode_vector): Likewise.
3468 (native_encode_string): Likewise.
3469 (native_encode_expr): Likewise.
3470 * fold-const.c (native_encode_expr): Add offset parameter
3471 defaulting to -1.
3472 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3473 (fold_ctor_reference): Handle all reads from tcc_constant
3474 ctors.
3475
3476 2014-07-25 Richard Biener <rguenther@suse.de>
3477
3478 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3479 as possibly unused.
3480
3481 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3482
3483 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3484
3485 2014-07-24 Kyle McMartin <kyle@redhat.com>
3486
3487 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3488
3489 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3490
3491 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3492 Add prototype.
3493 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3494 function.
3495 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3496 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3497 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3498
3499 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3500
3501 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3502 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3503 aggregate types. Instead, *all* aggregate types, except for single-
3504 element or homogeneous float/vector aggregates, are quadword-aligned
3505 if required by their type alignment. Issue -Wpsabi note when a type
3506 is now treated differently than before.
3507
3508 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3509
3510 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3511 does not fit fully into floating-point registers, and there is still
3512 space in the register parameter area, use GPRs to pass those parts
3513 of the argument. Issue -Wpsabi note if any parameter is now treated
3514 differently than before.
3515 (rs6000_arg_partial_bytes): Update.
3516
3517 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3518
3519 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3520
3521 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3522
3523 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3524 * toplev.c (initialize_rtl): Don't use it. Move previously
3525 "language-dependent" calls to...
3526 (backend_init): ...here.
3527 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3528 Assert that RTL initialization hasn't happend yet.
3529
3530 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3531
3532 PR rtl-optimization/61629
3533 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3534 they have already been initialized.
3535
3536 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3537
3538 PR middle-end/61268
3539 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3540 DECL_INCOMING_RTL and entry_parm.
3541 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3542 * calls.c (load_register_parameters): Likewise argument values.
3543 (emit_library_call_value_1, store_one_arg): Likewise argument
3544 save areas.
3545 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3546 stack slot.
3547 * explow.c (validize_mem): Modify the argument in-place.
3548
3549 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3550
3551 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3552 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3553
3554 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3555
3556 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3557 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3558
3559 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3560
3561 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3562 (aarch64_save_callee_saves): New parameter "skip_wb".
3563 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3564
3565 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3566
3567 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3568 "wb_candidate2".
3569 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3570
3571 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3572
3573 * graphite-isl-ast-to-gimple.c:
3574 (graphite_create_new_loop): Add calling of isl_id_free to properly
3575 decrement reference counts.
3576
3577 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3578
3579 2014-07-24 Martin Liska <mliska@suse.cz>
3580 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3581 function used.
3582 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3583 (rs6000_code_end): Likewise.
3584
3585 2014-07-24 Martin Liska <mliska@suse.cz>
3586
3587 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3588 symtab_node funtion used.
3589 (rs6000_xcoff_declare_object_name): Likewise.
3590
3591 2014-07-24 Martin Liska <mliska@suse.cz>
3592
3593 * cgraphunit.c (compile): Correct function used.
3594
3595 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3596
3597 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3598 as non-indexable.
3599
3600 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3601
3602 PR lto/61802
3603 * varasm.c (bss_initializer_p): Handle offlined ctors.
3604 (align_variable, get_variable_align): Likewise.
3605 (make_decl_one_only): Likewise.
3606 (default_binds_local_p_1): Likewise.
3607 (decl_binds_to_current_def_p): Likewise.
3608 (get_variable_section): Get constructor if it is offlined.
3609 (assemble_variable_contents): Sanity check that the caller
3610 streamed in the ctor in LTO.
3611
3612 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3613
3614 * graphite-isl-ast-to-gimple.c:
3615 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3616 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3617 isl_ast_op_pdiv_r to the different case.
3618
3619 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3620
3621 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3622
3623 PR middle-end/61876
3624 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3625 when flag_errno_math is on.
3626
3627 2014-07-24 Martin Liska <mliska@suse.cz>
3628
3629 * cgraph.h (varpool_node):
3630 (availability get_availability (void)):
3631 created from cgraph_variable_initializer_availability
3632 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3633 created from: cgraph_variable_initializer_availability
3634 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3635 (void finalize_named_section_flags (void)):
3636 created from varpool_finalize_named_section_flags
3637 (bool assemble_decl (void)): created from varpool_assemble_decl
3638 (void analyze (void)): created from varpool_analyze_node
3639 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3640 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3641 (void remove_initializer (void)): created from varpool_remove_initializer
3642 (tree get_constructor (void)): created from varpool_get_constructor
3643 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3644 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3645 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3646 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3647 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3648 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3649 (static bool output_variables (void)): created from varpool_output_variables
3650 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3651 created from varpool_extra_name_alias
3652 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3653 (static void dump_varpool (FILE *f)): created from dump_varpool
3654 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3655 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3656 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3657 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3658 (void assemble_aliases (void)): created from assemble_aliases
3659
3660 2014-07-24 Martin Liska <mliska@suse.cz>
3661
3662 * cgraph.h (symtab_node):
3663 (void register_symbol (void)): created from symtab_register_node
3664 (void remove (void)): created from symtab_remove_node
3665 (void dump (FILE *f)): created from dump_symtab_node
3666 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3667 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3668 (struct ipa_ref *add_reference (symtab_node *referred_node,
3669 enum ipa_ref_use use_type)): created from add_reference
3670 (struct ipa_ref *add_reference (symtab_node *referred_node,
3671 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3672 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3673 gimple stmt)): created from maybe_add_reference
3674 (bool semantically_equivalent_p (symtab_node *target)): created from
3675 symtab_semantically_equivalent_p
3676 (void remove_from_same_comdat_group (void)): created from
3677 remove_from_same_comdat_group
3678 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3679 symtab_add_to_same_comdat_group
3680 (void dissolve_same_comdat_group_list (void)): created from
3681 symtab_dissolve_same_comdat_group_list
3682 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3683 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3684 created from symtab_alias_ultimate_target
3685 (inline symtab_node *next_defined_symbol (void)): created from
3686 symtab_next_defined_symbol
3687 (bool resolve_alias (symtab_node *target)): created from
3688 symtab_resolve_alias
3689 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3690 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3691 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3692 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3693 (void set_section (const char *section)): created from set_section_1
3694 (enum availability get_availability (void)): created from symtab_node_availability
3695 (void make_decl_local (void)): created from symtab_make_decl_local
3696 (bool real_symbol_p (void)): created from symtab_read_node
3697 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3698 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3699 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3700 symtab_in_same_comdat_p;
3701 (bool address_taken_from_non_vtable_p (void)): created from
3702 address_taken_from_non_vtable_p
3703 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3704 (static void dump_table (FILE *)): created from dump_symtab
3705 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3706 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3707 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3708 symtab_used_from_object_file_p
3709 (void dump_base (FILE *)): created from dump_symtab_base
3710 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3711 (void unregister (void)): created from symtab_unregister_node
3712 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3713 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3714 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3715 symtab_nonoverwritable_alias_1
3716 * cgraph.h (cgraph_node):
3717 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3718 created from cgraph_remove_node_and_inline_clones
3719 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3720 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3721 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3722 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3723 created from cgraph_function_node
3724 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3725 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3726 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3727 created from cgraph_create_clone
3728 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3729 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3730 created from cgraph_create_virtual_clone
3731 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3732 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3733 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3734 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3735 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3736 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3737 created from cgraph_function_version_info
3738 (struct cgraph_function_version_info *insert_new_function_version (void)):
3739 created from insert_new_cgraph_node_version
3740 (struct cgraph_function_version_info *function_version (void)): created from
3741 get_cgraph_node_version
3742 (void analyze (void)): created from analyze_function
3743 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3744 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3745 tree real_alias) cgraph_add_thunk
3746 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3747 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3748 created from cgraph_function_or_thunk_node
3749 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3750 created from expand_thunk
3751 (void reset (void)): created from cgraph_reset_node
3752 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3753 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3754 (void remove (void)): created from cgraph_remove_node
3755 (void dump (FILE *f)): created from dump_cgraph_node
3756 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3757 (bool get_body (void)): created from cgraph_get_body
3758 (void release_body (void)): created from cgraph_release_function_body
3759 (void unnest (void)): created from cgraph_unnest_node
3760 (void make_local (void)): created from cgraph_make_node_local
3761 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3762 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3763 gcov_type count, int freq)): created from cgraph_create_edge
3764 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3765 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3766 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3767 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3768 created from cgraph_create_edge_including_clones
3769 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3770 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3771 (void remove_callers (void)): created from cgraph_node_remove_callers
3772 (void remove_callees (void)): created from cgraph_node_remove_callees
3773 (enum availability get_availability (void)): created from cgraph_function_body_availability
3774 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3775 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3776 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3777 (void call_duplication_hooks (cgraph_node *node2)): created from
3778 cgraph_call_node_duplication_hooks
3779 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3780 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3781 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3782 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3783 (void call_function_insertion_hooks (void)):
3784 created from cgraph_call_function_insertion_hooks
3785 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3786 (bool local_p (void)): created from cgraph_local_node
3787 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3788 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3789 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3790 (inline bool only_called_directly_or_aliased_p (void)):
3791 created from cgraph_only_called_directly_or_aliased_p
3792 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3793 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3794 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3795 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3796 (bool can_remove_if_no_direct_calls_p (void)):
3797 created from cgraph_can_remove_if_no_direct_calls_p
3798 (inline bool has_gimple_body_p (void)):
3799 created from cgraph_function_with_gimple_body_p
3800 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3801 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3802 (static inline void debug_cgraph (void)): created from debug_cgraph
3803 (static void record_function_versions (tree decl1, tree decl2)):
3804 created from record_function_versions
3805 (static void delete_function_version (tree decl)):
3806 created from delete_function_version
3807 (static void add_new_function (tree fndecl, bool lowered)):
3808 created from cgraph_add_new_function
3809 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3810 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3811 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3812 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3813 (static cgraph_node *get_for_asmname (tree asmname)):
3814 created from cgraph_node_for_asm
3815 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3816 created from cgraph_same_body_alias
3817 (static bool used_from_object_file_p_worker (cgraph_node *node,
3818 void *): new function
3819 (static bool non_local_p (cgraph_node *node, void *)):
3820 created from cgraph_non_local_node_p_1
3821 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3822 created from verify_cgraph
3823 (static bool make_local (cgraph_node *node, void *)):
3824 created from cgraph_make_node_local
3825 (static cgraph_node *create_alias (tree alias, tree target)):
3826 created from cgraph_create_function_alias
3827 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3828 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3829 created from cgraph_create_edge_1
3830 * cgraph.h (varpool_node):
3831 (void remove (void)): created from varpool_remove_node
3832 (void dump (FILE *f)): created from dump_varpool_node
3833
3834 2014-07-24 Richard Biener <rguenther@suse.de>
3835
3836 PR ipa/61823
3837 * tree-ssa-structalias.c (create_variable_info_for_1):
3838 Use varpool_get_constructor.
3839 (create_variable_info_for): Likewise.
3840
3841 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3842
3843 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3844 subtract outgoing area size when restoring stack_pointer_rtx.
3845
3846 2014-07-24 Nick Clifton <nickc@redhat.com>
3847
3848 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
3849 that operations are taking place in parallel.
3850 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
3851
3852 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
3853
3854 * omp-low.c (extract_omp_for_data): Add missing break statement.
3855
3856 2014-07-24 Richard Biener <rguenther@suse.de>
3857
3858 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
3859 * tree-inline.c (estimate_move_cost): Add speed_p parameter
3860 and adjust MOVE_RATIO query accordingly.
3861 (estimate_num_insns): Adjust callers.
3862 * ipa-prop.c (ipa_populate_param_decls): Likewise.
3863 * ipa-cp.c (gather_context_independent_values,
3864 estimate_local_effects): Likewise.
3865 * ipa-split.c (consider_split): Likewise.
3866
3867 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
3868
3869 * config/i386/driver-i386.c: Remove names of unused arguments and
3870 unnecessary unused attributes.
3871 * config/i386/host-mingw32.c: Likewise.
3872 * config/i386/i386.c: Likewise.
3873 * config/i386/winnt-stubs.c: Likewise.
3874 * config/i386/winnt.c: Likewise.
3875
3876 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3877
3878 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
3879 (aarch64_gen_loadwb_pair): New helper function.
3880 (aarch64_expand_epilogue): Simplify code using new helper functions.
3881 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
3882
3883 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3884
3885 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
3886 (aarch64_gen_storewb_pair): New helper function.
3887 (aarch64_expand_prologue): Simplify code using new helper functions.
3888 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
3889
3890 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3891
3892 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
3893 Rename to aarch64_save_callee_saves, remove restore code.
3894 (aarch64_restore_callee_saves): New function.
3895
3896 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3897
3898 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
3899 (aarch64_save_callee_saves): New function to handle reg save
3900 for both core and vectore regs.
3901
3902 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3903
3904 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
3905 (aarch64_gen_store_pair): New helper function.
3906 (aarch64_save_or_restore_callee_save_registers)
3907 (aarch64_save_or_restore_fprs): Use new helper functions.
3908
3909 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3910
3911 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
3912 (aarch64_save_or_restore_callee_save_registers)
3913 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
3914
3915 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3916
3917 * config/aarch64/aarch64.c
3918 (aarch64_save_or_restore_callee_save_registers)
3919 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
3920
3921 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3922
3923 * config/aarch64/aarch64.c
3924 (aarch64_save_or_restore_callee_save_registers)
3925 (aarch64_save_or_restore_fprs): Remove 'increment'.
3926
3927 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3928
3929 * config/aarch64/aarch64.c
3930 (aarch64_save_or_restore_callee_save_registers)
3931 (aarch64_save_or_restore_fprs): Use register offset in
3932 cfun->machine->frame.reg_offset.
3933
3934 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3935
3936 * config/aarch64/aarch64.c
3937 (aarch64_save_or_restore_callee_save_registers)
3938 (aarch64_save_or_restore_fprs): Remove base_rtx.
3939
3940 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3941
3942 * config/aarch64/aarch64.c
3943 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
3944 to 'start_offset'. Remove local variable 'start_offset'.
3945
3946 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3947
3948 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
3949 type to HOST_WIDE_INT.
3950
3951 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3952
3953 * config/aarch64/aarch64.c (aarch64_expand_prologue)
3954 (aarch64_save_or_restore_fprs)
3955 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
3956
3957 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
3958
3959 * config/arm/t-rtems-eabi: Add
3960 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
3961 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
3962 mbig-endian/mthumb/march=armv7-r, and
3963 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
3964 multilibs.
3965
3966 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
3967 Chris Johns <chrisj@rtems.org>
3968 Joel Sherrill <joel.sherrill@oarcorp.com>
3969
3970 * config.gcc: Add nios2-*-rtems*.
3971 * config/nios2/rtems.h: New file.
3972 * gcc/config/nios2/t-rtems: New file.
3973
3974 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
3975
3976 PR target/61396
3977 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
3978 constant numbers, not general constants.
3979 (rs6000_expand_vector_init): Ditto.
3980
3981 2014-07-23 Nathan Sidwell <nathan@acm.org>
3982
3983 * gcov-tool.c (gcov_list): Declare here.
3984 (set_gcov_list): Remove.
3985 (gcov_output_files): Set gcov_list directly.
3986
3987 2014-07-23 Host Schirmeier <horst@schirmeier.com>
3988
3989 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
3990
3991 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3992
3993 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
3994 callee-saved registers are available for padding purpose
3995 and r3 is not mandatory, then prefer use those callee-saved
3996 instead of r3.
3997
3998 2014-07-23 Richard Biener <rguenther@suse.de>
3999
4000 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4001 * combine.c: Include statistics.h and params.h.
4002 (combine_instructions): Guard three and four insn combines
4003 with max-combine-insns value. Record statistics for combines
4004 performed.
4005 * doc/invoke.texi (max-combine-insns): Document new param.
4006
4007 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4008
4009 * graphite-isl-ast-to-gimple.c:
4010 (translate_isl_ast_node_block): New function.
4011 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4012
4013 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4014 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4015
4016 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4017
4018 * graphite-isl-ast-to-gimple.c:
4019 (get_max_schedule_dimensions): New function.
4020 (extend_schedule): Likewise.
4021 (generate_isl_schedule): Add calling of extend_schedule and
4022 get_max_schedule_dimensions.
4023
4024 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4025
4026 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4027 (case UNSPEC): Handle UNSPEC_RBIT.
4028
4029 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4030
4031 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4032 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4033
4034 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4035
4036 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4037
4038 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4039
4040 * graphite-isl-ast-to-gimple.c:
4041 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4042 (ivs_params_clear):
4043 (build_iv_mapping): New function.
4044 (translate_isl_ast_node_user): Likewise.
4045 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4046
4047 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4048 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4049 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4050
4051 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4052
4053 PR target/55701
4054 * config/arm/arm.md (setmem): New pattern.
4055 * config/arm/arm-protos.h (struct tune_params): New fields.
4056 (arm_gen_setmem): New prototype.
4057 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4058 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4059 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4060 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4061 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4062 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4063 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4064 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4065 (arm_const_inline_cost): New function.
4066 (arm_block_set_max_insns): New function.
4067 (arm_block_set_non_vect_profit_p): New function.
4068 (arm_block_set_vect_profit_p): New function.
4069 (arm_block_set_unaligned_vect): New function.
4070 (arm_block_set_aligned_vect): New function.
4071 (arm_block_set_unaligned_non_vect): New function.
4072 (arm_block_set_aligned_non_vect): New function.
4073 (arm_block_set_vect, arm_gen_setmem): New functions.
4074
4075 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4076
4077 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4078
4079 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4080
4081 PR target/61855
4082 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4083 out of #ifdef __OPTIMIZE__.
4084
4085 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4086
4087 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4088 different trapping status if -fnon-call-exceptions is enabled.
4089
4090 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4091
4092 * expr.c (store_field): Handle VOIDmode for calls that return values
4093 in multiple locations.
4094
4095 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4096
4097 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4098 (altivec_vsldoi_<mode>): Likewise.
4099
4100 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4101
4102 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4103 to the number of characters in the line.
4104
4105 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4106
4107 * graphite-isl-ast-to-gimple.c: Add using of
4108 build_nonstandard_integer_type instead of int128_integer_type_node.
4109
4110 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4111
4112 * toplev.c (output_stack_usage): Adjust the location of the warning.
4113
4114 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4115
4116 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4117 (*membar_storeload): Disable for LEON3.
4118
4119 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4120
4121 PR rtl-optimization/61461
4122 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4123
4124 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4125
4126 PR target/61794
4127 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4128 Fix instruction constraint.
4129 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4130
4131 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4132
4133 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4134
4135 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4136
4137 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4138 GNU coding standards.
4139 (nds32_register_move_cost): Likewise.
4140 (nds32_memory_move_cost): Likewise.
4141 (nds32_address_cost): Likewise.
4142
4143 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4144
4145 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4146
4147 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4148
4149 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4150 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4151 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4152 (HAVE_sync_compare_and_swapqi): Define.
4153 (HAVE_sync_compare_and_swaphi): Likewise.
4154 (HAVE_sync_compare_and_swapsi): Likewise.
4155
4156 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4157
4158 * config/mips/p5600.md: Add missing cpu tests.
4159
4160 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4161
4162 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4163 (vmla_f64): Likewise.
4164 (vfms_f64): Likewise.
4165 (vmls_f64): Likewise.
4166
4167 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4168
4169 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4170 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4171
4172 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4173
4174 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4175 (vmlal_high_lane_s32): Likewise.
4176 (vmlal_high_lane_u16): Likewise.
4177 (vmlal_high_lane_u32): Likewise.
4178 (vmlsl_high_lane_s16): Likewise.
4179 (vmlsl_high_lane_s32): Likewise.
4180 (vmlsl_high_lane_u16): Likewise.
4181 (vmlsl_high_lane_u32): Likewise.
4182
4183 2014-07-17 Terry Guo <terry.guo@arm.com>
4184
4185 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4186 (alus_reg): Renamed to alus_sreg.
4187 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4188 from alu_reg to alu_sreg. Change type of dsp instructions from
4189 alu_reg to alu_dsp_reg.
4190 * config/arm/thumb1.md: Likewise.
4191 * config/arm/thumb2.md: Likewise.
4192 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4193 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4194 with alu_sreg and alus_sreg.
4195 * config/arm/arm1026ejs.md (alu_op): Likewise.
4196 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4197 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4198 * config/arm/fa526.md (526_alu_op): Likewise.
4199 * config/arm/fa606te.md (606te_alu_op): Likewise.
4200 * config/arm/fa626te.md (626te_alu_op): Likewise.
4201 * config/arm/fa726te.md (726te_alu_op): Likewise.
4202 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4203 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4204 alu_sreg, alu_dsp_reg and alus_sreg.
4205 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4206 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4207 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4208 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4209 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4210 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4211 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4212 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4213 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4214 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4215 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4216 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4217 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4218 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4219 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4220 alus_reg to alus_sreg.
4221
4222 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4223
4224 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4225 infinity format.
4226
4227 2014-07-17 Richard Biener <rguenther@suse.de>
4228
4229 PR rtl-optimization/61801
4230 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4231 don't set reg_pending_barrier if it appears in a debug-insn.
4232
4233 2014-07-16 DJ Delorie <dj@redhat.com>
4234
4235 * config/rx/rx.c (rx_option_override): Fix alignment values.
4236 (rx_align_for_label): Likewise.
4237
4238 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4239
4240 PR target/61737.
4241 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4242 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4243 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4244 functions.
4245 (cris_print_index, cris_print_operand, cris_constant_index_p)
4246 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4247 (cris_address_cost): Ditto last CONSTANT_P.
4248 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4249 callers changed. Yield cris_offsettable_symbol for non-PIC
4250 constant symbolic expressions including labels. Yield cris_unspec
4251 for all unspecs.
4252 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4253 target to pic_offset_table_rtx for calls that will likely go
4254 through PLT, const0_rtx when they can't. All callers changed.
4255 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4256 symbolic expressions to be PICified. Remove second, redundant,
4257 assert on can_create_pseudo_p returning non-zero. Use
4258 replace_equiv_address_nv, not replace_equiv_address, for final
4259 operand update.
4260 * config/cris/cris.md ("movsi"): Move variable t to pattern
4261 toplevel. Adjust assert for new cris_symbol_type member. Use
4262 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4263 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4264 for lapc stricter.
4265 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4266 ("call", "call_value"): Use second incoming operand as a marker
4267 for pic-offset-table-register being used.
4268 ("*expanded_call_non_v32", "*expanded_call_v32")
4269 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4270 second incoming operand to CALL, match cris_call_type_marker.
4271 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4272 ("*expanded_call_side"): Ditto. Fix typo in comment.
4273 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4274 CONSTANT_P.
4275 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4276 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4277 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4278 users changed. Add members cris_offsettable_symbol and cris_unspec.
4279 (cris_symbol_type): Rename from cris_pic_symbol_type.
4280 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4281 just CONSTANT_P.
4282 * config/cris/cris-protos.h (cris_symbol_type_of,
4283 cris_expand_pic_call_address): Adjust prototypes.
4284 (cris_legitimate_constant_p): New prototype.
4285
4286 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4287 an existing tmake_file. Don't add t-slibgcc and t-linux.
4288
4289 2014-07-17 Jason Merrill <jason@redhat.com>
4290
4291 PR c++/61623
4292 * symtab.c (symtab_remove_from_same_comdat_group): Also
4293 set_comdat_group to NULL_TREE.
4294 (verify_symtab): Fix diagnostic.
4295
4296 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4297
4298 PR target/61662
4299 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4300
4301 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4302
4303 Support location tracking for built-in macro tokens
4304 * input.h (is_location_from_builtin_token): New function declaration.
4305 * input.c (is_location_from_builtin_token): New function definition.
4306 * toplev.c (general_init): Tell libcpp what the pre-defined
4307 spelling location for built-in tokens is.
4308
4309 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4310
4311 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4312 on the FUNCTION_DECL.
4313
4314 2014-07-16 Richard Biener <rguenther@suse.de>
4315
4316 PR other/61782
4317 * doc/extend.texi (always_inline): Clarify.
4318
4319 2014-07-15 Eric Christopher <echristo@gmail.com>
4320
4321 * doc/invoke.texi (Link Options): Document -z option.
4322
4323 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4324
4325 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4326 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4327
4328 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4329
4330 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4331
4332 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4333
4334 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4335 varpool_assemble_decl.
4336 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4337 true.
4338
4339 2014-07-15 Michael Matz <matz@suse.de>
4340
4341 PR rtl-optimization/61772
4342 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4343
4344 2014-07-15 Richard Biener <rguenther@suse.de>
4345
4346 * opts.c (default_options_table): Disable bit-ccp at -Og.
4347
4348 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4349
4350 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4351
4352 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4353
4354 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4355 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4356 call langhook for unknown declaration.
4357 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4358 * tree.h (DECL_ARGUMENTS): Update.
4359 * print-tree.c (print_node): Update.
4360 * tree-core.h (tree_decl_non_common): Remove arguments.
4361 (tree_function_decl): Add arguments.
4362
4363 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4364
4365 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4366
4367 2014-07-14 Richard Biener <rguenther@suse.de>
4368
4369 PR tree-optimization/61779
4370 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4371 simplifying a condition.
4372
4373 2014-07-14 Richard Biener <rguenther@suse.de>
4374
4375 * builtins.c (c_strlen): Make only_value == 2 really only
4376 affect warning generation.
4377
4378 2014-07-14 Richard Biener <rguenther@suse.de>
4379
4380 PR tree-optimization/61757
4381 PR tree-optimization/61783
4382 PR tree-optimization/61787
4383 * tree-ssa-dom.c (record_equality): Revert canonicalization
4384 change and add comment.
4385 (propagate_rhs_into_lhs): Revert previous fix, removing
4386 loop depth restriction again.
4387
4388 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4389
4390 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4391 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4392 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4393 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4394 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4395 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4396 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4397
4398 2014-07-14 Richard Biener <rguenther@suse.de>
4399
4400 * cgraph.h (decl_in_symtab_p): Make inline.
4401
4402 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4403
4404 PR middle-end/61294
4405 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4406
4407 PR target/61656
4408 * config/i386/i386.c (classify_argument): Don't merge classes above
4409 number of words.
4410
4411 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4412
4413 * cgraph.h (symtab_node): Add nonzero_address.
4414 (decl_in_symtab_p): Break out from ...
4415 (symtab_get_node): ... here.
4416 * fold-const.c: Include cgraph.h
4417 (tree_single_nonzero_warnv_p): Use symtab to determine
4418 if symbol is non-zero.
4419 * symtab.c (symtab_node::nonzero_address): New method.
4420
4421 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4422
4423 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4424 forgotten in previous commit.
4425
4426 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4427
4428 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4429 on builtin types.
4430 * ipa-devirt.c: Include stor-layout.h and intl.h
4431 (odr_subtypes_equivalent_p): New function.
4432 (warn_odr): New function.
4433 (warn_type_mismatch): New function.
4434 (odr_types_equivalent_p): New function.
4435 (add_type_duplicate): Use it.
4436 * common.opt (Wodr): New flag.
4437 * doc/invoke.texi (Wodr): Document new warning.
4438
4439 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4440
4441 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4442 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4443 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4444 (varpool_get_constructor): Push CTORS_IN timevar.
4445 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4446
4447 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4448
4449 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4450 Remove VOID_FTYPE_PUSHORT.
4451 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4452 Change code to USHORT_FTYPE_VOID.
4453 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4454 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4455 (ix86_atomic_assign_expand_fenv): Update for
4456 __builtin_ia32_fnstsw changes.
4457 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4458 (fnstsw): Change operand 0 to nonimmediate operand.
4459
4460 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4461
4462 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4463 (varpool_get_constructor): New function.
4464 (varpool_ctor_useable_for_folding_p): Break out from ...
4465 (ctor_for_folding): ... here; use varpool_get_constructor.
4466 (varpool_assemble_decl): Likewise.
4467 * lto-streamer.h (struct output_block): Turn cgraph_node
4468 to symbol filed.
4469 (lto_input_variable_constructor): Declare.
4470 * ipa-visibility.c (function_and_variable_visibility): Use
4471 varpool_get_constructor.
4472 * cgraph.h (varpool_get_constructor): Declare.
4473 (varpool_ctor_useable_for_folding_p): New function.
4474 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4475 parameter; return error_mark_node for non-trivial constructors.
4476 (lto_write_tree_1, DFS_write_tree): Update use of
4477 get_symbol_initial_value.
4478 (output_function): Update initialization of symbol.
4479 (output_constructor): New function.
4480 (copy_function): Rename to ..
4481 (copy_function_or_variable): ... this one; handle vars too.
4482 (lto_output): Output variable sections.
4483 * lto-streamer-in.c (input_constructor): New function.
4484 (lto_read_body): Rename from ...
4485 (lto_read_body_or_constructor): ... this one; handle vars too.
4486 (lto_input_variable_constructor): New function.
4487 * ipa-prop.c (ipa_prop_write_jump_functions,
4488 ipa_prop_write_all_agg_replacement): Update.
4489 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4490 (output_cgraph_opt_summary): Set symbol to NULL.
4491
4492 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4493
4494 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4495 non-polymorphic types.
4496 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4497 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4498 of types is not polymorphic.
4499
4500 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4501
4502 * lra-constraints.c (remove_inheritance_pseudos): Process
4503 destination pseudo too.
4504
4505 2014-07-11 Rong Xu <xur@google.com>
4506
4507 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4508 commit r212448.
4509
4510 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4511
4512 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4513 * config/avr/avr-devices.c (AVR_MCU): Same.
4514 (avr_mcu_types): add text start value to end of device list.
4515 * config/avr/avr-mcus.def: Add text section start for all devices.
4516 (ata5782): Add new avr5 device.
4517 (ata5831): Same.
4518 * config/avr/avr-tables.opt: Regenerate.
4519 * config/avr/avr.h: Add declaration for text section start handler.
4520 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4521 SPEC functions.
4522 (LINK_SPEC): Include text section start handler to linker spec.
4523 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4524 pass -Ttext option to linker if the text section start for the device
4525 is not zero.
4526 * config/avr/t-multilib: Regenerate.
4527 * doc/avr-mmcu.texi: Regenerate.
4528
4529 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4530
4531 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4532 * config/rs6000/aix52.h (LINK_SPEC): Same.
4533 * config/rs6000/aix53.h (LINK_SPEC): Same.
4534 * config/rs6000/aix61.h (LINK_SPEC): Same.
4535 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4536
4537 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4538
4539 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4540 (graphite_verify): New function.
4541 (ivs_params_clear): New function.
4542 (gcc_expression_from_isl_ast_expr_id): New function.
4543 (gcc_expression_from_isl_expr_int): New function.
4544 (binary_op_to_tree): New function.
4545 (ternary_op_to_tree): New function.
4546 (unary_op_to_tree): New function.
4547 (nary_op_to_tree): New function.
4548 (gcc_expression_from_isl_expr_op): New function.
4549 (gcc_expression_from_isl_expression): New function.
4550 (graphite_create_new_loop): New function.
4551 (translate_isl_ast_for_loop): New function.
4552 (get_upper_bound): New function.
4553 (graphite_create_new_loop_guard): New function.
4554 (translate_isl_ast_node_for): New function.
4555 (translate_isl_ast): New function.
4556 (add_parameters_to_ivs_params): New function.
4557 (scop_to_isl_ast): New parameter ip.
4558 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4559
4560 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4561
4562 * config/xtensa/predicates.md (call expander): Update for
4563 DECL_SECTION_NAME being string.
4564
4565 2014-07-11 Richard Biener <rguenther@suse.de>
4566
4567 PR middle-end/61473
4568 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4569 can be implemented with a single load followed by a single store.
4570 (c_strlen): Only warn when only_value is not 2.
4571
4572 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4573
4574 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4575
4576 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4577
4578 PR target/61561
4579 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4580 (*movhi_bytes): Likewise.
4581 (*arm_movqi_insn): Likewise.
4582
4583 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4584
4585 PR target/56858
4586 * config/alpha/alpha.c: Include tree-pass.h, context.h
4587 and pass_manager.h.
4588 (pass_data_handle_trap_shadows): New pass.
4589 (pass_handle_trap_shadows::gate): New pass gate function.
4590 (make_pass_handle_trap_shadows): New function.
4591 (rest_of_handle_trap_shadows): Ditto.
4592
4593 (alpha_align_insns_1): Rename from alpha_align_insns.
4594 (pass_data_align_insns): New pass.
4595 (pass_align_insns::gate): New pass gate function.
4596 (make_pass_aling_insns): New function.
4597 (rest_of_align_insns): Ditto.
4598 (alpha_align_insns): Ditto.
4599
4600 (alpha_option_override): Declare handle_trap_shadows info
4601 and align_insns_info. Register handle_trap_shadows and align_insns
4602 passes here.
4603 (alpha_reorg): Do not call alpha_trap_shadows and
4604 alpha_align_insn from here.
4605
4606 (alpha_pad_function_end): Do not skip BARRIERs.
4607
4608 2014-07-10 Rong Xu <xur@google.com>
4609
4610 Add gcov-tool: an offline gcda profile processing tool support.
4611 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4612 (gcov_is_error): Ditto.
4613 (gcov_read_string): Ditto.
4614 (gcov_read_sync): Ditto.
4615 * gcov-io.h: Move counter defines to gcov-counter.def.
4616 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4617 * coverage.c: Ditto.
4618 * gcov-tool.c: Offline gcda profile processing tool.
4619 (unlink_gcda_file): Remove one gcda file.
4620 (unlink_profile_dir): Remove gcda files from the profile path.
4621 (gcov_output_files): Output gcda files to an output dir.
4622 (profile_merge): Merge two profiles in directory.
4623 (print_merge_usage_message): Print merge usage.
4624 (merge_usage): Print merge usage and exit.
4625 (do_merge): Driver for profile merge sub-command.
4626 (profile_rewrite): Rewrite profile.
4627 (print_rewrite_usage_message): Print rewrite usage.
4628 (rewrite_usage): Print rewrite usage and exit.
4629 (do_rewrite): Driver for profile rewrite sub-command.
4630 (print_usage): Print gcov-info usage and exit.
4631 (print_version): Print gcov-info version.
4632 (process_args): Process arguments.
4633 (main): Main routine for gcov-tool.
4634 * Makefile.in: Build and install gcov-tool.
4635 * gcov-counter.def: New file split from gcov-io.h.
4636 * doc/gcc.texi: Include gcov-tool.texi.
4637 * doc/gcov-tool.texi: Document for gcov-tool.
4638
4639 2014-07-10 Richard Biener <rguenther@suse.de>
4640
4641 PR tree-optimization/61757
4642 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4643 (propagate_rhs_into_lhs): Revert part of last change.
4644
4645 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4646
4647 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4648 FUNCTION_DECLs.
4649
4650 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4651
4652 PR middle-end/53590
4653 * function.c (allocate_struct_function): Revert r188667 change.
4654
4655 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4656
4657 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4658
4659 * doc/install.texi: Remove links to defunct package providers for
4660 Solaris.
4661
4662 2014-07-09 Tom de Vries <tom@codesourcery.com>
4663
4664 * final.c (get_call_fndecl): Declare.
4665 (self_recursive_call_p): New function.
4666 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4667
4668 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4669
4670 * ipa-devirt.c (record_node): Walk through aliases.
4671
4672 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4673
4674 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4675
4676 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4677
4678 Revert:
4679 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4680
4681 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4682
4683 * ipa-visibility.c (function_and_variable_visibility): Remove
4684 temporary hack disabling local aliases on AIX.
4685
4686 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4687
4688 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4689 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4690
4691 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4692
4693 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4694 * rs6000/rs6000.c: Inline output of .set instruction.
4695 (declare_alias_data): New struct.
4696 (rs6000_declare_alias): New function.
4697 (rs6000_xcoff_declare_function_name): Use it.
4698 (rs6000_xcoff_declare_object_name): New function.
4699 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4700 (ASM_OUTPUT_DEF): Turn to empty definition.
4701
4702 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4703
4704 PR bootstrap/61679
4705 * hash-table.h: use hash_table::value_type instead of
4706 Descriptor::value_type in the return types of several methods.
4707
4708 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4709
4710 * tree-pass.h (pass_data): Remove has_execute member.
4711 * passes.c (execute_one_pass): Don't check pass->has_execute.
4712 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4713 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4714 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4715 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4716 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4717 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4718 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4719 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4720 gimple-low.c, gimple-ssa-isolate-paths.c,
4721 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4722 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4723 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4724 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4725 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4726 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4727 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4728 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4729 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4730 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4731 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4732 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4733 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4734 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4735 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4736 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4737 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4738 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4739 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4740 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4741 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4742 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4743 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4744 web.c: Remove initializer for pass_data::has_execute.
4745
4746 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4747
4748 * graphite-htab.h: Use hash_map instead of hash_table.
4749 * graphite-clast-to-gimple.c: Adjust.
4750 * passes.c: Use hash_map instead of hash_table.
4751 * sese.c: Likewise.
4752 * sese.h: Remove now unused code.
4753
4754 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4755
4756 PR target/61599
4757 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4758 than zero.
4759
4760 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4761
4762 PR rtl-optimization/61673
4763 * combine.c (simplify_comparison): Test just mode's sign bit
4764 in tmode rather than the sign bit and any bits above it.
4765
4766 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4767
4768 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4769 Add __isl_give to the declaration.
4770 (generate_isl_schedule): Likewise.
4771 (scop_to_isl_ast): Likewise.
4772
4773 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4774
4775 * config/arm/arm.c (cortexa5_extra_costs): New table.
4776 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4777
4778 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4779
4780 PR tree-optimization/61725
4781 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4782 range, use range_includes_zerop_p instead of integer_zerop on
4783 vr0->min, only use log2 of max if min is not negative.
4784
4785 2014-07-08 Richard Biener <rguenther@suse.de>
4786
4787 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4788 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4789 restriction on loop depth difference.
4790 (record_equality): Likewise.
4791 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4792 (loop_depth_of_name): Remove.
4793 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4794 restriction on loop depth difference.
4795 (init_copy_prop): Likewise.
4796
4797 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4798
4799 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4800 parameter.
4801 (walk_aliased_vdefs): Likewise.
4802 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4803 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4804 (detect_type_change_from_memory_writes): Check if entry was reached.
4805
4806 2014-07-08 Richard Biener <rguenther@suse.de>
4807
4808 PR tree-optimization/61681
4809 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4810 NONLOCAL inside ESCAPED.
4811
4812 2014-07-08 Richard Biener <rguenther@suse.de>
4813
4814 PR tree-optimization/61680
4815 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4816 Handle properly all read-write dependences with group accesses.
4817
4818 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4819
4820 PR tree-optimization/61576
4821 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4822 block containing reduction statement is predecessor of phi basi block.
4823
4824 2014-07-08 Marek Polacek <polacek@redhat.com>
4825
4826 PR c/60226
4827 * fold-const.c (round_up_loc): Change the parameter type.
4828 Remove assert.
4829 * fold-const.h (round_up_loc): Adjust declaration.
4830 * stor-layout.c (finalize_record_size): Check for too large types.
4831
4832 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4833
4834 * symtab.c: Include calls.h.
4835 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4836
4837 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4838
4839 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4840 little-endian code generation.
4841 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4842 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4843 (spe_evmergehilo): Rename to...
4844 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4845 (spe_evmergelo): Rename to...
4846 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4847 (spe_evmergelohi): Rename to...
4848 (vec_perm10_v2si): ... this. Handle little-endian code generation.
4849 (spe_evmergehi, spe_evmergehilo): New expanders.
4850 (spe_evmergelo, spe_evmergelohi): Likewise.
4851 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
4852 (*frob_tf_ti): Likewise.
4853 (*frob_<mode>_di_2): Likewise.
4854 (*frob_tf_di_8_2): Likewise.
4855 (*frob_di_<mode>): Likewise.
4856 (*frob_ti_tf): Likewise.
4857 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
4858 (*frob_ti_<mode>_8_2): Likewise.
4859 (*frob_ti_tf_2): Likewise.
4860 (mov_si<mode>_e500_subreg0): Rename to...
4861 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
4862 endianness only.
4863 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
4864 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4865 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
4866 the big endianness only.
4867 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
4868 (*mov_si<mode>_e500_subreg0_2): Rename to...
4869 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
4870 big big endianness only.
4871 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
4872 (*mov_si<mode>_e500_subreg4): Rename to...
4873 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
4874 endianness only.
4875 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
4876 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
4877 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
4878 the big endianness only.
4879 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
4880 pattern.
4881 (*mov_si<mode>_e500_subreg4_2): Rename to...
4882 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
4883 endianness only.
4884 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
4885 (*mov_sitf_e500_subreg8): Rename to...
4886 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
4887 endianness only.
4888 (*mov_sitf_e500_subreg8_le): New instruction pattern.
4889 (*mov_sitf_e500_subreg8_2): Rename to...
4890 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
4891 endianness only.
4892 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
4893 (*mov_sitf_e500_subreg12): Rename to...
4894 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
4895 endianness only.
4896 (*mov_sitf_e500_subreg12_le): New instruction pattern.
4897 (*mov_sitf_e500_subreg12_2): Rename to...
4898 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
4899 endianness only.
4900 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
4901
4902 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
4903
4904 * asan.c (instrument_strlen_call): Do not instrument first byte
4905 in strlen if already instrumented.
4906
4907 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4908
4909 * config/arm/arm.opt (mwords-little-endian): Delete.
4910 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
4911 of TARGET_LITTLE_WORDS.
4912 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
4913 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
4914 warning.
4915 * doc/invoke.texi: Remove references to -mwords-little-endian.
4916
4917 2014-07-07 Jakub Jelinek <jakub@redhat.com>
4918
4919 * expmed.c (struct init_expmed_rtl): Change all fields but
4920 pow2 and cint from struct rtx_def to rtx.
4921 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
4922 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
4923 at the end again.
4924
4925 2014-07-06 Marek Polacek <polacek@redhat.com>
4926
4927 PR c/6940
4928 * doc/invoke.texi: Document -Wsizeof-array-argument.
4929
4930 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
4931
4932 * wide-int.h (wide_int_storage): Change declaration from struct
4933 to class.
4934
4935 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
4936
4937 * cgraph.c (cgraph_create_indirect_edge): Update call of
4938 get_polymorphic_call_info.
4939 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
4940 (possible_polymorphic_call_targets): Add parameter call.
4941 (decl_maybe_in_construction_p): New predicate.
4942 (get_polymorphic_call_info): Add parameter call;
4943 use decl_maybe_in_construction_p.
4944 * gimple-fold.c (fold_gimple_assign): Update use of
4945 possible_polymorphic_call_targets.
4946 (gimple_fold_call): Likewise.
4947 * ipa-prop.c: Inlcude calls.h
4948 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
4949 (param_type_may_change_p): New predicate.
4950 (detect_type_change_from_memory_writes): Break out from ...
4951 (detect_type_change): ... this one; use param_type_may_change_p.
4952 (detect_type_change_ssa): Use param_type_may_change_p.
4953 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
4954
4955 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
4956
4957 PR target/49423
4958 * config/arm/arm-protos.h (arm_legitimate_address_p,
4959 arm_is_constant_pool_ref): Add prototypes.
4960 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
4961 (arm_is_constant_pool_ref) New function.
4962 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
4963 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
4964 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
4965 operand. Remove pool_range and neg_pool_range attributes.
4966 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
4967 pool_range and neg_pool_range attributes.
4968 * config/arm/constraints.md (Uh): New constraint.
4969 (Uq): Don't allow constant pool references.
4970
4971 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
4972
4973 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
4974 (move_lo_quad_internal_be_<mode>): Likewise.
4975 (move_lo_quad_<mode>): Convert to define_expand.
4976 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
4977 (aarch64_simd_move_hi_quad_be_<mode>): New.
4978 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
4979 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
4980 (aarch64_combinez_be<mode>): New.
4981 (aarch64_combine<mode>): Convert to define_expand.
4982 (aarch64_combine_internal<mode>): New.
4983 (aarch64_simd_combine<mode>): Remove bogus RTL description.
4984
4985 2014-07-04 Tom de Vries <tom@codesourcery.com>
4986
4987 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
4988 combination of earlyclobber and read/write modifiers.
4989
4990 2014-07-04 Tom de Vries <tom@codesourcery.com>
4991
4992 * config/aarch64/aarch64-simd.md
4993 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
4994
4995 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
4996
4997 PR target/61714
4998 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
4999
5000 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5001
5002 PR middle-end/61654
5003 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5004
5005 PR tree-optimization/61684
5006 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5007 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5008
5009 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5010 Kito Cheng <kito@0xlab.org>
5011 Monk Chiang <sh.chiang04@gmail.com>
5012
5013 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5014 (nds32_symbol_load_store_p): Move to ...
5015 (nds32_fp_as_gp_check_available): Move to ...
5016 * config/nds32/nds32-fp-as-gp.c: ... here.
5017 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5018 extern declaration.
5019
5020 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5021 Kito Cheng <kito@0xlab.org>
5022 Monk Chiang <sh.chiang04@gmail.com>
5023
5024 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5025 (nds32_expand_store_multiple): Move to ...
5026 (nds32_expand_movmemqi): Move to ...
5027 * config/nds32/nds32-memory-manipulation.c: ... here.
5028
5029 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5030 Kito Cheng <kito@0xlab.org>
5031 Monk Chiang <sh.chiang04@gmail.com>
5032
5033 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5034 (nds32_output_casesi_pc_relative): Move to ...
5035 (nds32_output_casesi): Move to ...
5036 (nds32_mem_format): Move to ...
5037 (nds32_output_16bit_store): Move to ...
5038 (nds32_output_16bit_load): Move to ...
5039 (nds32_output_32bit_store): Move to ...
5040 (nds32_output_32bit_load): Move to ...
5041 (nds32_output_32bit_load_s): Move to ...
5042 (nds32_output_stack_push): Move to ...
5043 (nds32_output_stack_pop): Move to ...
5044 * config/nds32/nds32-md-auxiliary.c: ... here.
5045
5046 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5047 Ling-Hua Tseng <uranus@tinlans.org>
5048
5049 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5050 the purpose of this file.
5051
5052 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5053 Kito Cheng <kito@0xlab.org>
5054 Monk Chiang <sh.chiang04@gmail.com>
5055
5056 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5057 (nds32_address_cost): Move implementation to ...
5058 * config/nds32/nds32-cost.c: ... here.
5059 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5060 (nds32_address_cost_impl): Declare.
5061
5062 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5063 Kito Cheng <kito@0xlab.org>
5064 Monk Chiang <sh.chiang04@gmail.com>
5065
5066 * config/nds32/nds32.c
5067 (nds32_consecutive_registers_load_store_p): Move to ...
5068 (nds32_valid_multiple_load_store): Move to ...
5069 (nds32_valid_stack_push_pop): Move to ...
5070 (nds32_can_use_bclr_p): Move to ...
5071 (nds32_can_use_bset_p): Move to ...
5072 (nds32_can_use_btgl_p): Move to ...
5073 (nds32_can_use_bitci_p): Move to ...
5074 * config/nds32/nds32-predicates.c: ... here.
5075
5076 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5077 Kito Cheng <kito@0xlab.org>
5078 Monk Chiang <sh.chiang04@gmail.com>
5079
5080 * config/nds32/nds32.c
5081 (nds32_expand_builtin_null_ftype_reg): Move to ...
5082 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5083 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5084 (nds32_init_builtins): Move implementation to ...
5085 (nds32_expand_builtin): Move implementation to ...
5086 * config/nds32/nds32-intrinsic.c: ... here.
5087 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5088 (nds32_expand_builtin_impl): Declare.
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_emit_section_head_template): Move to ...
5095 (nds32_emit_section_tail_template): Move to ...
5096 (nds32_emit_isr_jmptbl_section): Move to ...
5097 (nds32_emit_isr_vector_section): Move to ...
5098 (nds32_emit_isr_reset_conten): Move to ...
5099 (nds32_check_isr_attrs_conflict): Move to ...
5100 (nds32_construct_isr_vectors_information): Move to ...
5101 (nds32_asm_file_start): Move implementation to ...
5102 (nds32_asm_file_end): Move implementation to ...
5103 * config/nds32/nds32-isr.c: ... here.
5104 * config/nds32/nds32-protos.h
5105 (nds32_check_isr_attrs_conflict): Declare.
5106 (nds32_construct_isr_vectors_information): Declare.
5107 (nds32_asm_file_start_for_isr): Declare.
5108 (nds32_asm_file_end_for_isr): Declare.
5109
5110 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5111 Kito Cheng <kito@0xlab.org>
5112 Monk Chiang <sh.chiang04@gmail.com>
5113
5114 * config.gcc (nds32*): Add new modules to extra_objs.
5115 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5116 (nds32be-*-*): Likewise.
5117 * config/nds32/nds32-cost.c: New file.
5118 * config/nds32/nds32-fp-as-gp.c: New file.
5119 * config/nds32/nds32-intrinsic.c: New file.
5120 * config/nds32/nds32-isr.c: New file.
5121 * config/nds32/nds32-md-auxiliary.c: New file.
5122 * config/nds32/nds32-memory-manipulation.c: New file.
5123 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5124 * config/nds32/nds32-predicates.c: New file.
5125 * config/nds32/t-nds32: New file.
5126
5127 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5128
5129 PR tree-optimization/61682
5130 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5131 using cases and when one of the operands is equal to 1.
5132
5133 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5134
5135 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5136 ashr<mode>3): Correct mode of operands[2].
5137 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5138 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5139 Correct mode of operands[2]. Fix split condition.
5140
5141 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5142
5143 * arm.md (arch): Add armv6_or_vfpv3.
5144 (arch_enabled): Add test for the above.
5145 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5146 on VFP9.
5147 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5148
5149 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5150
5151 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5152 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5153 HWI 1 and negate the unsigned value.
5154 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5155 use AND instead of shift.
5156 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5157
5158 2014-07-03 Marek Polacek <polacek@redhat.com>
5159
5160 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5161 (-fsanitize=float-divide-by-zero): Move to the table with
5162 -fsanitize=undefined suboptions.
5163 (-fsanitize=float-cast-overflow): Likewise.
5164
5165 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5166
5167 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5168 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5169 endianness.
5170
5171 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5172
5173 * loop-invariant.c (struct invariant): Add a new member: eqno;
5174 (find_identical_invariants): Update eqno;
5175 (create_new_invariant): Init eqno;
5176 (get_inv_cost): Compute comp_cost with eqno;
5177
5178 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5179
5180 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5181 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5182 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5183 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5184 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5185
5186 2014-07-02 Christian Bruel <christian.bruel@st.com>
5187
5188 PR target/29349
5189 PR target/53513
5190 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5191 (make_preds_opaque): Delete.
5192 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5193 (commit_mode_sets): New function.
5194 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5195 Process all modes at once.
5196 * basic-block.h (pre_edge_lcm_avs): Declare.
5197 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5198 Call clear_aux_for_edges. Fix comments.
5199 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5200 (pre_edge_rev_lcm): Idem.
5201 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5202 parameter.
5203 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5204 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5205 Idem.
5206 * config/i386/i386.c (x96_emit_mode_set): Idem.
5207 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5208 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5209 (fpscr_toggle) Disallow from delay slot.
5210 * target.def (emit_mode_set): Add prev_mode parameter.
5211 * doc/tm.texi: Regenerate.
5212
5213 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5214
5215 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5216 variable i.
5217
5218 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5219
5220 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5221 vtable_pointer_value_to_vtable): Constify.
5222 (contains_polymorphic_type_p): Declare.
5223 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5224 vtable_pointer_value_to_vtable): Constify.
5225 (contains_polymorphic_type_p): New predicate.
5226 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5227 polymorphic types.
5228 (ipa_set_ancestor_jf): Likewise.
5229 (detect_type_change): Return false in easy cases.
5230 (compute_complex_assign_jump_func): Require type to contain
5231 polymorphic type.
5232 (compute_known_type_jump_func): Likewise.
5233
5234 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5235
5236 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5237 Remove.
5238 (type_in_anonymous_namespace_p): Constify argument.
5239 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5240 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5241 (main_odr_variant): New function.
5242 (hash_type_name): Make static; update assert; do not ICE on
5243 non-records.
5244 (types_same_for_odr): Bring here from tree.c; simplify and remove
5245 old structural comparing code that doesn't work for templates.
5246 (odr_hasher::equal): Update assert.
5247 (add_type_duplicate): Return true when bases should be computed;
5248 replace incomplete loader by complete; do not output duplicated
5249 warnings; do not ICE on non-records; set odr_violated flag.
5250 (get_odr_type): Be ready to replace incomplete type by complete
5251 one; work on ODR variants instead of main variants; reorder item
5252 in array so bases have still smaller indexes.
5253 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5254 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5255
5256 2014-07-01 Cary Coutant <ccoutant@google.com>
5257
5258 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5259 lookup.
5260 (resolve_addr_in_expr): When replacing the rtx in a location list
5261 entry, get a new address table entry.
5262 (dwarf2out_finish): Call index_location_lists even if there are no
5263 addr_index_table entries yet.
5264
5265 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5266
5267 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5268 change for not being obvious.
5269
5270 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5271
5272 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5273 unused argument.
5274
5275 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5276
5277 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5278 (vcagt_f64): Likewise.
5279 (vcale_f64): Likewise.
5280 (vcaled_f64): Likewise.
5281 (vcales_f32): Likewise.
5282 (vcalt_f64): Likewise.
5283 (vcaltd_f64): Likewise.
5284 (vcalts_f32): Likewise.
5285
5286 2014-07-01 Marek Polacek <polacek@redhat.com>
5287
5288 * doc/invoke.texi: Document -Wint-conversion.
5289
5290 2014-07-01 Marek Polacek <polacek@redhat.com>
5291
5292 PR c/58286
5293 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5294
5295 2014-07-01 Martin Liska <mliska@suse.cz>
5296
5297 IPA REF alias refactoring
5298 * cgraph.h (iterate_direct_aliases): New function.
5299 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5300 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5301 FOR_EACH_ALIAS added.
5302 (cgraph_for_node_and_aliases): Likewise.
5303 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5304 * ipa-inline.c (reset_edge_caches): Likewise.
5305 (update_caller_keys): Likewise.
5306 * trans-mem.c (ipa_tm_execute): Likewise.
5307 *varpool.c (varpool_analyze_node): Likewise.
5308 (varpool_for_node_and_aliases): Likewise.
5309 * ipa-ref.h (first_alias): New function.
5310 (last_alias): Likewise.
5311 (has_aliases_p): Likewise.
5312 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5313 is sensitive to IPA_REF_ALIASes.
5314 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5315 are put at the beginning of the list.
5316 (symtab_node::iterate_direct_aliases): New function.
5317
5318 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5319
5320 Revert:
5321 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5322 type is complete.
5323 (write_ts_type_common_tree_pointers): Do not stream fields not set
5324 for incomplete types; do not stream duplicated fields for variants;
5325 sanity check that variant and type match.
5326 (write_ts_type_non_common_tree_pointers): Likewise.
5327 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5328 TYPE_SIZE whether type is complete.
5329 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5330 write_ts_type_common_tree_pointers
5331 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5332
5333 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5334
5335 * var-tracking.c (add_stores): Return instead of asserting if old
5336 and new values for conditional store are the same.
5337
5338 2014-06-30 Richard Henderson <rth@redhat.com>
5339
5340 PR rtl-opt/61608
5341 PR target/39284
5342 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5343 the cfg if there were any changes.
5344 * passes.def: Revert move of peephole2 after reorder_blocks;
5345 move duplicate_computed_gotos before peephole2.
5346
5347 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5348
5349 * except.c (emit_note_eh_region_end): New helper function.
5350 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5351 emit EH_REGION_END note.
5352 * jump.c (cleanup_barriers): Do not split a call and its
5353 corresponding CALL_ARG_LOCATION note.
5354
5355 2014-06-30 Jeff Law <law@redhat.com>
5356
5357 PR tree-optimization/61607
5358 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5359 deeper into the SSA_NAME_VALUE chain.
5360
5361 2014-06-30 Marek Polacek <polacek@redhat.com>
5362
5363 * convert.c (convert_to_integer): Don't instrument conversions if the
5364 function has no_sanitize_undefined attribute.
5365 * ubsan.c: Don't run the ubsan pass if the function has
5366 no_sanitize_undefined attribute.
5367
5368 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5369
5370 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5371 -fsanitize=undefined suboptions.
5372
5373 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5374
5375 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5376 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5377 against bigendian and adjust indices.
5378
5379 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5380
5381 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5382
5383 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5384
5385 PR target/61633
5386 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5387 Add alternative; make early clobber. Adjust both split patterns
5388 to use operand 0 as the working register.
5389
5390 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5391
5392 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5393 as ira_object_id_map might be NULL, or 1.
5394
5395 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5396
5397 * loop-invariant.c (get_inv_cost): Handle register class.
5398 (gain_for_invariant): Check the register pressure of the inv
5399 and its overlapped register class, other than all.
5400
5401 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5402
5403 * doc/invoke.texi (Optimize Options): Fix descriptions of
5404 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5405
5406 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5407
5408 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5409 documentation.
5410
5411 2014-06-29 Tobias Grosser <tobias@grosser.es>
5412
5413 PR bootstrap/61650
5414 * graphite-isl-ast-to-gimple.c: Add missing guards.
5415
5416 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5417
5418 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5419 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5420 * flag-types.h: Add new enum fgraphite_generator.
5421 * graphite-isl-ast-to-gimple.c: New.
5422 * graphite-isl-ast-to-gimple.h: New.
5423 * graphite.c (graphite_transform_loops): Add choice of Graphite
5424 code generator, which depends on flag_graphite_code_gen.
5425
5426 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5427
5428 * graphite-dependences.c (subtract_commutative_associative_deps):
5429 Add NULL checking of the following variables: must_raw_no_source,
5430 may_raw_no_source, must_war_no_source, may_war_no_source,
5431 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5432 must_war, may_war, must_waw, may_waw.
5433
5434 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5435
5436 * graphite-clast-to-gimple.c: gloog is renamed to
5437 graphite_regenerate_ast_cloog. gloog_error is renamed to
5438 graphite_regenerate_error.
5439 * graphite-clast-to-gimple.h: The definition of the struct
5440 bb_pbb_def is moved to graphite-htab.h.
5441 Add inclusion of the hash-table.h.
5442 * graphite-htab.h: The declaration of the function gloog is moved
5443 to graphite-clast-to-gimple.h and renamed to
5444 graphite_regenerate_ast_cloog.
5445 * graphite.c (graphite_transform_loops): gloog is renamed
5446 to graphite_regenerate_ast_cloog.
5447
5448 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5449
5450 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5451 type is complete.
5452 (write_ts_type_common_tree_pointers): Do not stream fields not set
5453 for incomplete types; do not stream duplicated fields for variants;
5454 sanity check that variant and type match.
5455 (write_ts_type_non_common_tree_pointers): Likewise.
5456 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5457 TYPE_SIZE whether type is complete.
5458 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5459 write_ts_type_common_tree_pointers
5460 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5461
5462 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5463
5464 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5465
5466 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5467
5468 * tree-inline.c (remap_type_1): Do not duplicate fields
5469 that are shared in between type and its main variant.
5470
5471 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5472
5473 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5474 of the type.
5475 (ipa_set_ancestor_jf) Likewise.
5476 (check_stmt_for_type_change): Check that we work on main variant.
5477 (detect_type_change): Look into main variant.
5478 (compute_known_type_jump_func): Check that main variant has BINFO.
5479
5480 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5481
5482 * ipa-devirt.c (set_type_binfo): New function.
5483 (add_type_duplicate): Use it.
5484 (get_odr_type): Sanity check that binfos points to main variants.
5485 (get_class_context): Be sure the context's outer_type is main variant.
5486 (contains_type_p): Walk main variant.
5487 (get_polymorphic_call_info_for_decl): Set outer_type to be
5488 main variant.
5489 (get_polymorphic_call_info): Likewise.
5490 (possible_polymorphic_call_targets): Sanity check that we operate
5491 on main variant.
5492
5493 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5494
5495 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5496
5497 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5498
5499 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5500 accidental change due to wide-int branch merge.
5501
5502 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5503
5504 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5505 compressed debug support.
5506 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5507 * configure: Regenerate.
5508 * config.in: Regenerate.
5509 * common.opt (compressed_debug_sections): New enum.
5510 (gz, gz=): New options.
5511 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5512 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5513 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5514 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5515 LINK_COMPRESS_DEBUG_SPEC.
5516 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5517 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5518 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5519 (Debugging Options): Document -gz[=type].
5520
5521 2014-06-27 Martin Jambor <mjambor@suse.cz>
5522
5523 PR ipa/61160
5524 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5525 args_to_skip, use those from node instead. Copy args_to_skip and
5526 combined_args_to_skip from node to the new thunk.
5527 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5528 (cgraph_create_virtual_clone): Moved computation of
5529 combined_args_to_skip...
5530 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5531
5532 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5533
5534 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5535 redundant diagnostic machinary.
5536
5537 2014-06-27 Richard Biener <rguenther@suse.de>
5538
5539 * tree-ssa-math-opts.c (bswap_replace): Fix
5540 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5541
5542 2014-06-27 Martin Liska <mliska@suse.cz>
5543
5544 * gimple.h (gimple_location_safe): New function introduced.
5545 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5546 of gimple_location_safe replaces gimple_location.
5547 (gimple_fold_call): Likewise.
5548 * ipa-devirt.c (ipa_devirt): Likewise.
5549 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5550 * ipa.c (walk_polymorphic_call_targets): Likewise.
5551 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5552
5553 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5554
5555 PR tree-optimization/57233
5556 PR tree-optimization/61299
5557 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5558 functions.
5559 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5560 would be lowered to scalar shifts, check if corresponding
5561 shifts and vector BIT_IOR_EXPR are supported and don't lower
5562 or lower just to narrower vector type in that case.
5563 * expmed.c (expand_shift_1): Fix up handling of vector
5564 shifts and rotates.
5565
5566 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5567
5568 PR target/61586
5569 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5570
5571 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5572
5573 * doc/invoke.texi (-fsemantic-interposition): Document.
5574 * common.opt (fsemantic-interposition): New flag.
5575 * varasm.c (decl_replaceable_p): Use it.
5576
5577 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5578
5579 PR target/61542
5580 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5581 extraction other than index 3.
5582
5583 2014-06-26 Teresa Johnson <tejohnson@google.com>
5584
5585 * doc/invoke.texi: Fix typo.
5586 * dumpfile.c: Add support for documented -fdump-* options
5587 optimized/missed/note/optall.
5588
5589 2014-06-26 Martin Jambor <mjambor@suse.cz>
5590
5591 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5592 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5593 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5594 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5595 * opts.c (default_options_optimization): Set
5596 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5597 * doc/invoke.texi (allow-load-data-races)
5598 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5599 (allow-store-data-races): Document the new default.
5600
5601 2014-06-26 Martin Jambor <mjambor@suse.cz>
5602
5603 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5604 renamed to ipa_impossible_devirt_target. Fix typo.
5605 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5606 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5607 ipa_impossible_devirt_target.
5608
5609 2014-06-26 Richard Biener <rguenther@suse.de>
5610
5611 PR tree-optimization/61607
5612 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5613 explaining why we restrict copies on loop depth.
5614 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5615 on loop depth.
5616 (record_equivalences_from_phis): Instead add it here.
5617
5618 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5619
5620 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5621 (LTO_WRAPPER_OBJS): New variable.
5622 (lto-wrapper$(exeext)): Use it.
5623 * collect2.c: Include "collect-utils.h".
5624 (verbose, debug): Remove variables.
5625 (at_file_supplied): No longer static.
5626 (tool_name): New variable.
5627 (do_wait, fork_execute, maybe_unlink): Don't declare.
5628 (tool_cleanup): No longer static.
5629 (notice): Remove function.
5630 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5631 fork_execute calls.
5632 (collect_wait, do_wait, collect_execute): Remove functions.
5633 (maybe_unlink): No longer static.
5634 * collect2.h (verbose, debug): Don't declare.
5635 (at_file_supplied): Declare.
5636 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5637 changed.
5638 (collect_execute): Replace with implementation from collect2, plus a
5639 new arg use_atfile. All callers changed.
5640 (collect_wait): Replace with implementation from collect2.
5641 (maybe_unlink_file): Remove function.
5642 (fork_execute): Replace with implementation from collect2, plus a
5643 new arg use_atfile. All callers changed.
5644 (do_wait): Add call to utils_cleanup to the error path.
5645 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5646 (tool_cleanup): Adjust declarations.
5647 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5648 * tlink.c: Include "collect-utils.h".
5649 (tlink_execute): New arg use_atfile. All callers changed.
5650 (tlink_init, tlink_execute): Remove declarations.
5651
5652 * collect-utils.c (save_temps): New variable.
5653 (do_wait): Use it instead of debug. Use fatal_error.
5654 * collect-utils.h (save_temps): Declare.
5655 * collect2.c (verbose): Rename from vflag. All uses changed.
5656 (tool_cleanup): New function, copied from collect_atexit.
5657 (collect_atexit, handler): Just call it.
5658 * collect2.h (verbose): Declaration renamed from vflag.
5659 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5660 debug.
5661
5662 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5663 (lto-wrapper$(exeext)): Link with collect-utils.o.
5664 * collect-utils.c: New file.
5665 * collect-utils.h: New file.
5666 * lto-wrapper.c: Include "collect-utils.h".
5667 (args_name): Delete variable.
5668 (tool_name): New variable.
5669 (tool_cleanup): New function.
5670 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5671 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5672 (fork_execute): Remove functions.
5673
5674 2014-06-26 Nick Clifton <nickc@redhat.com>
5675
5676 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5677
5678 * doc/extend.texi (Function Attributes): Fix typo in description
5679 of RX vector attribute.
5680
5681 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5682
5683 * config.gcc (supported_defaults): Error when passing either
5684 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5685
5686 2014-06-26 Richard Biener <rguenther@suse.de>
5687
5688 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5689 propagating volatile pointers.
5690
5691 2014-06-26 Richard Biener <rguenther@suse.de>
5692
5693 PR tree-optimization/61607
5694 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5695 loop if we redirected its latch edge.
5696 (thread_block_1): Do not cancel loops prematurely.
5697
5698 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5699
5700 * toplev.c (backend_init_target): Move init_emit_regs and
5701 init_regs to...
5702 (backend_init) ... here; skip ira_init_once and backend_init_target.
5703 (target_reinit) ... and here; clear
5704 this_target_rtl->lang_dependent_initialized.
5705 (lang_dependent_init_target): Clear
5706 this_target_rtl->lang_dependent_initialized;
5707 break out rtl initialization to ...
5708 (initialize_rtl): ... here; call also backend_init_target
5709 and ira_init_once.
5710 * toplev.h (initialize_rtl): New function.
5711 * function.c: Include toplev.h
5712 (init_function_start): Call initialize_rtl.
5713 * rtl.h (target_rtl): Add target_specific_initialized,
5714 lang_dependent_initialized.
5715
5716 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5717 Jakub Jelinek <jakub@redhat.com>
5718
5719 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5720
5721 2014-06-25 Tom de Vries <tom@codesourcery.com>
5722
5723 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5724
5725 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5726
5727 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5728 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5729 Issue a strict overflow warning if appropriate.
5730
5731 2014-06-25 Martin Liska <mliska@suse.cz>
5732
5733 IPA REF refactoring
5734 * Makefile.in: Removed header file (ipa-ref-inline.h).
5735 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5736 called.
5737 (cgraph_speculative_call_info): Likewise.
5738 (cgraph_for_node_thunks_and_aliases): Likewise.
5739 (cgraph_for_node_and_aliases): Likewise.
5740 (verify_cgraph_node): Likewise.
5741 * cgraph.h: Batch of IPA REF functions become member functions of
5742 symtab_node: add_reference, maybe_add_reference, clone_references,
5743 clone_referring, clone_reference, find_reference,
5744 remove_stmt_references, remove_all_references,
5745 remove_all_referring, dump_references, dump_referring,
5746 has_alias_p, iterate_reference, iterate_referring.
5747 * cgraphbuild.c (record_reference): New IPA REF function used.
5748 (record_type_list): Likewise.
5749 (record_eh_tables): Likewise.
5750 (mark_address): Likewise.
5751 (mark_load): Likewise.
5752 (mark_store): Likewise.
5753 (pass_build_cgraph_edges): Likewise.
5754 (rebuild_cgraph_edge): Likewise.
5755 (cgraph_rebuild_references): Likewise.
5756 (pass_remove_cgraph_callee_edges): Likewise.
5757 * cgraphclones.c (cgraph_clone_node): Likewise.
5758 (cgraph_create_virtual_clone): Likewise.
5759 (cgraph_materialize_clone): Likewise.
5760 (cgraph_materialize_all_clones): Likewise.
5761 * cgraphunit.c (cgraph_reset_node): Likewise.
5762 (cgraph_reset_node): Likewise.
5763 (analyze_function): Likewise.
5764 (assemble_thunks_and_aliases): Likewise.
5765 (expand_function): Likewise.
5766 * ipa-comdats.c (propagate_comdat_group): Likewise.
5767 (enqueue_references): Likewise.
5768 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5769 (create_specialized_node): Likewise.
5770 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5771 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5772 * ipa-inline.c (reset_edge_caches): Likewise.
5773 (update_caller_keys): Likewise.
5774 (execute): Likewise.
5775 * ipa-prop.c (remove_described_reference): Likewise.
5776 (propagate_controlled_uses): Likewise.
5777 (ipa_edge_duplication_hook): Likewise.
5778 (ipa_modify_call_arguments): Likewise.
5779 * ipa-pure-const.c (propagate_pure_const): Likewise.
5780 * ipa-ref-inline.h: Header file removed, functions moved
5781 to symtab_node class.
5782 * ipa-ref.c (remove_reference): New class member function.
5783 (cannot_lead_to_return): New class member function.
5784 (referring_ref_list): Likewise.
5785 (referred_ref_list): Likewise.
5786 Rest of functions moved to symtab_node class.
5787 * ipa-ref.h: New member functions remove_reference,
5788 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5789 to ipa_ref class.
5790 ipa_ref_list class has new member functions: first_reference,
5791 first_referring, clear, nreferences.
5792 * ipa-reference.c (analyze_function): New IPA REF function used.
5793 (write_node_summary_p): Likewise.
5794 (ipa_reference_write_optimization_summary): Likewise.
5795 * ipa-split.c (split_function): Likewise.
5796 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5797 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5798 (function_and_variable_visibility): Likewise.
5799 * ipa.c (has_addr_references_p): Likewise.
5800 (process_references): Argument type changed.
5801 (symtab_remove_unreachable_nodes): New IPA REF function used.
5802 (process_references): Likewise.
5803 (set_writeonly_bit): Likewise.
5804 * lto-cgraph.c: Implementation of new symtab_node member functions
5805 that uses new IPA REF functions.
5806 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5807 function used.
5808 * lto-streamer-out.c (output_symbol_p): Likewise.
5809 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5810 changed.
5811 * symtab.c: Implementation of new IPA REF API.
5812 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5813 (ipa_tm_create_version): Likewise.
5814 (ipa_tm_execute): Likewise.
5815 * tree-emutls.c (gen_emutls_addr): Likewise.
5816 * tree-inline.c (copy_bb): Likewise.
5817 (delete_unreachable_blocks_update_callgraph): Likewise.
5818 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5819 (varpool_for_node_and_aliases): Likewise.
5820
5821 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5822
5823 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5824
5825 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5826
5827 PR bootstrap/61598
5828 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5829 tree_node * instead of tree_node *.
5830 (fold): Adjust.
5831 (print_fold_checksum): Likewise.
5832 (fold_check_failed): Likewise.
5833 (debug_fold_checksum): Likewise.
5834 (fold_build1_stat_loc): Likewise.
5835 (fold_build2_stat_loc): Likewise.
5836 (fold_build3_stat_loc): Likewise.
5837 (fold_build_call_array_loc): Likewise.
5838
5839 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5840
5841 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5842 implementation with call to...
5843 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5844 function.
5845 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5846 Declare.
5847
5848 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
5849
5850 PR tree-optimization/57742
5851 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
5852 after replacing the statement.
5853
5854 2014-06-25 Nick Clifton <nickc@redhat.com>
5855
5856 * config/v850/v850.c (GHS_default_section_names): Change to const
5857 char * type.
5858 (GHS_current_section_names): Likewise.
5859 (v850_insert_attributes): Do not build strings, just assign the
5860 names directly. Change the type of 'chosen_section' to const
5861 char*.
5862 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
5863 directly to the array entry.
5864 * config/v850/v850.h (GHS_default_section_names): Change to const
5865 char * type.
5866 (GHS_current_section_names): Likewise.
5867
5868 2014-06-25 Jakub Jelinek <jakub@redhat.com>
5869
5870 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
5871 (LANG_HOOKS_DECLS): Add it.
5872 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
5873 has correct type.
5874 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
5875 * langhooks.h (struct lang_hooks_for_decls): Add
5876 omp_clause_linear_ctor hook.
5877 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
5878 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
5879 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
5880 combined simd loop use omp_clause_linear_ctor hook.
5881
5882 2014-06-24 Cong Hou <congh@google.com>
5883
5884 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
5885 pattern recognition.
5886 (type_conversion_p): PROMOTION is true if it's a type promotion
5887 conversion, and false otherwise. Return true if the given expression
5888 is a type conversion one.
5889 * tree-vectorizer.h: Adjust the number of patterns.
5890 * tree.def: Add SAD_EXPR.
5891 * optabs.def: Add sad_optab.
5892 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
5893 * expr.c (expand_expr_real_2): Likewise.
5894 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5895 * gimple.c (get_gimple_rhs_num_ops): Likewise.
5896 * optabs.c (optab_for_tree_code): Likewise.
5897 * tree-cfg.c (estimate_operator_cost): Likewise.
5898 * tree-ssa-operands.c (get_expr_operands): Likewise.
5899 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
5900 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
5901 * doc/generic.texi: Add document for SAD_EXPR.
5902 * doc/md.texi: Add document for ssad and usad.
5903
5904 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5905
5906 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
5907 qualification in cast.
5908
5909 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
5910
5911 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
5912 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
5913 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
5914 (tree_function_decl): ... here.
5915 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
5916 streaming of vindex to ...
5917 (write_ts_function_decl_tree_pointers): ... here.
5918 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
5919 Do not stream DECL_VINDEX.
5920 (lto_input_ts_function_decl_tree_pointers): Stream it here.
5921
5922 2014-06-24 Catherine Moore <clm@codesourcery.com>
5923 Sandra Loosemore <sandra@codesourcery.com>
5924
5925 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
5926 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
5927 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
5928
5929 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5930
5931 * doc/invoke.texi (Warning Options): Remove duplicated
5932 -Wmaybe-uninitialized.
5933
5934 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5935
5936 PR tree-optimization/57742
5937 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
5938 (handle_builtin_malloc, handle_builtin_memset): New functions.
5939 (strlen_optimize_stmt): Call them.
5940 * passes.def: Move strlen after loop+dom but before vrp.
5941
5942 2014-06-24 Jakub Jelinek <jakub@redhat.com>
5943
5944 PR target/61570
5945 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
5946 model family 6 CPU with has_longmode never use a CPU without
5947 64-bit support.
5948
5949 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
5950
5951 PR target/61570
5952 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
5953 the last change.
5954
5955 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5956
5957 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
5958 * dominance.c (iterate_fix_dominators): Use hash_map instead of
5959 pointer_map.
5960 * hash-map.h: New file.
5961 * ipa-comdats.c: Use hash_map instead of pointer_map.
5962 * ipa.c: Likewise.
5963 * lto-section-out.c: Adjust.
5964 * lto-streamer.h: Replace pointer_map with hash_map.
5965 * symtab.c (verify_symtab): Likewise.
5966 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
5967 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
5968 * tree-streamer.h: Likewise.
5969 * tree-streamer.c: Adjust.
5970 * pointer-set.h: Remove pointer_map.
5971
5972 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5973
5974 * hash-table.h: Add a template arg to choose between storing values
5975 and storing pointers to values, and then provide partial
5976 specializations for both.
5977 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
5978 should store, not the type values should point to.
5979 * tree-into-ssa.c (var_info_hasher): Likewise.
5980 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
5981 * tree-complex.c: Adjust.
5982 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
5983 table instead of int_tree_map *.
5984 * tree-parloops.c: Adjust.
5985 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
5986 type is being stored.
5987 * tree-vectorizer.c: Adjust.
5988
5989 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5990
5991 * hash-table.h: Remove a layer of indirection from hash_table so that
5992 it contains the hash table's data instead of a pointer to the data.
5993 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
5994 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
5995 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
5996 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
5997 fold-const.c, gcse.c, ggc-common.c,
5998 gimple-ssa-strength-reduction.c, gimplify.c,
5999 graphite-clast-to-gimple.c, graphite-dependences.c,
6000 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6001 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6002 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6003 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6004 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6005 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6006 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6007 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6008 tree-ssa-live.c, tree-ssa-loop-im.c,
6009 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6010 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6011 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6012 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6013 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6014 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6015 vtable-verify.c, vtable-verify.h: Adjust.
6016
6017 2014-06-24 Richard Biener <rguenther@suse.de>
6018
6019 PR tree-optimization/61572
6020 * tree-ssa-sink.c (statement_sink_location): Do not sink
6021 loads from hard registers.
6022
6023 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6024
6025 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6026 not mentioned in clauses use private clause if the iterator is
6027 declared in #pragma omp for simd, and when adding lastprivate
6028 instead, add it to the outer #pragma omp for too. Diagnose
6029 if the variable is private in outer context. For simd collapse > 1
6030 loops, replace all iterators with temporaries.
6031 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6032 same even in collapse > 1 loops.
6033
6034 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6035 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6036 non-NULL.
6037 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6038 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6039 non-NULL.
6040 (gimplify_adjust_omp_clauses): Likewise.
6041 * omp-low.c (lower_rec_simd_input_clauses,
6042 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6043 safelen the same as safelen(1).
6044 * tree-nested.c (convert_nonlocal_omp_clauses,
6045 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6046 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6047 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6048 Fixup handling of GIMPLE_OMP_TARGET.
6049 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6050 GIMPLE_OMP_TARGET.
6051
6052 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6053
6054 PR tree-optimization/61554
6055 * tree-ssa-propagate.c: Include "bitmap.h".
6056 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6057 properly update constructor/destructor.
6058 (substitute_and_fold_dom_walker::before_dom_children):
6059 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6060 need_eh_cleaup instead.
6061 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6062 need_eh_cleanup.
6063
6064 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6065
6066 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6067 * tree-pass.h (make_pass_ipa_single_use): New pass.
6068 * cgraph.h (used_by_single_function): New flag.
6069 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6070 Stream it.
6071 * passes.def (pass_ipa_single_use): Scedule.
6072 * ipa.c (BOTTOM): New macro.
6073 (meet): New function
6074 (propagate_single_user): New function.
6075 (ipa_single_use): New function.
6076 (pass_data_ipa_single_use): New pass.
6077 (pass_ipa_single_use): New pass.
6078 (pass_ipa_single_use::gate): New gate.
6079 (make_pass_ipa_single_use): New function.
6080
6081 2014-06-23 Kai Tietz <ktietz@redhat.com>
6082
6083 PR target/39284
6084 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6085 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6086
6087 2014-06-23 Richard Biener <rguenther@suse.de>
6088
6089 * tree-ssa-loop.c (gate_loop): New function.
6090 (pass_tree_loop::gate): Call it.
6091 (pass_data_tree_no_loop, pass_tree_no_loop,
6092 make_pass_tree_no_loop): New.
6093 * tree-vectorizer.c: Include tree-scalar-evolution.c
6094 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6095 required.
6096 (pass_slp_vectorize::clone): New method.
6097 * timevar.def (TV_TREE_NOLOOP): New.
6098 * tree-pass.h (make_pass_tree_no_loop): Declare.
6099 * passes.def (pass_tree_no_loop): New pass group with
6100 SLP vectorizer.
6101
6102 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6103
6104 PR target/61570
6105 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6106 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6107
6108 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6109
6110 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6111 "yes" where needed.
6112
6113 2014-06-23 Alan Modra <amodra@gmail.com>
6114
6115 PR bootstrap/61583
6116 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6117 to zero on debug statements.
6118
6119 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6120
6121 PR target/60825
6122 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6123 Ignore third operand if present by marking qualifier_internal.
6124
6125 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6126
6127 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6128 vector extension.
6129 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6130 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6131 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6132 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6133 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6134 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6135 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6136 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6137 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6138 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6139 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6140 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6141 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6142 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6143 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6144 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6145 logic in GCC vector extensions
6146
6147 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6148 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6149 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6150 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6151 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6152 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6153 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6154 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6155 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6156 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6157
6158 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6159
6160 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6161 extensions.
6162
6163 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6164 (vget_low_s64): Use __GET_LOW macro.
6165 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6166 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6167 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6168 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6169 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6170
6171 (vcombine_s64): Use GCC vector extensions; remove cast.
6172 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6173 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6174 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6175 Fix type signature; remove cast.
6176
6177 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6178
6179 PR target/60825
6180 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6181 V1DFmode.
6182 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6183 add V1DFmode
6184 (BUILTIN_VD1): New.
6185 (BUILTIN_VD_RE): Remove.
6186 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6187 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6188 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6189 variant but not df.
6190 (vreinterpretv1df*, vreinterpret*v1df): New.
6191 (vreinterpretdf*, vreinterpret*df): Remove.
6192 * config/aarch64/aarch64-simd.md (aarch64_create,
6193 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6194 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6195 (VD1): New.
6196 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6197 (vcreate_f64): Remove cast, use v1df builtin.
6198 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6199 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6200 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6201 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6202 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6203 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6204 add range check using __builtin_aarch64_im_lane_boundsi.
6205 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6206 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6207 type signature, use gcc vector extensions.
6208 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6209 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6210 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6211 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6212 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6213 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6214 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6215 vreinterpret_u64_f64): Use v1df builtin not df.
6216
6217 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6218
6219 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6220 vector registers.
6221
6222 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6223
6224 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6225 priority directly.
6226
6227 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6228
6229 * loop-invariant.c (pre_check_invariant_p): New function.
6230 (find_invariant_insn): Call pre_check_invariant_p.
6231
6232 2014-06-22 Richard Henderson <rth@redhat.com>
6233
6234 PR target/61565
6235 * compare-elim.c (struct comparison): Add eh_note.
6236 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6237 a redundant comparison in a different EH region. Purge EH edges if
6238 necessary.
6239
6240 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6241
6242 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6243 (var_shift): Use it.
6244 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6245 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6246 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6247 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6248 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6249 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6250 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6251 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6252 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6253 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6254 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6255 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6256 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6257 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6258 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6259 *rotldi3_internal15be): Use the new attribute. Merge register and
6260 integer alternatives.
6261
6262 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6263
6264 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6265 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6266 split, *ashrdi3_internal3 and split): Delete, merge into...
6267 (ashr<mode>3): New expander.
6268 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6269 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6270
6271 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6272
6273 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6274 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6275 *rotldi3_internal3 and split): Delete, merge into...
6276 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6277 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6278 Use "rotlw" extended mnemonic.
6279
6280 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6281
6282 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6283 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6284 and split, *ashldi3_internal3 and split): Delete, merge into...
6285 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6286 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6287
6288 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6289
6290 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6291 (lshrsi3, two anonymous define_insns and define_splits,
6292 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6293 *lshrdi3_internal3 and split): Delete, merge into...
6294 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6295 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6296
6297 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6298
6299 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6300 Remove "O" alternative.
6301
6302 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6303
6304 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6305 (mips_move_from_gpr_cost): Likewise.
6306 (mips_register_move_cost): Update accordingly.
6307 (mips_secondary_reload_class): Remove name of in_p.
6308
6309 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6310
6311 PR target/61503
6312 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6313 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6314
6315 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6316
6317 * config/nios2/nios2.c: Include "builtins.h".
6318
6319 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6320
6321 * cgraph.h (tls_model_names): New variable.
6322 * print-tree.c (print_node): Simplify.
6323 * varpool.c (tls_model_names): New variable.
6324 (dump_varpool_node): Output tls model.
6325
6326 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6327
6328 * ipa-visibility.c (function_and_variable_visibility): Disable
6329 temporarily local aliases for some targets.
6330
6331 2014-06-20 Marek Polacek <polacek@redhat.com>
6332
6333 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6334 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6335 into SANITIZE_UNDEFINED.
6336 * doc/invoke.texi: Describe -fsanitize=bounds.
6337 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6338 functions created in the FEs.
6339 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6340 (expand_UBSAN_BOUNDS): New function.
6341 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6342 * internal-fn.h: Don't define internal functions here.
6343 * opts.c (common_handle_option): Add -fsanitize=bounds.
6344 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6345 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6346 * tree-core.h: Define internal functions here.
6347 (struct tree_base): Add ifn field.
6348 * tree-pretty-print.c: Include "internal-fn.h".
6349 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6350 * tree.c (get_callee_fndecl): Likewise.
6351 (build_call_expr_internal_loc): New function.
6352 * tree.def (CALL_EXPR): Update description.
6353 * tree.h (CALL_EXPR_IFN): Define.
6354 (build_call_expr_internal_loc): Declare.
6355 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6356 types.
6357 (ubsan_type_descriptor): Change bool parameter to enum
6358 ubsan_print_style. Adjust the code. Add handling of
6359 UBSAN_PRINT_ARRAY.
6360 (ubsan_expand_bounds_ifn): New function.
6361 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6362 (ubsan_build_overflow_builtin): Likewise.
6363 (instrument_bool_enum_load): Likewise.
6364 (ubsan_instrument_float_cast): Likewise.
6365 * ubsan.h (enum ubsan_print_style): New enum.
6366 (ubsan_expand_bounds_ifn): Declare.
6367 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6368
6369 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6370
6371 * config/rs6000/rs6000.md: Append `DONE' to preparation
6372 statements of `bswap' pattern splitters.
6373
6374 2014-06-20 Tom de Vries <tom@codesourcery.com>
6375
6376 * target.def (call_fusage_contains_non_callee_clobbers): Update
6377 definition.
6378 * doc/tm.texi: Regenerate.
6379
6380 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6381 Max Ostapenko <m.ostapenko@partner.samsung.com>
6382
6383 PR sanitizer/61547
6384 * asan.c (instrument_strlen_call): Fixed instrumentation of
6385 trailing byte.
6386
6387 2014-06-20 Martin Jambor <mjambor@suse.cz>
6388
6389 PR ipa/61540
6390 * ipa-prop.c (impossible_devirt_target): New function.
6391 (try_make_edge_direct_virtual_call): Use it, also instead of
6392 asserting.
6393
6394 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6395 Max Ostapenko <m.ostapenko@partner.samsung.com>
6396
6397 PR sanitizer/61530
6398 * asan.c (build_check_stmt): Add condition.
6399
6400 2014-06-20 Martin Jambor <mjambor@suse.cz>
6401
6402 PR ipa/61211
6403 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6404 expanded clones.
6405
6406 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6407
6408 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6409 Update comments.
6410 (VCONQ): Make comment more helpful.
6411 (VCON): Delete.
6412 * config/aarch64/aarch64-simd.md
6413 (aarch64_sqdmulh_lane<mode>):
6414 Use VCOND for operands 2. Update lane checking and flipping logic.
6415 (aarch64_sqrdmulh_lane<mode>): Likewise.
6416 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6417 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6418 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6419 attribute of operand 3 to VCOND.
6420 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6421 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6422 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6423 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6424 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6425 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6426 define_insn.
6427 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6428 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6429 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6430 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6431 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6432 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6433 operand to VCOND. Update lane flipping and bounds checking logic.
6434 (aarch64_sqdmlal2_lane<mode>): Likewise.
6435 (aarch64_sqdmlsl_lane<mode>): Likewise.
6436 (aarch64_sqdmull_lane<mode>): Likewise.
6437 (aarch64_sqdmull2_lane<mode>): Likewise.
6438 (aarch64_sqdmlal_laneq<mode>):
6439 Replace VCON usage with VCONQ.
6440 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6441 (aarch64_sqdmlal2_laneq<mode>): Emit
6442 aarch64_sqdmlal2_laneq<mode>_internal insn.
6443 Replace VCON with VCONQ.
6444 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6445 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6446 (aarch64_sqdmull_laneq<mode>): Emit
6447 aarch64_sqdmull_laneq<mode>_internal insn.
6448 Replace VCON with VCONQ.
6449 (aarch64_sqdmull2_laneq<mode>): Emit
6450 aarch64_sqdmull2_laneq<mode>_internal insn.
6451 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6452 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6453 of 3rd argument to int16x4_t.
6454 (vqdmlalh_lane_s16): Likewise.
6455 (vqdmlslh_lane_s16): Likewise.
6456 (vqdmull_high_lane_s16): Likewise.
6457 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6458 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6459 (vqdmlsl_lane_s16): Likewise.
6460 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6461 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6462 (vqdmlals_lane_s32): Likewise.
6463 (vqdmlsls_lane_s32): Likewise.
6464 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6465 (vqdmulls_lane_s32): Likewise.
6466 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6467 (vqdmlsl_lane_s32): Likewise.
6468 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6469 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6470 (vqrdmulhh_lane_s16): Likewise.
6471 (vqdmlsl_high_lane_s16): Likewise.
6472 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6473 (vqdmlsl_high_lane_s32): Likewise.
6474 (vqrdmulhs_lane_s32): Likewise.
6475
6476 2014-06-20 Tom de Vries <tom@codesourcery.com>
6477
6478 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6479 get_call_reg_set_usage.
6480
6481 2014-06-20 Tom de Vries <tom@codesourcery.com>
6482
6483 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6484 it contains all call_used_regs.
6485
6486 2014-06-20 Tom de Vries <tom@codesourcery.com>
6487
6488 * final.c (collect_fn_hard_reg_usage): Add and use variable
6489 function_used_regs.
6490
6491 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6492
6493 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6494 (set_init_priority, get_init_priority, set_fini_priority,
6495 get_fini_priority): New methods.
6496 * tree.c (init_priority_for_decl): Remove.
6497 (init_ttree): Do not initialize init priority.
6498 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6499 (decl_priority_info): Remove.
6500 (decl_init_priority_insert): Rewrite.
6501 (decl_fini_priority_insert): Rewrite.
6502 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6503 tree_priority_map_marked_p): Remove.
6504 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6505 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6506 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6507 not output priorities.
6508 (pack_ts_function_decl_value_fields): Likewise.
6509 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6510 not input priorities.
6511 (unpack_ts_function_decl_value_fields): Likewise.
6512 * symtab.c (symbol_priority_map): Declare.
6513 (init_priority_hash): Declare.
6514 (symtab_unregister_node): Unregister from priority hash, too.
6515 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6516 New methods.
6517 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6518 (symbol_priority_info): New function.
6519 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6520 New methods.
6521 * tree-core.h (tree_priority_map): Remove.
6522
6523 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6524
6525 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6526 0xff to uint64_t before shifting it up.
6527
6528 2014-06-20 Julian Brown <julian@codesourcery.com>
6529 Chung-Lin Tang <cltang@codesourcery.com>
6530
6531 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6532 TARGET_THUMB1_ONLY. Add comments.
6533
6534 2014-06-19 Tom de Vries <tom@codesourcery.com>
6535
6536 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6537 return type to void.
6538 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6539
6540 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6541
6542 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6543 as "move", from depends_on.
6544
6545 2014-06-19 Terry Guo <terry.guo@arm.com>
6546
6547 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6548 stage.
6549
6550 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6551
6552 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6553 Remove cr5.
6554 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6555
6556 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6557
6558 PR target/61550
6559 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6560 addresses here if reload in progress or completed.
6561
6562 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6563
6564 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6565 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6566 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6567 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6568 (mips_register_priority): New function that implements the target
6569 hook TARGET_REGISTER_PRIORITY.
6570 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6571 (mips_lra_p): Likewise for TARGET_LRA_P.
6572 (TARGET_REGISTER_PRIORITY): Define macro.
6573 (TARGET_SPILL_CLASS): Likewise.
6574 (TARGET_LRA_P): Likewise.
6575 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6576 classes.
6577 (REG_CLASS_NAMES): Likewise.
6578 (REG_CLASS_CONTENTS): Likewise.
6579 (BASE_REG_CLASS): Use M16_SP_REGS.
6580 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6581 New set attribute to enable alternatives depending on the register
6582 allocator used.
6583 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6584 (*lea64): Disable pattern for MIPS16.
6585 * config/mips/mips.opt (mlra): New option.
6586
6587 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6588
6589 * lra-constraints.c (base_to_reg): New function.
6590 (process_address): Use new function.
6591
6592 2014-06-18 Tom de Vries <tom@codesourcery.com>
6593
6594 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6595 * config/aarch64/aarch64.c
6596 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6597 (aarch64_emit_call_insn): New function.
6598 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6599 of emit_call_insn.
6600 * config/aarch64/aarch64.md (define_expand "call_internal")
6601 (define_expand "call_value_internal", define_expand "sibcall_internal")
6602 (define_expand "sibcall_value_internal"): New.
6603 (define_expand "call", define_expand "call_value")
6604 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6605 expand variant and aarch64_emit_call_insn.
6606
6607 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6608 Tom de Vries <tom@codesourcery.com>
6609
6610 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6611 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6612 Redefine to true.
6613 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6614 clobbers to CALL_INSN_FUNCTION_USAGE.
6615 (define_expand "sibcall_internal")
6616 (define_expand "sibcall_value_internal"): New.
6617 (define_expand "call", define_expand "call_value"): Add argument to
6618 arm_emit_call_insn.
6619 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6620 (define_expand "sibcall_value"): Use sibcall_value_internal and
6621 arm_emit_call_insn.
6622
6623 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6624
6625 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6626
6627 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6628
6629 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6630 __udivmoddi4.
6631
6632 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6633
6634 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6635 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6636 annotations. Fix DWARF information.
6637
6638 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6639
6640 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6641 __udivmoddi4, and fixups for negative operands.
6642
6643 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6644
6645 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6646
6647 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6648
6649 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6650 to __udivmoddi4.
6651
6652 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6653
6654 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6655 manipulation.
6656
6657 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6658
6659 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6660 describing register usage on function entry and exit.
6661
6662 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6663
6664 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6665 (__aeabi_ldivmod): Fix whitespace.
6666
6667 2014-06-18 Andreas Schwab <schwab@suse.de>
6668
6669 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6670 Remove blank line after @item.
6671
6672 2014-06-18 Richard Henderson <rth@redhat.com>
6673
6674 PR target/61545
6675 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6676
6677 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6678
6679 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6680 POST_MODIFY for neon loads and stores.
6681 (arm_print_operand): Output post-index register for neon loads and
6682 stores.
6683
6684 2014-06-18 Richard Biener <rguenther@suse.de>
6685
6686 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6687
6688 2014-06-18 Richard Biener <rguenther@suse.de>
6689
6690 * tree-pass.h (make_pass_dce_loop): Remove.
6691 * passes.def: Replace pass_dce_loop with pass_dce.
6692 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6693 changed free niter estimates and reset the scev cache.
6694 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6695 make_pass_dce_loop): Remove.
6696 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6697 (fini_copy_prop): Return whether something changed. Always
6698 let substitute_and_fold perform DCE and free niter estimates
6699 and reset the scev cache if so.
6700 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6701 (pass_data_copy_prop): Do not unconditionally schedule
6702 cleanup-cfg or update-ssa.
6703
6704 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6705
6706 PR tree-optimization/61518
6707 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6708 reduction var is used in reduction stmt or phi-function only.
6709
6710 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6711
6712 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6713
6714 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6715
6716 PR tree-optimization/61517
6717 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6718 whose rhs's first tree is the source expression instead of the
6719 expression itself.
6720 (find_bswap_or_nop): Likewise.
6721 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6722 gimple stmt whose rhs's first tree is the source. In the memory source
6723 case, move the stmt to be replaced close to one of the original load to
6724 avoid the problem of a store between the load and the stmt's original
6725 location.
6726 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6727 signature.
6728
6729 2014-06-18 Andreas Schwab <schwab@suse.de>
6730
6731 PR rtl-optimization/54555
6732 * postreload.c (move2add_use_add2_insn): Substitute
6733 STRICT_LOW_PART only if it is cheaper.
6734
6735 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6736
6737 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6738 Do not use unspec as call operand. Use memory_operand instead of
6739 memory_nox32_operand and add "m" operand constraint. Disable
6740 pattern for TARGET_X32.
6741 (*sibcall_pop_memory): Ditto.
6742 (*sibcall_value_memory): Ditto.
6743 (*sibcall_value_pop_memory): Ditto.
6744 (sibcall peepholes): Merge SImode and DImode patterns using
6745 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6746 Disable pattern for TARGET_X32. Check if eliminated register is
6747 really dead after call insn. Generate call RTX without unspec operand.
6748 (sibcall_value peepholes): Ditto.
6749 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6750 instead of memory_nox32_operand. Check if eliminated register is
6751 really dead after call insn. Generate call RTX without unspec operand.
6752 (sibcall_value_pop peepholes): Ditto.
6753 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6754
6755 2014-06-18 Terry Guo <terry.guo@arm.com>
6756
6757 PR target/61544
6758 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6759 reach the head.
6760
6761 2014-06-18 Olivier Hainque <hainque@adacore.com>
6762
6763 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6764 memorization of the end of block source location.
6765 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6766 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6767 end source location info we have on the block entry/exit code we
6768 generate.
6769
6770 2014-06-18 Richard Biener <rguenther@suse.de>
6771
6772 * common.opt (fssa-phiopt): New option.
6773 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6774 but not with -Og.
6775 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6776 * doc/invoke.texi (-fssa-phiopt): Document.
6777
6778 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6779
6780 * genattrtab.c (n_bypassed): New variable.
6781 (process_bypasses): Initialise n_bypassed.
6782 Count number of bypassed reservations.
6783 (make_automaton_attrs): Allocate space for bypassed reservations
6784 rather than number of bypasses.
6785
6786 2014-06-18 Richard Biener <rguenther@suse.de>
6787
6788 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6789 we propagated anything.
6790 (substitute_and_fold_dom_walker::before_dom_children): Something
6791 changed if we propagated into PHI arguments.
6792 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6793 we removed a stmt.
6794
6795 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6796
6797 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6798 vector case.
6799 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6800 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6801 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6802 Introduces alternative way of loads group permutaions.
6803 (vect_transform_grouped_load): Try alternative way of permutations.
6804
6805 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6806
6807 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6808 changed in ORT_TARGET region, don't jump to do_outer.
6809 (struct gimplify_adjust_omp_clauses_data): New type.
6810 (gimplify_adjust_omp_clauses_1): Adjust for data being
6811 a struct gimplify_adjust_omp_clauses_data pointer instead
6812 of tree *. Pass pre_p as a new argument to
6813 lang_hooks.decls.omp_finish_clause hook.
6814 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6815 splay_tree_foreach to pass both list_p and pre_p.
6816 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6817 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6818 gimplify_adjust_omp_clauses callers.
6819 * langhooks.c (lhd_omp_finish_clause): New function.
6820 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6821 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6822 * langhooks.h (struct lang_hooks_for_decls): Add a new
6823 gimple_seq * argument to omp_finish_clause hook.
6824 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6825 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6826 (scan_omp_parallel, lower_omp_for): When adding
6827 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6828 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6829 * tree-nested.c (convert_nonlocal_omp_clauses,
6830 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6831 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6832
6833 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6834
6835 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6836 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6837
6838 2014-06-17 Xinliang David Li <davidxl@google.com>
6839
6840 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6841 * passes.c (pass_init_dump_file): Do not set initialize
6842 flag to false unconditionally.
6843
6844 2014-06-17 Richard Biener <rguenther@suse.de>
6845
6846 * genopinit.c (main): Use vec<>::qsort method.
6847 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6848 Likewise.
6849 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
6850
6851 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
6852
6853 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
6854 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
6855 (mips_move_to_gpr_cost): Remove ST_REGS case.
6856 (mips_move_from_gpr_cost): Likewise.
6857 (mips_register_move_cost): Likewise.
6858 (mips_secondary_reload_class): Likewise.
6859
6860 2014-06-17 Richard Biener <rguenther@suse.de>
6861
6862 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
6863 (pass_all_optimizations): Move 3rd copy-prop pass from after
6864 fre to before ifcombine/phiopt.
6865
6866 2014-06-17 Richard Biener <rguenther@suse.de>
6867
6868 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
6869 and allow all blocks to be forwarders.
6870
6871 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
6872
6873 PR target/61483
6874 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
6875 variable 'size'; calculate 'size' right in the front; use
6876 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
6877 pcum->aapcs_stack_words.
6878
6879 2014-06-17 Nick Clifton <nickc@redhat.com>
6880
6881 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
6882 (umulhi3, mulsidi3, umulsidi3): Likewise.
6883
6884 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
6885
6886 PR middle-end/61508
6887 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
6888 check for section name.
6889
6890 2014-06-17 Richard Biener <rguenther@suse.de>
6891
6892 * tree-ssa-propagate.c: Include domwalk.h.
6893 (substitute_and_fold): Outline main worker into a domwalker ...
6894 (substitute_and_fold_dom_walker::before_dom_children): ... here.
6895 Schedule stmts we can fully propagate for removal. Remove
6896 poor-mans DCE.
6897 (substitute_and_fold): Apply a dominator walk to perform
6898 substitution. Process stmts scheduled for removal here.
6899
6900 2014-06-17 Richard Biener <rguenther@suse.de>
6901
6902 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
6903 of PHI node moving.
6904
6905 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6906
6907 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
6908 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
6909 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6910 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
6911 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
6912 TARGET_HARD_FLOAT.
6913 (get_fpscr) : Likewise.
6914
6915 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6916
6917 PR rtl-optimization/61325
6918 * lra-constraints.c (valid_address_p): Add forward declaration.
6919 (simplify_operand_subreg): Check address validity before and after
6920 alter_reg of memory subreg.
6921
6922 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
6923
6924 * config/i386/i386.c (decide_alg): Correctly handle
6925 maximum size of stringop algorithm.
6926
6927 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6928
6929 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
6930
6931 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6932
6933 PR rtl-optimization/61522
6934 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
6935
6936 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
6937
6938 Revert:
6939 * symtab.c (symtab_node::reset_section): New method.
6940 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
6941 for localization.
6942 * cgraph.h (reset_section): Declare.
6943 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
6944 do not consider comdat locals.
6945 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
6946 for new symbol.
6947 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
6948 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
6949 reset sections of symbols dragged out of the comdats.
6950 (function_and_variable_visibility): Reset sections of
6951 localized symbols.
6952
6953 2014-06-16 Richard Biener <rguenther@suse.de>
6954
6955 PR tree-optimization/61482
6956 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
6957 [-INF(OVF), +INF(OVF)] range.
6958
6959 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6960
6961 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
6962 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
6963 handling 32-bit multiplication.
6964
6965 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
6966
6967 PR middle-end/61430
6968 * lra-lives.c (process_bb_lives): Skip creating copy during
6969 insn scan when src/dest has constrained to same regno.
6970
6971 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
6972
6973 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
6974 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
6975
6976 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6977
6978 * asan.c (check_func): New function.
6979 (maybe_create_ssa_name): Likewise.
6980 (build_check_stmt_with_calls): Likewise.
6981 (use_calls_p): Likewise.
6982 (report_error_func): Change interface.
6983 (build_check_stmt): Allow non-integer lengths; add support
6984 for new parameter.
6985 (asan_instrument): Likewise.
6986 (instrument_mem_region_access): Moved code to build_check_stmt.
6987 (instrument_derefs): Likewise.
6988 (instrument_strlen_call): Likewise.
6989 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
6990 * doc/invoke.texi: Describe new parameter.
6991 * params.def: Define new parameter.
6992 * params.h: Likewise.
6993 * sanitizer.def: Describe new builtins.
6994
6995 2014-06-16 Richard Biener <rguenther@suse.de>
6996
6997 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6998 Make all defs available at the end.
6999 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7000
7001 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7002
7003 PR plugins/45078
7004 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7005
7006 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7007
7008 PR bootstrap/61516
7009 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7010 initialization. Replace remaining use of uid.
7011
7012 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7013
7014 * c-family/c-common.c (handle_tls_model_attribute): Use
7015 set_decl_tls_model.
7016 * c-family/c-common.c (handle_tls_model_attribute): Use
7017 set_decl_tls_model.
7018 * cgraph.h (struct varpool_node): Add tls_model.
7019 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7020 * tree.h (DECL_TLS_MODEL): Update.
7021 (DECL_THREAD_LOCAL_P): Check that variable is static.
7022 (decl_tls_model): Declare.
7023 (set_decl_tls_model): Declare.
7024 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7025 set symbol prorperties.
7026 (get_emutls_init_templ_addr): Cleanup.
7027 (new_emutls_decl): Update.
7028 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7029 (lto_input_varpool_node): Likewise.
7030 * lto-streamer-out.c (hash_tree): Likewise.
7031 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7032 not stream DECL_TLS_MODEL.
7033 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7034 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7035
7036 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7037
7038 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7039
7040 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7041
7042 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7043 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7044 lists.
7045 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7046 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7047 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7048 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7049 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7050 (df_get_artificial_defs, df_get_artificial_uses)
7051 (df_single_def, df_single_use): Update accordingly.
7052 (df_refs_chain_dump): Take the first element in a linked list as
7053 parameter, rather than a pointer to an array of pointers.
7054 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7055 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7056 (df_chain_create_bb_process_use): Likewise.
7057 (df_md_bb_local_compute_process_def): Likewise.
7058 * fwprop.c (process_defs, process_uses): Likewise.
7059 (register_active_defs, update_uses): Likewise.
7060 (forward_propagate_asm): Update for new df_ref linking.
7061 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7062 (df_null_ref_rec, df_null_mw_rec): Likewise.
7063 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7064 explicitly.
7065 (df_scan_free_bb_info): Remove check for null artificial_defs.
7066 (df_install_ref_incremental): Adjust for new df_ref linking.
7067 Use a single-element insertion rather than a full sort.
7068 (df_ref_chain_delete_du_chain): Take the first element
7069 in a linked list as parameter, rather than a pointer to an array of
7070 pointers.
7071 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7072 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7073 (df_insn_info_delete): Remove check for null defs and call to
7074 df_scan_free_mws_vec.
7075 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7076 null rather than df_null_*_rec.
7077 (df_insn_rescan_debug_internal): Likewise, and update null
7078 checks in the same way. Remove check for null defs.
7079 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7080 Move a single element rather doing a full sort.
7081 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7082 linking.
7083 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7084 Initialize df_ref and df_mw_hardreg lists to null rather than
7085 df_null_*_rec.
7086 (df_ref_compare): Take df_refs as parameter, transferring the
7087 old interface to...
7088 (df_ref_ptr_compare): ...this new function.
7089 (df_sort_and_compress_refs): Update accordingly.
7090 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7091 old interface to...
7092 (df_mw_ptr_compare): ...this new function.
7093 (df_sort_and_compress_mws): Update accordingly.
7094 (df_install_refs, df_install_mws): Return a linked list rather than
7095 an array of pointers.
7096 (df_refs_add_to_chains): Assert that old lists are empty rather
7097 than freeing them.
7098 (df_insn_refs_verify): Don't handle null defs speciailly.
7099 * web.c (union_match_dups): Update for new df_ref linking.
7100
7101 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7102
7103 * df.h (df_ref_create, df_ref_remove): Delete.
7104 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7105 (df_ref_remove): Likewise.
7106
7107 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7108
7109 * df.h (df_single_def, df_single_use): New functions.
7110 * ira.c (find_moveable_pseudos): Use them.
7111
7112 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7113
7114 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7115 * df-problems.c (df_note_bb_compute): Use it.
7116 * regstat.c (regstat_bb_compute_ri): Likewise.
7117
7118 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7119
7120 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7121 * cse.c (cse_extended_basic_block): Use them.
7122 * dce.c (mark_artificial_use): Likewise.
7123 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7124 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7125 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7126 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7127 (df_simulate_initialize_backwards): Likewise.
7128 (df_simulate_finalize_backwards): Likewise.
7129 (df_simulate_initialize_forwards): Likewise.
7130 (df_md_simulate_artificial_defs_at_top): Likewise.
7131 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7132 * regrename.c (init_rename_info): Likewise.
7133 * regstat.c (regstat_bb_compute_ri): Likewise.
7134 (regstat_bb_compute_calls_crossed): Likewise.
7135
7136 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7137
7138 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7139 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7140 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7141 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7142 * combine.c (create_log_links): Likewise.
7143 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7144 (try_eliminate_compare): Likewise.
7145 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7146 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7147 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7148 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7149 (word_dce_process_block, dce_process_block): Likewise.
7150 * ddg.c (def_has_ccmode_p): Likewise.
7151 * df-core.c (df_bb_regno_first_def_find): Likewise.
7152 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7153 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7154 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7155 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7156 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7157 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7158 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7159 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7160 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7161 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7162 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7163 * fwprop.c (local_ref_killed_between_p): Likewise.
7164 (all_uses_available_at, free_load_extend): Likewise.
7165 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7166 * hw-doloop.c (scan_loop): Likewise.
7167 * ifcvt.c (dead_or_predicable): Likewise.
7168 * init-regs.c (initialize_uninitialized_regs): Likewise.
7169 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7170 (process_bb_node_lives): Likewise.
7171 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7172 (find_moveable_pseudos): Likewise.
7173 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7174 * recog.c (peep2_find_free_register): Likewise.
7175 * ree.c (get_defs): Likewise.
7176 * regstat.c (regstat_bb_compute_ri): Likewise.
7177 (regstat_bb_compute_calls_crossed): Likewise.
7178 * sched-deps.c (find_inc, find_mem): Likewise.
7179 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7180 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7181 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7182 (prepare_shrink_wrap): Likewise.
7183 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7184 * web.c (union_defs, pass_web::execute): Likewise.
7185 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7186 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7187
7188 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7189
7190 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7191 to inheritance pseudos.
7192 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7193
7194 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7195
7196 PR target/61415
7197 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7198 (BU_MISC_2): Rename to ...
7199 (BU_LDBL128_2): ... this.
7200 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7201 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7202 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7203 RS6000_BTM_LDBL128.
7204 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7205 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7206 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7207 (unpacktf_1): Likewise.
7208 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7209 (__builtin_longdouble_dw1): Likewise.
7210 * doc/sourcebuild.texi (longdouble128): Document.
7211
7212 2014-06-13 Jeff Law <law@redhat.com>
7213
7214 PR rtl-optimization/61094
7215 PR rtl-optimization/61446
7216 * ree.c (combine_reaching_defs): Get the mode for the copy from
7217 the extension insn rather than the defining insn.
7218
7219 2014-06-13 Dehao Chen <dehao@google.com>
7220
7221 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7222
7223 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7224
7225 * doc/install.texi (--enable-linker-plugin-configure-flags)
7226 (--enable-linker-plugin-flags): Document new flags.
7227
7228 2014-06-13 Martin Jambor <mjambor@suse.cz>
7229
7230 PR ipa/61186
7231 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7232 cache_token if returning early.
7233
7234 2014-06-13 Nick Clifton <nickc@redhat.com>
7235
7236 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7237 requested alignment is active.
7238 (LABEL_ALIGN): Likewise.
7239 (LOOP_ALIGN): Likewise.
7240
7241 2014-06-13 Richard Biener <rguenther@suse.de>
7242
7243 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7244 Rewrite to propagate the VN result into all uses where
7245 possible and to remove stmts becoming dead because of that.
7246 (eliminate): Generalize stmt removal handling, remove in
7247 reverse dominator order to support proper debug stmt
7248 generation. Update stmts before removing stmts.
7249 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7250
7251 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7252
7253 PR tree-optimization/61375
7254 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7255 symbolic number cannot be represented in an uint64_t.
7256 (find_bswap_or_nop_1): Likewise.
7257
7258 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7259
7260 * symtab.c (symtab_node::reset_section): New method.
7261 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7262 for localization.
7263 * cgraph.h (reset_section): Declare.
7264 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7265 do not consider comdat locals.
7266 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7267 for new symbol.
7268 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7269 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7270 reset sections of symbols dragged out of the comdats.
7271 (function_and_variable_visibility): Reset sections of
7272 localized symbols.
7273
7274 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7275
7276 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7277 to use symtab and decl_binds_to_current_def_p
7278 * tree-vectorizer.c (increase_alignment): Increase alignment
7279 of alias target, too.
7280
7281 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7282
7283 PR middle-end/61486
7284 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7285 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7286 if outer combined construct is distribute.
7287 (gimplify_omp_for): For OMP_DISTRIBUTE set
7288 gimplify_omp_ctxp->distribute.
7289 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7290 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7291 mapping into decl map.
7292
7293 2014-06-12 Jason Merrill <jason@redhat.com>
7294
7295 * common.opt (fabi-version): Change default to 0.
7296
7297 2014-06-12 Jason Merrill <jason@redhat.com>
7298
7299 * toplev.c (process_options): Reject -fabi-version=1.
7300
7301 2014-06-12 Jeff Law <law@redhat.com>
7302
7303 PR tree-optimization/61009
7304 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7305 value when we stop processing a block due to problematic PHIs.
7306
7307 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7308
7309 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7310 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7311 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7312 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7313 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7314 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7315 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7316 are not in the spec.
7317
7318 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7319
7320 PR target/59843
7321 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7322 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7323 Support V1DFmode.
7324
7325 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7326
7327 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7328
7329 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7330
7331 PR target/61443
7332 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7333 loading from address spaces.
7334
7335 2014-06-12 Martin Liska <mliska@suse.cz>
7336
7337 PR ipa/61462
7338 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7339 statement is reachable.
7340
7341 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7342
7343 * symtab.c (section_hash): New hash.
7344 (symtab_unregister_node): Clear section before freeing.
7345 (hash_section_hash_entry): New haser.
7346 (eq_sections): New function.
7347 (symtab_node::set_section_for_node): New method.
7348 (set_section_1): Update.
7349 (symtab_node::set_section): Take string instead of tree as parameter.
7350 (symtab_resolve_alias): Update.
7351 * cgraph.h (section_hash_entry_d): New structure.
7352 (section_hash_entry): New typedef.
7353 (cgraph_node): Change comdat_group_ to x_comdat_group,
7354 change section_ to x_section and turn into section_hash_entry;
7355 update accestors; put set_section_for_node offline.
7356 * tree.c (decl_section_name): Turn into string.
7357 (set_decl_section_name): Change parameter to be string.
7358 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7359 * sdbout.c (sdbout_one_type): Update.
7360 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7361 * varasm.c (IN_NAMED_SECTION, get_named_section,
7362 resolve_unique_section, hot_function_section, get_named_text_section,
7363 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7364 make_decl_rtl, default_unique_section): Update.
7365 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7366 (c6x_elf_unique_section): Update.
7367 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7368 * config/pa/pa.c (pa_function_section): Update.
7369 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7370 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7371 * config/arc/arc.c (arc_in_small_data_p): Update.
7372 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7373 * config/mcore/mcore.c (mcore_unique_section): Update.
7374 * config/mips/mips.c (mips16_build_function_stub): Update.
7375 (mips16_build_call_stub): Update.
7376 (mips_function_rodata_section): Update.
7377 (mips_in_small_data_p): Update.
7378 * config/score/score.c (score_in_small_data_p): Update.
7379 * config/rx/rx.c (rx_in_small_data): Update.
7380 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7381 (rs6000_xcoff_asm_named_section): Update.
7382 (rs6000_xcoff_unique_section): Update.
7383 * config/frv/frv.c (frv_string_begins_with): Update.
7384 (frv_in_small_data_p): Update.
7385 * config/v850/v850.c (v850_encode_data_area): Update.
7386 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7387 (bfin_handle_l1_data_attribute): Update.
7388 (bfin_handle_l2_attribute): Update.
7389 * config/mep/mep.c (mep_unique_section): Update.
7390 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7391 Update.
7392 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7393 (h8300_handle_tiny_data_attribute): Update.
7394 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7395 (m32r_in_small_data_p): Update.
7396 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7397 * config/i386/i386.c (ix86_in_large_data_p): Update.
7398 * config/i386/winnt.c (i386_pe_unique_section): Update.
7399 * config/darwin.c (darwin_function_section): Update.
7400 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7401 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7402 (new_emutls_decl): Update.
7403 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7404 input_varpool_node): Update.
7405 (ead_string_cst): Turn to ...
7406 (read_string): ... this one.
7407 * dwarf2out.c (secname_for_decl): Update.
7408 * asan.c (asan_protect_global): Update.
7409
7410 2014-06-11 DJ Delorie <dj@redhat.com>
7411
7412 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7413 cache lines.
7414 * config/rx/rx.c (rx_option_override): Likewise.
7415 (rx_align_for_label): Likewise.
7416
7417 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7418
7419 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7420
7421 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7422 prototype.
7423
7424 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7425
7426 * common.md: New file.
7427 * doc/md.texi: Update description of generic, machine-independent
7428 constraints.
7429 * config/s390/constraints.md (e): Delete.
7430 * Makefile.in (md_file): Include common.md.
7431 * config/m32c/t-m32c (md_file): Likewise.
7432 * genpreds.c (general_mem): New array.
7433 (generic_constraint_letters): Remove constraints now defined by
7434 common.md.
7435 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7436 Allow the first character to be '<' or '>' as well.
7437 * genoutput.c (general_mem): New array.
7438 (indep_constraints): Remove constraints now defined by common.md.
7439 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7440 Remove special handling of 'm'.
7441 * ira-costs.c (record_reg_classes): Remove special handling of
7442 constraints now defined by common.md.
7443 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7444 * ira-lives.c (single_reg_class): Likewise.
7445 (ira_implicitly_set_insn_hard_regs): Likewise.
7446 * lra-constraints.c (reg_class_from_constraints): Likewise.
7447 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7448 * postreload.c (reload_cse_simplify_operands): Likewise.
7449 * reload.c (push_secondary_reload, scratch_reload_class)
7450 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7451 * reload1.c (maybe_fix_stack_asms): Likewise.
7452 * targhooks.c (default_secondary_reload): Likewise.
7453 * stmt.c (parse_output_constraint): Likewise.
7454 * recog.c (preprocess_constraints): Likewise.
7455 (constrain_operands, peep2_find_free_register): Likewise.
7456 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7457 must be handled specially.
7458
7459 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7460
7461 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7462 * genpreds.c (have_const_dbl_constraints): Delete.
7463 (add_constraint): Don't set it.
7464 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7465 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7466 constraints using the lookup_constraint logic.
7467 * ira-lives.c (single_reg_class): Likewise.
7468 * ira.c (ira_setup_alts): Likewise.
7469 * lra-constraints.c (process_alt_operands): Likewise.
7470 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7471 * reload.c (find_reloads): Likewise.
7472
7473 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7474
7475 * genpreds.c (const_int_start, const_int_end): New variables.
7476 (choose_enum_order): Output CONST_INT constraints before memory
7477 constraints.
7478 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7479 Add CT_CONST_INT.
7480 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7481 * ira.c (ira_setup_alts): Likewise.
7482 * lra-constraints.c (process_alt_operands): Likewise.
7483 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7484 * reload.c (find_reloads): Likewise.
7485
7486 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7487
7488 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7489 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7490 * recog.c (preprocess_constraints): Update accordingly.
7491
7492 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7493
7494 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7495 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7496 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7497 * genpreds.c (print_type_tree): New function.
7498 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7499 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7500 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7501 Write out enum constraint_type and get_constraint_type.
7502 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7503 constraint_num rather than a constraint string.
7504 (satisfies_address_constraint_p): Likewise.
7505 (reg_class_from_constraints): Avoid old constraint macros.
7506 (process_alt_operands, process_address_1): Likewise.
7507 (curr_insn_transform): Likewise.
7508 * ira-costs.c (record_reg_classes): Likewise.
7509 (record_operand_costs): Likewise.
7510 * ira-lives.c (single_reg_class): Likewise.
7511 (ira_implicitly_set_insn_hard_regs): Likewise.
7512 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7513 * postreload.c (reload_cse_simplify_operands): Likewise.
7514 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7515 (constrain_operands, peep2_find_free_register): Likewise.
7516 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7517 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7518 * reload1.c (maybe_fix_stack_asms): Likewise.
7519 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7520 * targhooks.c (default_secondary_reload): Likewise.
7521 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7522 to EXTRA_CONSTRAINT_STR.
7523 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7524
7525 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7526
7527 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7528 (write_constraint_satisfied_p_array): ...this new function.
7529 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7530 an array.
7531 (write_insn_preds_c): Update accordingly.
7532
7533 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7534
7535 * genpreds.c (write_lookup_constraint): Rename to...
7536 (write_lookup_constraint_1): ...this.
7537 (write_lookup_constraint_array): New function.
7538 (write_tm_preds_h): Define lookup_constraint as an inline function
7539 that uses write_lookup_constraint_array where possible.
7540 (write_insn_preds_c): Update for the changes above.
7541
7542 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7543
7544 * doc/md.texi (regclass_for_constraint): Rename to...
7545 (reg_class_for_constraint): ...this.
7546 * genpreds.c (num_constraints, enum_order, register_start)
7547 (register_end, satisfied_start, memory_start, memory_end)
7548 (address_start, address_end): New variables.
7549 (add_constraint): Count the number of constraints.
7550 (choose_enum_order): New function.
7551 (write_enum_constraint_num): Iterate over enum_order.
7552 (write_regclass_for_constraint): Rename to...
7553 (write_reg_class_for_constraint_1): ...this and update output
7554 accordingly.
7555 (write_constraint_satisfied_p): Rename to...
7556 (write_constraint_satisfied_p_1): ...this and update output
7557 accordingly. Do nothing if all extra constraints are register
7558 constraints.
7559 (write_insn_extra_memory_constraint): Delete.
7560 (write_insn_extra_address_constraint): Delete.
7561 (write_range_function): New function.
7562 (write_tm_preds_h): Define constraint_satisfied_p and
7563 reg_class_for_constraint as inline functions that do a range check
7564 before calling the out-of-line function. Use write_range_function
7565 to implement insn_extra_{register,memory,address}_constraint,
7566 the first of which is new.
7567 (write_insn_preds_c): Update after above changes to write_* functions.
7568 (main): Call choose_enum_order.
7569
7570 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7571
7572 PR tree-optimization/61306
7573 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7574 expression instead of its size.
7575 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7576 false to prevent optimization when the result is unpredictable due to
7577 arithmetic right shift of signed type with highest byte is set.
7578 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7579 (init_symbolic_number): Likewise.
7580 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7581 when the result is unpredictable due to sign extension.
7582
7583 2014-06-11 Terry Guo <terry.guo@arm.com>
7584
7585 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7586 (*thumb1_addsi3): Ditto.
7587 (*thumb_subdi3): Ditto.
7588 (thumb1_subsi3_insn): Ditto.
7589 (*thumb_mulsi3): Ditto.
7590 (*thumb_mulsi3_v6): Ditto.
7591 (*thumb1_andsi3_insn): Ditto.
7592 (thumb1_bicsi3): Ditto.
7593 (*thumb1_iorsi3_insn): Ditto.
7594 (*thumb1_xorsi3_insn): Ditto.
7595 (*thumb1_ashlsi3): Ditto.
7596 (*thumb1_ashrsi3): Ditto.
7597 (*thumb1_lshrsi3): Ditto.
7598 (*thumb1_rotrsi3): Ditto.
7599 (*thumb1_negdi2): Ditto.
7600 (*thumb1_negsi2): Ditto.
7601 (*thumb1_abssi2): Ditto.
7602 (*thumb1_neg_abssi2): Ditto.
7603 (*thumb1_one_cmplsi2): Ditto.
7604 (*thumb1_zero_extendhisi2): Ditto.
7605 (*thumb1_zero_extendqisi2): Ditto.
7606 (*thumb1_zero_extendqisi2_v6): Ditto.
7607 (thumb1_extendhisi2): Ditto.
7608 (thumb1_extendqisi2): Ditto.
7609 (*thumb1_movdi_insn): Ditto.
7610 (*thumb1_movsi_insn): Ditto.
7611 (*thumb1_movhi_insn): Ditto.
7612 (thumb_movhi_clobber): Ditto.
7613 (*thumb1_movqi_insn): Ditto.
7614 (*thumb1_movhf): Ditto.
7615 (*thumb1_movsf_insn): Ditto.
7616 (*thumb_movdf_insn): Ditto.
7617 (movmem12b): Ditto.
7618 (movmem8b): Ditto.
7619 (cbranchqi4): Ditto.
7620 (cbranchsi4_insn): Ditto.
7621 (cbranchsi4_scratch): Ditto.
7622 (*negated_cbranchsi4): Ditto.
7623 (*tbit_cbranch): Ditto.
7624 (*tlobits_cbranch): Ditto.
7625 (*tstsi3_cbranch): Ditto.
7626 (*cbranchne_decr1): Ditto.
7627 (*addsi3_cbranch): Ditto.
7628 (*addsi3_cbranch_scratch): Ditto.
7629 (*thumb_cmpdi_zero): Ditto.
7630 (cstoresi_eq0_thumb1): Ditto.
7631 (cstoresi_ne0_thumb1): Ditto.
7632 (*cstoresi_eq0_thumb1_insn): Ditto.
7633 (*cstoresi_ne0_thumb1_insn): Ditto.
7634 (cstoresi_nltu_thumb1): Ditto.
7635 (cstoresi_ltu_thumb1): Ditto.
7636 (thumb1_addsi3_addgeu): Ditto.
7637 (*thumb_jump): Ditto.
7638 (*call_reg_thumb1_v5): Ditto.
7639 (*call_reg_thumb1): Ditto.
7640 (*call_value_reg_thumb1_v5): Ditto.
7641 (*call_value_reg_thumb1): Ditto.
7642 (*call_insn): Ditto.
7643 (*call_value_insn): Ditto.
7644 (thumb1_casesi_internal_pic): Ditto.
7645 (thumb1_casesi_dispatch): Ditto.
7646 (*thumb1_indirect_jump): Ditto.
7647 (prologue_thumb1_interwork): Ditto.
7648 (*epilogue_insns): Ditto.
7649 (consttable_1): Ditto.
7650 (consttable_2): Ditto.
7651 (tablejump): Ditto.
7652 (*thumb1_tablejump): Ditto.
7653 (thumb_eh_return): Ditto.
7654 (define_peephole2): Two of them are thumb1 only and got moved into
7655 new file thumb1.md.
7656 (define_split): Six of them are thumb1 only and got moved into new
7657 file thumb1.md.
7658 * config/arm/thumb1.md: New file comprised of above thumb1 only
7659 patterns.
7660
7661 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7662
7663 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7664 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7665 dependencies.
7666 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7667 (aarch64_crc_builtin_datum): New struct.
7668 (aarch64_crc_builtin_data): New.
7669 (aarch64_init_crc32_builtins): New function.
7670 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7671 (aarch64_crc32_expand_builtin): New.
7672 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7673 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7674 __ARM_FEATURE_CRC32 when appropriate.
7675 (TARGET_CRC32): Define.
7676 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7677 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7678 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7679 (aarch64_<crc_variant>): New pattern.
7680 * config/aarch64/arm_acle.h: New file.
7681 * config/aarch64/iterators.md (CRC): New int iterator.
7682 (crc_variant, crc_mode): New int attributes.
7683 * doc/aarch64-acle-intrinsics.texi: New file.
7684 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7685 Include aarch64-acle-intrinsics.texi.
7686
7687 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7688
7689 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7690 check for stores group of length 3.
7691 (vect_permute_store_chain): New permutations for stores group of
7692 length 3.
7693 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7694 of vec_perm_shuffle for the new permutations.
7695
7696 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7697
7698 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7699 table rewriting temporarily on targets not supporting ONE_ONLY.
7700
7701 2014-06-11 Richard Biener <rguenther@suse.de>
7702
7703 PR middle-end/61437
7704 Revert
7705 2014-06-04 Richard Biener <rguenther@suse.de>
7706
7707 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7708 TREE_PUBLIC and DECL_EXTERNAL decls.
7709
7710 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7711
7712 * varasm.c (set_implicit_section): New function.
7713 (resolve_unique_section): Use it to set implicit section
7714 for aliases, too.
7715 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7716 (default_function_section): Likewise.
7717 (decl_binds_to_current_def_p): Constify argument.
7718 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7719 * asan.c (asan_protect_global): Use
7720 symtab_get_node (decl)->implicit_section.
7721 * symtab.c (dump_symtab_base): Dump implicit sections.
7722 (verify_symtab_base): Verify sanity of sectoins and comdats.
7723 (symtab_resolve_alias): Alias share the section of its target.
7724 (set_section_1): New function.
7725 (symtab_node::set_section): Move here, recurse to aliases.
7726 (verify_symtab): Check for duplicated symtab lists.
7727 * tree-core.h (implicit_section_name_p): Remove.
7728 * tree-vect-data-refs.c: Include varasm.h.
7729 (vect_can_force_dr_alignment_p): Fix conditional on when
7730 decl bints to current definition; use
7731 symtab_get_node (decl)->implicit_section.
7732 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7733 * cgraph.h (struct symtab_node): Add implicit_section.
7734 (set_section): Rename to ...
7735 (set_section_for_node): ... this one.
7736 (set_section): Declare.
7737 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7738 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7739 input_overwrite_node, input_varpool_node): Stream implicit_section.
7740 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7741 removal; it will fail in LTO.
7742
7743 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7744
7745 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7746 Change second alternative type to f_mcr.
7747 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7748 and 12th alternatives' types to f_mcr and f_mrc.
7749 (*movdi_aarch64): Same for 12th and 13th alternatives.
7750 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7751 (aarch64_movtilow_tilow): Change type to fmov.
7752
7753 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7754
7755 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7756 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7757
7758 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7759
7760 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7761 New expander.
7762 (aarch64_sqrdmulh_lane<mode>): Likewise.
7763 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7764 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7765 (aarch64_sqdmulh_laneq<mode>): New expander.
7766 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7767 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7768 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7769 (aarch64_sqdmulh_lane<mode>): New expander.
7770 (aarch64_sqrdmulh_lane<mode>): Likewise.
7771 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7772 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7773 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7774 (aarch64_sqdmlal_laneq<mode>): Likewise.
7775 (aarch64_sqdmlsl_lane<mode>): Likewise.
7776 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7777 (aarch64_sqdmlal2_lane<mode>): Likewise.
7778 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7779 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7780 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7781 (aarch64_sqdmull_lane<mode>): Likewise.
7782 (aarch64_sqdmull_laneq<mode>): Likewise.
7783 (aarch64_sqdmull2_lane<mode>): Likewise.
7784 (aarch64_sqdmull2_laneq<mode>): Likewise.
7785
7786 2014-06-10 Richard Biener <rguenther@suse.de>
7787
7788 PR tree-optimization/61438
7789 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7790 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7791 insertion of IVs if running PRE.
7792 (eliminate): Adjust.
7793 (pass_pre::execute): Likewise.
7794 (pass_fre::execute): Likewise.
7795
7796 2014-06-10 Richard Biener <rguenther@suse.de>
7797
7798 PR middle-end/61456
7799 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7800 Do not use the main variant for the type comparison.
7801 (ncr_compar): Likewise.
7802 (nonoverlapping_component_refs_p): Likewise.
7803
7804 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7805
7806 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7807 REG_CFA_RESTORE mode.
7808
7809 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7810
7811 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7812 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7813 expand_vec_perm_pblendv.
7814
7815 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7816
7817 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7818 available.
7819 Simplify description of __crc32d and __crc32cd intrinsics.
7820 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7821 availability.
7822
7823 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7824
7825 PR lto/61334
7826 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7827 * config.in: Regenerate.
7828 * configure: Likewise.
7829
7830 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7831
7832 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7833 and public vars.
7834 (intersect_static_var_sets): Remove.
7835 (propagate): Do not prune local statics.
7836
7837 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7838
7839 PR fortran/60928
7840 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7841 Set lastprivate_firstprivate even if omp_private_outer_ref
7842 langhook returns true.
7843 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7844 langhook, call unshare_expr on new_var and call
7845 build_outer_var_ref to get the last argument.
7846
7847 2014-06-10 Marek Polacek <polacek@redhat.com>
7848
7849 PR c/60988
7850 * doc/extend.texi: Add cindex for transparent_union.
7851
7852 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7853
7854 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
7855 init_symbolic_number ().
7856
7857 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
7858
7859 PR middle-end/61141
7860 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
7861 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7862 (verify_rtl_sharing): Likewise.
7863
7864 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
7865
7866 PR c++/54442
7867 * tree.c (build_qualified_type): Use a canonical type for
7868 TYPE_CANONICAL.
7869
7870 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7871
7872 * config/arm/arm-modes.def: Remove XFmode.
7873
7874 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
7875
7876 PR target/61062
7877 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
7878 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7879 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
7880 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
7881 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
7882 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
7883 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
7884 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
7885 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
7886
7887 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
7888
7889 * tree-core.h (tree_decl_with_vis): Remove section_name.
7890
7891 2014-06-09 Kito Cheng <kito@0xlab.org>
7892
7893 * ira.c (ira): Don't call init_caller_save if LRA enabled
7894 since LRA use its own infrastructure to handle that.
7895
7896 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7897
7898 * symtab.c (dump_symtab_base): Update dumping.
7899 (symtab_make_decl_local): Clear only DECL_COMDAT.
7900 * tree-vect-data-refs.c (Check that variable is static before
7901 tampering with sections.
7902 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
7903 (cgraph_create_virtual_clone): Likewise.
7904 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
7905 (decl_section_name, set_decl_section_name): New accessors.
7906 (find_decls_types_r): Do not walk section name
7907 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
7908 (decl_comdat_group, decl_comdat_group_id): Constify.
7909 (decl_section_name, set_decl_section_name): Update.
7910 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
7911 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
7912 (cgraph_make_node_local_1): Clear section and comdat group.
7913 * cgraph.h (set_comdat_group): Sanity check.
7914 (get_section, set_section): New.
7915 * ipa-comdats.c (ipa_comdats): Use get_section.
7916 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
7917 * lto-streamer-out.c: Do not follow section names.
7918 * c-family/c-common.c (handle_section_attribute): Update.
7919 * lto-cgraph.c (lto_output_node): Output section.
7920 (lto_output_varpool_node): Likewise.
7921 (read_comdat_group): Rename to ...
7922 (read_identifier): ... this one.
7923 (read_string_cst): New function.
7924 (input_node, input_varpool_node): Input section names.
7925 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7926 (new_emutls_decl): Update.
7927 (secname_for_decl): Check section names only of static vars.
7928 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
7929 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
7930 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
7931 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
7932 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
7933 * config/mcore/mcore.c (mcore_unique_section): Likewise.
7934 * config/mips/mips.c (mips16_build_function_stub): Likewise.
7935 * config/v850/v850.c (v850_insert_attributes): Likewise.
7936 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
7937 Likewise.
7938 (h8300_handle_tiny_data_attribute): Likewise.
7939 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
7940 (bfin_handle_l2_attribute): Likewise.
7941
7942 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7943
7944 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
7945 remove static initializer.
7946
7947 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7948
7949 * varasm.c (use_blocks_for_decl_p): Check symbol table
7950 instead of alias attribute.
7951 (place_block_symbol): Recurse on aliases.
7952
7953 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7954
7955 * ipa-visibility.c: Include varasm.h
7956 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
7957
7958 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7959
7960 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
7961 outputting aliases.
7962
7963 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
7964
7965 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
7966 from test_insn into GGC space escape via SET_SRC.
7967
7968 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
7969
7970 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
7971 call statement, if any.
7972 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
7973 statements, if any. Tidy up.
7974
7975 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7976
7977 PR target/61431
7978 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
7979 iterators, VSX_D that handles 64-bit types, and VSX_LE that
7980 handles swapping the two 64-bit double words on little endian
7981 systems. Include V1TImode and optionally TImode in VSX_LE so that
7982 these types are properly swapped. Change all of the insns and
7983 splits that do the 64-bit swaps to use VSX_LE.
7984 (vsx_le_perm_load_<mode>): Likewise.
7985 (vsx_le_perm_store_<mode>): Likewise.
7986 (splitters for little endian memory operations): Likewise.
7987 (vsx_xxpermdi2_le_<mode>): Likewise.
7988 (vsx_lxvd2x2_le_<mode>): Likewise.
7989 (vsx_stxvd2x2_le_<mode>): Likewise.
7990
7991 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
7992
7993 PR target/61423
7994 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
7995 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
7996 and corresponding splitters. Zero extend general register
7997 or memory input operand to XMM temporary. Enable for
7998 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
7999 (floatunssi<mode>2): Update expander predicate.
8000
8001 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8002
8003 PR rtl-optimization/61325
8004 * lra-constraints.c (process_address_1): Check scale equal to one
8005 to prevent transformation: base + scale * index => base + new_reg.
8006
8007 2014-06-06 Richard Biener <rguenther@suse.de>
8008
8009 PR tree-optimization/59299
8010 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8011 a def operand.
8012 (nearest_common_dominator_of_uses): Likewise.
8013 (statement_sink_location): Adjust. Support sinking loads.
8014
8015 2014-06-06 Martin Jambor <mjambor@suse.cz>
8016
8017 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8018 (build_agg_jump_func_from_list): Likewise.
8019 (determine_known_aggregate_parts): Renamed to
8020 determine_locally_known_aggregate_parts. Moved some functionality
8021 to the two functions above, removed bound checks.
8022
8023 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8024
8025 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8026 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8027 (aarch64_progress_pointer): Likewise.
8028 (aarch64_copy_one_part_and_move_pointers): Likewise.
8029 (aarch64_expand_movmen): Likewise.
8030 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8031 * config/aarch64/aarch64.md (movmem<mode>): New.
8032
8033 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8034
8035 * targhooks.c (default_add_stmt_cost): Call target specific
8036 hook instead of default one.
8037
8038 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8039
8040 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8041 endianness instead of host endianness.
8042 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8043 comments.
8044
8045 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8046
8047 PR debug/53927
8048 * function.c (instantiate_decls): Process the saved static chain.
8049 (expand_function_start): If not optimizing, save the static chain
8050 onto the stack.
8051 * tree-nested.c (convert_all_function_calls): Always create the static
8052 chain for nested functions if not optimizing.
8053
8054 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8055
8056 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8057
8058 2014-06-06 Richard Biener <rguenther@suse.de>
8059
8060 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8061 (construct_init_block): Likewise.
8062 (construct_exit_block): Likewise.
8063 (pass_expand::execute): Likewise.
8064 * graphite.c (graphite_transforms): Replace check for current_loops
8065 with a check for > 1 loops.
8066 (pass_graphite_transforms::execute): Adjust.
8067 * ipa-split.c (split_function): Remove check for current_loops.
8068 * omp-low.c (expand_parallel_call): Likewise.
8069 (expand_omp_for_init_counts): Likewise.
8070 (extract_omp_for_update_vars): Likewise.
8071 (expand_omp_for_generic): Likewise.
8072 (expand_omp_sections): Likewise.
8073 (expand_omp_target): Likewise.
8074 * tracer.c (tail_duplicate): Likewise.
8075 (pass_tracer::execute): Likewise.
8076 * trans-mem.c (expand_transaction): Likewise.
8077 * tree-complex.c (expand_complex_div_wide): Likewise.
8078 * tree-eh.c (lower_resx): Likewise.
8079 (cleanup_empty_eh_merge_phis): Likewise.
8080 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8081 current_loops with a check for > 1 loops.
8082 (pass_predcom::execute): Adjust.
8083 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8084 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8085 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8086 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8087 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8088 * tree-switch-conversion.c (process_switch): Likewise.
8089 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8090 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8091 (execute_vrp): Likewise.
8092 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8093
8094 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8095
8096 * rtl.h (insn_location): Declare.
8097 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8098 with UNKNOWN_LOCATION.
8099 * emit-rtl.c (insn_location): New function.
8100 * final.c (notice_source_line): Check that the instruction has a
8101 location before retrieving it and use insn_location.
8102 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8103 * print-rtl.c (print_rtx): Likewise.
8104
8105 2014-06-06 Richard Biener <rguenther@suse.de>
8106
8107 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8108
8109 2014-06-06 Christian Bruel <christian.bruel@st.com>
8110
8111 PR tree-optimization/43934
8112 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8113 cost.
8114
8115 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8116
8117 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8118 return NO_REGS for extra address and memory constraints. Handle
8119 operands that match (or are equivalent to something that matches)
8120 extra constant constraints. Ignore other non-register operands.
8121
8122 2014-06-06 Alan Modra <amodra@gmail.com>
8123
8124 PR target/61300
8125 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8126 * doc/tm.texi: Regenerate.
8127 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8128 Use throughout in place of REG_PARM_STACK_SPACE.
8129 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8130 "incoming" param. Pass to rs6000_function_parms_need_stack.
8131 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8132 prototype_p when incoming. Use function decl when incoming
8133 to handle K&R style functions.
8134 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8135 (INCOMING_REG_PARM_STACK_SPACE): Define.
8136
8137 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8138
8139 PR target/52472
8140 * cfgexpand.c (expand_debug_expr): Use address space of nested
8141 TREE_TYPE for ADDR_EXPR and MEM_REF.
8142
8143 2014-06-05 Jeff Law <law@redhat.com>
8144
8145 PR tree-optimization/61289
8146 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8147 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8148 looking for those which match LHS. All callers changed.
8149 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8150 parameters and code which manipulated them. All callers changed.
8151 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8152 and DST_MAP parameters. Simplify invalidation code by just calling
8153 invalidate_equivalences. All callers changed.
8154 (thread_across_edge): Simplify now that we don't need to maintain
8155 the map of equivalences to invalidate.
8156
8157 2014-06-05 Kai Tietz <ktietz@redhat.com>
8158 Richard Henderson <rth@redhat.com>
8159
8160 PR target/46219
8161 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8162 checking for !TARGET_X32.
8163 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8164 (sibcall_intern): New define_insn, plus required peepholes.
8165 (sibcall_pop_intern): Likewise.
8166 (sibcall_value_intern): Likewise.
8167 (sibcall_value_pop_intern): Likewise.
8168
8169 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8170
8171 * tree-inline.c (tree_function_versioning): Check DF info existence
8172 before accessing it.
8173
8174 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8175
8176 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8177 frame_size.
8178 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8179 aarch64_frame hard_fp_offset and frame_size.
8180 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8181 frame_size; remove original_frame_size.
8182 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8183 (aarch64_initial_elimination_offset): Remove frame_size and
8184 offset. Use aarch64_frame frame_size.
8185
8186 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8187 Jiong Wang <jiong.wang@arm.com>
8188 Renlin <renlin.li@arm.com>
8189
8190 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8191 initialization of R30 offset. Update offset. Iterate core
8192 regisers upto X30. Remove X29, X30 specific code.
8193
8194 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8195 Jiong Wang <jiong.wang@arm.com>
8196
8197 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8198 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8199 (aarch64_register_saved_on_entry): Adjust test.
8200
8201 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8202
8203 * config/aarch64/aarch64.h (machine_function): Move
8204 saved_varargs_size from here...
8205 (aarch64_frame): ... to here.
8206
8207 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8208 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8209 (aarch64_initial_elimination_offset)
8210 (aarch64_setup_incoming_varargs): Adjust location of
8211 saved_varargs_size.
8212
8213 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8214
8215 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8216 layout comment.
8217
8218 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8219 Prachi Godbole <Prachi.Godbole@imgtec.com>
8220
8221 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8222 mips32r5 entry to use PROCESSOR_P5600.
8223 * config/mips/mips-tables.opt: Regenerate.
8224 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8225 * config/mips/mips.c (mips_fmadd_bypass): New function.
8226 (mips_rtx_cost_data): Add costs for p5600.
8227 (mips_issue_rate): Add support for p5600.
8228 (mips_multipass_dfa_lookahead): Likewise.
8229 * config/mips/mips.h (TUNE_P5600): New define.
8230 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8231 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8232 * config/mips/mips.md: Include p5600.md.
8233 (processor): Add p5600.
8234 * config/mips/p5600.md: New file.
8235
8236 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8237
8238 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8239 * config/i386/predicates.md (palignr_operand): New.
8240 Indicates if permutation is suitable for palignr instruction.
8241
8242 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8243
8244 PR tree-optimization/61319
8245 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8246 stmt belongs to loop.
8247
8248 2014-06-05 Richard Biener <rguenther@suse.de>
8249
8250 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8251 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8252 (lookup_tmp_var): Adjust.
8253 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8254
8255 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8256
8257 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8258
8259 2014-06-05 Marek Polacek <polacek@redhat.com>
8260
8261 PR c/49706
8262 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8263
8264 2014-06-04 Tom de Vries <tom@codesourcery.com>
8265
8266 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8267 CONST_INT.
8268
8269 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8270
8271 PR tree-optimization/61385
8272 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8273
8274 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8275
8276 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8277 changed to use fatal_error.
8278 (main): Ensure lto_wrapper_cleanup is run atexit.
8279
8280 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8281
8282 * lra-constraints.c (valid_address_p): Move earlier in file.
8283 (address_eliminator): New structure.
8284 (satisfies_memory_constraint_p): New function.
8285 (satisfies_address_constraint_p): Likewise.
8286 (process_alt_operands, process_address, curr_insn_transform): Use them.
8287
8288 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8289
8290 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8291 const pointer.
8292 (target_lra_int, default_target_lra_int, this_target_lra_int)
8293 (op_alt_data): Delete.
8294 * lra.h (lra_init): Delete.
8295 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8296 (init_insn_code_data_once): Remove op_alt_data handling.
8297 (finish_insn_code_data_once): Likewise.
8298 (init_op_alt_data): Delete.
8299 (get_static_insn_data): Initialize operand_alternative to null.
8300 (free_insn_recog_data): Cast operand_alternative before freeing it.
8301 (setup_operand_alternative): Take the operand_alternative as
8302 parameter and assume it isn't already cached in the static
8303 insn data.
8304 (lra_set_insn_recog_data): Update accordingly.
8305 (lra_init): Delete.
8306 * ira.c (ira_init): Don't call lra_init.
8307 * target-globals.h (this_target_lra_int): Declare.
8308 (target_globals): Remove lra_int.
8309 (restore_target_globals): Update accordingly.
8310 * target-globals.c: Don't include lra-int.h.
8311 (default_target_globals, save_target_globals): Remove lra_int.
8312
8313 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8314
8315 * recog.h (operand_alternative): Convert reg_class, reject,
8316 matched and matches into bitfields.
8317 (preprocess_constraints): New overload.
8318 (preprocess_insn_constraints): New function.
8319 (preprocess_constraints): Take the insn as parameter.
8320 (recog_op_alt): Change into a pointer.
8321 (target_recog): Add x_op_alt.
8322 * recog.c (asm_op_alt): New variable.
8323 (recog_op_alt): Change into a pointer.
8324 (preprocess_constraints): New overload, replacing the old function
8325 definition with one that doesn't use global state.
8326 (preprocess_insn_constraints): New function.
8327 (preprocess_constraints): Use them. Take the insn as parameter.
8328 Use asm_op_alt for asms.
8329 (recog_init): Free existing x_op_alt entries.
8330 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8331 pointer const.
8332 (make_early_clobber_and_input_conflicts): Likewise.
8333 (process_bb_node_lives): Pass the insn to process_constraints.
8334 * reg-stack.c (check_asm_stack_operands): Likewise.
8335 (subst_asm_stack_regs): Likewise.
8336 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8337 * regrename.c (build_def_use): Likewise.
8338 * sched-deps.c (sched_analyze_insn): Likewise.
8339 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8340 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8341 (note_invalid_constants): Likewise.
8342 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8343 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8344 const.
8345
8346 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8347
8348 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8349 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8350 alternatives.
8351 (make_early_clobber_and_input_conflicts): Likewise.
8352 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8353
8354 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8355
8356 * recog.h (alternative_class): New function.
8357 (which_op_alt): Return a const recog_op_alt.
8358 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8359 (subst_asm_stack_regs): Likewise.
8360 * config/arm/arm.c (note_invalid_constants): Likewise.
8361 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8362 the operand_alternative; use alternative class instead.
8363 * sel-sched.c (get_reg_class): Likewise.
8364 * regrename.c (build_def_use): Likewise.
8365 (hide_operands, restore_operands, record_out_operands): Update type
8366 accordingly.
8367
8368 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8369
8370 * recog.h (recog_op_alt): Convert to a flat array.
8371 (which_op_alt): New function.
8372 * recog.c (recog_op_alt): Convert to a flat array.
8373 (preprocess_constraints): Update accordingly, grouping all
8374 operands of the same alternative together, rather than the
8375 other way around.
8376 * ira-lives.c (check_and_make_def_conflict): Likewise.
8377 (make_early_clobber_and_input_conflicts): Likewise.
8378 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8379 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8380 (subst_asm_stack_regs): Likewise.
8381 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8382 * regrename.c (hide_operands, record_out_operands): Likewise.
8383 (build_def_use): Likewise.
8384 * sel-sched.c (get_reg_class): Likewise.
8385 * config/arm/arm.c (note_invalid_constants): Likewise.
8386
8387 2014-06-04 Jason Merrill <jason@redhat.com>
8388
8389 PR c++/51253
8390 PR c++/61382
8391 * gimplify.c (gimplify_arg): Non-static.
8392 * gimplify.h: Declare it.
8393
8394 2014-06-04 Richard Biener <rguenther@suse.de>
8395
8396 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8397 TREE_PUBLIC and DECL_EXTERNAL decls.
8398
8399 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8400
8401 * regcprop.c (copyprop_hardreg_forward_1): Account for
8402 HARD_REGNO_CALL_PART_CLOBBERED.
8403
8404 2014-06-04 Richard Biener <rguenther@suse.de>
8405
8406 * configure.ac: Check whether the underlying type of int64_t
8407 is long or long long.
8408 * configure: Regenerate.
8409 * config.in: Likewise.
8410 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8411 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8412
8413 2014-06-04 Richard Biener <rguenther@suse.de>
8414
8415 PR tree-optimization/60098
8416 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8417 we hit a kill.
8418 (dse_optimize_stmt): Simplify, now that we found a kill
8419 earlier.
8420
8421 2014-06-04 Richard Biener <rguenther@suse.de>
8422
8423 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8424 of accesses with non-invariant address.
8425
8426 2014-06-04 Martin Liska <mliska@suse.cz>
8427
8428 * cgraph.h (cgraph_make_wrapper): New function introduced.
8429 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8430 * ipa-inline.h (inline_analyze_function): The function is global.
8431 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8432
8433 2014-06-04 Martin Liska <mliska@suse.cz>
8434
8435 * tree.h (private_lookup_attribute_starting): New function.
8436 (lookup_attribute_starting): Likewise.
8437 * tree.c (private_lookup_attribute_starting): Likewise.
8438
8439 2014-06-04 Martin Liska <mliska@suse.cz>
8440
8441 * cgraph.h (expand_thunk): New argument added.
8442 (address_taken_from_non_vtable_p): New global function.
8443 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8444 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8445 * cgraphunit.c (analyze_function): Likewise.
8446 (assemble_thunks_and_aliases): Argument added to call.
8447 (expand_thunk): New argument forces to produce GIMPLE thunk.
8448
8449 2014-06-04 Martin Liska <mliska@suse.cz>
8450
8451 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8452 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8453 * profile.c (branch_prob): Likewise.
8454
8455 2014-06-04 Martin Jambor <mjambor@suse.cz>
8456
8457 PR ipa/61340
8458 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8459 handler for switch on an ipa_ref_use enum.
8460 * ipa-reference.c (analyze_function): Likewise.
8461
8462 2014-06-04 Kai Tietz <ktietz@redhat.com>
8463
8464 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8465 from old call-instruction.
8466
8467 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8468
8469 * config/aarch64/aarch64.c (aarch64_classify_address)
8470 (aarch64_legitimize_reload_address): Support full addressing modes
8471 for vector modes.
8472 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8473 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8474
8475 2014-06-03 Andrew Pinski <apinski@cavium.com>
8476
8477 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8478 for OP0.
8479
8480 2014-06-03 Andrew Pinski <apinski@cavium.com>
8481
8482 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8483 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8484
8485 2014-06-03 Kai Tietz <ktietz@redhat.com>
8486
8487 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8488 for 64-bit ms-abi.
8489
8490 2014-06-03 Dehao Chen <dehao@google.com>
8491
8492 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8493 the same loop.
8494
8495 2014-06-03 Marek Polacek <polacek@redhat.com>
8496
8497 PR c/60439
8498 * doc/invoke.texi: Document -Wswitch-bool.
8499 * function.c (stack_protect_epilogue): Cast controlling expression of
8500 the switch to int.
8501 * gengtype.c (walk_type): Generate switch expression with its
8502 controlling expression cast to int.
8503
8504 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8505
8506 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8507 and attiny841.
8508 * config/avr/avr-tables.opt: Regenerate.
8509 * config/avr/t-multilib: Regenerate.
8510 * doc/avr-mmcu.texi: Regenerate.
8511
8512 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8513 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8514
8515 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8516 (ata6617c, ata664251): Add new avr35 devices.
8517 (ata6612c): Add new avr4 device.
8518 (ata6613c, ata6614q): Add new avr5 devices.
8519 * config/avr/avr-tables.opt: Regenerate.
8520 * config/avr/t-multilib: Regenerate.
8521 * doc/avr-mmcu.texi: Regenerate.
8522
8523 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8524
8525 * gcc/config/aarch64/aarch64-builtins.c
8526 (aarch64_types_binop_ssu_qualifiers): New static data.
8527 (TYPES_BINOP_SSU): Define.
8528 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8529 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8530 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8531 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8532 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8533 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8534 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8535 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8536 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8537 suffix to builtin function name, remove cast.
8538 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8539 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8540 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8541
8542 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8543
8544 * gcc/config/aarch64/aarch64-builtins.c
8545 (aarch64_types_binop_uus_qualifiers,
8546 aarch64_types_shift_to_unsigned_qualifiers,
8547 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8548 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8549 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8550 sqshlu_n, uqshl_n): Update qualifiers.
8551 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8552 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8553 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8554 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8555 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8556 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8557 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8558 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8559 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8560 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8561 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8562 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8563 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8564 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8565 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8566 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8567 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8568 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8569 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8570 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8571 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8572 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8573 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8574 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8575 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8576 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8577 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8578
8579 2014-06-03 Teresa Johnson <tejohnson@google.com>
8580
8581 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8582
8583 2014-06-02 Jason Merrill <jason@redhat.com>
8584
8585 PR c++/61020
8586 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8587
8588 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8589
8590 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8591 location == 0.
8592
8593 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8594
8595 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8596 New pattern.
8597 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8598 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8599 * config/aarch64/iterators.md (REVERSE): New iterator.
8600 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8601 (rev_op): New int_attribute.
8602 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8603 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8604 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8605 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8606 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8607 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8608 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8609 Replace temporary __asm__ with __builtin_shuffle.
8610
8611 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8612
8613 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8614 mips64r5.
8615 * config/mips/mips-tables.opt: Regenerate.
8616 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8617 to use mips_isa_rev rather than ISA_MIPS32R2.
8618 * config/mips/mips.h (ISA_MIPS32R3): New define.
8619 (ISA_MIPS32R5): New define.
8620 (ISA_MIPS64R3): New define.
8621 (ISA_MIPS64R5): New define.
8622 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8623 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8624 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8625 and mips64r5.
8626 (MIPS_ISA_SYNCI_SPEC): Likewise.
8627 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8628 (LINK_SPEC): Added mips32r3 and mips32r5.
8629 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8630 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8631 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8632 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8633 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8634 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8635 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8636
8637 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8638
8639 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8640 options.
8641 * config/mips/mips.opt (mxpa): New option.
8642 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8643 assembler.
8644
8645 2014-06-03 Martin Jambor <mjambor@suse.cz>
8646
8647 PR ipa/61160
8648 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8649 thunks.
8650
8651 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8652
8653 PR tree-optimization/61328
8654 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8655 initialization from find_bswap_or_nop_1.
8656 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8657 in source_expr2 before using the size value the function sets. Also
8658 make use of init_symbolic_number () in both the old place and
8659 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8660 doing recursion in the GIMPLE_BINARY_RHS case.
8661
8662 2014-06-03 Richard Biener <rguenther@suse.de>
8663
8664 PR tree-optimization/61383
8665 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8666 stmts can't trap.
8667
8668 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8669
8670 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8671 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8672 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8673 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8674 in this file.
8675 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8676 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8677 * system.h: ...here and make it unconditional.
8678 * target.def (conditional_register_usage): Mention
8679 define_register_constraint instead of old-style constraint macros.
8680 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8681 * doc/tm.texi: Regenerate.
8682 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8683 protected by !USE_MD_CONSTRAINTS.
8684 * config/frv/frv.md: Remove quote from old version of documentation.
8685 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8686 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8687 CONST_DOUBLE_OK_FOR_LETTER.
8688 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8689
8690 2014-06-02 Andrew Pinski <apinski@cavium.com>
8691
8692 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8693 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8694 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8695 file whose name depends on -mabi= and -mbig-endian.
8696 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8697 Handle LP64 better and handle ilp32 too.
8698 (MULTILIB_OPTIONS): Delete.
8699 (MULTILIB_DIRNAMES): Delete.
8700
8701 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8702
8703 * expr.h: Remove prototypes of functions defined in builtins.c.
8704 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8705 Remove prototypes of functions defined in builtins.c.
8706 * builtins.h: Update prototype list to include all exported functions.
8707 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8708 no_c99_libc_has_function): Move to targhooks.c
8709 (build_string_literal, build_call_expr_loc_array,
8710 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8711 to tree.c.
8712 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8713 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8714 no_c99_libc_has_function): Relocate from builtins.c.
8715 * tree.c: Include builtins.h.
8716 (build_call_expr_loc_array, build_call_expr_loc_vec,
8717 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8718 from builtins.c.
8719 * fold-const.h (fold_fma): Move prototype to builtins.h.
8720 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8721 * asan.c: Include builtins.h.
8722 * cfgexpand.c: Likewise.
8723 * convert.c: Likewise.
8724 * emit-rtl.c: Likewise.
8725 * except.c: Likewise.
8726 * expr.c: Likewise.
8727 * fold-const.c: Likewise.
8728 * gimple-fold.c: Likewise.
8729 * gimple-ssa-strength-reduction.c: Likewise.
8730 * gimplify.c: Likewise.
8731 * ipa-inline.c: Likewise.
8732 * ipa-prop.c: Likewise.
8733 * lto-streamer-out.c: Likewise.
8734 * stmt.c: Likewise.
8735 * tree-inline.c: Likewise.
8736 * tree-object-size.c: Likewise.
8737 * tree-sra.c: Likewise.
8738 * tree-ssa-ccp.c: Likewise.
8739 * tree-ssa-forwprop.c: Likewise.
8740 * tree-ssa-loop-ivcanon.c: Likewise.
8741 * tree-ssa-loop-ivopts.c: Likewise.
8742 * tree-ssa-math-opts.c: Likewise.
8743 * tree-ssa-reassoc.c: Likewise.
8744 * tree-ssa-threadedge.c: Likewise.
8745 * tree-streamer-in.c: Likewise.
8746 * tree-vect-data-refs.c: Likewise.
8747 * tree-vect-patterns.c: Likewise.
8748 * tree-vect-stmts.c: Likewise.
8749 * config/aarch64/aarch64.c: Likewise.
8750 * config/alpha/alpha.c: Likewise.
8751 * config/arc/arc.c: Likewise.
8752 * config/arm/arm.c: Likewise.
8753 * config/avr/avr.c: Likewise.
8754 * config/bfin/bfin.c: Likewise.
8755 * config/c6x/c6x.c: Likewise.
8756 * config/cr16/cr16.c: Likewise.
8757 * config/cris/cris.c: Likewise.
8758 * config/epiphany/epiphany.c: Likewise.
8759 * config/fr30/fr30.c: Likewise.
8760 * config/frv/frv.c: Likewise.
8761 * config/h8300/h8300.c: Likewise.
8762 * config/i386/i386.c: Likewise.
8763 * config/i386/winnt.c: Likewise.
8764 * config/ia64/ia64.c: Likewise.
8765 * config/iq2000/iq2000.c: Likewise.
8766 * config/lm32/lm32.c: Likewise.
8767 * config/m32c/m32c.c: Likewise.
8768 * config/m32r/m32r.c: Likewise.
8769 * config/m68k/m68k.c: Likewise.
8770 * config/mcore/mcore.c: Likewise.
8771 * config/mep/mep.c: Likewise.
8772 * config/microblaze/microblaze.c: Likewise.
8773 * config/mips/mips.c: Likewise.
8774 * config/mmix/mmix.c: Likewise.
8775 * config/mn10300/mn10300.c: Likewise.
8776 * config/moxie/moxie.c: Likewise.
8777 * config/msp430/msp430.c: Likewise.
8778 * config/nds32/nds32.c: Likewise.
8779 * config/pa/pa.c: Likewise.
8780 * config/pdp11/pdp11.c: Likewise.
8781 * config/picochip/picochip.c: Likewise.
8782 * config/rl78/rl78.c: Likewise.
8783 * config/rs6000/rs6000.c: Likewise.
8784 * config/rx/rx.c: Likewise.
8785 * config/s390/s390.c: Likewise.
8786 * config/score/score.c: Likewise.
8787 * config/sh/sh.c: Likewise.
8788 * config/sparc/sparc.c: Likewise.
8789 * config/spu/spu.c: Likewise.
8790 * config/stormy16/stormy16.c: Likewise.
8791 * config/tilegx/tilegx.c: Likewise.
8792 * config/tilepro/tilepro.c: Likewise.
8793 * config/v850/v850.c: Likewise.
8794 * config/vax/vax.c: Likewise.
8795 * config/xtensa/xtensa.c: Likewise.
8796
8797 2014-06-02 Jeff Law <law@redhat.com>
8798
8799 PR rtl-optimization/61094
8800 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8801 was marked as do_no_reextend. If a copy is needed to eliminate
8802 an extension, then mark it as do_not_reextend.
8803
8804 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8805
8806 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8807
8808 2014-06-02 Richard Henderson <rth@redhat.com>
8809
8810 PR target/61336
8811 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8812 addresses inside asms. Use output_operand_lossage instead of
8813 gcc_unreachable.
8814
8815 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8816
8817 PR target/61239
8818 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8819 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8820
8821 2014-06-02 Tom de Vries <tom@codesourcery.com>
8822
8823 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8824 case that x has VOIDmode.
8825
8826 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8827
8828 * varasm.c (copy_constant): Delete function.
8829 (build_constant_desc): Don't call it.
8830
8831 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8832
8833 PR target/61154
8834 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8835 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8836 with immediate_operand.
8837
8838 2014-06-02 Andreas Schwab <schwab@suse.de>
8839
8840 * config/ia64/ia64.c
8841 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8842 pending_data_specs first.
8843
8844 2014-06-02 Richard Biener <rguenther@suse.de>
8845
8846 PR tree-optimization/61378
8847 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8848 valueized_anything.
8849
8850 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
8851
8852 * config/i386/constraints.md (Bw): Rename from 'w'.
8853 (Bz): Rename from 'z'.
8854 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
8855
8856 2014-06-01 Kai Tietz <ktietz@redhat.com>
8857
8858 PR target/61377
8859 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
8860 * config/i386/i386.md (sibcall_insn_operand): Use Bs
8861 instead of m constraint.
8862
8863 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
8864
8865 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
8866 a separate alternative where the scratch operand 2 is marked as
8867 early clobber.
8868
8869 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
8870
8871 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8872 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
8873 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
8874 and __builtins_arm_get_fpscr.
8875 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8876 __builtins_arm_get_fpscr.
8877 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
8878 __builtins_arm_ldfpscr.
8879 (arm_atomic_assign_expand_fenv): New function.
8880 * config/arm/vfp.md (set_fpscr): New pattern.
8881 (get_fpscr) : Likewise.
8882 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
8883 VUNSPEC_SET_FPSCR.
8884 * doc/extend.texi (AARCH64 Built-in Functions) : Document
8885 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
8886
8887 2014-05-30 Jakub Jelinek <jakub@redhat.com>
8888
8889 * asan.c (report_error_func): Add SLOW_P argument, use
8890 BUILT_IN_ASAN_*_N if set.
8891 (build_check_stmt): Likewise.
8892 (instrument_derefs): If T has insufficient alignment,
8893 force same handling as for odd sizes.
8894
8895 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
8896 BUILT_IN_ASAN_REPORT_STORE_N): New.
8897 * asan.c (struct asan_mem_ref): Change access_size type to
8898 HOST_WIDE_INT.
8899 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
8900 update_mem_ref_hash_table): Likewise.
8901 (asan_mem_ref_hasher::hash): Hash in a HWI.
8902 (report_error_func): Change size_in_bytes argument to HWI.
8903 Use *_N builtins if size_in_bytes is larger than 16 or not power of
8904 two.
8905 (build_shadow_mem_access): New function.
8906 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
8907 Handle size_in_bytes not power of two or larger than 16.
8908 (instrument_derefs): Don't give up if size_in_bytes is not
8909 power of two or is larger than 16.
8910
8911 2014-05-30 Kai Tietz <ktietz@redhat.com>
8912
8913 PR target/60104
8914 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
8915 for sibling-tail-calls.
8916 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
8917 to its use.
8918 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
8919 (sibcall_insn_operand): Add check for sibcall_memory_operand.
8920
8921 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8922
8923 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
8924 * config/avr/avr-tables.opt: Regenerate.
8925 * config/avr/t-multilib: Regenerate.
8926 * doc/avr-mmcu.texi: Regenerate.
8927
8928 2014-05-30 Ian Lance Taylor <iant@google.com>
8929
8930 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
8931 target("sse").
8932
8933 2014-05-30 Tom de Vries <tom@codesourcery.com>
8934
8935 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8936 Redefine as true.
8937
8938 2014-05-30 Tom de Vries <tom@codesourcery.com>
8939
8940 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8941 * lra.c (initialize_lra_reg_info_element): Add init of
8942 actual_call_used_reg_set field.
8943 (lra): Call lra_create_live_ranges before lra_inheritance for
8944 -fuse-caller-save.
8945 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
8946 -fuse-caller-save.
8947 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
8948 instead of call_used_reg_set for -fuse-caller-save.
8949 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
8950
8951 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8952
8953 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
8954 to mov_imm.
8955 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
8956
8957 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
8958
8959 * ira.c (ira_get_dup_out_num): Check for output operands at
8960 the start of the loop. Handle cases where an included alternative
8961 follows an excluded one.
8962
8963 2014-05-29 Mike Stump <mikestump@comcast.net>
8964
8965 PR debug/61352
8966 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
8967 post ld passes when lto is used.
8968
8969 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
8970
8971 PR rtl-optimization/61325
8972 * lra-constraints.c (process_address): Rename to process_address_1.
8973 (process_address): New function.
8974
8975 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
8976
8977 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
8978 TYPES_BINOPV): New static data.
8979 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
8980 New builtin.
8981 * config/aarch64/aarch64-simd.md (aarch64_ext,
8982 aarch64_im_lane_boundsi): New patterns.
8983 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
8984 patterns for EXT.
8985 (aarch64_evpc_ext): New function.
8986
8987 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
8988
8989 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
8990 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
8991 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
8992 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
8993 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
8994
8995 2014-05-29 Tom de Vries <tom@codesourcery.com>
8996
8997 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
8998
8999 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9000 Richard Sandiford <rdsandiford@googlemail.com>
9001
9002 * arm/iterators.md (shiftable_ops): New code iterator.
9003 (t2_binop0, arith_shift_insn): New code attributes.
9004 * arm/predicates.md (shift_nomul_operator): New predicate.
9005 * arm/arm.md (insn_enabled): Delete.
9006 (enabled): Remove insn_enabled test.
9007 (*arith_shiftsi): Delete. Replace with ...
9008 (*<arith_shift_insn>_multsi): ... new pattern.
9009 (*<arith_shift_insn>_shiftsi): ... new pattern.
9010 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9011
9012 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9013 Tom de Vries <tom@codesourcery.com>
9014
9015 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9016 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9017 clobber.
9018 (mips_split_call): Use POST_CALL_TMP_REG.
9019 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9020
9021 2014-05-29 Tom de Vries <tom@codesourcery.com>
9022
9023 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9024 with #ifdef STACK_REGS.
9025
9026 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9027
9028 * varasm.c (get_variable_section): Walk aliases.
9029 (place_block_symbol): Walk aliases.
9030
9031 2014-05-28 Tom de Vries <tom@codesourcery.com>
9032
9033 Revert:
9034 2014-05-28 Tom de Vries <tom@codesourcery.com>
9035
9036 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9037 * lra.c (initialize_lra_reg_info_element): Add init of
9038 actual_call_used_reg_set field.
9039 (lra): Call lra_create_live_ranges before lra_inheritance for
9040 -fuse-caller-save.
9041 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9042 -fuse-caller-save.
9043 * lra-constraints.c (need_for_call_save_p): Use
9044 actual_call_used_reg_set instead of call_used_reg_set for
9045 -fuse-caller-save.
9046 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9047
9048 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9049
9050 * doc/md.texi: Document that the % constraint character must
9051 be at the beginning of the string.
9052 * genoutput.c (validate_insn_alternatives): Check that '=',
9053 '+' and '%' only appear at the beginning of a constraint.
9054 * ira.c (commutative_constraint_p): Delete.
9055 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9056 at the start of the string.
9057 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9058 duplicate '='s.
9059 * config/arm/neon.md (bicdi3_neon): Likewise.
9060 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9061 (slt_si, sltu_si): Likewise.
9062 * config/vax/vax.md (sbcdi3): Likewise.
9063 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9064 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9065 (mul64): Move '%' to beginning of constraint.
9066 * config/arm/arm.md (*xordi3_insn): Likewise.
9067 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9068 (xorsi3): Likewise.
9069
9070 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9071
9072 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9073
9074 2014-05-28 Jason Merrill <jason@redhat.com>
9075
9076 PR c++/47202
9077 * cgraph.h (symtab_node::get_comdat_group_id): New.
9078 * cgraphunit.c (analyze_functions): Call it.
9079 * symtab.c (dump_symtab_node): Likewise.
9080 * tree.c (decl_comdat_group_id): New.
9081 * tree.h: Declare it.
9082 * lto-streamer-out.c (write_symbol): Use it.
9083 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9084
9085 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9086
9087 PR bootstrap/PR61146
9088 * wide-int.cc: Do not include longlong.h when compiling with clang.
9089
9090 2014-05-28 Richard Biener <rguenther@suse.de>
9091
9092 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9093 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9094 (vrp_visit_assignment_or_call): Print less vertical space.
9095 (vrp_visit_stmt): Likewise.
9096 (vrp_visit_phi_node): Likewise. For a PHI argument with
9097 VR_VARYING range consider recording it as copy.
9098
9099 2014-05-28 Richard Biener <rguenther@suse.de>
9100
9101 Revert
9102 2014-05-28 Richard Biener <rguenther@suse.de>
9103
9104 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9105
9106 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9107
9108 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9109 sufficiently aligned and an offset is used at the same time.
9110 (expand_expr_real_1): Likewise.
9111
9112 2014-05-28 Richard Biener <rguenther@suse.de>
9113
9114 PR middle-end/61045
9115 * fold-const.c (fold_comparison): When folding
9116 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9117 the sign of the remaining constant operand stays the same.
9118
9119 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9120
9121 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9122 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9123 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9124 to the assembler.
9125 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9126 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9127 (m32bit-doubles) Likewise.
9128 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9129 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9130 option for RL78.
9131
9132 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9133
9134 * configure.ac ($gcc_cv_ld_clearcap): New test.
9135 * configure: Regenerate.
9136 * config.in: Regenerate.
9137 * config/sol2.opt (mclear-hwcap): New option.
9138 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9139 * config/sol2-clearcap.map: Moved here from
9140 testsuite/gcc.target/i386/clearcap.map.
9141 * config/sol2-clearcapv2.map: Move here from
9142 gcc.target/i386/clearcapv2.map.
9143 * config/t-sol2 (install): Depend on install-clearcap-map.
9144 (install-clearcap-map): New target.
9145 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9146 -mclear-hwcap.
9147
9148 2014-05-28 Richard Biener <rguenther@suse.de>
9149
9150 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9151 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9152 ... here and remove the rest.
9153 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9154
9155 2014-05-28 Richard Biener <rguenther@suse.de>
9156
9157 PR tree-optimization/61335
9158 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9159 new range fails, drop to varying.
9160
9161 2014-05-28 Olivier Hainque <hainque@adacore.com>
9162
9163 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9164 (CPP_SPEC): Add entry for -mcpu=8548.
9165 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9166 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9167
9168 2014-05-28 Tom de Vries <tom@codesourcery.com>
9169
9170 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9171 * lra.c (initialize_lra_reg_info_element): Add init of
9172 actual_call_used_reg_set field.
9173 (lra): Call lra_create_live_ranges before lra_inheritance for
9174 -fuse-caller-save.
9175 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9176 -fuse-caller-save.
9177 * lra-constraints.c (need_for_call_save_p): Use
9178 actual_call_used_reg_set instead of call_used_reg_set for
9179 -fuse-caller-save.
9180 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9181
9182 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9183 Tom de Vries <tom@codesourcery.com>
9184
9185 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9186 to gccoptlist.
9187 (@item -fuse-caller-save): New item.
9188
9189 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9190 Tom de Vries <tom@codesourcery.com>
9191
9192 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9193 OPT_fuse_caller_save.
9194
9195 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9196 Tom de Vries <tom@codesourcery.com>
9197
9198 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9199 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9200 get_call_reg_set_usage.
9201 * resource.c (mark_set_resources, mark_target_live_regs): Use
9202 get_call_reg_set_usage.
9203 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9204 field.
9205 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9206 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9207 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9208 * ira-build.c (ira_create_allocno): Init
9209 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9210 (create_cap_allocno, propagate_allocno_info)
9211 (propagate_some_info_from_allocno)
9212 (copy_info_to_removed_store_destinations): Handle
9213 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9214 * ira-costs.c (ira_tune_allocno_costs): Use
9215 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9216
9217 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9218 Tom de Vries <tom@codesourcery.com>
9219
9220 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9221 and function_used_regs_valid fields.
9222 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9223 find_all_hard_reg_sets.
9224 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9225 (get_call_reg_set_usage): New function.
9226 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9227 * regs.h (get_call_reg_set_usage): Declare.
9228
9229 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9230
9231 PR libgcc/61152
9232 * config/dbx.h (License): Add Runtime Library Exception.
9233 * config/newlib-stdint.h (License): Same.
9234 * config/rtems.h (License): Same
9235 * config/initfini-array.h (License): Same
9236 * config/v850/v850.h (License): Same.
9237 * config/v850/v850-opts.h (License): Same
9238 * config/v850/rtems.h (License): Same.
9239
9240 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9241
9242 PR target/61044
9243 * doc/extend.texi (Local Labels): Note that label differences are
9244 not supported for AVR.
9245
9246 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9247 Olivier Hainque <hainque@adacore.com>
9248
9249 * rtl.h (set_for_reg_notes): Declare.
9250 * emit-rtl.c (set_for_reg_notes): New function.
9251 (set_unique_reg_note): Use it.
9252 * optabs.c (add_equal_note): Likewise
9253
9254 2014-05-27 Andrew Pinski <apinski@cavium.com>
9255
9256 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9257 Use <w> for the register in assembly template.
9258 (stack_protect_test): Use the mode of operands[0] for the result.
9259 (stack_protect_test_<mode>): Use <w> for the register
9260 in assembly template.
9261
9262 2014-05-27 DJ Delorie <dj@redhat.com>
9263
9264 * config/rx/rx.c (add_vector_labels): New.
9265 (rx_output_function_prologue): Call it.
9266 (rx_handle_func_attribute): Don't require empty arguments.
9267 (rx_handle_vector_attribute): New.
9268 (rx_attribute_table): Add "vector" attribute.
9269 * doc/extend.texi (interrupt, vector): Document new/changed
9270 RX-specific attributes.
9271
9272 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9273
9274 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9275
9276 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9277 predicate to detect a negative quotient.
9278
9279 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9280
9281 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9282 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9283 Add X - Y CMP 0 to X CMP Y transformation.
9284 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9285
9286 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9287
9288 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9289 before printing.
9290
9291 2014-05-27 Steve Ellcey <sellcey@mips.com>
9292
9293 * config/mips/mips.c: Add include of cgraph.h.
9294
9295 2014-05-27 Richard Biener <rguenther@suse.de>
9296
9297 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9298
9299 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9300
9301 PR libgcc/61152
9302 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9303 * config/arm/arm-cores.def (License): Same.
9304 * config/arm/arm-opts.h (License): Same.
9305 * config/arm/aout.h (License): Same.
9306 * config/arm/bpabi.h (License): Same.
9307 * config/arm/elf.h (License): Same.
9308 * config/arm/linux-elf.h (License): Same.
9309 * config/arm/linux-gas.h (License): Same.
9310 * config/arm/netbsd-elf.h (License): Same.
9311 * config/arm/uclinux-eabi.h (License): Same.
9312 * config/arm/uclinux-elf.h (License): Same.
9313 * config/arm/vxworks.h (License): Same.
9314
9315 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9316
9317 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9318 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9319 (arm_init_neon_builtins): Handle NEON_BSWAP.
9320 Define required type nodes.
9321 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9322 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9323 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9324 * config/arm/iterators.md (VDQHSD): New mode iterator.
9325
9326 2014-05-27 Richard Biener <rguenther@suse.de>
9327
9328 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9329 Try using literal operands when comparing value-ranges failed.
9330
9331 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9332
9333 * ira.c (commutative_operand): Adjust for change to recog_data.
9334 [Missing from previous commit.]
9335
9336 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9337
9338 * system.h (TEST_BIT): New macro.
9339 * recog.h (alternative_mask): New type.
9340 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9341 (recog_data_d): Replace alternative_enabled_p array with
9342 enabled_alternatives.
9343 (target_recog): New structure.
9344 (default_target_recog, this_target_recog): Declare.
9345 (get_enabled_alternatives, recog_init): Likewise.
9346 * recog.c (default_target_recog, this_target_recog): New variables.
9347 (get_enabled_alternatives): New function.
9348 (extract_insn): Use it.
9349 (recog_init): New function.
9350 (preprocess_constraints, constrain_operands): Adjust for change to
9351 recog_data.
9352 * postreload.c (reload_cse_simplify_operands): Likewise.
9353 * reload.c (find_reloads): Likewise.
9354 * ira-costs.c (record_reg_classes): Likewise.
9355 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9356 all alternatives after a disabled one would be skipped.
9357 (ira_implicitly_set_insn_hard_regs): Likewise.
9358 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9359 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9360 with enabled_alternatives.
9361 * lra.c (free_insn_recog_data): Update accordingly.
9362 (lra_update_insn_recog_data): Likewise.
9363 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9364 * lra-constraints.c (process_alt_operands): Likewise. Handle
9365 only_alternative as part of the enabled mask.
9366 * target-globals.h (this_target_recog): Declare.
9367 (target_globals): Add a recog field.
9368 (restore_target_globals): Restore this_target_recog.
9369 * target-globals.c: Include recog.h.
9370 (default_target_globals): Initialize recog field.
9371 (save_target_globals): Likewise.
9372 * reginfo.c (reinit_regs): Call recog_init.
9373 * toplev.c (backend_init_target): Likewise.
9374
9375 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9376
9377 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9378 rather than any named insn's code.
9379
9380 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9381
9382 PR libgcc/61152
9383 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9384 * config/arm/arm-cores.def (License): Same.
9385
9386 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9387
9388 * tree.h (decl_comdat_group): Declare.
9389 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9390 * tree.c (decl_comdat_group): Here.
9391
9392 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9393
9394 PR rtl-optimization/61222
9395 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9396 the shift, truncate the PLUS operand to the result mode.
9397
9398 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9399
9400 PR target/61271
9401 * config/i386/i386.c (ix86_rtx_costs)
9402 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9403 Fix condition.
9404
9405 2014-05-26 Martin Jambor <mjambor@suse.cz>
9406
9407 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9408 subreg uses.
9409
9410 2014-05-26 Richard Biener <rguenther@suse.de>
9411
9412 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9413 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9414 Provide specializations.
9415 (wi::int_traits <HOST_WIDE_INT>,
9416 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9417
9418 2014-05-26 Alan Modra <amodra@gmail.com>
9419
9420 PR target/61098
9421 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9422 params and return a bool. Remove dead code. Update comment.
9423 Assert we have a const_int source. Remove bogus code from
9424 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9425 handling of constants > 2G and reg_equal note, from..
9426 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9427 return value. Update comment. If we can, use a new pseudo
9428 for intermediate calculations.
9429 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9430 prototype.
9431 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9432 call to rs6000_emit_set_const in splitter.
9433 (movdi_internal64+2, +3): Likewise.
9434
9435 2014-05-26 Richard Biener <rguenther@suse.de>
9436
9437 * system.h: Define __STDC_FORMAT_MACROS before
9438 including inttypes.h.
9439 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9440 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9441 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9442 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9443 HOST_WIDEST_INT_C): Remove.
9444 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9445 if C99 inttypes.h is not available.
9446 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9447 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9448 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9449 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9450 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9451 (struct output_info): Likewise.
9452 (print_statistics): Adjust.
9453 (dump_bitmap_statistics): Likewise.
9454 * bt-load.c (migrate_btr_defs): Print with PRId64.
9455 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9456 (MAX_SAFE_MULTIPLIER): Adjust.
9457 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9458 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9459 dump_cgraph_node): Likewise.
9460 * final.c (dump_basic_block_info): Likewise.
9461 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9462 * gcov.c (format_gcov): Likewise.
9463 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9464 for calculation.
9465 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9466 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9467 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9468 Use PRId64 for dumping.
9469 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9470 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9471 (add_allocno_hard_regs): Adjust.
9472 * loop-doloop.c (doloop_modify): Print using PRId64.
9473 * loop-iv.c (inverse): Compute in uint64_t.
9474 (determine_max_iter, iv_number_of_iterations): Likewise.
9475 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9476 Print using PRId64.
9477 * lto-streamer-out.c (write_symbol): Use uint64_t.
9478 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9479 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9480 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9481 * modulo-sched.c (const_iteration_count): Use int64_t.
9482 (sms_schedule): Dump using PRId64.
9483 * predict.c (dump_prediction): Likewise.
9484 * pretty-print.h (pp_widest_integer): Remove.
9485 * profile.c (get_working_sets, is_edge_inconsistent,
9486 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9487 * tree-pretty-print.c (pp_double_int): Remove case handling
9488 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9489 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9490 and adjust users.
9491 (pass_optimize_bswap::execute): Remove restriction on hosts.
9492 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9493 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9494 * tree.c (widest_int_cst_value): Remove.
9495 * tree.h (widest_int_cst_value): Likewise.
9496 * value-prof.c (dump_histogram_value): Print using PRId64.
9497 * gengtype.c (main): Also inject int64_t.
9498 * ggc-page.c (struct max_alignment): Use int64_t.
9499 * alloc-pool.c (struct allocation_object_def): Likewise.
9500 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9501 for computation.
9502 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9503 * doc/tm.texi: Regenerated.
9504 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9505 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9506 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9507 mmix_output_register_setting): Use [u]int64_t in prototypes.
9508 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9509 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9510 mmix_output_octa, mmix_output_shifted_value): Adjust.
9511 (mmix_intval): Adjust. Remove unreachable case.
9512 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9513
9514 2014-05-26 Richard Biener <rguenther@suse.de>
9515
9516 * configure.ac: Drop __int64 type check. Insist that we
9517 found uint64_t and int64_t.
9518 * hwint.h (HOST_BITS_PER___INT64): Remove.
9519 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9520 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9521 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9522 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9523 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9524 for dst_q_src_df_rms_cdt.
9525 * configure: Regenerate.
9526 * config.in: Likewise.
9527
9528 2014-05-26 Michael Tautschnig <mt@debian.org>
9529
9530 PR target/61249
9531 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9532 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9533
9534 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9535
9536 PR rtl-optimization/61278
9537 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9538
9539 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9540
9541 PR rtl-optimization/61220
9542 Part of PR rtl-optimization/61225
9543 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9544 insn; skip split_edge for a block with only one successor.
9545
9546 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9547
9548 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9549 for variables.
9550
9551 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9552
9553 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9554 (update_vtable_references): New function.
9555 (function_and_variable_visibility): Rewrite also vtable initializers.
9556 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9557
9558 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9559
9560 * ggc.h (ggc_grow): New function.
9561 * ggc-none.c (ggc_grow): New function.
9562 * ggc-page.c (ggc_grow): Likewise.
9563
9564 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9565
9566 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9567 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9568 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9569 varpool_externally_visible_p, can_replace_by_local_alias,
9570 update_visibility_by_resolution_info, function_and_variable_visibility,
9571 pass_data_ipa_function_and_variable_visibility,
9572 make_pass_ipa_function_and_variable_visibility,
9573 whole_program_function_and_variable_visibility,
9574 pass_data_ipa_whole_program_visibility,
9575 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9576 * cgraph.h (cgraph_local_node_p): Declare.
9577 * ipa-visibility.c: New file.
9578 * Makefile.in (OBJS): Add ipa-visiblity.o
9579
9580 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9581
9582 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9583 that var decl is available.
9584
9585 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9586
9587 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9588 symtab_node pointer.
9589 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9590 (find_decls_types_r): Do not walk COMDAT_GROUP.
9591 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9592 * varasm.c (make_decl_one_only): Use set_comdat_group;
9593 create node if needed.
9594 * ipa-inline-transform.c (save_inline_function_body): Update
9595 way we decl->symtab mapping.
9596 * symtab.c (symtab_hash, hash_node, eq_node
9597 symtab_insert_node_to_hashtable): Remove.
9598 (symtab_register_node): Update.
9599 (symtab_unregister_node): Update.
9600 (symtab_get_node): Reimplement as inline function.
9601 (symtab_add_to_same_comdat_group): Update.
9602 (symtab_dissolve_same_comdat_group_list): Update.
9603 (dump_symtab_base): Update.
9604 (verify_symtab_base): Update.
9605 (symtab_make_decl_local): Update.
9606 (fixup_same_cpp_alias_visibility): Update.
9607 (symtab_nonoverwritable_alias): Update.
9608 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9609 * ipa.c (update_visibility_by_resolution_info): UPdate.
9610 * bb-reorder.c: Include cgraph.h
9611 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9612 with comdat groups.
9613 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9614 * cgraph.c (cgraph_get_create_node): Update.
9615 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9616 and comdat_group_.
9617 (symtab_get_node): Make inline.
9618 (symtab_insert_node_to_hashtable): Remove.
9619 (symtab_can_be_discarded): Update.
9620 (decl_comdat_group): New function.
9621 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9622 Update.
9623 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9624 comdat group name.
9625 (read_comdat_group): New function.
9626 (input_node, input_varpool_node): Use it.
9627 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9628 comdat groups.
9629 * mips.c (mips_start_unique_function): Likewise.
9630 (ix86_code_end): Likewise.
9631 (rs6000_code_end): Likweise.
9632 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9633
9634 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9635
9636 * gengtype-state.c (fatal_reading_state): Bring offline.
9637 * optabs.c (widening_optab_handler): Bring offline.
9638 * optabs.h (widening_optab_handler): Likewise.
9639 * final.c (get_attr_length_1): Likewise.
9640
9641 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9642
9643 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9644
9645 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9646
9647 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9648 (ppc440-compare): Include shift with dot.
9649 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9650 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9651 without dot.
9652 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9653 without dot.
9654 (e6500_sfx2): Include it.
9655 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9656 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9657 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9658 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9659 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9660 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9661 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9662 *lshiftrt_internal1le, *lshiftrt_internal1be,
9663 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9664 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9665 *rotldi3_internal10le, *rotldi3_internal10be,
9666 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9667 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9668 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9669 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9670 define_insns): Use type "shift" in the appropriate alternatives.
9671
9672 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9673
9674 * config/rs6000/rs6000.md (type): Add "logical". Delete
9675 "fast_compare".
9676 (dot): Adjust comment.
9677 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9678 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9679 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9680 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9681 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9682 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9683 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9684 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9685
9686 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9687 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9688 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9689 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9690 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9691 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9692 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9693 * config/rs6000/8540.md (ppc8540_su): Adjust.
9694 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9695 cell-cmp-microcoded): Adjust.
9696 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9697 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9698 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9699 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9700 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9701 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9702 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9703 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9704 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9705 Adjust.
9706 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9707 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9708 Adjust. Adjust comment.
9709 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9710 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9711
9712 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9713
9714 * config/rs6000/rs6000.md (type): Add "add".
9715 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9716 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9717 define_insns): Use it.
9718 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9719
9720 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9721 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9722 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9723 * config/rs6000/601.md (ppc601-integer): Adjust.
9724 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9725 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9726 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9727 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9728 * config/rs6000/8540.md (ppc8540_su): Adjust.
9729 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9730 cell-cmp-microcoded): Adjust.
9731 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9732 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9733 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9734 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9735 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9736 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9737 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9738 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9739 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9740 Adjust.
9741 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9742 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9743 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9744 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9745
9746 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9747
9748 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9749 "delayed_compare", "var_delayed_compare".
9750 (var_shift): New attribute.
9751 (cell_micro): Adjust.
9752 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9753 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9754 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9755 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9756 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9757 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9758 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9759 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9760 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9761 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9762 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9763 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9764 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9765 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9766 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9767 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9768 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9769 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9770 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9771 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9772 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9773 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9774 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9775 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9776 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9777
9778 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9779 * config/rs6000/440.md (ppc440-integer): Adjust.
9780 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9781 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9782 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9783 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9784 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9785 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9786 * config/rs6000/8540.md (ppc8540_su): Adjust.
9787 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9788 cell-cmp-microcoded): Adjust.
9789 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9790 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9791 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9792 e500mc64_delayed): Adjust.
9793 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9794 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9795 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9796 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9797 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9798 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9799 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9800 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9801 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9802 Adjust comment.
9803 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9804 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9805
9806 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9807
9808 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9809 (bits): New mode_attr.
9810 (idiv_ldiv): Delete mode_attr.
9811 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9812 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9813 rs6000_adjust_priority, is_nonpipeline_insn,
9814 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9815
9816 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9817 * config/rs6000/440.md (ppc440-idiv): Adjust.
9818 * config/rs6000/476.md (ppc476-idiv): Adjust.
9819 * config/rs6000/601.md (ppc601-idiv): Adjust.
9820 * config/rs6000/603.md (ppc603-idiv): Adjust.
9821 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9822 ppc620-ldiv): Adjust.
9823 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9824 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9825 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9826 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9827 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9828 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9829 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9830 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9831 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9832 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9833 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9834 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9835 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9836 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9837 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9838 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9839 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9840 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9841
9842 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9843
9844 * config/rs6000/rs6000.md (type): Delete "insert_word",
9845 "insert_dword". Add "insert".
9846 (size): Update comment.
9847 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9848 insn_must_be_first_in_group): Adjust.
9849 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9850 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9851 *insvsi_internal6, insvdi_internal): Adjust.
9852
9853 * config/rs6000/40x.md (ppc403-integer): Adjust.
9854 * config/rs6000/440.md (ppc440-integer): Adjust.
9855 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
9856 * config/rs6000/601.md (ppc601-integer): Adjust.
9857 * config/rs6000/603.md (ppc603-integer): Adjust.
9858 * config/rs6000/6xx.md (ppc604-integer): Adjust.
9859 * config/rs6000/7450.md (ppc7450-integer): Adjust.
9860 * config/rs6000/7xx.md (ppc750-integer): Adjust.
9861 * config/rs6000/8540.md (ppc8540_su): Adjust.
9862 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
9863 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
9864 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9865 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
9866 * config/rs6000/e5500.md (e5500_sfx): Adjust.
9867 * config/rs6000/e6500.md (e6500_sfx): Adjust.
9868 * config/rs6000/mpc.md (mpccore-integer): Adjust.
9869 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
9870 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
9871 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
9872 * config/rs6000/power7.md (power7-integer): Adjust.
9873 * config/rs6000/power8.md (power8-1cyc): Adjust.
9874 * config/rs6000/rs64.md (rs64a-integer): Adjust.
9875 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9876
9877 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9878
9879 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
9880 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
9881 (size): New attribute.
9882 (dot): New attribute.
9883 (cell_micro): Adjust.
9884 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
9885 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
9886 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
9887 umuldi3_highpart): Adjust.
9888 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9889 rs6000_adjust_priority, is_nonpipeline_insn,
9890 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9891
9892 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
9893 ppc405-imul3): Adjust.
9894 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
9895 * config/rs6000/476.md (ppc476-imul): Adjust.
9896 * config/rs6000/601.md (ppc601-imul): Adjust.
9897 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
9898 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
9899 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
9900 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
9901 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
9902 Adjust.
9903 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
9904 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
9905 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
9906 cell-imul): Adjust.
9907 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
9908 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
9909 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
9910 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
9911 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
9912 * config/rs6000/mpc.md (mpccore-imul): Adjust.
9913 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
9914 power4-lmul, power4-imul, power4-imul3): Adjust.
9915 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
9916 power5-lmul, power5-imul, power5-imul3): Adjust.
9917 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
9918 power6-lmul, power6-imul, power6-imul3): Adjust.
9919 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
9920 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
9921
9922 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
9923 rs64a-lmul): Adjust.
9924 * config/rs6000/titan.md (titan_imul): Adjust.
9925
9926 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9927
9928 * config/rs6000/rs6000.md (type): Add new value "halfmul".
9929 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
9930 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
9931 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
9932 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
9933 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
9934 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
9935 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
9936 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
9937 * config/rs6000/titan.md: Delete nonsensical comment.
9938 (titan_imul): Add type imul3.
9939 (titan_mulhw): Remove type imul3; add type halfmul.
9940
9941 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9942
9943 * config/rs6000/rs6000.md (type): Reorder, reformat.
9944
9945 2014-05-23 Martin Jambor <mjambor@suse.cz>
9946
9947 PR tree-optimization/53787
9948 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
9949 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
9950 analysis_done, update all uses.
9951 * ipa-prop.c: Include domwalk.h
9952 (param_analysis_info): Removed.
9953 (param_aa_status): New type.
9954 (ipa_bb_info): Likewise.
9955 (func_body_info): Likewise.
9956 (ipa_get_bb_info): New function.
9957 (aa_overwalked): Likewise.
9958 (find_dominating_aa_status): Likewise.
9959 (parm_bb_aa_status_for_bb): Likewise.
9960 (parm_preserved_before_stmt_p): Changed to use new param AA info.
9961 (load_from_unmodified_param): Accept func_body_info as a parameter
9962 instead of parms_ainfo.
9963 (parm_ref_data_preserved_p): Changed to use new param AA info.
9964 (parm_ref_data_pass_through_p): Likewise.
9965 (ipa_load_from_parm_agg_1): Likewise. Update callers.
9966 (compute_complex_assign_jump_func): Changed to use new param AA info.
9967 (compute_complex_ancestor_jump_func): Likewise.
9968 (ipa_compute_jump_functions_for_edge): Likewise.
9969 (ipa_compute_jump_functions): Removed.
9970 (ipa_compute_jump_functions_for_bb): New function.
9971 (ipa_analyze_indirect_call_uses): Likewise, moved variable
9972 declarations down.
9973 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
9974 and info, moved variable declarations down.
9975 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
9976 node and info.
9977 (ipa_analyze_stmt_uses): Likewise.
9978 (ipa_analyze_params_uses): Removed.
9979 (ipa_analyze_params_uses_in_bb): New function.
9980 (ipa_analyze_controlled_uses): Likewise.
9981 (free_ipa_bb_info): Likewise.
9982 (analysis_dom_walker): New class.
9983 (ipa_analyze_node): Handle node-specific forbidden analysis,
9984 initialize and free func_body_info, use dominator walker.
9985 (ipcp_modif_dom_walker): New class.
9986 (ipcp_transform_function): Create and free func_body_info, use
9987 ipcp_modif_dom_walker, moved a lot of functionality there.
9988
9989 2014-05-23 Marek Polacek <polacek@redhat.com>
9990 Jakub Jelinek <jakub@redhat.com>
9991
9992 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
9993 * gcc.c (sanitize_spec_function): Likewise.
9994 * convert.c (convert_to_integer): Include "ubsan.h". Add
9995 floating-point to integer instrumentation.
9996 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
9997 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
9998 SANITIZE_NONDEFAULT.
9999 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10000 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10001 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10002 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10003 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10004 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10005 float/double/long double.
10006 (ubsan_instrument_float_cast): New function.
10007 * ubsan.h (ubsan_instrument_float_cast): Declare.
10008
10009 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10010
10011 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10012 predicate.
10013 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10014 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10015 Adjust for tailcalling through registers.
10016 * config/aarch64/aarch64.h (enum reg_class): New caller save
10017 register class.
10018 (REG_CLASS_NAMES): Likewise.
10019 (REG_CLASS_CONTENTS): Likewise.
10020 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10021 Allow tailcalling without decls.
10022
10023 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10024
10025 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10026 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10027
10028 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10029 gsi, and variables v_* to v*.
10030
10031 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10032
10033 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10034
10035 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10036
10037 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10038 * omp-low.c: Update accordingly.
10039
10040 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10041 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10042 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10043 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10044 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10045 GF_OMP_TARGET_KIND_UPDATE.
10046
10047 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10048 Explicitly enumerate the expected region types.
10049
10050 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10051
10052 PR other/56955
10053 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10054 documentation; the old documentation didn't clearly state the
10055 constraints on the contents of the pointed-to storage.
10056
10057 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10058
10059 Fix bootstrap error on ia64
10060 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10061 Return default value.
10062
10063 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10064
10065 PR tree-optimization/54733
10066 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10067 (CMPNOP): Define.
10068 (find_bswap_or_nop_load): New.
10069 (find_bswap_1): Renamed to ...
10070 (find_bswap_or_nop_1): This. Also add support for memory source.
10071 (find_bswap): Renamed to ...
10072 (find_bswap_or_nop): This. Also add support for memory source and
10073 detection of bitwise operations equivalent to load in target
10074 endianness.
10075 (execute_optimize_bswap): Likewise. Also move its leading comment back
10076 in place and split statement transformation into ...
10077 (bswap_replace): This.
10078
10079 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10080
10081 PR rtl-optimization/61215
10082 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10083 simplify_gen_subreg until final substitution.
10084
10085 2014-05-23 Alan Modra <amodra@gmail.com>
10086
10087 PR target/61231
10088 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10089 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10090 Use "Y" constraint rather than "m".
10091
10092 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10093
10094 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10095 define.
10096 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10097 New function declaration.
10098 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10099 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10100 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10101 (aarch64_init_builtins) : Initialize builtins
10102 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10103 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10104 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10105 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10106 and __builtins_aarch64_set_fpsr.
10107 (aarch64_atomic_assign_expand_fenv): New function.
10108 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10109 (get_fpcr) : Likewise.
10110 (set_fpsr) : Likewise.
10111 (get_fpsr) : Likewise.
10112 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10113 and UNSPECV_SET_FPSR.
10114 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10115 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10116 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10117
10118 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10119
10120 PR rtl-optimization/60969
10121 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10122 constraints. Set up mem cost for NO_REGS case.
10123
10124 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10125
10126 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10127
10128 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10129
10130 * config/darwin.c: Include "lto-section-names.h".
10131 (LTO_SEGMENT_NAME): Don't define.
10132 * config/i386/winnt.c: Include "lto-section-names.h".
10133 * lto-streamer.c: Include "lto-section-names.h".
10134 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10135 * lto-wrapper.c: Include "lto-section-names.h".
10136 (LTO_SECTION_NAME_PREFIX): Don't define.
10137 * lto-section-names.h: New file.
10138 * cgraphunit.c: Include "lto-section-names.h".
10139
10140 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10141
10142 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10143
10144 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10145
10146 PR target/61208
10147 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10148
10149 2014-05-22 Nick Clifton <nickc@redhat.com>
10150
10151 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10152
10153 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10154
10155 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10156 -> (T)A transformation to integer types.
10157
10158 2014-05-22 Teresa Johnson <tejohnson@google.com>
10159
10160 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10161 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10162 (gcov_rewrite): Use gcov_nonruntime_assert.
10163 (gcov_open): Ditto.
10164 (gcov_write_words): Ditto.
10165 (gcov_write_length): Ditto.
10166 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10167 gcc_assert from IN_LIBGCOV code.
10168 (gcov_read_summary): Use gcov_error to flag profile corruption.
10169 (gcov_sync): Use gcov_nonruntime_assert.
10170 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10171 (gcov_histo_index): Use gcov_nonruntime_assert.
10172 (static void gcov_histogram_merge): Ditto.
10173 (compute_working_sets): Ditto.
10174 * gcov-io.h (gcov_nonruntime_assert): Define.
10175 (gcov_error): Define for !IN_LIBGCOV
10176
10177 2014-05-22 Richard Biener <rguenther@suse.de>
10178
10179 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10180 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10181 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10182 and deallocation site.
10183 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10184 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10185 passing through the incoming points-to set.
10186 (handle_lhs_call): Use flags argument instead of recomputing it.
10187 (find_func_aliases_for_call): Call handle_lhs_call with proper
10188 call return flags.
10189
10190 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10191
10192 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10193 all padding bits in REAL_VALUE_TYPE are cleared.
10194
10195 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10196
10197 Cleanup and improve multipass_dfa_lookahead_guard
10198 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10199 (core2i7_first_cycle_multipass_begin,)
10200 (core2i7_first_cycle_multipass_issue,)
10201 (core2i7_first_cycle_multipass_backtrack): Update signature.
10202 * config/ia64/ia64.c
10203 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10204 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10205 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10206 hook definition.
10207 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10208 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10209 values.
10210 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10211 return values.
10212 * doc/tm.texi: Regenerate.
10213 * doc/tm.texi.in
10214 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10215 * haifa-sched.c (ready_try): Make signed to allow negative values.
10216 (rebug_ready_list_1): Update.
10217 (choose_ready): Simplify.
10218 (sched_extend_ready_list): Update.
10219
10220 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10221
10222 Remove IA64 speculation tweaking flags
10223 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10224 speculation tuning flags.
10225 (msched-prefer-non-data-spec-insns,)
10226 (msched-prefer-non-control-spec-insns): Obsolete options.
10227 * haifa-sched.c (choose_ready): Remove handling of
10228 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10229 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10230 and PREFER_NON_DATA_SPEC.
10231 * sel-sched.c (process_spec_exprs): Remove handling of
10232 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10233
10234 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10235
10236 Improve scheduling debug output
10237 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10238 (advance_one_cycle): Update.
10239 (schedule_insn, queue_to_ready): Add debug printouts.
10240 (debug_ready_list_1): New static function.
10241 (debug_ready_list): Update.
10242 (max_issue): Add debug printouts.
10243 (dump_insn_stream): New static function.
10244 (schedule_block): Use it. Also better indent printouts.
10245
10246 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10247
10248 Fix sched_insn debug counter
10249 * haifa-sched.c (schedule_insn): Update.
10250 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10251 (save_backtrack_point, restore_backtrack_point): Update.
10252 (first_nonscheduled_insn): New static function.
10253 (queue_to_ready, choose_ready): Use it.
10254 (schedule_block): Init nonscheduled_insns_begin.
10255 (sched_emit_insn): Update.
10256
10257
10258 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10259
10260 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10261 to GENERAL_REGS.
10262 (aarch64_secondary_reload) : LikeWise.
10263 (aarch64_class_max_nregs) : Remove CORE_REGS.
10264 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10265 (REG_CLASS_NAMES) : Likewise.
10266 (REG_CLASS_CONTENTS) : LikeWise.
10267 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10268
10269 2014-05-21 Guozhi Wei <carrot@google.com>
10270
10271 PR target/61202
10272 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10273 constraint.
10274 (vqdmulhq_n_s16): Likewise.
10275
10276 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10277
10278 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10279
10280 2014-05-21 Marek Polacek <polacek@redhat.com>
10281
10282 PR sanitizer/61272
10283 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10284
10285 2014-05-21 Martin Jambor <mjambor@suse.cz>
10286
10287 * doc/invoke.texi (Optimize Options): Document parameters
10288 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10289 ipa-cp-array-index-hint-bonus.
10290
10291 2014-05-21 Mark Wielaard <mjw@redhat.com>
10292
10293 PR debug/16063
10294 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10295 version >= 3 or not strict DWARF.
10296 * langhooks.h (struct lang_hooks_for_types): Add
10297 enum_underlying_base_type.
10298 * langhooks.c (lhd_enum_underlying_base_type): New function.
10299 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10300 enum_underlying_base_type.
10301 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10302 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10303 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10304
10305 2014-05-21 Richard Biener <rguenther@suse.de>
10306
10307 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10308
10309 2014-05-21 John Marino <gnugcc@marino.st>
10310
10311 * config.gcc (*-*-dragonfly*): New target.
10312 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10313 * configure: Regenerate.
10314 * config/dragonfly-stdint.h: New.
10315 * config/dragonfly.h: New.
10316 * config/dragonfly.opt: New.
10317 * config/i386/dragonfly.h: New.
10318 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10319
10320 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10321
10322 * tree.def (VOID_CST): New.
10323 * tree-core.h (TI_VOID): New.
10324 * tree.h (void_node): New.
10325 * tree.c (tree_node_structure_for_code, tree_code_size)
10326 (iterative_hash_expr): Handle VOID_CST.
10327 (build_common_tree_nodes): Initialize void_node.
10328
10329 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10330
10331 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10332 functions.
10333 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10334
10335 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10336 more places.
10337
10338 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10339 flag_reorder_blocks_and_partition.
10340 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10341
10342 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10343
10344 PR target/54236
10345 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10346 constraints.
10347 (*addc_r_t): Add new insn_and_split.
10348
10349 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10350
10351 PR middle-end/61252
10352 * omp-low.c (handle_simd_reference): New function.
10353 (lower_rec_input_clauses): Use it. Defer adding reference
10354 initialization even for reduction without placeholder if in simd,
10355 handle it properly later on.
10356
10357 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10358
10359 PR tree-optimization/60899
10360 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10361 assume all static symbols will have definition wile parsing and
10362 check the do have definition later in compilation; check that
10363 variable referring symbol will be output before concluding that
10364 reference is safe; be conservative for referring local statics;
10365 be more precise about when comdat is output in other partition.
10366
10367 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10368
10369 PR bootstrap/60984
10370 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10371 parameter.
10372 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10373 (ipa_inline): Loop inline_to_all_callers until no more aliases
10374 are removed.
10375
10376 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10377
10378 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10379 set writeonly flag only for vars actually written to.
10380
10381 2014-05-20 Dehao Chen <dehao@google.com>
10382
10383 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10384 and callee count to get clone count.
10385 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10386 count in copy_body.
10387
10388 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10389
10390 PR rtl-optimization/61243
10391 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10392
10393 2014-05-20 Xinliang David Li <davidxl@google.com>
10394
10395 * cgraphunit.c (walk_polymorphic_call_targets): Add
10396 dbgcnt and fopt-info support.
10397 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10398 * ipa-devirt.c (ipa_devirt): Ditto.
10399 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10400 * ipa.c (walk_polymorphic_call_targets): Ditto.
10401 * gimple-fold.c (fold_gimple_assign): Ditto.
10402 (gimple_fold_call): Ditto.
10403 * dbgcnt.def: New counter.
10404
10405 2014-05-20 DJ Delorie <dj@redhat.com>
10406
10407 * config/msp430/msp430.md (split): Don't allow subregs when
10408 splitting SImode adds.
10409 (andneghi): Fix subtraction logic.
10410 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10411
10412 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10413
10414 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10415 symbols.
10416 * except.c (switch_to_exception_section, resolve_unique_section,
10417 get_named_text_section, default_function_rodata_section,
10418 align_variable, get_block_for_decl, default_section_type_flags):
10419 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10420 * symtab.c (symtab_add_to_same_comdat_group,
10421 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10422 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10423 Likewise.
10424 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10425 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10426 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10427 (c6x_function_in_section_p): Likewise.
10428 * config/darwin.c (machopic_select_section): Likewise.
10429 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10430 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10431 * config/mep/mep.c (mep_select_section): LIkewise.
10432 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10433
10434 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10435
10436 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10437 EH region of calls to pure functions that can throw an exception.
10438 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10439 (copy_reference_ops_from_call): Also copy the EH region of the call if
10440 it can throw an exception.
10441
10442 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10443
10444 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10445 nested VEC_SELECTs that are inverses of each other.
10446
10447 2014-05-20 Richard Biener <rguenther@suse.de>
10448
10449 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10450 (extract_and_process_scc_for_name): not here.
10451 (cond_dom_walker::before_dom_children): Only process
10452 stmts that end the BB in interesting ways.
10453 (run_scc_vn): Mark param uses as visited.
10454
10455 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10456
10457 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10458 arm_restrict_it.
10459
10460 2014-05-20 Nick Clifton <nickc@redhat.com>
10461
10462 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10463 (msp430_gimplify_va_arg_expr): New function.
10464 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10465
10466 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10467 operand 0 in order to prevent confusion about the number of
10468 registers involved.
10469
10470 2014-05-20 Richard Biener <rguenther@suse.de>
10471
10472 PR tree-optimization/61221
10473 * tree-ssa-pre.c (el_to_update): Remove.
10474 (eliminate_dom_walker::before_dom_children): Handle released
10475 VDEFs by value-numbering them to the associated VUSE. Update
10476 stmt immediately for substituted call address.
10477 (eliminate): Remove delayed stmt updating code.
10478 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10479 possibly late re-numbered vuses.
10480 (vn_reference_lookup_2): Adjust.
10481 (vn_reference_lookup_pieces): Likewise.
10482 (vn_reference_lookup): Likewise.
10483
10484 2014-05-20 Richard Biener <rguenther@suse.de>
10485
10486 * config.gcc: Remove need_64bit_hwint.
10487 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10488 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10489 it to be true.
10490 * config.in: Regenerate.
10491 * configure: Likewise.
10492
10493 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10494
10495 * doc/extend.texi: Create Label Attributes section,
10496 move all label attributes into it and reference it.
10497
10498 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10499
10500 * arm.c (thumb1_reorg): When scanning backwards skip anything
10501 that's not a proper insn.
10502
10503 2014-05-19 Richard Biener <rguenther@suse.de>
10504
10505 PR tree-optimization/61221
10506 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10507 Do nothing for unreachable blocks.
10508 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10509 Improve unreachability detection.
10510
10511 2014-05-19 Richard Biener <rguenther@suse.de>
10512
10513 PR tree-optimization/61209
10514 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10515
10516 2014-05-19 Nick Clifton <nickc@redhat.com>
10517
10518 * except.c (init_eh): Fix computation of builtin setjmp buffer
10519 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10520
10521 2014-05-19 Richard Biener <rguenther@suse.de>
10522
10523 PR tree-optimization/61184
10524 * tree-vrp.c (is_negative_overflow_infinity): Use
10525 TREE_OVERFLOW_P and do that check first.
10526 (is_positive_overflow_infinity): Likewise.
10527 (is_overflow_infinity): Likewise.
10528 (vrp_operand_equal_p): Properly treat operands with
10529 differing overflow as not equal.
10530
10531 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10532
10533 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10534 shift simplification where it was intended.
10535
10536 2014-05-19 Christian Bruel <christian.bruel@st.com>
10537
10538 PR target/61195
10539 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10540
10541 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10542
10543 PR target/61084
10544 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10545 than wide_int.
10546
10547 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10548
10549 * reg-notes.def (CROSSING_JUMP): Likewise.
10550 * rtl.h (rtx_def): Update comment for jump flag.
10551 (CROSSING_JUMP_P): Define.
10552 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10553 of a REG_CROSSING_JUMP note.
10554 * cfghooks.c (tidy_fallthru_edges): Likewise.
10555 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10556 * emit-rtl.c (try_split): Likewise.
10557 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10558 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10559 * jump.c (redirect_jump_2): Likewise.
10560 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10561 (relax_delay_slots): Likewise.
10562 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10563 (bbit_di): Likewise.
10564 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10565 * config/sh/sh.md (jump_compact): Likewise.
10566 * bb-reorder.c (rotate_loop): Likewise.
10567 (pass_duplicate_computed_gotos::execute): Likewise.
10568 (add_reg_crossing_jump_notes): Rename to...
10569 (update_crossing_jump_flags): ...this.
10570 (pass_partition_blocks::execute): Update accordingly.
10571
10572 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10573
10574 * tree.h: Remove extraneous template <>.
10575
10576 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10577
10578 * ipa.c (symtab_remove_unreachable_nodes): Remove
10579 symbol from comdat group if its body was eliminated.
10580 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10581 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10582 (symtab_unregister_node): ... this one.
10583 (verify_symtab_base): More strict checking of comdats.
10584 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10585
10586 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10587
10588 * tree-pass.h (make_pass_ipa_comdats): New pass.
10589 * timevar.def (TV_IPA_COMDATS): New timevar.
10590 * passes.def (pass_ipa_comdats): Add.
10591 * Makefile.in (OBJS): Add ipa-comdats.o
10592 * ipa-comdats.c: New file.
10593
10594 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10595
10596 * ipa.c (update_visibility_by_resolution_info): New function.
10597 (function_and_variable_visibility): Use it.
10598
10599 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10600
10601 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10602 New functions.
10603 (FOR_EACH_DEFINED_SYMBOL): New macro.
10604 (varpool_first_static_initializer, varpool_next_static_initializer,
10605 varpool_first_defined_variable, varpool_next_defined_variable):
10606 Fix comments.
10607 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10608
10609 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10610
10611 * ggc-page.c (ggc_handle_finalizers): Add comment.
10612
10613 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10614
10615 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10616 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10617 (ggc_internal_cleared_alloc): Likewise.
10618 * ggc-page.c (finalizer): New class.
10619 (vec_finalizer): Likewise.
10620 (globals::finalizers): New member.
10621 (globals::vec_finalizers): Likewise.
10622 (ggc_internal_alloc): Record the finalizer if any for the block being
10623 allocated.
10624 (ggc_handle_finalizers): New function.
10625 (ggc_collect): Call ggc_handle_finalizers.
10626 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10627 finalizer.
10628 (ggc_internal_cleared_alloc): Likewise.
10629 (finalize): New function.
10630 (need_finalization_p): Likewise.
10631 (ggc_alloc): Install the type's destructor as the finalizer if it
10632 might do something.
10633 (ggc_cleared_alloc): Likewise.
10634 (ggc_vec_alloc): Likewise.
10635 (ggc_cleared_vec_alloc): Likewise.
10636
10637 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10638
10639 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10640
10641 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10642
10643 * alias.c (record_alias_subset): Adjust.
10644 * bitmap.c (bitmap_element_allocate): Likewise.
10645 (bitmap_gc_alloc_stat): Likewise.
10646 * cfg.c (init_flow): Likewise.
10647 (alloc_block): Likewise.
10648 (unchecked_make_edge): Likewise.
10649 * cfgloop.c (alloc_loop): Likewise.
10650 (flow_loops_find): Likewise.
10651 (rescan_loop_exit): Likewise.
10652 * cfgrtl.c (init_rtl_bb_info): Likewise.
10653 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10654 (cgraph_allocate_node): Likewise.
10655 (cgraph_create_edge_1): Likewise.
10656 (cgraph_allocate_init_indirect_info): Likewise.
10657 * cgraphclones.c (cgraph_clone_edge): Likewise.
10658 * cgraphunit.c (add_asm_node): Likewise.
10659 (init_lowered_empty_function): Likewise.
10660 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10661 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10662 (alpha_use_linkage): Likewise.
10663 * config/arc/arc.c (arc_init_machine_status): Likewise.
10664 * config/arm/arm.c (arm_init_machine_status): Likewise.
10665 * config/avr/avr.c (avr_init_machine_status): Likewise.
10666 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10667 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10668 * config/cris/cris.c (cris_init_machine_status): Likewise.
10669 * config/darwin.c (machopic_indirection_name): Likewise.
10670 (darwin_build_constant_cfstring): Likewise.
10671 (darwin_enter_string_into_cfstring_table): Likewise.
10672 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10673 * config/frv/frv.c (frv_init_machine_status): Likewise.
10674 * config/i386/i386.c (get_dllimport_decl): Likewise.
10675 (ix86_init_machine_status): Likewise.
10676 (assign_386_stack_local): Likewise.
10677 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10678 (i386_pe_maybe_record_exported_symbol): Likewise.
10679 (i386_pe_record_stub): Likewise.
10680 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10681 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10682 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10683 (m32c_note_pragma_address): Likewise.
10684 * config/mep/mep.c (mep_init_machine_status): Likewise.
10685 (mep_note_pragma_flag): Likewise.
10686 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10687 (mips16_local_alias): Likewise.
10688 (mips_init_machine_status): Likewise.
10689 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10690 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10691 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10692 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10693 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10694 * config/pa/pa.c (pa_init_machine_status): Likewise.
10695 (pa_get_deferred_plabel): Likewise.
10696 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10697 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10698 (rs6000_init_machine_status): Likewise.
10699 (output_toc): Likewise.
10700 * config/s390/s390.c (s390_init_machine_status): Likewise.
10701 * config/score/score.c (score_output_external): Likewise.
10702 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10703 * config/spu/spu.c (spu_init_machine_status): Likewise.
10704 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10705 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10706 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10707 * coverage.c (coverage_end_function): Likewise.
10708 * dbxout.c (dbxout_init): Likewise.
10709 * doc/gty.texi: Don't mention variable_size attribute.
10710 * dwarf2cfi.c (new_cfi): Adjust.
10711 (new_cfi_row): Likewise.
10712 (copy_cfi_row): Likewise.
10713 (create_cie_data): Likewise.
10714 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10715 (new_loc_descr): Likewise.
10716 (find_AT_string_in_table): Likewise.
10717 (add_addr_table_entry): Likewise.
10718 (new_die): Likewise.
10719 (add_var_loc_to_decl): Likewise.
10720 (clone_die): Likewise.
10721 (clone_as_declaration): Likewise.
10722 (break_out_comdat_types): Likewise.
10723 (new_loc_list): Likewise.
10724 (add_loc_descr_to_each): Likewise.
10725 (add_location_or_const_value_attribute): Likewise.
10726 (add_linkage_name): Likewise.
10727 (lookup_filename): Likewise.
10728 (dwarf2out_var_location): Likewise.
10729 (new_line_info_table): Likewise.
10730 (dwarf2out_init): Likewise.
10731 (mem_loc_descriptor): Likewise.
10732 (loc_descriptor): Likewise.
10733 (add_const_value_attribute): Likewise.
10734 (tree_add_const_value_attribute): Likewise.
10735 (comp_dir_string): Likewise.
10736 (dwarf2out_vms_debug_main_pointer): Likewise.
10737 (string_cst_pool_decl): Likewise.
10738 * emit-rtl.c (set_mem_attrs): Likewise.
10739 (get_reg_attrs): Likewise.
10740 (start_sequence): Likewise.
10741 (init_emit): Likewise.
10742 (init_emit_regs): Likewise.
10743 * except.c (init_eh_for_function): Likewise.
10744 (gen_eh_region): Likewise.
10745 (gen_eh_region_catch): Likewise.
10746 (gen_eh_landing_pad): Likewise.
10747 (add_call_site): Likewise.
10748 * function.c (add_frame_space): Likewise.
10749 (insert_temp_slot_address): Likewise.
10750 (assign_stack_temp_for_type): Likewise.
10751 (get_hard_reg_initial_val): Likewise.
10752 (allocate_struct_function): Likewise.
10753 (prepare_function_start): Likewise.
10754 (types_used_by_var_decl_insert): Likewise.
10755 * gengtype.c (variable_size_p): Remove function.
10756 (enum alloc_quantity): Remove enum.
10757 (write_typed_alloc_def): Remove function.
10758 (write_typed_struct_alloc_def): Likewise.
10759 (write_typed_typedef_alloc_def): Likewise.
10760 (write_typed_alloc_defns): Likewise.
10761 (main): Adjust.
10762 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10763 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10764 * ggc.h (ggc_alloc): new function.
10765 (ggc_cleared_alloc): Likewise.
10766 (ggc_vec_alloc): Template on type of vector element, and remove
10767 element size argument.
10768 (ggc_cleared_vec_alloc): Likewise.
10769 * gimple.c (gimple_build_omp_for): Adjust.
10770 (gimple_copy): Likewise.
10771 * ipa-cp.c (get_replacement_map): Likewise.
10772 (find_aggregate_values_for_callers_subset): Likewise.
10773 (known_aggs_to_agg_replacement_list): Likewise.
10774 * ipa-devirt.c (get_odr_type): Likewise.
10775 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10776 (read_agg_replacement_chain): Likewise.
10777 * loop-iv.c (get_simple_loop_desc): Likewise.
10778 * lto-cgraph.c (input_node_opt_summary): Likewise.
10779 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10780 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10781 (input_eh_region): Likewise.
10782 (input_eh_lp): Likewise.
10783 (input_cfg): Likewise.
10784 * optabs.c (set_optab_libfunc): Likewise.
10785 (init_tree_optimization_optabs): Likewise.
10786 (set_conv_libfunc): Likewise.
10787 * passes.c (do_per_function_toporder): Likewise.
10788 * rtl.h: Don't use variable_size gty attribute.
10789 * sese.c (if_region_set_false_region): Adjust.
10790 * stringpool.c (gt_pch_save_stringpool): Likewise.
10791 * target-globals.c (save_target_globals): Likewise.
10792 * toplev.c (general_init): Likewise.
10793 * trans-mem.c (record_tm_replacement): Likewise.
10794 (split_bb_make_tm_edge): Likewise.
10795 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10796 * tree-data-ref.h (lambda_vector_new): Likewise.
10797 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10798 * tree-iterator.c (tsi_link_before): Likewise.
10799 (tsi_link_after): Likewise.
10800 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10801 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10802 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10803 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10804 * tree-ssa.c (init_tree_ssa): Adjust.
10805 * tree-ssanames.c (set_range_info): Likewise.
10806 (get_ptr_info): Likewise.
10807 (duplicate_ssa_name_ptr_info): Likewise.
10808 (duplicate_ssa_name_range_info): Likewise.
10809 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10810 (unpack_ts_fixed_cst_value_fields): Likewise.
10811 * tree.c (build_fixed): Likewise.
10812 (build_real): Likewise.
10813 (build_string): Likewise.
10814 (decl_priority_info): Likewise.
10815 (decl_debug_expr_insert): Likewise.
10816 (decl_value_expr_insert): Likewise.
10817 (decl_debug_args_insert): Likewise.
10818 (type_hash_add): Likewise.
10819 (build_omp_clause): Likewise.
10820 * ubsan.c (decl_for_type_insert): Likewise.
10821 * varasm.c (get_unnamed_section): Likewise.
10822 (get_noswitch_section): Likewise.
10823 (get_section): Likewise.
10824 (get_block_for_section): Likewise.
10825 (create_block_symbol): Likewise.
10826 (build_constant_desc): Likewise.
10827 (create_constant_pool): Likewise.
10828 (force_const_mem): Likewise.
10829 (record_tm_clone_pair): Likewise.
10830 * varpool.c (varpool_create_empty_node): Likewise.
10831
10832 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10833
10834 * dwarf2out.c (tree_add_const_value_attribute): Call
10835 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10836 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10837 instead of ggc_internal_<x>alloc_stat.
10838 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10839 (ggc_realloc): Likewise.
10840 * ggc-none.c (ggc_internal_alloc): Likewise.
10841 (ggc_internal_cleared_alloc): Likewise.
10842 * ggc-page.c: Likewise.
10843 * ggc.h (ggc_internal_alloc_stat): Likewise.
10844 (ggc_internal_alloc): Remove macro.
10845 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10846 (ggc_internal_cleared_alloc): Remove macro.
10847 (GGC_RESIZEVEC): Adjust.
10848 (ggc_resizevar): Remove macro.
10849 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
10850 (ggc_internal_cleared_vec_alloc_stat): Likewise.
10851 (ggc_internal_vec_cleared_alloc): Remove macro.
10852 (ggc_alloc_atomic_stat): Drop _stat suffix.
10853 (ggc_alloc_atomic): Remove macro.
10854 (ggc_alloc_cleared_atomic): Remove macro.
10855 (ggc_alloc_string_stat): Drop _stat suffix.
10856 (ggc_alloc_string): Remove macro.
10857 (ggc_alloc_rtx_def_stat): Adjust.
10858 (ggc_alloc_tree_node_stat): Likewise.
10859 (ggc_alloc_cleared_tree_node_stat): Likewise.
10860 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
10861 (ggc_alloc_cleared_simd_clone_stat): Likewise.
10862 * gimple.c (gimple_build_omp_for): Likewise.
10863 (gimple_copy): Likewise.
10864 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
10865 * toplev.c (realloc_for_line_map): Adjust.
10866 * tree-data-ref.h (lambda_vector_new): Likewise.
10867 * tree-phinodes.c (allocate_phi_node): Likewise.
10868 * tree.c (grow_tree_vec_stat): Likewise.
10869 * vec.h (va_gc::reserve): Adjust.
10870
10871 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
10872
10873 * config/microblaze/microblaze.c (break_handler): New Declaration.
10874 (microblaze_break_function_p,microblaze_is_break_handler): New.
10875 (compute_frame_size): Use microblaze_break_function_p.
10876 Add the test of break_handler.
10877 (microblaze_function_prologue) : Add the test of variable
10878 break_handler. Check the fnname by BREAK_HANDLER_NAME.
10879 (microblaze_function_epilogue) : Add the test of break_handler.
10880 (microblaze_globalize_label) : Add the test of break_handler.
10881 Check the name by BREAK_HANDLER_NAME.
10882
10883 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
10884
10885 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
10886 microblaze_is_break_handler test.
10887 (call_internal1,call_value_intern): Use microblaze_break_function_p.
10888 Use SYMBOL_REF_DECL.
10889
10890 * config/microblaze/microblaze-protos.h
10891 (microblaze_break_function_p,microblaze_is_break_handler):
10892 New Declaration.
10893
10894 * doc/extend.texi (MicroBlaze break_handler Functions): Document
10895 new MicroBlaze break_handler functions.
10896
10897 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10898
10899 * doc/extend.texi (Size of an asm): Move node text according
10900 to its @menu entry position.
10901
10902 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
10903
10904 PR tree-optimization/61140
10905 PR tree-optimization/61150
10906 PR tree-optimization/61197
10907 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
10908
10909 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10910
10911 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
10912
10913 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
10914
10915 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
10916 __SIZEOF_INT128__ is defined.
10917
10918 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10919
10920 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
10921 (rs6000_delegitimize_address): Use it.
10922
10923 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10924
10925 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
10926 inplace argument. Store the new address in the original MEM when true.
10927 * emit-rtl.c (change_address_1): Likewise.
10928 (adjust_address_1, adjust_automodify_address_1, offset_address):
10929 Update accordingly.
10930 * rtl.h (plus_constant): Add an inplace argument.
10931 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
10932 when true. Avoid generating (plus X (const_int 0)).
10933 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
10934 in-place. Pass true to plus_constant.
10935 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
10936
10937 2014-05-16 Dehao Chen <dehao@google.com>
10938
10939 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
10940
10941 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10942
10943 PR target/54089
10944 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
10945 patterns.
10946 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
10947
10948 2014-05-16 Dehao Chen <dehao@google.com>
10949
10950 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
10951 optimize_function_for_size_p.
10952 * regs.h (REG_FREQ_FROM_BB): Likewise.
10953
10954 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10955
10956 PR target/51244
10957 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
10958 negt_reg_operand cases.
10959 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
10960 predicate.
10961 * config/sh/predicates.md (cbranch_treg_value): Simplify.
10962
10963 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10964
10965 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
10966 target variants.
10967
10968 2014-05-16 David Malcolm <dmalcolm@redhat.com>
10969
10970 Revert:
10971 2014-04-29 David Malcolm <dmalcolm@redhat.com>
10972
10973 * tree-cfg.c (dump_function_to_file): Dump the return type of
10974 functions, in a line to itself before the function body, mimicking
10975 the layout of a C function.
10976
10977 2014-05-16 Dehao Chen <dehao@google.com>
10978
10979 * cfghooks.c (make_forwarder_block): Use direct computation to
10980 get fall-through edge's count and frequency.
10981
10982 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
10983
10984 * config/arc/arc.c (arc_init): Fix typo in error message.
10985 * config/i386/i386.c (ix86_expand_builtin): Likewise.
10986 (split_stack_prologue_scratch_regno): Likewise.
10987 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
10988 word from error message.
10989
10990 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10991
10992 * ira-costs.c: Fix typo in comment.
10993
10994 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
10995
10996 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
10997
10998 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
10999
11000 * varpool.c (dump_varpool_node): Dump write-only flag.
11001 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11002 write-only flag.
11003 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11004 write-only variables.
11005 * ipa.c (process_references): New function.
11006 (set_readonly_bit): New function.
11007 (set_writeonly_bit): New function.
11008 (clear_addressable_bit): New function.
11009 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11010 fix handling of aliases.
11011 * cgraph.h (struct varpool_node): Add writeonly flag.
11012
11013 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11014
11015 PR rtl-optimization/60969
11016 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11017 Calculate costs for this case.
11018
11019 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11020
11021 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11022 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11023
11024 2014-05-16 Richard Biener <rguenther@suse.de>
11025
11026 PR tree-optimization/61194
11027 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11028 bool patterns ending in a COND_EXPR.
11029
11030 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11031
11032 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11033
11034 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11035
11036 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11037 where we were unable to cost an RTX.
11038
11039 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11040
11041 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11042 HIGH, LO_SUM.
11043
11044 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11045 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11046
11047 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11048
11049 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11050 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11051
11052 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11053 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11054
11055 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11056 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11057
11058 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11059 operators.
11060
11061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11062 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11063
11064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11065 DIV/MOD.
11066
11067 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11068 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11069
11070 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11071 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11072
11073 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11074 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11075
11076 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11077 rotates and shifts.
11078
11079 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11080 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11081
11082 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11083 ZERO_EXTEND and SIGN_EXTEND better.
11084
11085 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11086 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11087
11088 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11089 logical operations.
11090
11091 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11092 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11093
11094 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11095 costs when costing loads and stores to memory.
11096
11097 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11098 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11099
11100 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11101 for SET RTX.
11102
11103 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11104
11105 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11106
11107 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11108 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11109
11110 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11111 to...
11112 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11113 well formed.
11114 (aarch64_rtx_mult_cost): New.
11115 (aarch64_rtx_costs): Use it, refactor as appropriate.
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_build_constant): Conditionally
11121 emit instructions, return number of instructions which would
11122 be emitted.
11123 (aarch64_add_constant): Update call to aarch64_build_constant.
11124 (aarch64_output_mi_thunk): Likewise.
11125 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11126 a CONST_DOUBLE.
11127
11128 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11129
11130 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11131 (TARGET_RTX_COSTS): Call it.
11132
11133 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11134
11135 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11136 (cortexa57_vector_cost): Likewise.
11137 (cortexa57_tunings): Use them.
11138
11139 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11140
11141 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11142 (cpu_addrcost_table): Use it.
11143 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11144 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11145 move it.
11146
11147 2014-05-16 Richard Biener <rguenther@suse.de>
11148
11149 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11150 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11151 (visit_phi): Ignore edges marked as not executable.
11152 (class cond_dom_walker): New.
11153 (cond_dom_walker::before_dom_children): Value-number
11154 control statements and mark successor edges as not
11155 executable if possible.
11156 (run_scc_vn): First walk all control statements in
11157 dominator order, marking edges as not executable.
11158 * tree-inline.c (copy_edges_for_bb): Be not confused
11159 about random edge flags.
11160
11161 2014-05-16 Richard Biener <rguenther@suse.de>
11162
11163 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11164
11165 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11166
11167 PR target/61193
11168 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11169 (__TM_simple_begin): Use it.
11170 (__TM_begin): Likewise.
11171
11172 2014-05-15 Martin Jambor <mjambor@suse.cz>
11173
11174 PR ipa/61085
11175 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11176 type_preserved flag when the indirect edge is polymorphic.
11177
11178 2014-05-15 Martin Jambor <mjambor@suse.cz>
11179
11180 PR tree-optimization/61090
11181 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11182 build_ref_for_model.
11183
11184 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11185
11186 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11187 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11188
11189 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11190
11191 PR tree-optimization/61158
11192 * fold-const.c (fold_binary_loc): If X is zero-extended and
11193 shiftc >= prec, make sure zerobits is all ones instead of
11194 invoking undefined behavior.
11195
11196 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11197
11198 * regcprop.h: New file.
11199 * regcprop.c (skip_debug_insn_p): New decl.
11200 (replace_oldest_value_reg): Check skip_debug_insn_p.
11201 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11202 * shrink-wrap.c: Include regcprop.h.
11203 (prepare_shrink_wrap): Call
11204 copyprop_hardreg_forward_bb_without_debug_insn.
11205
11206 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11207
11208 * shrink-wrap.h: Update comment.
11209 * shrink-wrap.c: Update comment.
11210 (next_block_for_reg): Rename to live_edge_for_reg.
11211 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11212 (move_insn_for_shrink_wrap): Split live_edge.
11213 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11214
11215 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11216
11217 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11218 Delete.
11219 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11220 * config/sparc/sparc.md (fptype_ut699): New attribute.
11221 (in_branch_delay): Return false if -mfix-ut699 is specified and
11222 fptype_ut699 is set to single.
11223 (truncdfsf2): Add fptype_ut699 attribute.
11224 (fix_truncdfsi2): Likewise.
11225 (floatsisf2): Change fptype attribute.
11226 (fix_truncsfsi2): Likewise.
11227 (negtf2_notv9): Delete.
11228 (negtf2_v9): Likewise.
11229 (negtf2_hq): New instruction.
11230 (negtf2): New instruction and splitter.
11231 (negdf2_notv9): Rewrite.
11232 (abstf2_notv9): Delete.
11233 (abstf2_hq_v9): Likewise.
11234 (abstf2_v9): Likewise.
11235 (abstf2_hq): New instruction.
11236 (abstf2): New instruction and splitter.
11237 (absdf2_notv9): Rewrite.
11238
11239 2014-05-14 Cary Coutant <ccoutant@google.com>
11240
11241 PR debug/61013
11242 * opts.c (common_handle_option): Don't special-case "-g".
11243 (set_debug_level): Default to at least level 2 with "-g".
11244
11245 2014-05-14 DJ Delorie <dj@redhat.com>
11246
11247 * config/msp430/msp430.c (msp430_builtin): Add
11248 MSP430_BUILTIN_DELAY_CYCLES.
11249 (msp430_init_builtins): Register void __delay_cycles(long long).
11250 (msp430_builtin_decl): Add it.
11251 (cg_magic_constant): New.
11252 (msp430_expand_delay_cycles): New.
11253 (msp430_expand_builtin): Call it.
11254 (msp430_print_operand_raw): Change integer printing from "int" to
11255 HOST_WIDE_INT.
11256 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11257 (delay_cycles_start): New.
11258 (delay_cycles_end): New.
11259 (delay_cycles_32): New.
11260 (delay_cycles_32x): New.
11261 (delay_cycles_16): New.
11262 (delay_cycles_16x): New.
11263 (delay_cycles_2): New.
11264 (delay_cycles_1): New.
11265 * doc/extend.texi: Document __delay_cycles().
11266
11267 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11268
11269 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11270 length attribute computation.
11271
11272 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11273
11274 PR debug/61188
11275 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11276
11277 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11278
11279 PR target/61084
11280 * config/sparc/sparc.md: Fix types of low and high in DI constant
11281 splitter. Use gen_int_mode in some other splitters.
11282
11283 2014-05-14 Martin Jambor <mjambor@suse.cz>
11284
11285 PR ipa/60897
11286 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11287
11288 2014-05-14 James Norris <jnorris@codesourcery.com>
11289
11290 * omp-low.c (expand_parallel_call): Remove shadow variable.
11291 (expand_omp_taskreg): Likewise.
11292
11293 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11294
11295 * common/config/i386/i386-common.c
11296 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11297 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11298 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11299 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11300 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11301 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11302 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11303 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11304 xsavecintrin.h, xsavesintrin.h.
11305 (x86_64-*-*): Ditto.
11306 * config/i386/clflushoptintrin.h: New.
11307 * config/i386/xsavecintrin.h: Ditto.
11308 * config/i386/xsavesintrin.h: Ditto.
11309 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11310 (bit_XSAVES): Ditto.
11311 (bit_XSAVES): Ditto.
11312 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11313 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11314 -mno-clflushopt.
11315 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11316 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11317 OPTION_MASK_ISA_XSAVES.
11318 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11319 -mxsavec, -mxsaves.
11320 (PTA_CLFLUSHOPT) Define.
11321 (PTA_XSAVEC): Ditto.
11322 (PTA_XSAVES): Ditto.
11323 (ix86_option_override_internal): Handle new options.
11324 (ix86_valid_target_attribute_inner_p): Ditto.
11325 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11326 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11327 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11328 (bdesc_special_args): Add __builtin_ia32_xsaves,
11329 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11330 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11331 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11332 (ix86_expand_builtin): Handle new builtins.
11333 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11334 (TARGET_CLFLUSHOPT_P): Ditto.
11335 (TARGET_XSAVEC): Ditto.
11336 (TARGET_XSAVEC_P): Ditto.
11337 (TARGET_XSAVES): Ditto.
11338 (TARGET_XSAVES_P): Ditto.
11339 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11340 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11341 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11342 (ANY_XRSTOR): New.
11343 (ANY_XRSTOR64): Ditto.
11344 (xrstor): Ditto.
11345 (xrstor): Change into <xrstor>.
11346 (xrstor_rex64): Change into <xrstor>_rex64.
11347 (xrstor64): Change into <xrstor>64
11348 (clflushopt): New.
11349 * config/i386/i386.opt (mclflushopt): New.
11350 (mxsavec): Ditto.
11351 (mxsaves): Ditto.
11352 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11353 xsavecintrin.h.
11354 * doc/invoke.texi: Document new options.
11355
11356 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11357
11358 PR rtl-optimization/60866
11359 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11360 Default it to -1. Pass it down to init_simplejump_data.
11361 (init_simplejump_data): New parameter old_seqno. Pass it down
11362 to get_seqno_for_a_jump.
11363 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11364 initializing new jump seqno as a last resort. Add comment.
11365 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11366 jump and pass it down to sel_init_new_insn.
11367 (sel_redirect_edge_and_branch_force): Likewise.
11368
11369 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11370
11371 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11372 shifted values to avoid build warning.
11373
11374 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11375
11376 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11377 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11378 (cfg_layout_merge_blocks): Likewise.
11379 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11380
11381 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11382
11383 PR rtl-optimization/60901
11384 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11385 bb predecessor belongs to the same scheduling region. Adjust comment.
11386
11387 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11388
11389 * doc/sourcebuild.texi: (dfp_hw): Document.
11390 (p8vector_hw): Likewise.
11391 (powerpc_eabi_ok): Likewise.
11392 (powerpc_elfv2): Likewise.
11393 (powerpc_htm_ok): Likewise.
11394 (ppc_recip_hw): Likewise.
11395 (vsx_hw): Likewise.
11396
11397 2014-05-13 Cary Coutant <ccoutant@google.com>
11398
11399 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11400
11401 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11402
11403 * gengtype-parse.c (require3): Eliminate in favor of...
11404 (require4): New.
11405 (require_template_declaration): Update to support optional single *
11406 on a type.
11407
11408 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11409 (create_user_defined_type): Handle a single level of explicit
11410 pointerness within template arguments.
11411 (struct write_types_data): Add field "kind".
11412 (filter_type_name): Handle "*" character.
11413 (write_user_func_for_structure_ptr): Require a write_types_data
11414 rather than just a prefix string, so that we can look up the kind
11415 of the wtd and use it as an index into wrote_user_func_for_ptr,
11416 ensuring that such functions are written at most once. Support
11417 subclasses by invoking the marking function of the ultimate base class.
11418 (write_user_func_for_structure_body): Require a write_types_data
11419 rather than just a prefix string, so that we can pass this to
11420 write_user_func_for_structure_ptr.
11421 (write_func_for_structure): Likewise.
11422 (ggc_wtd): Add initializer of new "kind" field.
11423 (pch_wtd): Likewise.
11424
11425 * gengtype.h (enum write_types_kinds): New.
11426 (struct type): Add field wrote_user_func_for_ptr to the "s"
11427 union member.
11428
11429 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11430
11431 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11432 instead of const_binop.
11433 (fold_binary_loc): Likewise.
11434
11435 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11436
11437 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11438 calculation to match get_ref_base_and_extent.
11439
11440 2014-05-13 Catherine Moore <clm@codesourcery.com>
11441 Sandra Loosemore <sandra@codesourcery.com>
11442
11443 * configure.ac: Fix assembly for explicit JALR relocation check.
11444 * configure: Regenerate.
11445
11446 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11447
11448 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11449 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11450 Remove associated type declarations and initialisations.
11451 (arm_expand_neon_builtin): Likewise.
11452 (neon_emit_pair_result_insn): Delete.
11453 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11454 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11455 (neon_vzip<mode>): Likewise.
11456 (neon_vuzp<mode>): Likewise.
11457
11458 2014-05-13 Richard Biener <rguenther@suse.de>
11459
11460 PR ipa/60973
11461 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11462 it needs revisiting whether the call still may be tail-called.
11463
11464 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11465
11466 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11467 * rtl.h (block_symbol): Reduce number of fields to 2.
11468 (rtx_def): Add u2.symbol_ref_flags.
11469 (SYMBOL_REF_FLAGS): Use it.
11470 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11471 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11472 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11473 Lower index of SYMBOL_REF_DATA.
11474 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11475 Print SYMBOL_REF_FLAGS at the same time.
11476 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11477
11478 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11479
11480 * rtl.def (VAR_LOCATION): Remove "i" field.
11481 * rtl.h (rtx_def): Add u2.var_location_status.
11482 (PAT_VAR_LOCATION_STATUS): Use it.
11483 (gen_rtx_VAR_LOCATION): Declare.
11484 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11485 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11486 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11487
11488 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11489
11490 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11491 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11492
11493 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11494
11495 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11496 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11497 * rtl.h (rtx_def): Add insn_uid to u2 field.
11498 (RTX_FLAG_CHECK8): Delete in favor of...
11499 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11500 (INSN_DELETED_P): Update accordingly.
11501 (INSN_UID): Use u2.insn_uid.
11502 (INSN_CHAIN_CODE_P): Define.
11503 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11504 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11505 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11506 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11507 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11508 indices accordingly.
11509 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11510 Update indices for insn-chain rtxes.
11511 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11512 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11513 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11514 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11515 * combine.c (try_combine): Likewise.
11516 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11517
11518 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11519
11520 * rtl.def (REG): Remove middle field.
11521 * rtl.h (rtx_def): Add orignal_regno to u2.
11522 (ORIGINAL_REGNO): Use it instead of field 1.
11523 (REG_ATTRS): Lower field index accordingly.
11524 * gengtype.c (adjust_field_rtx_def): Remove handling of
11525 ORIGINAL_REGNO. Move REG_ATTRS index down.
11526 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11527 code that prints the REGNO.
11528
11529 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11530
11531 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11532 GENERATOR_FILE.
11533
11534 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11535
11536 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11537
11538 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11539
11540 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11541 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11542
11543 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11544
11545 * config/aarch64/aarch64-protos.h
11546 (aarch64_hard_regno_caller_save_mode): New prototype.
11547 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11548 New function.
11549 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11550
11551 2014-05-13 Christian Bruel <christian.bruel@st.com>
11552
11553 * target.def (mode_switching): New hook vector.
11554 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11555 (mode_exit, modepriority_to_mode): Likewise.
11556 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11557 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11558 * target.h: Include tm.h and hard-reg-set.h.
11559 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11560 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11561 * doc/tm.texi Regenerate.
11562 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11563 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11564 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11565 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11566 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11567 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11568 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11569 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11570 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11571 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11572 (ix86_emit_mode_set): Hookify.
11573 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11574 Delete.
11575 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11576 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11577 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11578 (epiphany_mode_priority_to_mode): Remove declaration.
11579 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11580 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11581 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11582 Likewise.
11583 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11584 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11585 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11586
11587 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11588
11589 PR target/61060
11590 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11591 is const0_rtx, return immediately. Don't test count == 0 when
11592 it is always true.
11593
11594 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11595
11596 * Makefile.in: add shrink-wrap.o.
11597 * config/i386/i386.c: include "shrink-wrap.h"
11598 * function.c: Likewise.
11599 (requires_stack_frame_p, next_block_for_reg,
11600 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11601 dup_block_and_redirect): Move to shrink-wrap.c
11602 (thread_prologue_and_epilogue_insns): Extract three code segments
11603 as functions in shrink-wrap.c
11604 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11605 shrink-wrap.h
11606 * shrink-wrap.c: New file.
11607 * shrink-wrap.h: New file.
11608
11609 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11610
11611 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11612 reference to Solaris.
11613
11614 2014-05-12 Mike Stump <mikestump@comcast.net>
11615
11616 PR other/31778
11617 * genattrtab.c (filename): Add.
11618 (convert_set_attr_alternative): Improve error message.
11619 (check_defs): Restore read_md_filename for error messages.
11620 (gen_insn): Save filename.
11621
11622 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11623
11624 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11625 -fno-local-ivars and -fivar-visibility.
11626 * c-family/c.opt: Make -Wshadow also implicitly enable
11627 -Wshadow-ivar.
11628
11629 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11630
11631 * doc/tm.texi: Remove reference to deleted macro.
11632 * doc/tm.texi.in: Likewise.
11633
11634 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11635
11636 PR target/60991
11637 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11638 to restore Y.
11639
11640 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11641
11642 PR libgcc/61152
11643 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11644 * config/arm/aout.h (License): Same.
11645 * config/arm/bpabi.h (License): Same.
11646 * config/arm/elf.h (License): Same.
11647 * config/arm/linux-elf.h (License): Same.
11648 * config/arm/linux-gas.h (License): Same.
11649 * config/arm/netbsd-elf.h (License): Same.
11650 * config/arm/uclinux-eabi.h (License): Same.
11651 * config/arm/uclinux-elf.h (License): Same.
11652 * config/arm/vxworks.h (License): Same.
11653
11654 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11655
11656 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11657 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11658 number of operands to 3.
11659 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11660 * tree-nested.c (convert_nonlocal_omp_clauses,
11661 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11662 * gimplify.c (gimplify_scan_omp_clauses): Handle
11663 OMP_CLAUSE_LINEAR_STMT.
11664 * omp-low.c (lower_rec_input_clauses): Fix typo.
11665 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11666 cast between Fortran boolean_type_node and C _Bool if
11667 needed.
11668
11669 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11670
11671 PR tree-optimization/61136
11672 * wide-int.h (multiple_of_p): Define a version that doesn't return
11673 the quotient.
11674 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11675 integer_zerop/const_binop pair.
11676 (multiple_of_p): Likewise, converting both operands to widest_int
11677 precision.
11678
11679 2014-05-09 Teresa Johnson <tejohnson@google.com>
11680
11681 * cgraphunit.c (analyze_functions): Use correct dump file.
11682
11683 2014-05-09 Florian Weimer <fweimer@redhat.com>
11684
11685 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11686 expand_used_vars.
11687 (stack_protect_return_slot_p): New function.
11688 (expand_used_vars): Call stack_protect_decl_p and
11689 stack_protect_return_slot_p for -fstack-protector-strong.
11690
11691 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11692 Andrew Haley <aph@redhat.com>
11693 Richard Sandiford <rdsandiford@googlemail.com>
11694
11695 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11696 pages.
11697
11698 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11699
11700 PR middle-end/61111
11701 * fold-const.c (fold_binary_loc): Changed width of mask.
11702
11703 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11704
11705 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11706 unsigned int initializers for regno_in, regno_out.
11707
11708 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11709
11710 PR target/61055
11711 * config/avr/avr.md (cc): Add new attribute set_vzn.
11712 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11713 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11714 with INC, DEC or NEG.
11715 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11716 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11717 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11718
11719 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11720
11721 Revert:
11722 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11723
11724 * wide-int.cc (UTItype): Define.
11725 (UDWtype): Define for appropriate W_TYPE_SIZE.
11726
11727 2014-05-09 Richard Biener <rguenther@suse.de>
11728
11729 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11730 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11731 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11732 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11733 ssa_propagate): Adjust.
11734
11735 2014-05-08 Jeff Law <law@redhat.com>
11736
11737 PR tree-optimization/61009
11738 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11739 tri-state rather than a boolean. When a block is too big to
11740 thread through, inform caller via negative return value.
11741 (thread_across_edge): If a block was too big for normal threading,
11742 then it's too big for a joiner too, so remove temporary equivalences
11743 and return immediately.
11744
11745 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11746 Matthias Klose <doko@ubuntu.com>
11747
11748 PR driver/61106
11749 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11750
11751 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11752
11753 PR target/59952
11754 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11755
11756 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11757
11758 PR target/61092
11759 * config/alpha/alpha.c: Include gimple-iterator.h.
11760 (alpha_gimple_fold_builtin): New function. Move
11761 ALPHA_BUILTIN_UMULH folding from ...
11762 (alpha_fold_builtin): ... here.
11763 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11764
11765 2014-05-08 Wei Mi <wmi@google.com>
11766
11767 PR target/58066
11768 * config/i386/i386.c (ix86_compute_frame_layout): Update
11769 preferred_stack_boundary for call, expanded from tls descriptor.
11770 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11771 to depend on SP register.
11772 (*tls_local_dynamic_base_32_gnu): Ditto.
11773 (*tls_local_dynamic_32_once): Ditto.
11774 (tls_global_dynamic_64_<mode>): Set
11775 ix86_tls_descriptor_calls_expanded_in_cfun.
11776 (tls_local_dynamic_base_64_<mode>): Ditto.
11777 (tls_global_dynamic_32): Set
11778 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11779 to depend on SP register.
11780 (tls_local_dynamic_base_32): Ditto.
11781
11782 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11783
11784 * config/arm/arm_neon.h: Update comment.
11785 * config/arm/neon-docgen.ml: Delete.
11786 * config/arm/neon-gen.ml: Delete.
11787 * doc/arm-neon-intrinsics.texi: Update comment.
11788
11789 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11790
11791 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11792 and v4sf versions.
11793 (vand, vorr, veor, vorn, vbic): Remove.
11794 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11795 iterator.
11796 (neon_vsub_unspec): Likewise.
11797 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11798
11799 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11800
11801 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11802 (vadd_s16): Likewise.
11803 (vadd_s32): Likewise.
11804 (vadd_f32): Likewise.
11805 (vadd_u8): Likewise.
11806 (vadd_u16): Likewise.
11807 (vadd_u32): Likewise.
11808 (vadd_s64): Likewise.
11809 (vadd_u64): Likewise.
11810 (vaddq_s8): Likewise.
11811 (vaddq_s16): Likewise.
11812 (vaddq_s32): Likewise.
11813 (vaddq_s64): Likewise.
11814 (vaddq_f32): Likewise.
11815 (vaddq_u8): Likewise.
11816 (vaddq_u16): Likewise.
11817 (vaddq_u32): Likewise.
11818 (vaddq_u64): Likewise.
11819 (vmul_s8): Likewise.
11820 (vmul_s16): Likewise.
11821 (vmul_s32): Likewise.
11822 (vmul_f32): Likewise.
11823 (vmul_u8): Likewise.
11824 (vmul_u16): Likewise.
11825 (vmul_u32): Likewise.
11826 (vmul_p8): Likewise.
11827 (vmulq_s8): Likewise.
11828 (vmulq_s16): Likewise.
11829 (vmulq_s32): Likewise.
11830 (vmulq_f32): Likewise.
11831 (vmulq_u8): Likewise.
11832 (vmulq_u16): Likewise.
11833 (vmulq_u32): Likewise.
11834 (vsub_s8): Likewise.
11835 (vsub_s16): Likewise.
11836 (vsub_s32): Likewise.
11837 (vsub_f32): Likewise.
11838 (vsub_u8): Likewise.
11839 (vsub_u16): Likewise.
11840 (vsub_u32): Likewise.
11841 (vsub_s64): Likewise.
11842 (vsub_u64): Likewise.
11843 (vsubq_s8): Likewise.
11844 (vsubq_s16): Likewise.
11845 (vsubq_s32): Likewise.
11846 (vsubq_s64): Likewise.
11847 (vsubq_f32): Likewise.
11848 (vsubq_u8): Likewise.
11849 (vsubq_u16): Likewise.
11850 (vsubq_u32): Likewise.
11851 (vsubq_u64): Likewise.
11852 (vand_s8): Likewise.
11853 (vand_s16): Likewise.
11854 (vand_s32): Likewise.
11855 (vand_u8): Likewise.
11856 (vand_u16): Likewise.
11857 (vand_u32): Likewise.
11858 (vand_s64): Likewise.
11859 (vand_u64): Likewise.
11860 (vandq_s8): Likewise.
11861 (vandq_s16): Likewise.
11862 (vandq_s32): Likewise.
11863 (vandq_s64): Likewise.
11864 (vandq_u8): Likewise.
11865 (vandq_u16): Likewise.
11866 (vandq_u32): Likewise.
11867 (vandq_u64): Likewise.
11868 (vorr_s8): Likewise.
11869 (vorr_s16): Likewise.
11870 (vorr_s32): Likewise.
11871 (vorr_u8): Likewise.
11872 (vorr_u16): Likewise.
11873 (vorr_u32): Likewise.
11874 (vorr_s64): Likewise.
11875 (vorr_u64): Likewise.
11876 (vorrq_s8): Likewise.
11877 (vorrq_s16): Likewise.
11878 (vorrq_s32): Likewise.
11879 (vorrq_s64): Likewise.
11880 (vorrq_u8): Likewise.
11881 (vorrq_u16): Likewise.
11882 (vorrq_u32): Likewise.
11883 (vorrq_u64): Likewise.
11884 (veor_s8): Likewise.
11885 (veor_s16): Likewise.
11886 (veor_s32): Likewise.
11887 (veor_u8): Likewise.
11888 (veor_u16): Likewise.
11889 (veor_u32): Likewise.
11890 (veor_s64): Likewise.
11891 (veor_u64): Likewise.
11892 (veorq_s8): Likewise.
11893 (veorq_s16): Likewise.
11894 (veorq_s32): Likewise.
11895 (veorq_s64): Likewise.
11896 (veorq_u8): Likewise.
11897 (veorq_u16): Likewise.
11898 (veorq_u32): Likewise.
11899 (veorq_u64): Likewise.
11900 (vbic_s8): Likewise.
11901 (vbic_s16): Likewise.
11902 (vbic_s32): Likewise.
11903 (vbic_u8): Likewise.
11904 (vbic_u16): Likewise.
11905 (vbic_u32): Likewise.
11906 (vbic_s64): Likewise.
11907 (vbic_u64): Likewise.
11908 (vbicq_s8): Likewise.
11909 (vbicq_s16): Likewise.
11910 (vbicq_s32): Likewise.
11911 (vbicq_s64): Likewise.
11912 (vbicq_u8): Likewise.
11913 (vbicq_u16): Likewise.
11914 (vbicq_u32): Likewise.
11915 (vbicq_u64): Likewise.
11916 (vorn_s8): Likewise.
11917 (vorn_s16): Likewise.
11918 (vorn_s32): Likewise.
11919 (vorn_u8): Likewise.
11920 (vorn_u16): Likewise.
11921 (vorn_u32): Likewise.
11922 (vorn_s64): Likewise.
11923 (vorn_u64): Likewise.
11924 (vornq_s8): Likewise.
11925 (vornq_s16): Likewise.
11926 (vornq_s32): Likewise.
11927 (vornq_s64): Likewise.
11928 (vornq_u8): Likewise.
11929 (vornq_u16): Likewise.
11930 (vornq_u32): Likewise.
11931 (vornq_u64): Likewise.
11932
11933 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11934
11935 * wide-int.cc (UTItype): Define.
11936 (UDWtype): Define for appropriate W_TYPE_SIZE.
11937
11938 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
11939
11940 PR tree-optimization/59100
11941 * tree-ssa-phiopt.c: Include tree-inline.h.
11942 (neutral_element_p, absorbing_element_p): New functions.
11943 (value_replacement): Handle conditional binary operations with a
11944 neutral or absorbing element.
11945
11946 2014-05-08 Richard Biener <rguenther@suse.de>
11947
11948 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
11949 folding the expression.
11950 (valueize_expr): Remove.
11951 (visit_reference_op_load): Do not valueize the result of
11952 vn_get_expr_for.
11953 (simplify_binary_expression): Likewise.
11954 (simplify_unary_expression): Likewise.
11955
11956 2014-05-08 Richard Biener <rguenther@suse.de>
11957
11958 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
11959 looking at TYPE_ARG_TYPES.
11960
11961 2014-05-08 Richard Biener <rguenther@suse.de>
11962
11963 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11964 pointer propagation special-case.
11965
11966 2014-05-08 Bin Cheng <bin.cheng@arm.com>
11967
11968 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
11969 core part of address expressions.
11970
11971 2014-05-08 Alan Modra <amodra@gmail.com>
11972
11973 PR target/60737
11974 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
11975 loads and stores when -mno-strict-align at any alignment.
11976 (expand_block_clear): Similarly. Also correct calculation of
11977 instruction count.
11978
11979 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11980
11981 PR middle-end/39246
11982 * tree-complex.c (expand_complex_move): Keep line info when expanding
11983 complex move.
11984 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
11985 of complex expression. Use new argument to display correct location
11986 for values coming from phi statement.
11987 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
11988 (warn_uninitialized_phi): Pass location of phi argument to
11989 warn_uninit.
11990 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
11991 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
11992
11993 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11994
11995 * config/rs6000/predicates.md (indexed_address_mem): New.
11996 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
11997 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
11998 fpstore_ux, fpstore_u.
11999 (sign_extend, indexed, update): New.
12000 (cell_micro): Adjust.
12001 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12002 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12003 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12004 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12005 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12006 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12007 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12008 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12009 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12010 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12011 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12012 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12013 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12014 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12015 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12016
12017 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12018 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12019 *vsx_extract_<mode>_store): Adjust.
12020 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12021 is_cracked_insn, insn_must_be_first_in_group,
12022 insn_must_be_last_in_group): Adjust.
12023
12024 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12025 Adjust.
12026 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12027 ppc440-fpstore): Adjust.
12028 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12029 ppc476-fpstore): Adjust.
12030 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12031 ppc601-fpstore): Adjust.
12032 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12033 Adjust.
12034 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12035 Adjust.
12036 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12037 ppc7450-fpstore): Adjust.
12038 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12039 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12040 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12041 Adjust.
12042 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12043 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12044 cell-fpstore, cell-fpstore-update): Adjust.
12045 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12046 ppce300c3_store, ppce300c3_fpstore): Adjust.
12047 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12048 e500mc_fpstore): Adjust.
12049 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12050 e500mc64_store, e500mc64_fpstore): Adjust.
12051 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12052 e5500_fpstore): Adjust.
12053 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12054 e6500_fpstore): Adjust.
12055 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12056 Adjust.
12057 * config/rs6000/power4.md (power4-load, power4-load-ext,
12058 power4-load-ext-update, power4-load-ext-update-indexed,
12059 power4-load-update-indexed, power4-load-update, power4-fpload,
12060 power4-fpload-update, power4-store, power4-store-update,
12061 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12062 Adjust.
12063 * config/rs6000/power5.md (power5-load, power5-load-ext,
12064 power5-load-ext-update, power5-load-ext-update-indexed,
12065 power5-load-update-indexed, power5-load-update, power5-fpload,
12066 power5-fpload-update, power5-store, power5-store-update,
12067 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12068 Adjust.
12069 * config/rs6000/power6.md (power6-load, power6-load-ext,
12070 power6-load-update, power6-load-update-indexed,
12071 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12072 power6-fpload-update, power6-store, power6-store-update,
12073 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12074 Adjust.
12075 * config/rs6000/power7.md (power7-load, power7-load-ext,
12076 power7-load-update, power7-load-update-indexed,
12077 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12078 power7-fpload-update, power7-store, power7-store-update,
12079 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12080 Adjust.
12081 * config/rs6000/power8.md (power8-load, power8-load-update,
12082 power8-load-ext, power8-load-ext-update, power8-fpload,
12083 power8-fpload-update, power8-store, power8-store-update-indexed,
12084 power8-fpstore, power8-fpstore-update): Adjust.
12085 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12086 Adjust.
12087 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12088 titan_lsu_store, titan_lsu_fpstore): Adjust.
12089 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12090
12091 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12092
12093 PR target/60884
12094 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12095 unrolled byte insns. Emit address increments after move insns.
12096
12097 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12098
12099 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12100 const_gimple, rather than a gimple.
12101 (gimple_call_builtin_p): Likewise, for the three variants.
12102
12103 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12104 (gimple_call_builtin_p): Likewise, for the three variants.
12105
12106 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12107
12108 PR tree-optimization/61095
12109 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12110
12111 2014-05-07 Richard Biener <rguenther@suse.de>
12112
12113 PR tree-optimization/61034
12114 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12115 (maybe_skip_until): Use translate to take into account
12116 lattices when trying to do disambiguations.
12117 (get_continuation_for_phi_1): Likewise.
12118 (get_continuation_for_phi): Adjust for added translate arguments.
12119 (walk_non_aliased_vuses): Likewise.
12120 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12121 (walk_non_aliased_vuses): Likewise.
12122 (call_may_clobber_ref_p_1): Declare.
12123 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12124 calls. Stop early if we are only supposed to disambiguate.
12125 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12126
12127 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12128
12129 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12130 Emit an error when the function has arguments.
12131
12132 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12133
12134 * cfgloop.h (unswitch_loops): Remove.
12135 * doc/passes.texi: Remove references to loop-unswitch.c
12136 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12137
12138 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12139
12140 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12141 check for loads group of length 3.
12142 (vect_permute_load_chain): New permutations for loads group of
12143 length 3.
12144 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12145 of vec_perm_shuffle for the new permutations.
12146
12147 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12148
12149 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12150 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12151 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12152 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12153 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12154 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12155 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12156 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12157
12158 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12159
12160 * loop-unswitch.c: Delete.
12161
12162 2014-05-07 Richard Biener <rguenther@suse.de>
12163
12164 * config.gcc: Always set need_64bit_hwint to yes.
12165
12166 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12167
12168 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12169 of using optimize_size.
12170
12171 2014-05-06 Mike Stump <mikestump@comcast.net>
12172
12173 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12174
12175 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12176
12177 * config/i386/sse.md (*mov<mode>_internal)
12178 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12179 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12180 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12181 (*<code><mode>3, *andnot<mode>3<mask_name>)
12182 (<mask_codefor><code><mode>3<mask_name>): Only consider
12183 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12184
12185 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12186
12187 Revert:
12188 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12189
12190 * lra-constraints.c (valid_address_p): Move earlier in file.
12191 Add a constraint argument to the address_info version.
12192 (satisfies_memory_constraint_p): New function.
12193 (satisfies_address_constraint_p): Likewise.
12194 (process_alt_operands, curr_insn_transform): Use them.
12195 (process_address): Pass the constraint to valid_address_p when
12196 checking address operands.
12197
12198 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12199
12200 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12201 to their respective blocks. Fix inadvertent use of "node".
12202
12203 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12204
12205 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12206 out from...
12207 (init_emit_once): ...here.
12208 * rtl.h (init_derived_machine_modes): Declare.
12209 * toplev.c (do_compile): Call it even if no_backend.
12210
12211 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12212 Mike Stump <mikestump@comcast.net>
12213 Richard Sandiford <rdsandiford@googlemail.com>
12214 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12215
12216 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12217 (rtx_equal_for_memref_p): Update comment.
12218 (adjust_offset_for_component_ref): Use wide-int interfaces.
12219 * builtins.c (get_object_alignment_2): Likewise.
12220 (c_readstr): Likewise.
12221 (target_char_cast): Add comment.
12222 (determine_block_size): Use wide-int interfaces.
12223 (expand_builtin_signbit): Likewise.
12224 (fold_builtin_int_roundingfn): Likewise.
12225 (fold_builtin_bitop): Likewise.
12226 (fold_builtin_bswap): Likewise.
12227 (fold_builtin_logarithm): Use signop.
12228 (fold_builtin_pow): Likewise.
12229 (fold_builtin_memory_op): Use wide-int interfaces.
12230 (fold_builtin_object_size): Likewise.
12231 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12232 nb_iterations_estimate.
12233 (record_niter_bound): Use wide-int interfaces.
12234 (get_estimated_loop_iterations_int): Likewise.
12235 (get_estimated_loop_iterations): Likewise.
12236 (get_max_loop_iterations): Likewise.
12237 * cfgloop.h: Include wide-int.h.
12238 (struct nb_iter_bound): Change bound to widest_int.
12239 (struct loop): Change nb_iterations_upper_bound and
12240 nb_iterations_estimate to widest_int.
12241 (record_niter_bound): Switch to use widest_int.
12242 (get_estimated_loop_iterations): Likewise.
12243 (get_max_loop_iterations): Likewise.
12244 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12245 update for wide-int.
12246 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12247 * combine.c (try_combine): Likewise.
12248 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12249 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12250 interfaces.
12251 (aarch64_float_const_representable_p): Likewise.
12252 * config/arc/arc.c: Include wide-int.h.
12253 (arc_can_use_doloop_p): Use wide-int interfaces.
12254 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12255 (vfp3_const_double_index): Likewise.
12256 * config/avr/avr.c (avr_out_round): Likewise.
12257 (avr_fold_builtin): Likewise.
12258 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12259 (bfin_can_use_doloop_p): Likewise.
12260 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12261 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12262 * config/i386/i386.c: Include wide-int.h.
12263 (ix86_data_alignment): Use wide-int interfaces.
12264 (ix86_local_alignment): Likewise.
12265 (ix86_emit_swsqrtsf): Update real_from_integer.
12266 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12267 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12268 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12269 (zero_constant): Likewise.
12270 (input_operand): Likewise.
12271 (splat_input_operand): Likewise.
12272 (non_logical_cint_operand): Change const_double to const_wide_int.
12273 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12274 (easy_altivec_constant): Remove comment.
12275 (paired_expand_vector_init): Use CONSTANT_P.
12276 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12277 (rs6000_emit_move): Update checks.
12278 (rs6000_aggregate_candidate): Use wide-int interfaces.
12279 (rs6000_expand_ternop_builtin): Likewise.
12280 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12281 (rs6000_assemble_integer): Likewise.
12282 (rs6000_hash_constant): Likewise.
12283 (output_toc): Likewise.
12284 (rs6000_rtx_costs): Likewise.
12285 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12286 * config/rs6000/rs6000-c.c: Include wide-int.h.
12287 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12288 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12289 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12290 Handle CONST_WIDE_INT.
12291 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12292 Use tree_fits_uhwi_p.
12293 * config/sparc/sparc.c: Include wide-int.h.
12294 (sparc_fold_builtin): Use wide-int interfaces.
12295 * config/vax/vax.c: Include wide-int.h.
12296 (vax_float_literal): Use real_from_integer.
12297 * coretypes.h (struct hwivec_def): New.
12298 (hwivec): New.
12299 (const_hwivec): New.
12300 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12301 (equiv_constant): Handle CONST_WIDE_INT.
12302 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12303 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12304 * dbxout.c (stabstr_U): Use wide-int interfaces.
12305 (dbxout_type): Update to use cst_fits_shwi_p.
12306 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12307 (TARGET_SUPPORTS_WIDE_INT): Add default.
12308 * dfp.c: Include wide-int.h.
12309 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12310 decimal_real_to_integer.
12311 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12312 decimal_real_to_integer.
12313 * doc/generic.texi (Constant expressions): Update for wide_int.
12314 * doc/rtl.texi (const_double): Likewise.
12315 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12316 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12317 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12318 (REAL_VALUE_FROM_INT): Remove.
12319 (TARGET_SUPPORTS_WIDE_INT): New.
12320 * doc/tm.texi: Regenerate.
12321 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12322 * double-int.h: Include wide-int.h.
12323 (struct wi::int_traits): New.
12324 * dwarf2out.c (get_full_len): New.
12325 (dw_val_equal_p): Add case dw_val_class_wide_int.
12326 (size_of_loc_descr): Likewise.
12327 (output_loc_operands): Likewise.
12328 (insert_double): Remove.
12329 (insert_wide_int): New.
12330 (add_AT_wide): New.
12331 (print_die): Add case dw_val_class_wide_int.
12332 (attr_checksum): Likewise.
12333 (attr_checksum_ordered): Likewise.
12334 (same_dw_val_p): Likewise.
12335 (size_of_die): Likewise.
12336 (value_format): Likewise.
12337 (output_die): Likewise.
12338 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12339 Use wide-int.
12340 (clz_loc_descriptor): Use wide-int interfaces.
12341 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12342 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12343 (round_up_to_align): Use wide-int interfaces.
12344 (field_byte_offset): Likewise.
12345 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12346 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12347 CONST_DOUBLE handling. Use wide-int interfaces.
12348 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12349 (gen_enumeration_type_die): Use add_AT_wide.
12350 (hash_loc_operands): Add case dw_val_class_wide_int.
12351 (compare_loc_operands): Likewise.
12352 * dwarf2out.h: Include wide-int.h.
12353 (wide_int_ptr): New.
12354 (enum dw_val_class): Add dw_val_class_wide_int.
12355 (struct dw_val_struct): Add val_wide.
12356 * emit-rtl.c (const_wide_int_htab): New.
12357 (const_wide_int_htab_hash): New.
12358 (const_wide_int_htab_eq): New.
12359 (lookup_const_wide_int): New.
12360 (const_double_htab_hash): Use wide-int interfaces.
12361 (const_double_htab_eq): Likewise.
12362 (rtx_to_double_int): Conditionally compile for wide-int.
12363 (immed_double_int_const): Rename to immed_wide_int_const and
12364 update for wide-int.
12365 (immed_double_const): Conditionally compile for wide-int.
12366 (init_emit_once): Use wide-int interfaces.
12367 * explow.c (plus_constant): Likewise.
12368 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12369 (lshift_value): Use wide-int interfaces.
12370 (expand_mult): Likewise.
12371 (choose_multiplier): Likewise.
12372 (expand_smod_pow2): Likewise.
12373 (make_tree): Likewise.
12374 * expr.c (convert_modes): Consolidate handling of constants.
12375 Use wide-int interfaces.
12376 (emit_group_load_1): Add note.
12377 (store_expr): Update comment.
12378 (get_inner_reference): Use wide-int interfaces.
12379 (expand_constructor): Update comment.
12380 (expand_expr_real_2): Use wide-int interfaces.
12381 (expand_expr_real_1): Likewise.
12382 (reduce_to_bit_field_precision): Likewise.
12383 (const_vector_from_tree): Likewise.
12384 * final.c: Include wide-int-print.h.
12385 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12386 * fixed-value.c: Include wide-int.h.
12387 (fixed_from_string): Use wide-int interfaces.
12388 (fixed_to_decimal): Likewise.
12389 (fixed_convert_from_real): Likewise.
12390 (real_convert_from_fixed): Likewise.
12391 * fold-const.h (mem_ref_offset): Return an offset_int.
12392 (div_if_zero_remainder): Remove code parameter.
12393 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12394 Use wide-int interfaces.
12395 (may_negate_without_overflow_p): Use wide-int interfaces.
12396 (negate_expr_p): Likewise.
12397 (fold_negate_expr): Likewise.
12398 (int_const_binop_1): Likewise.
12399 (const_binop): Likewise.
12400 (fold_convert_const_int_from_int): Likewise.
12401 (fold_convert_const_int_from_real): Likewise.
12402 (fold_convert_const_int_from_fixed): Likewise.
12403 (fold_convert_const_fixed_from_int): Likewise.
12404 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12405 (sign_bit_p): Use wide-int interfaces.
12406 (make_range_step): Likewise.
12407 (build_range_check): Likewise. Pass an integer of the correct type
12408 instead of using integer_one_node.
12409 (range_predecessor): Pass an integer of the correct type instead
12410 of using integer_one_node.
12411 (range_successor): Likewise.
12412 (merge_ranges): Likewise.
12413 (unextend): Use wide-int interfaces.
12414 (extract_muldiv_1): Likewise.
12415 (fold_div_compare): Likewise.
12416 (fold_single_bit_test): Likewise.
12417 (fold_sign_changed_comparison): Likewise.
12418 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12419 (fold_plusminus_mult_expr): Use wide-int interfaces.
12420 (native_encode_int): Likewise.
12421 (native_interpret_int): Likewise.
12422 (fold_unary_loc): Likewise.
12423 (pointer_may_wrap_p): Likewise.
12424 (size_low_cst): Likewise.
12425 (mask_with_tz): Likewise.
12426 (fold_binary_loc): Likewise.
12427 (fold_ternary_loc): Likewise.
12428 (multiple_of_p): Likewise.
12429 (tree_call_nonnegative_warnv_p): Update calls to
12430 tree_int_cst_min_precision and real_from_integer.
12431 (fold_negate_const): Use wide-int interfaces.
12432 (fold_abs_const): Likewise.
12433 (fold_relational_const): Use tree_int_cst_lt.
12434 (round_up_loc): Use wide-int interfaces.
12435 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12436 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12437 * gengtype.c: Remove include of double-int.h.
12438 (do_typedef): Use wide-int interfaces.
12439 (open_base_files): Add wide-int.h.
12440 (main): Add offset_int and widest_int typedefs.
12441 * gengtype-lex.l: Handle "^".
12442 (CXX_KEYWORD): Add "static".
12443 * gengtype-parse.c (require3): New.
12444 (require_template_declaration): Handle constant template arguments
12445 and nested templates.
12446 * gengtype-state.c: Don't include "double-int.h".
12447 * genpreds.c (write_one_predicate_function): Update comment.
12448 (write_tm_constrs_h): Add check for hval and lval use in
12449 CONST_WIDE_INT.
12450 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12451 (add_to_sequence): Likewise.
12452 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12453 and const_double_operand.
12454 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12455 interfaces.
12456 * gimple-fold.c (get_base_constructor): Likewise.
12457 (fold_array_ctor_reference): Likewise.
12458 (fold_nonarray_ctor_reference): Likewise.
12459 (fold_const_aggregate_ref_1): Likewise.
12460 (gimple_val_nonnegative_real_p): Likewise.
12461 (gimple_fold_indirect_ref): Likewise.
12462 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12463 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12464 (struct slsr_cand_d): Change index to be widest_int.
12465 (struct incr_info_d): Change incr to be widest_int.
12466 (alloc_cand_and_find_basis): Use wide-int interfaces.
12467 (slsr_process_phi): Likewise.
12468 (backtrace_base_for_ref): Likewise. Return a widest_int.
12469 (restructure_reference): Take a widest_int instead of a double_int.
12470 (slsr_process_ref): Use wide-int interfaces.
12471 (create_mul_ssa_cand): Likewise.
12472 (create_mul_imm_cand): Likewise.
12473 (create_add_ssa_cand): Likewise.
12474 (create_add_imm_cand): Take a widest_int instead of a double_int.
12475 (slsr_process_add): Use wide-int interfaces.
12476 (slsr_process_cast): Likewise.
12477 (slsr_process_copy): Likewise.
12478 (dump_candidate): Likewise.
12479 (dump_incr_vec): Likewise.
12480 (replace_ref): Likewise.
12481 (cand_increment): Likewise. Return a widest_int.
12482 (cand_abs_increment): Likewise.
12483 (replace_mult_candidate): Take a widest_int instead of a double_int.
12484 (replace_unconditional_candidate): Use wide-int interfaces.
12485 (incr_vec_index): Take a widest_int instead of a double_int.
12486 (create_add_on_incoming_edge): Likewise.
12487 (create_phi_basis): Use wide-int interfaces.
12488 (replace_conditional_candidate): Likewise.
12489 (record_increment): Take a widest_int instead of a double_int.
12490 (record_phi_increments): Use wide-int interfaces.
12491 (phi_incr_cost): Take a widest_int instead of a double_int.
12492 (lowest_cost_path): Likewise.
12493 (total_savings): Likewise.
12494 (analyze_increments): Use wide-int interfaces.
12495 (ncd_with_phi): Take a widest_int instead of a double_int.
12496 (ncd_of_cand_and_phis): Likewise.
12497 (nearest_common_dominator_for_cands): Likewise.
12498 (insert_initializers): Use wide-int interfaces.
12499 (all_phi_incrs_profitable): Likewise.
12500 (replace_one_candidate): Likewise.
12501 (replace_profitable_candidates): Likewise.
12502 * godump.c: Include wide-int-print.h.
12503 (go_output_typedef): Use wide-int interfaces.
12504 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12505 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12506 (build_loop_iteration_domains): Likewise.
12507 * hooks.h: Include wide-int.h rather than double-int.h.
12508 (hook_bool_dint_dint_uint_bool_true): Delete.
12509 (hook_bool_wint_wint_uint_bool_true): Declare.
12510 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12511 (hook_bool_wint_wint_uint_bool_true): New.
12512 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12513 interfaces.
12514 (ubsan_expand_si_overflow_mul_check): Likewise.
12515 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12516 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12517 (get_ancestor_addr_info): Likewise.
12518 (ipa_modify_call_arguments): Likewise.
12519 * loop-doloop.c (doloop_modify): Likewise.
12520 (doloop_optimize): Likewise.
12521 * loop-iv.c (iv_number_of_iterations): Likewise.
12522 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12523 (unroll_loop_constant_iterations): Likewise.
12524 (decide_unroll_runtime_iterations): Likewise.
12525 (unroll_loop_runtime_iterations): Likewise.
12526 (decide_peel_simple): Likewise.
12527 (decide_unroll_stupid): Likewise.
12528 * lto-streamer-in.c (streamer_read_wi): Add.
12529 (input_cfg): Use wide-int interfaces.
12530 (lto_input_tree_1): Likewise.
12531 * lto-streamer-out.c (streamer_write_wi): Add.
12532 (hash_tree): Use wide-int interfaces.
12533 (output_cfg): Likewise.
12534 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12535 (GTFILES): Add wide-int.h and signop.h.
12536 (TAGS): Look for .cc files too.
12537 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12538 * optabs.c (expand_subword_shift): Likewise.
12539 (expand_doubleword_shift): Likewise.
12540 (expand_absneg_bit): Likewise.
12541 (expand_copysign_absneg): Likewise.
12542 (expand_copysign_bit): Likewise.
12543 * postreload.c (reload_cse_simplify_set): Likewise.
12544 * predict.c (predict_iv_comparison): Likewise.
12545 * pretty-print.h: Include wide-int-print.h.
12546 (pp_wide_int) New.
12547 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12548 * print-tree.c: Include wide-int-print.h.
12549 (print_node_brief): Use wide-int interfaces.
12550 (print_node): Likewise.
12551 * read-rtl.c (validate_const_wide_int): New.
12552 (read_rtx_code): Add CONST_WIDE_INT case.
12553 * real.c: Include wide-int.h.
12554 (real_to_integer2): Delete.
12555 (real_to_integer): New function, returning a wide_int.
12556 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12557 (ten_to_ptwo): Update call to real_from_integer.
12558 (real_digit): Likewise.
12559 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12560 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12561 (REAL_VALUE_TO_INT): Delete.
12562 (real_to_integer): Declare a wide-int form.
12563 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12564 * recog.c (const_int_operand): Improve comment.
12565 (const_scalar_int_operand): New.
12566 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12567 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12568 (split_double): Likewise.
12569 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12570 (rtx_size): Likewise.
12571 (rtx_alloc_stat_v): New.
12572 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12573 (cwi_output_hex): New.
12574 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12575 (cwi_check_failed_bounds): New.
12576 * rtl.def (CONST_WIDE_INT): New.
12577 * rtl.h: Include <utility> and wide-int.h.
12578 (struct hwivec_def): New.
12579 (CWI_GET_NUM_ELEM): New.
12580 (CWI_PUT_NUM_ELEM): New.
12581 (struct rtx_def): Add num_elem and hwiv.
12582 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12583 (CASE_CONST_UNIQUE): Likewise.
12584 (CASE_CONST_ANY): Likewise.
12585 (CONST_SCALAR_INT_P): Likewise.
12586 (CONST_WIDE_INT_P): New.
12587 (CWI_ELT): New.
12588 (HWIVEC_CHECK): New.
12589 (cwi_check_failed_bounds): New.
12590 (CWI_ELT): New.
12591 (HWIVEC_CHECK): New.
12592 (CONST_WIDE_INT_VEC) New.
12593 (CONST_WIDE_INT_NUNITS) New.
12594 (CONST_WIDE_INT_ELT) New.
12595 (rtx_mode_t): New type.
12596 (wi::int_traits <rtx_mode_t>): New.
12597 (wi::shwi): New.
12598 (wi::min_value): New.
12599 (wi::max_value): New.
12600 (rtx_alloc_v) New.
12601 (const_wide_int_alloc): New.
12602 (immed_wide_int_const): New.
12603 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12604 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12605 * signop.h: New file.
12606 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12607 (simplify_const_unary_operation): Use wide-int interfaces.
12608 (simplify_binary_operation_1): Likewise.
12609 (simplify_const_binary_operation): Likewise.
12610 (simplify_const_relational_operation): Likewise.
12611 (simplify_immed_subreg): Likewise.
12612 * stmt.c (expand_case): Likewise.
12613 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12614 signop rather than a bool.
12615 * stor-layout.c (layout_type): Use wide-int interfaces.
12616 (initialize_sizetypes): Update calls to
12617 set_min_and_max_values_for_integral_type.
12618 (set_min_and_max_values_for_integral_type): Take a signop rather
12619 than a bool. Use wide-int interfaces.
12620 (fixup_signed_type): Update accordingly. Remove
12621 HOST_BITS_PER_DOUBLE_INT limit.
12622 (fixup_unsigned_type): Likewise.
12623 * system.h (STATIC_CONSTANT_P): New.
12624 (STATIC_ASSERT): New.
12625 * target.def (can_use_doloop_p): Take widest_ints rather than
12626 double_ints.
12627 * target.h: Include wide-int.h rather than double-int.h.
12628 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12629 than double_ints.
12630 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12631 rather than INT_CST_LT_UNSIGNED.
12632 (can_use_doloop_if_innermost): Take widest_ints rather than
12633 double_ints.
12634 * tree-affine.c: Include wide-int-print.h.
12635 (double_int_ext_for_comb): Delete.
12636 (wide_int_ext_for_comb): New.
12637 (aff_combination_zero): Use wide-int interfaces.
12638 (aff_combination_const): Take a widest_int instead of a double_int.
12639 (aff_combination_elt): Use wide-int interfaces.
12640 (aff_combination_scale): Take a widest_int instead of a double_int.
12641 (aff_combination_add_elt): Likewise.
12642 (aff_combination_add_cst): Likewise.
12643 (aff_combination_add): Use wide-int interfaces.
12644 (aff_combination_convert): Likewise.
12645 (tree_to_aff_combination): Likewise.
12646 (add_elt_to_tree): Take a widest_int instead of a double_int.
12647 (aff_combination_to_tree): Use wide-int interfaces.
12648 (aff_combination_remove_elt): Likewise.
12649 (aff_combination_add_product): Take a widest_int instead of
12650 a double_int.
12651 (aff_combination_mult): Use wide-int interfaces.
12652 (aff_combination_expand): Likewise.
12653 (double_int_constant_multiple_p): Delete.
12654 (wide_int_constant_multiple_p): New.
12655 (aff_combination_constant_multiple_p): Take a widest_int pointer
12656 instead of a double_int pointer.
12657 (print_aff): Use wide-int interfaces.
12658 (get_inner_reference_aff): Take a widest_int pointer
12659 instead of a double_int pointer.
12660 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12661 * tree-affine.h: Include wide-int.h.
12662 (struct aff_comb_elt): Change type of coef to widest_int.
12663 (struct affine_tree_combination): Change type of offset to widest_int.
12664 (double_int_ext_for_comb): Delete.
12665 (wide_int_ext_for_comb): New.
12666 (aff_combination_const): Use widest_int instead of double_int.
12667 (aff_combination_scale): Likewise.
12668 (aff_combination_add_elt): Likewise.
12669 (aff_combination_constant_multiple_p): Likewise.
12670 (get_inner_reference_aff): Likewise.
12671 (aff_comb_cannot_overlap_p): Likewise.
12672 (aff_combination_zero_p): Use wide-int interfaces.
12673 * tree.c: Include tree.h.
12674 (init_ttree): Use make_int_cst.
12675 (tree_code_size): Removed code for INTEGER_CST case.
12676 (tree_size): Add INTEGER_CST case.
12677 (make_node_stat): Update comment.
12678 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12679 (build_int_cst_type): Use wide-int interfaces.
12680 (double_int_to_tree): Likewise.
12681 (double_int_fits_to_tree_p): Delete.
12682 (force_fit_type_double): Delete.
12683 (force_fit_type): New.
12684 (int_cst_hash_hash): Use wide-int interfaces.
12685 (int_cst_hash_eq): Likewise.
12686 (build_int_cst_wide): Delete.
12687 (wide_int_to_tree): New.
12688 (cache_integer_cst): Use wide-int interfaces.
12689 (build_low_bits_mask): Likewise.
12690 (cst_and_fits_in_hwi): Likewise.
12691 (real_value_from_int_cst): Likewise.
12692 (make_int_cst_stat): New.
12693 (integer_zerop): Use wide_int interfaces.
12694 (integer_onep): Likewise.
12695 (integer_all_onesp): Likewise.
12696 (integer_pow2p): Likewise.
12697 (integer_nonzerop): Likewise.
12698 (tree_log2): Likewise.
12699 (tree_floor_log2): Likewise.
12700 (tree_ctz): Likewise.
12701 (int_size_in_bytes): Likewise.
12702 (mem_ref_offset): Return an offset_int rather than a double_int.
12703 (build_type_attribute_qual_variant): Use wide_int interfaces.
12704 (type_hash_eq): Likewise
12705 (tree_int_cst_equal): Likewise.
12706 (tree_int_cst_lt): Delete.
12707 (tree_int_cst_compare): Likewise.
12708 (tree_fits_shwi_p): Use wide_int interfaces.
12709 (tree_fits_uhwi_p): Likewise.
12710 (tree_int_cst_sign_bit): Likewise.
12711 (tree_int_cst_sgn): Likewise.
12712 (tree_int_cst_min_precision): Take a signop rather than a bool.
12713 (simple_cst_equal): Use wide_int interfaces.
12714 (compare_tree_int): Likewise.
12715 (iterative_hash_expr): Likewise.
12716 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12717 INT_CST_LT.
12718 (get_type_static_bounds): Use wide_int interfaces.
12719 (tree_int_cst_elt_check_failed): New.
12720 (build_common_tree_nodes): Reordered to set prec before filling in
12721 value.
12722 (int_cst_value): Check cst_and_fits_in_hwi.
12723 (widest_int_cst_value): Use wide_int interfaces.
12724 (upper_bound_in_type): Likewise.
12725 (lower_bound_in_type): Likewise.
12726 (num_ending_zeros): Likewise.
12727 (drop_tree_overflow): Likewise.
12728 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12729 (gen_conditions_for_pow_cst_base): Likewise.
12730 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12731 (group_case_labels_stmt): Use wide-int interfaces.
12732 (verify_gimple_assign_binary): Likewise.
12733 (print_loop): Likewise.
12734 * tree-chrec.c (tree_fold_binomial): Likewise.
12735 * tree-core.h (struct tree_base): Add int_length.
12736 (struct tree_int_cst): Change rep of value.
12737 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12738 (dr_may_alias_p): Likewise.
12739 (max_stmt_executions_tree): Likewise.
12740 * tree.def (INTEGER_CST): Update comment.
12741 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12742 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12743 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12744 (dequeue_and_dump): Use wide-int interfaces.
12745 * tree.h: Include wide-int.h.
12746 (NULL_TREE): Moved to earlier loc in file.
12747 (TREE_INT_CST_ELT_CHECK): New.
12748 (tree_int_cst_elt_check_failed): New.
12749 (TYPE_SIGN): New.
12750 (TREE_INT_CST): Delete.
12751 (TREE_INT_CST_LOW): Use wide-int interfaces.
12752 (TREE_INT_CST_HIGH): Delete.
12753 (TREE_INT_CST_NUNITS): New.
12754 (TREE_INT_CST_EXT_NUNITS): Likewise.
12755 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12756 (TREE_INT_CST_ELT): Likewise.
12757 (INT_CST_LT): Delete.
12758 (tree_int_cst_elt_check): New (two forms).
12759 (type_code_size): Update comment.
12760 (make_int_cst_stat, make_int_cst): New.
12761 (tree_to_double_int): Delete.
12762 (double_int_fits_to_tree_p): Delete.
12763 (force_fit_type_double): Delete.
12764 (build_int_cstu): Replace with out-of-line function.
12765 (build_int_cst_wide): Delete.
12766 (tree_int_cst_lt): Define inline.
12767 (tree_int_cst_le): New.
12768 (tree_int_cst_compare): Define inline.
12769 (tree_int_cst_min_precision): Take a signop rather than a bool.
12770 (wi::int_traits <const_tree>): New.
12771 (wi::int_traits <tree>): New.
12772 (wi::extended_tree): New.
12773 (wi::int_traits <wi::extended_tree>): New.
12774 (wi::to_widest): New.
12775 (wi::to_offset): New.
12776 (wi::fits_to_tree_p): New.
12777 (wi::min_value): New.
12778 (wi::max_value): New.
12779 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12780 (copy_tree_body_r): Likewise.
12781 * tree-object-size.c (compute_object_offset): Likewise.
12782 (addr_object_size): Likewise.
12783 * tree-predcom.c: Include wide-int-print.h.
12784 (struct dref_d): Change type of offset to widest_int.
12785 (dump_dref): Call wide-int printer.
12786 (aff_combination_dr_offset): Use wide-int interfaces.
12787 (determine_offset): Take a widest_int pointer rather than a
12788 double_int pointer.
12789 (split_data_refs_to_components): Use wide-int interfaces.
12790 (suitable_component_p): Likewise.
12791 (order_drefs): Likewise.
12792 (add_ref_to_chain): Likewise.
12793 (valid_initializer_p): Likewise.
12794 (determine_roots_comp): Likewise.
12795 * tree-pretty-print.c: Include wide-int-print.h.
12796 (dump_generic_node): Use wide-int interfaces.
12797 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12798 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12799 (move_fixed_address_to_symbol): Likewise.
12800 (move_hint_to_base): Likewise.
12801 (move_pointer_to_base): Likewise.
12802 (move_variant_to_index): Likewise.
12803 (most_expensive_mult_to_index): Likewise.
12804 (addr_to_parts): Likewise.
12805 (copy_ref_info): Likewise.
12806 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12807 (indirect_refs_may_alias_p): Likewise.
12808 (stmt_kills_ref_p_1): Likewise.
12809 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12810 * tree-ssa-ccp.c: Update comment at top of file. Include
12811 wide-int-print.h.
12812 (struct prop_value_d): Change type of mask to widest_int.
12813 (extend_mask): New function.
12814 (dump_lattice_value): Use wide-int interfaces.
12815 (get_default_value): Likewise.
12816 (set_constant_value): Likewise.
12817 (set_value_varying): Likewise.
12818 (valid_lattice_transition): Likewise.
12819 (set_lattice_value): Likewise.
12820 (value_to_double_int): Delete.
12821 (value_to_wide_int): New.
12822 (get_value_from_alignment): Use wide-int interfaces.
12823 (get_value_for_expr): Likewise.
12824 (do_dbg_cnt): Likewise.
12825 (ccp_finalize): Likewise.
12826 (ccp_lattice_meet): Likewise.
12827 (bit_value_unop_1): Use widest_ints rather than double_ints.
12828 (bit_value_binop_1): Likewise.
12829 (bit_value_unop): Use wide-int interfaces.
12830 (bit_value_binop): Likewise.
12831 (bit_value_assume_aligned): Likewise.
12832 (evaluate_stmt): Likewise.
12833 (ccp_fold_stmt): Likewise.
12834 (visit_cond_stmt): Likewise.
12835 (ccp_visit_stmt): Likewise.
12836 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12837 (constant_pointer_difference): Likewise.
12838 (associate_pointerplus): Likewise.
12839 (combine_conversions): Likewise.
12840 * tree-ssa-loop.h: Include wide-int.h.
12841 (struct tree_niter_desc): Change type of max to widest_int.
12842 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12843 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12844 (remove_redundant_iv_tests): Likewise.
12845 (canonicalize_loop_induction_variables): Likewise.
12846 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12847 (constant_multiple_of): Take a widest_int pointer instead of
12848 a double_int pointer.
12849 (get_computation_aff): Use wide-int interfaces.
12850 (ptr_difference_cost): Likewise.
12851 (difference_cost): Likewise.
12852 (get_loop_invariant_expr_id): Likewise.
12853 (get_computation_cost_at): Likewise.
12854 (iv_elimination_compare_lt): Likewise.
12855 (may_eliminate_iv): Likewise.
12856 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
12857 instead of double_int.
12858 (max_loop_iterations): Likewise.
12859 (max_stmt_executions): Likewise.
12860 (estimated_stmt_executions): Likewise.
12861 * tree-ssa-loop-niter.c: Include wide-int-print.h.
12862 (split_to_var_and_offset): Use wide-int interfaces.
12863 (determine_value_range): Likewise.
12864 (bound_difference_of_offsetted_base): Likewise.
12865 (bounds_add): Take a widest_int instead of a double_int.
12866 (number_of_iterations_ne_max): Use wide-int interfaces.
12867 (number_of_iterations_ne): Likewise.
12868 (number_of_iterations_lt_to_ne): Likewise.
12869 (assert_loop_rolls_lt): Likewise.
12870 (number_of_iterations_lt): Likewise.
12871 (number_of_iterations_le): Likewise.
12872 (number_of_iterations_cond): Likewise.
12873 (number_of_iterations_exit): Likewise.
12874 (finite_loop_p): Likewise.
12875 (derive_constant_upper_bound_assign): Likewise.
12876 (derive_constant_upper_bound): Return a widest_int.
12877 (derive_constant_upper_bound_ops): Likewise.
12878 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
12879 (record_estimate): Take a widest_int rather than a double_int.
12880 (record_nonwrapping_iv): Use wide-int interfaces.
12881 (double_int_cmp): Delete.
12882 (wide_int_cmp): New.
12883 (bound_index): Take a widest_int rather than a double_int.
12884 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
12885 (maybe_lower_iteration_bound): Likewise.
12886 (estimate_numbers_of_iterations_loop): Likewise.
12887 (estimated_loop_iterations): Take a widest_int pointer than than
12888 a double_int pointer.
12889 (estimated_loop_iterations_int): Use wide-int interfaces.
12890 (max_loop_iterations): Take a widest_int pointer than than
12891 a double_int pointer.
12892 (max_loop_iterations_int): Use wide-int interfaces.
12893 (max_stmt_executions): Take a widest_int pointer than than
12894 a double_int pointer.
12895 (estimated_stmt_executions): Likewise.
12896 (n_of_executions_at_most): Use wide-int interfaces.
12897 (scev_probably_wraps_p): Likewise.
12898 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
12899 to real_to_integer.
12900 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
12901 interfaces.
12902 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
12903 double_ints. Adjust for trailing_wide_ints <3> representation.
12904 (set_nonzero_bits): Likewise.
12905 (get_range_info): Return wide_ints rather than double_ints.
12906 Adjust for trailing_wide_ints <3> representation.
12907 (get_nonzero_bits): Likewise.
12908 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
12909 representation.
12910 * tree-ssanames.h (struct range_info_def): Replace min, max and
12911 nonzero_bits with a trailing_wide_ints <3>.
12912 (set_range_info): Use wide_int_refs rather than double_ints.
12913 (set_nonzero_bits): Likewise.
12914 (get_range_info): Return wide_ints rather than double_ints.
12915 (get_nonzero_bits): Likewise.
12916 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
12917 * tree-ssa-pre.c (phi_translate_1): Likewise.
12918 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
12919 (acceptable_pow_call): Likewise.
12920 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
12921 interfaces.
12922 (vn_reference_fold_indirect): Likewise.
12923 (vn_reference_maybe_forwprop_address): Likewise.
12924 (valueize_refs_1): Likewise.
12925 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
12926 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
12927 tree_int_cst_lt and tree_int_cst_le.
12928 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
12929 interfaces.
12930 (streamer_alloc_tree): Likewise.
12931 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
12932 (streamer_write_tree_header): Likewise.
12933 (streamer_write_integer_cst): Likewise.
12934 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12935 (build_constructors): Likewise.
12936 (array_value_type): Likewise.
12937 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
12938 (vect_check_gather): Likewise.
12939 * tree-vect-generic.c (build_replicated_const): Likewise.
12940 (expand_vector_divmod): Likewise.
12941 * tree-vect-loop.c (vect_transform_loop): Likewise.
12942 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
12943 (vect_do_peeling_for_alignment): Likewise.
12944 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
12945 * tree-vrp.c: Include wide-int.h.
12946 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
12947 (extract_range_from_assert): Use wide-int interfaces.
12948 (vrp_int_const_binop): Likewise.
12949 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
12950 double_int pointers.
12951 (ranges_from_anti_range): Use wide-int interfaces.
12952 (quad_int_cmp): Delete.
12953 (quad_int_pair_sort): Likewise.
12954 (extract_range_from_binary_expr_1): Use wide-int interfaces.
12955 (extract_range_from_unary_expr_1): Likewise.
12956 (adjust_range_with_scev): Likewise.
12957 (masked_increment): Take and return wide_ints rather than double_ints.
12958 (register_edge_assert_for_2): Use wide-int interfaces.
12959 (check_array_ref): Likewise.
12960 (search_for_addr_array): Likewise.
12961 (maybe_set_nonzero_bits): Likewise.
12962 (union_ranges): Pass an integer of the correct type instead of
12963 using integer_one_node.
12964 (intersect_ranges): Likewise.
12965 (simplify_truth_ops_using_ranges): Likewise.
12966 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
12967 (range_fits_type_p): Likewise.
12968 (simplify_cond_using_ranges): Likewise. Take a signop rather than
12969 a bool.
12970 (simplify_conversion_using_ranges): Use wide-int interfaces.
12971 (simplify_float_conversion_using_ranges): Likewise.
12972 (vrp_finalize): Likewise.
12973 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
12974 (gimple_stringops_transform): Likewise.
12975 * varasm.c (decode_addr_const): Likewise.
12976 (const_hash_1): Likewise.
12977 (const_rtx_hash_1): Likewise
12978 (output_constant): Likewise.
12979 (array_size_for_constructor): Likewise.
12980 (output_constructor_regular_field): Likewise.
12981 (output_constructor_bitfield): Likewise.
12982 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
12983 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
12984 GENERATOR_FILEs.
12985 * gencheck.c: Define BITS_PER_UNIT.
12986 * wide-int.cc: New.
12987 * wide-int.h: New.
12988 * wide-int-print.cc: New.
12989 * wide-int-print.h: New.
12990
12991 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12992
12993 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
12994
12995 2014-05-06 Richard Biener <rguenther@suse.de>
12996
12997 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
12998 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
12999 (TODO_verify_all): Adjust.
13000 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13001 TODO_verify_stmts and TODO_verify_rtl_sharing.
13002 * bb-reorder.c: Likewise.
13003 * cfgexpand.c: Likewise.
13004 * cprop.c: Likewise.
13005 * cse.c: Likewise.
13006 * function.c: Likewise.
13007 * fwprop.c: Likewise.
13008 * gcse.c: Likewise.
13009 * gimple-ssa-isolate-paths.c: Likewise.
13010 * gimple-ssa-strength-reduction.c: Likewise.
13011 * ipa-split.c: Likewise.
13012 * loop-init.c: Likewise.
13013 * loop-unroll.c: Likewise.
13014 * lower-subreg.c: Likewise.
13015 * modulo-sched.c: Likewise.
13016 * postreload-gcse.c: Likewise.
13017 * predict.c: Likewise.
13018 * recog.c: Likewise.
13019 * sched-rgn.c: Likewise.
13020 * store-motion.c: Likewise.
13021 * tracer.c: Likewise.
13022 * trans-mem.c: Likewise.
13023 * tree-call-cdce.c: Likewise.
13024 * tree-cfg.c: Likewise.
13025 * tree-cfgcleanup.c: Likewise.
13026 * tree-complex.c: Likewise.
13027 * tree-eh.c: Likewise.
13028 * tree-emutls.c: Likewise.
13029 * tree-if-conv.c: Likewise.
13030 * tree-into-ssa.c: Likewise.
13031 * tree-loop-distribution.c: Likewise.
13032 * tree-object-size.c: Likewise.
13033 * tree-parloops.c: Likewise.
13034 * tree-pass.h: Likewise.
13035 * tree-sra.c: Likewise.
13036 * tree-ssa-ccp.c: Likewise.
13037 * tree-ssa-copy.c: Likewise.
13038 * tree-ssa-copyrename.c: Likewise.
13039 * tree-ssa-dce.c: Likewise.
13040 * tree-ssa-dom.c: Likewise.
13041 * tree-ssa-dse.c: Likewise.
13042 * tree-ssa-forwprop.c: Likewise.
13043 * tree-ssa-ifcombine.c: Likewise.
13044 * tree-ssa-loop-ch.c: Likewise.
13045 * tree-ssa-loop-ivcanon.c: Likewise.
13046 * tree-ssa-loop.c: Likewise.
13047 * tree-ssa-math-opts.c: Likewise.
13048 * tree-ssa-phiopt.c: Likewise.
13049 * tree-ssa-phiprop.c: Likewise.
13050 * tree-ssa-pre.c: Likewise.
13051 * tree-ssa-reassoc.c: Likewise.
13052 * tree-ssa-sink.c: Likewise.
13053 * tree-ssa-strlen.c: Likewise.
13054 * tree-ssa-tail-merge.c: Likewise.
13055 * tree-ssa-uncprop.c: Likewise.
13056 * tree-switch-conversion.c: Likewise.
13057 * tree-tailcall.c: Likewise.
13058 * tree-vect-generic.c: Likewise.
13059 * tree-vectorizer.c: Likewise.
13060 * tree-vrp.c: Likewise.
13061 * tsan.c: Likewise.
13062 * var-tracking.c: Likewise.
13063 * bt-load.c: Likewise.
13064 * cfgcleanup.c: Likewise.
13065 * combine-stack-adj.c: Likewise.
13066 * combine.c: Likewise.
13067 * compare-elim.c: Likewise.
13068 * config/epiphany/resolve-sw-modes.c: Likewise.
13069 * config/i386/i386.c: Likewise.
13070 * config/mips/mips.c: Likewise.
13071 * config/s390/s390.c: Likewise.
13072 * config/sh/sh_treg_combine.cc: Likewise.
13073 * config/sparc/sparc.c: Likewise.
13074 * dce.c: Likewise.
13075 * dse.c: Likewise.
13076 * final.c: Likewise.
13077 * ifcvt.c: Likewise.
13078 * mode-switching.c: Likewise.
13079 * passes.c: Likewise.
13080 * postreload.c: Likewise.
13081 * ree.c: Likewise.
13082 * reg-stack.c: Likewise.
13083 * regcprop.c: Likewise.
13084 * regrename.c: Likewise.
13085 * web.c: Likewise.
13086
13087 2014-05-06 Richard Biener <rguenther@suse.de>
13088
13089 PR middle-end/61070
13090 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13091 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13092
13093 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13094
13095 PR ipa/60965
13096 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13097
13098 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13099 Tom de Vries <tom@codesourcery.com>
13100
13101 * target.def (call_fusage_contains_non_callee_clobbers): New
13102 DEFHOOKPOD.
13103 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13104 Hooks to @menu.
13105 (@node Miscellaneous Register Hooks): New node.
13106 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13107 * doc/tm.texi: Regenerate.
13108
13109 2014-05-05 Marek Polacek <polacek@redhat.com>
13110
13111 PR driver/61065
13112 * opts.c (common_handle_option): Call error_at instead of warning_at.
13113
13114 2014-05-05 Richard Biener <rguenther@suse.de>
13115
13116 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13117 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13118 under the TODO_verify_il umbrella.
13119
13120 2014-05-05 Richard Biener <rguenther@suse.de>
13121
13122 * passes.c (execute_function_todo): Move TODO_verify_flow under
13123 the TODO_verify_ul umbrella.
13124
13125 2014-05-05 Richard Biener <rguenther@suse.de>
13126
13127 PR middle-end/61010
13128 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13129 X & CST away from a CST that is the mask of a mode.
13130
13131 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13132
13133 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13134 int argument to enum machine_mode.
13135 (picochip_class_max_nregs): Ditto.
13136 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13137 (picochip_class_max_nregs): Ditto.
13138
13139 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13140
13141 * target.def: Add new target hook.
13142 * doc/tm.texi: Regenerate.
13143 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13144 * targhooks.c (default_keep_leaf_when_profiled): New function.
13145
13146 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13147 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13148
13149 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13150
13151 PR tree-optimization/60363
13152 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13153 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13154 (update_destination_phis): New parameter.
13155 (create_edge_and_update_destination_phis): Ditto.
13156 (ssa_fix_duplicate_block_edges): Pass new arguments.
13157 (thread_single_edge): Ditto.
13158
13159 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13160
13161 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13162 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13163 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13164 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13165 Use RS6000_BTM_HARD_FLOAT.
13166 (BU_MISC_2): Likewise.
13167 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13168 RS6000_BTM_HARD_FLOAT.
13169 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13170 is explicitly used.
13171 (rs6000_invalid_builtin): Add hard floating builtin support.
13172 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13173 hard float builtins.
13174 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13175
13176 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13177
13178 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13179 Add missing function* argument.
13180
13181 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13182
13183 * lra-constraints.c (valid_address_p): Move earlier in file.
13184 Add a constraint argument to the address_info version.
13185 (satisfies_memory_constraint_p): New function.
13186 (satisfies_address_constraint_p): Likewise.
13187 (process_alt_operands, curr_insn_transform): Use them.
13188 (process_address): Pass the constraint to valid_address_p when
13189 checking address operands.
13190
13191 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13192
13193 * config/mips/mips.c (mips_isa_rev): New variable.
13194 (mips_set_architecture): Set it.
13195 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13196 from mips_isa_rev.
13197 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13198 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13199 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13200 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13201 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13202 conditions in terms of mips_isa_rev.
13203 (mips_isa_rev): Declare.
13204
13205 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13206
13207 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13208 (prob_unlikely, prob_likely): Make variables const.
13209
13210 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13211
13212 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13213
13214 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13215
13216 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13217
13218 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13219
13220 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13221 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13222 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13223 functions.
13224 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13225 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13226 sh_pass_in_reg_p.
13227 Replace usage of ROUND_REG with sh_round_reg.
13228 Use CEIL instead of ROUND_ADVANCE.
13229
13230 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13231
13232 PR target/61026
13233 * config/sh/sh.c: Include stdlib headers before everything else.
13234
13235 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13236
13237 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13238 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13239 (gimplify_adjust_omp_clauses): Simd region is never
13240 directly nested in combined parallel. Instead, for linear
13241 with copyin/copyout, if in combined for simd loop, make decl
13242 firstprivate/lastprivate on OMP_FOR.
13243 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13244 expand_omp_for_static_chunk): When setting endvar, also set
13245 fd->loop.v to the same value.
13246
13247 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13248
13249 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13250
13251 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13252
13253 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13254 expression.
13255
13256 2014-05-02 Marek Polacek <polacek@redhat.com>
13257
13258 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13259
13260 2014-05-02 Kito Cheng <kito@0xlab.org>
13261
13262 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13263 to a C expression marco.
13264 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13265 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13266 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13267 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13268 HONOR_REG_ALLOC_ORDER.
13269 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13270
13271 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13272
13273 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13274
13275 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13276
13277 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13278
13279 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13280
13281 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13282 (convert_scalar_cond_reduction): Likewise.
13283 (predicate_scalar_phi): Add recognition and transformation
13284 of simple conditioanl reduction to be vectorizable.
13285
13286 2014-05-01 Marek Polacek <polacek@redhat.com>
13287
13288 PR c/43245
13289 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13290
13291 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13292
13293 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13294 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13295 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13296 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13297 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13298 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13299 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13300 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13301
13302 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13303
13304 * config/arc/arc.opt (mlra): Move comment above option name
13305 to avoid mis-parsing as language options.
13306
13307 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13308
13309 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13310 * config/sol2.h: ... here.
13311 * config/sol2-10.h: Remove.
13312
13313 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13314 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13315 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13316 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13317 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13318 * config/sol2.h: ... here.
13319 (SECTION_NAME_FORMAT): Don't redefine.
13320 (STARTFILE_ARCH32_SPEC): Rename to ...
13321 (STARTFILE_ARCH_SPEC): ... this.
13322 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13323 * config/sparc/sol2.h: ... here.
13324 (SECTION_NAME_FORMAT): Don't undef.
13325 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13326 (SUBTARGET_EXTRA_SPECS): Remove.
13327 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13328
13329 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13330 (MD_STARTFILE_PREFIX): Remove.
13331 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13332 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13333 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13334 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13335 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13336 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13337 * config/i386/sol2.h: ... here.
13338 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13339 * config/i386/sol2-bi.h: Remove.
13340 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13341 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13342
13343 * config/i386/t-sol2-64: Rename to ...
13344 * config/i386/t-sol2: ... this.
13345 * config/sparc/t-sol2-64: Rename to ...
13346 * config/sparc/t-sol2: ... this.
13347
13348 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13349 sol2_tm_file_head, sol2_tm_file_tail.
13350 Include ${cpu_type}/sol2.h before sol2.h.
13351 Remove sol2-10.h.
13352 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13353 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13354 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13355 Reflect i386/t-sol2-64 renaming.
13356 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13357 Reflect sparc/t-sol2-64 renaming.
13358
13359 2014-04-30 Richard Biener <rguenther@suse.de>
13360
13361 * passes.c (execute_function_todo): Move TODO_verify_stmts
13362 and TODO_verify_ssa under the TODO_verify_il umbrella.
13363 * tree-ssa.h (verify_ssa): Adjust prototype.
13364 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13365 we should verify SSA operands.
13366 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13367 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13368 whether we should verify whether not throwing stmts have EH info.
13369 * graphite-scop-detection.c (create_sese_edges): Adjust.
13370 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13371 * tree-eh.c (lower_try_finally_switch): Do not add the
13372 default case label twice.
13373
13374 2014-04-30 Marek Polacek <polacek@redhat.com>
13375
13376 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13377 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13378 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13379 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13380
13381 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13382
13383 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13384 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13385 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13386 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13387 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13388 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13389 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13390 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13391
13392 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13393
13394 * tree-cfg.c (dump_function_to_file): Dump the return type of
13395 functions, in a line to itself before the function body, mimicking
13396 the layout of a C function.
13397
13398 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13399
13400 PR tree-optimization/60971
13401 * tree-tailcall.c (process_assignment): Reject conversions which
13402 reduce precision.
13403
13404 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13405
13406 * calls.c (initialize_argument_information): Always treat
13407 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13408 (expand_call): Likewise.
13409 (emit_library_call_calue_1): Likewise.
13410 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13411 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13412 code accordingly.
13413
13414 2014-04-29 Nick Clifton <nickc@redhat.com>
13415
13416 * config/msp430/msp430.md (umulsidi): Fix typo.
13417 (mulhisi3): Enable even inside interrupt handlers.
13418 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13419 bigger return address pushed in large mode.
13420
13421 2014-04-29 Nick Clifton <nickc@redhat.com>
13422
13423 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13424 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13425 available modes.
13426 * config/m32r/m32r.c (init_reg_tables): Likewise.
13427 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13428 enum to hold the modes.
13429
13430 2014-04-29 Richard Biener <rguenther@suse.de>
13431
13432 * dominance.c (free_dominance_info): Add overload with
13433 function parameter.
13434 (dom_info_state): Likewise.
13435 (dom_info_available_p): Likewise.
13436 * basic-block.h (free_dominance_info, dom_info_state,
13437 dom_info_available_p): Declare overloads.
13438 * passes.c (execute_function_todo): Verify that verifiers
13439 don't change dominator info state. Drop dominator info
13440 for IPA pass invocations.
13441 * cgraph.c (release_function_body): Restore asserts that
13442 dominator information is released.
13443
13444 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13445
13446 * doc/invoke.texi: Fix typo.
13447 * tree-vrp.c: Fix typos.
13448 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13449
13450 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13451
13452 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13453
13454 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13455
13456 * config/aarch64/aarch64-builtins.c
13457 (aarch64_types_storestruct_lane_qualifiers): New.
13458 (TYPES_STORESTRUCT_LANE): Likewise.
13459 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13460 (st3_lane): Likewise.
13461 (st4_lane): Likewise.
13462 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13463 (vec_store_lanesci_lane<mode>): Likewise.
13464 (vec_store_lanesxi_lane<mode>): Likewise.
13465 (aarch64_st2_lane<VQ:mode>): Likewise.
13466 (aarch64_st3_lane<VQ:mode>): Likewise.
13467 (aarch64_st4_lane<VQ:mode>): Likewise.
13468 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13469 * config/aarch64/arm_neon.h
13470 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13471 use new macro arguments.
13472 (__ST3_LANE_FUNC): Likewise.
13473 (__ST4_LANE_FUNC): Likewise.
13474 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13475 (V_THREE_ELEM): Likewise.
13476 (V_FOUR_ELEM): Likewise.
13477
13478 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13479
13480 * doc/gimple.texi: Replace the description of the now-defunct
13481 union gimple_statement_d with a diagram showing the
13482 gimple_statement_base class hierarchy and its relationships to
13483 the GSS_ and GIMPLE_ enums.
13484
13485 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13486
13487 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13488 * config/aarch64/aarch64.c
13489 (aarch64_cannot_change_mode_class): Weaken conditions.
13490 (aarch64_modes_tieable_p): New.
13491 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13492
13493 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13494
13495 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13496 (loadsync_<mode>): Change mode.
13497 (load_quadpti, store_quadpti): New.
13498 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13499 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13500
13501 2014-04-28 Martin Jambor <mjambor@suse.cz>
13502
13503 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13504 same alias type as the original statement.
13505 (subreplacement_assignment_data): New type.
13506 (handle_unscalarized_data_in_subtree): New type of parameter,
13507 generate new memory accesses with same alias type as the original
13508 statement.
13509 (load_assign_lhs_subreplacements): Likewise.
13510 (sra_modify_constructor_assign): Generate new memory accesses with
13511 same alias type as the original statement.
13512
13513 2014-04-28 Richard Biener <rguenther@suse.de>
13514
13515 * tree-pass.h (TODO_verify_il): Define.
13516 (TODO_verify_all): Complete properly.
13517 * passes.c (execute_function_todo): Move existing loop-closed
13518 SSA verification under TODO_verify_il.
13519 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13520 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13521 Fix tree sharing issue.
13522
13523 2014-04-28 Richard Biener <rguenther@suse.de>
13524
13525 PR middle-end/60092
13526 * builtins.def (DEF_C11_BUILTIN): Add.
13527 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13528 * coretypes.h (enum function_class): Add function_c11_misc.
13529 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13530 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13531 (call_may_clobber_ref_p_1): Likewise.
13532 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13533 (mark_all_reaching_defs_necessary_1): Likewise.
13534 (propagate_necessity): Likewise.
13535 (eliminate_unnecessary_stmts): Likewise.
13536 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13537
13538 2014-04-28 Richard Biener <rguenther@suse.de>
13539
13540 * tree-vrp.c (vrp_var_may_overflow): Remove.
13541 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13542 with overflow immediately bump to one before that value and
13543 let iteration figure out overflow status.
13544
13545 2014-04-28 Richard Biener <rguenther@suse.de>
13546
13547 * configure.ac: Do valgrind header checks unconditionally.
13548 Add --enable-valgrind-annotations.
13549 * system.h: Guard valgrind header inclusion with
13550 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13551 * alloc-pool.c (pool_alloc, pool_free): Use
13552 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13553 to guard possibly dead code.
13554 * config.in: Regenerated.
13555 * configure: Likewise.
13556
13557 2014-04-28 Jeff Law <law@redhat.com>
13558
13559 PR tree-optimization/60902
13560 * tree-ssa-threadedge.c
13561 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13562 over real defs when invalidating outputs from statements that do not
13563 produce useful outputs for threading.
13564
13565 2014-04-28 Richard Biener <rguenther@suse.de>
13566
13567 PR tree-optimization/60979
13568 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13569 SCOPs that end in a block with a successor with abnormal
13570 predecessors.
13571
13572 2014-04-28 Richard Biener <rguenther@suse.de>
13573
13574 * tree-pass.h (execute_pass_list): Adjust prototype.
13575 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13576 (do_per_function): Change callback signature, push all actual
13577 work to the callbals.
13578 (do_per_function_toporder): Likewise.
13579 (execute_function_dump): Adjust.
13580 (execute_function_todo): Likewise.
13581 (clear_last_verified): Likewise.
13582 (verify_curr_properties): Likewise.
13583 (update_properties_after_pass): Likewise.
13584 (execute_pass_list_1): Split out from ...
13585 (execute_pass_list): ... here. Adjust.
13586 (execute_ipa_pass_list): Likewise.
13587 * cgraphunit.c (cgraph_add_new_function): Adjust.
13588 (analyze_function): Likewise.
13589 (expand_function): Likewise.
13590 * cgraph.c (release_function_body): Free dominance info
13591 here instead of asserting it was magically freed elsewhere.
13592
13593 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13594
13595 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13596 * configure: Regenerate.
13597 * config/sparc/sparc.opt (muser-mode): New option.
13598 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13599 for LEON3.
13600 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13601 * doc/invoke.texi (SPARC options): Document -muser-mode.
13602
13603 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13604
13605 * cselib.c (find_slot_memmode): Delete.
13606 (cselib_hasher): Change compare_type to a struct.
13607 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13608 constants.
13609 (preserve_constants_and_equivs): Adjust for new compare_type.
13610 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13611 (wrap_constant): Delete.
13612 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13613
13614 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13615
13616 * doc/install.texi (Building with profile feedback): Remove
13617 outdated sentence.
13618
13619 2014-04-26 Tom de Vries <tom@codesourcery.com>
13620
13621 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13622 array accesses.
13623
13624 2014-04-25 Cary Coutant <ccoutant@google.com>
13625
13626 PR debug/60929
13627 * dwarf2out.c (should_move_die_to_comdat): A type definition
13628 can contain a subprogram definition, but don't move it to a
13629 comdat unit.
13630 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13631 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13632 from original DIE.
13633 (clone_tree_hash): Rename to...
13634 (clone_tree_partial): ...this; change callers. Copy
13635 DW_TAG_subprogram DIEs as declarations.
13636 (copy_decls_walk): Don't copy children of a declaration into a
13637 type unit.
13638
13639 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13640
13641 PR target/60969
13642 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13643 alternative 12.
13644
13645 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13646
13647 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13648 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13649 reg for long_call.
13650 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13651 restriction.
13652
13653 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13654
13655 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13656
13657 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13658
13659 PR tree-optimization/60930
13660 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13661 creating a multiply candidate by folding two constant
13662 multiplicands when the result overflows.
13663
13664 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13665
13666 PR tree-optimization/60960
13667 * tree-vect-generic.c (expand_vector_operation): Only call
13668 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13669
13670 2014-04-25 Tom de Vries <tom@codesourcery.com>
13671
13672 * expr.c (clobber_reg_mode): New function.
13673 * expr.h (clobber_reg): New function.
13674
13675 2014-04-25 Tom de Vries <tom@codesourcery.com>
13676
13677 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13678 clobbers.
13679
13680 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13681 Tom de Vries <tom@codesourcery.com>
13682
13683 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13684 handle.
13685 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13686 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13687 new argument to find_all_hard_reg_sets call.
13688
13689 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13690
13691 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13692 Use HOST_WIDE_INT_C for mask literal.
13693 (aarch_rev16_shleft_mask_imm_p): Likewise.
13694
13695 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13696
13697 PR target/60941
13698 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13699
13700 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13701
13702 PR preprocessor/56540
13703 * config/i386/i386-c.c (ix86_target_macros): Define
13704 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13705
13706 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13707
13708 * configure.ac (tga_func): Remove.
13709 (LIB_TLS_SPEC): Remove.
13710 * configure: Regenerate.
13711 * config.in: Regenerate.
13712 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13713
13714 2014-04-25 Richard Biener <rguenther@suse.de>
13715
13716 PR ipa/60912
13717 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13718 call stmt use/clobber sets during stmt walk instead of
13719 walking the possibly incomplete set of caller edges.
13720
13721 2014-04-25 Richard Biener <rguenther@suse.de>
13722
13723 PR ipa/60911
13724 * passes.c (apply_ipa_transforms): Inline into only caller ...
13725 (execute_one_pass): ... here. Properly bring in function
13726 bodies for nodes we want to apply IPA transforms to.
13727
13728 2014-04-24 Cong Hou <congh@google.com>
13729
13730 PR tree-optimization/60896
13731 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13732 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13733 (vect_mark_pattern_stmts): Set the def type of all statements in
13734 PATTERN_DEF_SEQ as vect_internal_def.
13735
13736 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13737
13738 * doc/extend.texi (PowerPC Built-in Functions): Document new
13739 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13740 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13741
13742 * config/rs6000/predicates.md (const_0_to_3_operand): New
13743 predicate to match 0..3 integer constants.
13744
13745 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13746 to support adding miscellaneous builtin functions.
13747 (BU_DFP_MISC_2): Likewise.
13748 (BU_P7_MISC_1): Likewise.
13749 (BU_P7_MISC_2): Likewise.
13750 (BU_P8V_MISC_3): Likewise.
13751 (BU_MISC_1): Likewise.
13752 (BU_MISC_2): Likewise.
13753 (DIVWE): Add extended divide builtin functions.
13754 (DIVWEO): Likewise.
13755 (DIVWEU): Likewise.
13756 (DIVWEUO): Likewise.
13757 (DIVDE): Likewise.
13758 (DIVDEO): Likewise.
13759 (DIVDEU): Likewise.
13760 (DIVDEUO): Likewise.
13761 (DXEX): Add decimal floating-point builtin functions.
13762 (DXEXQ): Likewise.
13763 (DDEDPD): Likewise.
13764 (DDEDPDQ): Likewise.
13765 (DENBCD): Likewise.
13766 (DENBCDQ): Likewise.
13767 (DIEX): Likewise.
13768 (DIEXQ): Likewise.
13769 (DSCLI): Likewise.
13770 (DSCLIQ): Likewise.
13771 (DSCRI): Likewise.
13772 (DSCRIQ): Likewise.
13773 (CDTBCD): Add new BCD builtin functions.
13774 (CBCDTD): Likewise.
13775 (ADDG6S): Likewise.
13776 (BCDADD): Likewise.
13777 (BCDADD_LT): Likewise.
13778 (BCDADD_EQ): Likewise.
13779 (BCDADD_GT): Likewise.
13780 (BCDADD_OV): Likewise.
13781 (BCDSUB): Likewise.
13782 (BCDSUB_LT): Likewise.
13783 (BCDSUB_EQ): Likewise.
13784 (BCDSUB_GT): Likewise.
13785 (BCDSUB_OV): Likewise.
13786 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13787 (UNPACK_TD): Likewise.
13788 (PACK_TF): Likewise.
13789 (UNPACK_TF): Likewise.
13790 (UNPACK_TF_0): Likewise.
13791 (UNPACK_TF_1): Likewise.
13792 (PACK_V1TI): Likewise.
13793 (UNPACK_V1TI): Likewise.
13794
13795 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13796 support for decimal floating point builtin functions.
13797 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13798 functions that take constant arguments.
13799 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13800 (rs6000_init_builtins): Setup long double, _Decimal64, and
13801 _Decimal128 types for new builtin functions.
13802 (builtin_function_type): Set the unsigned flags appropriately for
13803 the new builtin functions.
13804 (rs6000_opt_masks): Add support for decimal floating point builtin
13805 functions.
13806
13807 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13808 floating point builtin functions.
13809 (RS6000_BTM_COMMON): Likewise.
13810 (RS6000_BTI_long_double): Likewise.
13811 (RS6000_BTI_dfloat64): Likewise.
13812 (RS6000_BTI_dfloat128): Likewise.
13813 (long_double_type_internal_node): Likewise.
13814 (dfloat64_type_internal_node): Likewise.
13815 (dfloat128_type_internal_node): Likewise.
13816
13817 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13818 2.07 bcd arithmetic instructions.
13819 (UNSPEC_BCDSUB): Likewise.
13820 (UNSPEC_BCD_OVERFLOW): Likewise.
13821 (UNSPEC_BCD_ADD_SUB): Likewise.
13822 (bcd_add_sub): Likewise.
13823 (BCD_TEST): Likewise.
13824 (bcd<bcd_add_sub>): Likewise.
13825 (bcd<bcd_add_sub>_test): Likewise.
13826 (bcd<bcd_add_sub>_test2): Likewise.
13827 (bcd<bcd_add_sub>_<code>): Likewise.
13828 (peephole2 for combined bcd ops): Likewise.
13829
13830 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13831 decimal floating point builtin functions.
13832 (UNSPEC_DENBCD): Likewise.
13833 (UNSPEC_DXEX): Likewise.
13834 (UNSPEC_DIEX): Likewise.
13835 (UNSPEC_DSCLI): Likewise.
13836 (UNSPEC_DSCRI): Likewise.
13837 (D64_D128): Likewise.
13838 (dfp_suffix): Likewise.
13839 (dfp_ddedpd_<mode>): Likewise.
13840 (dfp_denbcd_<mode>): Likewise.
13841 (dfp_dxex_<mode>): Likewise.
13842 (dfp_diex_<mode>): Likewise.
13843 (dfp_dscli_<mode>): Likewise.
13844 (dfp_dscri_<mode>): Likewise.
13845
13846 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13847 builtin functions.
13848 (UNSPEC_CDTBCD): Likewise.
13849 (UNSPEC_CBCDTD): Likewise.
13850 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
13851 (UNSPEC_DIVEO): Likewise.
13852 (UNSPEC_DIVEU): Likewise.
13853 (UNSPEC_DIVEUO): Likewise.
13854 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
13855 pack/unpack 128-bit types.
13856 (UNSPEC_PACK_128BIT): Likewise.
13857 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
13858 (udiv<mode>3): Use idiv_ldiv mode attribute.
13859 (div<mode>3): Likewise.
13860 (addg6s): Add new BCD builtin functions.
13861 (cdtbcd): Likewise.
13862 (cbcdtd): Likewise.
13863 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
13864 (div_extend): Likewise.
13865 (div<div_extend>_<mode>"): Likewise.
13866 (FP128_64): Add support for new builtin functions to pack/unpack
13867 128-bit types.
13868 (unpack<mode>): Likewise.
13869 (unpacktf_0): Likewise.
13870 (unpacktf_1): Likewise.
13871 (unpack<mode>_dm): Likewise.
13872 (unpack<mode>_nodm): Likewise.
13873 (pack<mode>): Likewise.
13874 (unpackv1ti): Likewise.
13875 (packv1ti): Likewise.
13876
13877 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
13878
13879 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
13880 is disabled.
13881
13882 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13883
13884 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
13885 * gimplify.c (omp_is_private): Change last argument's type to int.
13886 Only diagnose lastprivate if the simd argument is 1, only diagnose
13887 linear if the simd argument is 2.
13888 (gimplify_omp_for): Adjust omp_is_private callers. When adding
13889 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
13890 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
13891 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
13892 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
13893 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13894 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
13895 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13896 * tree-nested.c (convert_nonlocal_omp_clauses,
13897 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
13898
13899 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
13900
13901 PR target/60822
13902 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
13903 operand 1.
13904
13905 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
13906
13907 * flag-types.h (enum ivar_visibility): Add.
13908
13909 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
13910
13911 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
13912 function * argument.
13913
13914 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
13915
13916 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
13917
13918 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13919 Tom de Vries <tom@codesourcery.com>
13920
13921 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
13922 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
13923 reg-note.
13924 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
13925 * emit-rtl.c (try_split): Same.
13926
13927 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13928 Tom de Vries <tom@codesourcery.com>
13929
13930 * common.opt (fuse-caller-save): New option.
13931
13932 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
13933
13934 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
13935 elements for big-endian.
13936
13937 2014-04-24 Richard Biener <rguenther@suse.de>
13938
13939 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
13940 during TER and instead use the sepops interface for expanding
13941 non-GIMPLE_SINGLE_RHS.
13942
13943 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13944
13945 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
13946 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
13947
13948 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13949
13950 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
13951 assembler 64-bit option.
13952 * configure: Regenerate.
13953
13954 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13955
13956 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
13957 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
13958 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
13959 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
13960 (TARGET_CRYPTO): Take TARGET_SIMD into account.
13961
13962 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13963
13964 * config/aarch64/aarch64-builtins.c
13965 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
13966 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
13967 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
13968 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
13969 builtins.
13970 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
13971 (Vrevsuff): New mode attribute.
13972
13973 2014-04-24 Terry Guo <terry.guo@arm.com>
13974
13975 * config/arm/arm.h (machine_function): Define variable
13976 after_arm_reorg here.
13977 * config/arm/arm.c (after_arm_reorg): Remove the definition.
13978 (arm_split_constant): Update the way to access variable
13979 after_arm_reorg.
13980 (arm_reorg): Ditto.
13981 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
13982
13983 2014-04-23 Tom de Vries <tom@codesourcery.com>
13984
13985 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
13986
13987 2014-04-23 David Malcolm <dmalcolm@redhat.com>
13988
13989 * is-a.h: Update comments to reflect the following changes to the
13990 "pointerness" of the API, making the template parameter match the
13991 return type, allowing use of is-a.h with typedefs of pointers.
13992 (is_a_helper::cast): Return a T rather then a pointer to a T, so
13993 that the return type matches the parameter to the is_a_helper.
13994 (as_a): Likewise.
13995 (dyn_cast): Likewise.
13996
13997 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
13998 pointer from the is-a.h API.
13999
14000 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14001 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14002 is-a.h API.
14003 (is_a_helper <varpool_node>::test): Likewise, convert to...
14004 (is_a_helper <varpool_node *>::test): ...this.
14005
14006 (varpool_first_variable): Update for removal of implicit pointer
14007 from the is-a.h API.
14008 (varpool_next_variable): Likewise.
14009 (varpool_first_static_initializer): Likewise.
14010 (varpool_next_static_initializer): Likewise.
14011 (varpool_first_defined_variable): Likewise.
14012 (varpool_next_defined_variable): Likewise.
14013 (cgraph_first_defined_function): Likewise.
14014 (cgraph_next_defined_function): Likewise.
14015 (cgraph_first_function): Likewise.
14016 (cgraph_next_function): Likewise.
14017 (cgraph_first_function_with_gimple_body): Likewise.
14018 (cgraph_next_function_with_gimple_body): Likewise.
14019 (cgraph_alias_target): Likewise.
14020 (varpool_alias_target): Likewise.
14021 (cgraph_function_or_thunk_node): Likewise.
14022 (varpool_variable_node): Likewise.
14023 (symtab_real_symbol_p): Likewise.
14024 * cgraphunit.c (referred_to_p): Likewise.
14025 (analyze_functions): Likewise.
14026 (handle_alias_pairs): Likewise.
14027 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14028 * gimple-ssa.h (gimple_vuse_op): Likewise.
14029 (gimple_vdef_op): Likewise.
14030 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14031 * gimple.c (gimple_build_asm_1): Likewise.
14032 (gimple_build_try): Likewise.
14033 (gimple_build_resx): Likewise.
14034 (gimple_build_eh_dispatch): Likewise.
14035 (gimple_build_omp_for): Likewise.
14036 (gimple_omp_for_set_clauses): Likewise.
14037
14038 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14039 (is_a_helper <gimple_statement_asm *>::test): ...this.
14040 (is_a_helper <gimple_statement_bind>::test): Convert to...
14041 (is_a_helper <gimple_statement_bind *>::test): ...this.
14042 (is_a_helper <gimple_statement_call>::test): Convert to...
14043 (is_a_helper <gimple_statement_call *>::test): ...this.
14044 (is_a_helper <gimple_statement_catch>::test): Convert to...
14045 (is_a_helper <gimple_statement_catch *>::test): ...this.
14046 (is_a_helper <gimple_statement_resx>::test): Convert to...
14047 (is_a_helper <gimple_statement_resx *>::test): ...this.
14048 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14049 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14050 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14051 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14052 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14053 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14054 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14055 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14056 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14057 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14058 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14059 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14060 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14061 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14062 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14063 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14064 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14065 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14066 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14067 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14068 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14069 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14070 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14071 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14072 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14073 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14074 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14075 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14076 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14077 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14078 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14079 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14080 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14081 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14082 (is_a_helper <gimple_statement_phi>::test): Convert to...
14083 (is_a_helper <gimple_statement_phi *>::test): ...this.
14084 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14085 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14086 (is_a_helper <gimple_statement_try>::test): Convert to...
14087 (is_a_helper <gimple_statement_try *>::test): ...this.
14088 (is_a_helper <gimple_statement_wce>::test): Convert to...
14089 (is_a_helper <gimple_statement_wce *>::test): ...this.
14090 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14091 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14092 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14093 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14094 (is_a_helper <const gimple_statement_call>::test): Convert to...
14095 (is_a_helper <const gimple_statement_call *>::test): ...this.
14096 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14097 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14098 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14099 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14100 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14101 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14102 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14103 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14104 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14105 Convert to...
14106 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14107 ...this.
14108 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14109 Convert to...
14110 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14111 ...this.
14112 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14113 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14114 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14115 to...
14116 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14117 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14118 to...
14119 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14120 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14121 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14122 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14123 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14124 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14125 to...
14126 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14127 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14128 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14129 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14130 to...
14131 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14132 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14133 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14134 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14135 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14136 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14137 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14138 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14139 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14140 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14141 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14142 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14143 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14144 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14145 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14146 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14147 to...
14148 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14149 ...this.
14150 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14151 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14152
14153 (gimple_use_ops): Update for removal of implicit pointer from the
14154 is-a.h API.
14155 (gimple_set_use_ops): Likewise.
14156 (gimple_vuse): Likewise.
14157 (gimple_vdef): Likewise.
14158 (gimple_vuse_ptr): Likewise.
14159 (gimple_vdef_ptr): Likewise.
14160 (gimple_set_vuse): Likewise.
14161 (gimple_set_vdef): Likewise.
14162 (gimple_omp_return_set_lhs): Likewise.
14163 (gimple_omp_return_lhs): Likewise.
14164 (gimple_omp_return_lhs_ptr): Likewise.
14165 (gimple_call_fntype): Likewise.
14166 (gimple_call_set_fntype): Likewise.
14167 (gimple_call_set_internal_fn): Likewise.
14168 (gimple_call_use_set): Likewise.
14169 (gimple_call_clobber_set): Likewise.
14170 (gimple_bind_vars): Likewise.
14171 (gimple_bind_set_vars): Likewise.
14172 (gimple_bind_body_ptr): Likewise.
14173 (gimple_bind_set_body): Likewise.
14174 (gimple_bind_add_stmt): Likewise.
14175 (gimple_bind_block): Likewise.
14176 (gimple_bind_set_block): Likewise.
14177 (gimple_asm_ninputs): Likewise.
14178 (gimple_asm_noutputs): Likewise.
14179 (gimple_asm_nclobbers): Likewise.
14180 (gimple_asm_nlabels): Likewise.
14181 (gimple_asm_input_op): Likewise.
14182 (gimple_asm_input_op_ptr): Likewise.
14183 (gimple_asm_output_op): Likewise.
14184 (gimple_asm_output_op_ptr): Likewise.
14185 (gimple_asm_set_output_op): Likewise.
14186 (gimple_asm_clobber_op): Likewise.
14187 (gimple_asm_set_clobber_op): Likewise.
14188 (gimple_asm_label_op): Likewise.
14189 (gimple_asm_set_label_op): Likewise.
14190 (gimple_asm_string): Likewise.
14191 (gimple_catch_types): Likewise.
14192 (gimple_catch_types_ptr): Likewise.
14193 (gimple_catch_handler_ptr): Likewise.
14194 (gimple_catch_set_types): Likewise.
14195 (gimple_catch_set_handler): Likewise.
14196 (gimple_eh_filter_types): Likewise.
14197 (gimple_eh_filter_types_ptr): Likewise.
14198 (gimple_eh_filter_failure_ptr): Likewise.
14199 (gimple_eh_filter_set_types): Likewise.
14200 (gimple_eh_filter_set_failure): Likewise.
14201 (gimple_eh_must_not_throw_fndecl): Likewise.
14202 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14203 (gimple_eh_else_n_body_ptr): Likewise.
14204 (gimple_eh_else_e_body_ptr): Likewise.
14205 (gimple_eh_else_set_n_body): Likewise.
14206 (gimple_eh_else_set_e_body): Likewise.
14207 (gimple_try_eval_ptr): Likewise.
14208 (gimple_try_cleanup_ptr): Likewise.
14209 (gimple_try_set_eval): Likewise.
14210 (gimple_try_set_cleanup): Likewise.
14211 (gimple_wce_cleanup_ptr): Likewise.
14212 (gimple_wce_set_cleanup): Likewise.
14213 (gimple_phi_capacity): Likewise.
14214 (gimple_phi_num_args): Likewise.
14215 (gimple_phi_result): Likewise.
14216 (gimple_phi_result_ptr): Likewise.
14217 (gimple_phi_set_result): Likewise.
14218 (gimple_phi_arg): Likewise.
14219 (gimple_phi_set_arg): Likewise.
14220 (gimple_resx_region): Likewise.
14221 (gimple_resx_set_region): Likewise.
14222 (gimple_eh_dispatch_region): Likewise.
14223 (gimple_eh_dispatch_set_region): Likewise.
14224 (gimple_omp_critical_name): Likewise.
14225 (gimple_omp_critical_name_ptr): Likewise.
14226 (gimple_omp_critical_set_name): Likewise.
14227 (gimple_omp_for_clauses): Likewise.
14228 (gimple_omp_for_clauses_ptr): Likewise.
14229 (gimple_omp_for_set_clauses): Likewise.
14230 (gimple_omp_for_collapse): Likewise.
14231 (gimple_omp_for_index): Likewise.
14232 (gimple_omp_for_index_ptr): Likewise.
14233 (gimple_omp_for_set_index): Likewise.
14234 (gimple_omp_for_initial): Likewise.
14235 (gimple_omp_for_initial_ptr): Likewise.
14236 (gimple_omp_for_set_initial): Likewise.
14237 (gimple_omp_for_final): Likewise.
14238 (gimple_omp_for_final_ptr): Likewise.
14239 (gimple_omp_for_set_final): Likewise.
14240 (gimple_omp_for_incr): Likewise.
14241 (gimple_omp_for_incr_ptr): Likewise.
14242 (gimple_omp_for_set_incr): Likewise.
14243 (gimple_omp_for_pre_body_ptr): Likewise.
14244 (gimple_omp_for_set_pre_body): Likewise.
14245 (gimple_omp_parallel_clauses): Likewise.
14246 (gimple_omp_parallel_clauses_ptr): Likewise.
14247 (gimple_omp_parallel_set_clauses): Likewise.
14248 (gimple_omp_parallel_child_fn): Likewise.
14249 (gimple_omp_parallel_child_fn_ptr): Likewise.
14250 (gimple_omp_parallel_set_child_fn): Likewise.
14251 (gimple_omp_parallel_data_arg): Likewise.
14252 (gimple_omp_parallel_data_arg_ptr): Likewise.
14253 (gimple_omp_parallel_set_data_arg): Likewise.
14254 (gimple_omp_task_clauses): Likewise.
14255 (gimple_omp_task_clauses_ptr): Likewise.
14256 (gimple_omp_task_set_clauses): Likewise.
14257 (gimple_omp_task_child_fn): Likewise.
14258 (gimple_omp_task_child_fn_ptr): Likewise.
14259 (gimple_omp_task_set_child_fn): Likewise.
14260 (gimple_omp_task_data_arg): Likewise.
14261 (gimple_omp_task_data_arg_ptr): Likewise.
14262 (gimple_omp_task_set_data_arg): Likewise.
14263 (gimple_omp_taskreg_clauses): Likewise.
14264 (gimple_omp_taskreg_clauses_ptr): Likewise.
14265 (gimple_omp_taskreg_set_clauses): Likewise.
14266 (gimple_omp_taskreg_child_fn): Likewise.
14267 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14268 (gimple_omp_taskreg_set_child_fn): Likewise.
14269 (gimple_omp_taskreg_data_arg): Likewise.
14270 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14271 (gimple_omp_taskreg_set_data_arg): Likewise.
14272 (gimple_omp_task_copy_fn): Likewise.
14273 (gimple_omp_task_copy_fn_ptr): Likewise.
14274 (gimple_omp_task_set_copy_fn): Likewise.
14275 (gimple_omp_task_arg_size): Likewise.
14276 (gimple_omp_task_arg_size_ptr): Likewise.
14277 (gimple_omp_task_set_arg_size): Likewise.
14278 (gimple_omp_task_arg_align): Likewise.
14279 (gimple_omp_task_arg_align_ptr): Likewise.
14280 (gimple_omp_task_set_arg_align): Likewise.
14281 (gimple_omp_single_clauses): Likewise.
14282 (gimple_omp_single_clauses_ptr): Likewise.
14283 (gimple_omp_single_set_clauses): Likewise.
14284 (gimple_omp_target_clauses): Likewise.
14285 (gimple_omp_target_clauses_ptr): Likewise.
14286 (gimple_omp_target_set_clauses): Likewise.
14287 (gimple_omp_target_child_fn): Likewise.
14288 (gimple_omp_target_child_fn_ptr): Likewise.
14289 (gimple_omp_target_set_child_fn): Likewise.
14290 (gimple_omp_target_data_arg): Likewise.
14291 (gimple_omp_target_data_arg_ptr): Likewise.
14292 (gimple_omp_target_set_data_arg): Likewise.
14293 (gimple_omp_teams_clauses): Likewise.
14294 (gimple_omp_teams_clauses_ptr): Likewise.
14295 (gimple_omp_teams_set_clauses): Likewise.
14296 (gimple_omp_sections_clauses): Likewise.
14297 (gimple_omp_sections_clauses_ptr): Likewise.
14298 (gimple_omp_sections_set_clauses): Likewise.
14299 (gimple_omp_sections_control): Likewise.
14300 (gimple_omp_sections_control_ptr): Likewise.
14301 (gimple_omp_sections_set_control): Likewise.
14302 (gimple_omp_for_set_cond): Likewise.
14303 (gimple_omp_for_cond): Likewise.
14304 (gimple_omp_atomic_store_set_val): Likewise.
14305 (gimple_omp_atomic_store_val): Likewise.
14306 (gimple_omp_atomic_store_val_ptr): Likewise.
14307 (gimple_omp_atomic_load_set_lhs): Likewise.
14308 (gimple_omp_atomic_load_lhs): Likewise.
14309 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14310 (gimple_omp_atomic_load_set_rhs): Likewise.
14311 (gimple_omp_atomic_load_rhs): Likewise.
14312 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14313 (gimple_omp_continue_control_def): Likewise.
14314 (gimple_omp_continue_control_def_ptr): Likewise.
14315 (gimple_omp_continue_set_control_def): Likewise.
14316 (gimple_omp_continue_control_use): Likewise.
14317 (gimple_omp_continue_control_use_ptr): Likewise.
14318 (gimple_omp_continue_set_control_use): Likewise.
14319 (gimple_transaction_body_ptr): Likewise.
14320 (gimple_transaction_label): Likewise.
14321 (gimple_transaction_label_ptr): Likewise.
14322 (gimple_transaction_set_body): Likewise.
14323 (gimple_transaction_set_label): Likewise.
14324
14325 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14326 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14327 * ipa-ref.c (ipa_record_reference): Likewise.
14328 * ipa-reference.c (analyze_function): Likewise.
14329 (ipa_reference_write_optimization_summary): Likewise.
14330 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14331 (address_taken_from_non_vtable_p): Likewise.
14332 (comdat_can_be_unshared_p_1): Likewise.
14333 * lto-cgraph.c (lto_output_ref): Likewise.
14334 (add_references): Likewise.
14335 (compute_ltrans_boundary): Likewise.
14336 (output_symtab): Likewise.
14337 (input_ref): Likewise.
14338 (input_cgraph_1): Likewise.
14339 (output_cgraph_opt_summary): Likewise.
14340 * lto-streamer-out.c (lto_output): Likewise.
14341 (output_symbol_p): Likewise.
14342 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14343 (lsei_start_function_in_partition): Likewise.
14344 (lsei_next_variable_in_partition): Likewise.
14345 (lsei_start_variable_in_partition): Likewise.
14346 * symtab.c (insert_to_assembler_name_hash): Likewise.
14347 (unlink_from_assembler_name_hash): Likewise.
14348 (symtab_unregister_node): Likewise.
14349 (symtab_remove_node): Likewise.
14350 (dump_symtab_node): Likewise.
14351 (verify_symtab_base): Likewise.
14352 (verify_symtab_node): Likewise.
14353 (symtab_make_decl_local): Likewise.
14354 (symtab_alias_ultimate_target): Likewise.
14355 (symtab_resolve_alias): Likewise.
14356 (symtab_get_symbol_partitioning_class): Likewise.
14357 * tree-phinodes.c (allocate_phi_node): Likewise.
14358 (reserve_phi_args_for_new_edge): Likewise.
14359 (remove_phi_args): Likewise.
14360 * varpool.c (varpool_node_for_asm): Likewise.
14361 (varpool_remove_unreferenced_decls): Likewise.
14362
14363 2014-04-23 Jeff Law <law@redhat.com>
14364
14365 PR tree-optimization/60902
14366 * tree-ssa-threadedge.c
14367 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14368 invalidate outputs from statements that do not produce useful
14369 outputs for threading.
14370
14371 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14372
14373 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14374 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14375 machine descriptions for Stack Smashing Protector.
14376
14377 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14378
14379 * aarch64.md (<optab>_rol<mode>3): New pattern.
14380 (<optab>_rolsi3_uxtw): Likewise.
14381 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14382
14383 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14384
14385 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14386 (arm_cortex_a12_tune): Likewise.
14387
14388 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14389
14390 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14391
14392 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14393
14394 * config/arm/arm.md (arm_rev16si2): New pattern.
14395 (arm_rev16si2_alt): Likewise.
14396 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14397
14398 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14399
14400 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14401 (rev16<mode>2_alt): Likewise.
14402 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14403 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14404 (aarch_rev16_shleft_mask_imm_p): Likewise.
14405 (aarch_rev16_p_1): Likewise.
14406 (aarch_rev16_p): Likewise.
14407 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14408 (aarch_rev16_shright_mask_imm_p): Likewise.
14409 (aarch_rev16_shleft_mask_imm_p): Likewise.
14410
14411 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14412
14413 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14414 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14415 rev cost.
14416 (cortex_a53_extra_costs): Likewise.
14417 (cortex_a57_extra_costs): Likewise.
14418 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14419 (cortexa7_extra_costs): Likewise.
14420 (cortexa8_extra_costs): Likewise.
14421 (cortexa12_extra_costs): Likewise.
14422 (cortexa15_extra_costs): Likewise.
14423 (v7m_extra_costs): Likewise.
14424 (arm_new_rtx_costs): Handle BSWAP.
14425
14426 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14427
14428 * config/arm/arm.c (cortexa8_extra_costs): New table.
14429 (arm_cortex_a8_tune): New tuning struct.
14430 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14431
14432 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14433
14434 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14435
14436 2014-04-23 Richard Biener <rguenther@suse.de>
14437
14438 * Makefile.in (OBJS): Remove loop-unswitch.o.
14439 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14440 * passes.def (pass_rtl_unswitch): Likewise.
14441 * loop-init.c (gate_rtl_unswitch): Likewise.
14442 (rtl_unswitch): Likewise.
14443 (pass_data_rtl_unswitch): Likewise.
14444 (pass_rtl_unswitch): Likewise.
14445 (make_pass_rtl_unswitch): Likewise.
14446 * rtl.h (reversed_condition): Likewise.
14447 (compare_and_jump_seq): Likewise.
14448 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14449 and make static.
14450 * loop-unroll.c (compare_and_jump_seq): Likewise.
14451
14452 2014-04-23 Richard Biener <rguenther@suse.de>
14453
14454 PR tree-optimization/60903
14455 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14456 commented code block.
14457 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14458 loop flags to newly created BBs and edges.
14459
14460 2014-04-23 Nick Clifton <nickc@redhat.com>
14461
14462 * config/msp430/msp430.c (msp430_handle_option): Move function
14463 to msp430-common.c
14464 (msp430_option_override): Simplify mcu and mcpu option handling.
14465 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14466 support for -mhwmult command line option.
14467 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14468 -mhwmult command line option.
14469 (msp430_hwmult_enabled): Delete.
14470 (msp43o_output_labelref): Add support for -mhwmult command line option.
14471 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14472 (umulsidi3): Likewise.
14473 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14474 (mcpu, mlarge, msmall): Likewise.
14475 (mhwmult): New option.
14476 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14477 prototype.
14478 (msp430_is_f5_mcu): Remove prototype.
14479 (msp430_use_f5_series_hwmult): Add prototype.
14480 * config/msp430/msp430-opts.h: New file.
14481 * common/config/msp430: New directory.
14482 * common/config/msp430/msp430-common.c: New file.
14483 * config.gcc (msp430): Remove target_has_targetm_common.
14484 * doc/invoke.texi: Document -mhwmult command line option.
14485
14486 2014-04-23 Nick Clifton <nickc@redhat.com>
14487
14488 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14489 default-manifest.o if it can be found in the search path.
14490 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14491
14492 2014-04-23 Terry Guo <terry.guo@arm.com>
14493
14494 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14495
14496 2014-04-23 Richard Biener <rguenther@suse.de>
14497
14498 PR middle-end/60895
14499 * tree-inline.c (declare_return_variable): Use mark_addressable.
14500
14501 2014-04-23 Richard Biener <rguenther@suse.de>
14502
14503 PR middle-end/60891
14504 * loop-init.c (loop_optimizer_init): Make sure to apply
14505 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14506
14507 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14508
14509 PR sanitizer/60275
14510 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14511 New options.
14512 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14513 if flag_sanitize_undefined_trap_on_error.
14514 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14515 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14516 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14517 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14518 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14519 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14520 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14521 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14522 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14523 * ubsan.c (ubsan_instrument_unreachable): Return
14524 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14525 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14526 if flag_sanitize_undefined_trap_on_error and
14527 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14528 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14529 instrument_bool_enum_load): Emit __builtin_trap () if
14530 flag_sanitize_undefined_trap_on_error and
14531 __builtin_handle_*_abort () if !flag_sanitize_recover.
14532 * doc/invoke.texi (-fsanitize-recover,
14533 -fsanitize-undefined-trap-on-error): Document.
14534
14535 2014-04-22 Christian Bruel <christian.bruel@st.com>
14536
14537 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14538 Force immediates to SImode.
14539
14540 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14541
14542 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14543 (lroundsfsi2): New.
14544 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14545 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14546 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14547 (nios2_fpu_insn): Add entry for round.
14548 (N2FPU_NO_ERRNO_P): Define.
14549 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14550 flag_errno_math.
14551 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14552
14553 2014-04-22 Richard Henderson <rth@redhat.com>
14554
14555 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14556 (add<GPI>3_compare0): Remove leading * from name.
14557 (add<GPI>3_carryin): Likewise.
14558 (sub<GPI>3_compare0): Likewise.
14559 (sub<GPI>3_carryin): Likewise.
14560 (<su_optab>mulditi3): New expander.
14561 (multi3): New expander.
14562 (madd<GPI>): Remove leading * from name.
14563
14564 2014-04-22 Martin Jambor <mjambor@suse.cz>
14565
14566 * cgraphclones.c (cgraph_function_versioning): Copy
14567 ipa_transforms_to_apply instead of asserting it is empty.
14568
14569 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14570
14571 PR target/60868
14572 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14573 on count_exp to get mode.
14574
14575 2014-04-22 Andrew Pinski <apinski@cavium.com>
14576
14577 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14578 Handle TLS for ILP32.
14579 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14580 (tlsie_small_<mode>): this and handle PTR.
14581 (tlsie_small_sidi): New pattern.
14582 (tlsle_small): Change to an expand to handle ILP32.
14583 (tlsle_small_<mode>): New pattern.
14584 (tlsdesc_small): Rename to ...
14585 (tlsdesc_small_<mode>): this and handle PTR.
14586
14587 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14588
14589 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14590
14591 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14592
14593 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14594 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14595 (aarch64_types_signed_poly_qualifiers): Likewise.
14596 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14597 (aarch64_types_poly_signed_qualifiers): Likewise.
14598 (TYPES_REINTERP_SS): Type macro added.
14599 (TYPES_REINTERP_SU): Likewise.
14600 (TYPES_REINTERP_SP): Likewise.
14601 (TYPES_REINTERP_US): Likewise.
14602 (TYPES_REINTERP_PS): Likewise.
14603 (aarch64_fold_builtin): New expression folding added.
14604 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14605 Declarations removed.
14606 (REINTERP_SS): Declarations added.
14607 (REINTERP_US): Likewise.
14608 (REINTERP_PS): Likewise.
14609 (REINTERP_SU): Likewise.
14610 (REINTERP_SP): Likewise.
14611 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14612 (vreinterpretq_p8_f64): Likewise.
14613 (vreinterpret_p16_f64): Likewise.
14614 (vreinterpretq_p16_f64): Likewise.
14615 (vreinterpret_f32_f64): Likewise.
14616 (vreinterpretq_f32_f64): Likewise.
14617 (vreinterpret_f64_f32): Likewise.
14618 (vreinterpret_f64_p8): Likewise.
14619 (vreinterpret_f64_p16): Likewise.
14620 (vreinterpret_f64_s8): Likewise.
14621 (vreinterpret_f64_s16): Likewise.
14622 (vreinterpret_f64_s32): Likewise.
14623 (vreinterpret_f64_s64): Likewise.
14624 (vreinterpret_f64_u8): Likewise.
14625 (vreinterpret_f64_u16): Likewise.
14626 (vreinterpret_f64_u32): Likewise.
14627 (vreinterpret_f64_u64): Likewise.
14628 (vreinterpretq_f64_f32): Likewise.
14629 (vreinterpretq_f64_p8): Likewise.
14630 (vreinterpretq_f64_p16): Likewise.
14631 (vreinterpretq_f64_s8): Likewise.
14632 (vreinterpretq_f64_s16): Likewise.
14633 (vreinterpretq_f64_s32): Likewise.
14634 (vreinterpretq_f64_s64): Likewise.
14635 (vreinterpretq_f64_u8): Likewise.
14636 (vreinterpretq_f64_u16): Likewise.
14637 (vreinterpretq_f64_u32): Likewise.
14638 (vreinterpretq_f64_u64): Likewise.
14639 (vreinterpret_s64_f64): Likewise.
14640 (vreinterpretq_s64_f64): Likewise.
14641 (vreinterpret_u64_f64): Likewise.
14642 (vreinterpretq_u64_f64): Likewise.
14643 (vreinterpret_s8_f64): Likewise.
14644 (vreinterpretq_s8_f64): Likewise.
14645 (vreinterpret_s16_f64): Likewise.
14646 (vreinterpretq_s16_f64): Likewise.
14647 (vreinterpret_s32_f64): Likewise.
14648 (vreinterpretq_s32_f64): Likewise.
14649 (vreinterpret_u8_f64): Likewise.
14650 (vreinterpretq_u8_f64): Likewise.
14651 (vreinterpret_u16_f64): Likewise.
14652 (vreinterpretq_u16_f64): Likewise.
14653 (vreinterpret_u32_f64): Likewise.
14654 (vreinterpretq_u32_f64): Likewise.
14655
14656 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14657
14658 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14659 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14660 (vreinterpret_p8_s8): Likewise.
14661 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14662 (vreinterpret_p8_s16): Likewise.
14663 (vreinterpret_p8_s32): Likewise.
14664 (vreinterpret_p8_s64): Likewise.
14665 (vreinterpret_p8_f32): Likewise.
14666 (vreinterpret_p8_u8): Likewise.
14667 (vreinterpret_p8_u16): Likewise.
14668 (vreinterpret_p8_u32): Likewise.
14669 (vreinterpret_p8_u64): Likewise.
14670 (vreinterpret_p8_p16): Likewise.
14671 (vreinterpretq_p8_s8): Likewise.
14672 (vreinterpretq_p8_s16): Likewise.
14673 (vreinterpretq_p8_s32): Likewise.
14674 (vreinterpretq_p8_s64): Likewise.
14675 (vreinterpretq_p8_f32): Likewise.
14676 (vreinterpretq_p8_u8): Likewise.
14677 (vreinterpretq_p8_u16): Likewise.
14678 (vreinterpretq_p8_u32): Likewise.
14679 (vreinterpretq_p8_u64): Likewise.
14680 (vreinterpretq_p8_p16): Likewise.
14681 (vreinterpret_p16_s8): Likewise.
14682 (vreinterpret_p16_s16): Likewise.
14683 (vreinterpret_p16_s32): Likewise.
14684 (vreinterpret_p16_s64): Likewise.
14685 (vreinterpret_p16_f32): Likewise.
14686 (vreinterpret_p16_u8): Likewise.
14687 (vreinterpret_p16_u16): Likewise.
14688 (vreinterpret_p16_u32): Likewise.
14689 (vreinterpret_p16_u64): Likewise.
14690 (vreinterpret_p16_p8): Likewise.
14691 (vreinterpretq_p16_s8): Likewise.
14692 (vreinterpretq_p16_s16): Likewise.
14693 (vreinterpretq_p16_s32): Likewise.
14694 (vreinterpretq_p16_s64): Likewise.
14695 (vreinterpretq_p16_f32): Likewise.
14696 (vreinterpretq_p16_u8): Likewise.
14697 (vreinterpretq_p16_u16): Likewise.
14698 (vreinterpretq_p16_u32): Likewise.
14699 (vreinterpretq_p16_u64): Likewise.
14700 (vreinterpretq_p16_p8): Likewise.
14701 (vreinterpret_f32_s8): Likewise.
14702 (vreinterpret_f32_s16): Likewise.
14703 (vreinterpret_f32_s32): Likewise.
14704 (vreinterpret_f32_s64): Likewise.
14705 (vreinterpret_f32_u8): Likewise.
14706 (vreinterpret_f32_u16): Likewise.
14707 (vreinterpret_f32_u32): Likewise.
14708 (vreinterpret_f32_u64): Likewise.
14709 (vreinterpret_f32_p8): Likewise.
14710 (vreinterpret_f32_p16): Likewise.
14711 (vreinterpretq_f32_s8): Likewise.
14712 (vreinterpretq_f32_s16): Likewise.
14713 (vreinterpretq_f32_s32): Likewise.
14714 (vreinterpretq_f32_s64): Likewise.
14715 (vreinterpretq_f32_u8): Likewise.
14716 (vreinterpretq_f32_u16): Likewise.
14717 (vreinterpretq_f32_u32): Likewise.
14718 (vreinterpretq_f32_u64): Likewise.
14719 (vreinterpretq_f32_p8): Likewise.
14720 (vreinterpretq_f32_p16): Likewise.
14721 (vreinterpret_s64_s8): Likewise.
14722 (vreinterpret_s64_s16): Likewise.
14723 (vreinterpret_s64_s32): Likewise.
14724 (vreinterpret_s64_f32): Likewise.
14725 (vreinterpret_s64_u8): Likewise.
14726 (vreinterpret_s64_u16): Likewise.
14727 (vreinterpret_s64_u32): Likewise.
14728 (vreinterpret_s64_u64): Likewise.
14729 (vreinterpret_s64_p8): Likewise.
14730 (vreinterpret_s64_p16): Likewise.
14731 (vreinterpretq_s64_s8): Likewise.
14732 (vreinterpretq_s64_s16): Likewise.
14733 (vreinterpretq_s64_s32): Likewise.
14734 (vreinterpretq_s64_f32): Likewise.
14735 (vreinterpretq_s64_u8): Likewise.
14736 (vreinterpretq_s64_u16): Likewise.
14737 (vreinterpretq_s64_u32): Likewise.
14738 (vreinterpretq_s64_u64): Likewise.
14739 (vreinterpretq_s64_p8): Likewise.
14740 (vreinterpretq_s64_p16): Likewise.
14741 (vreinterpret_u64_s8): Likewise.
14742 (vreinterpret_u64_s16): Likewise.
14743 (vreinterpret_u64_s32): Likewise.
14744 (vreinterpret_u64_s64): Likewise.
14745 (vreinterpret_u64_f32): Likewise.
14746 (vreinterpret_u64_u8): Likewise.
14747 (vreinterpret_u64_u16): Likewise.
14748 (vreinterpret_u64_u32): Likewise.
14749 (vreinterpret_u64_p8): Likewise.
14750 (vreinterpret_u64_p16): Likewise.
14751 (vreinterpretq_u64_s8): Likewise.
14752 (vreinterpretq_u64_s16): Likewise.
14753 (vreinterpretq_u64_s32): Likewise.
14754 (vreinterpretq_u64_s64): Likewise.
14755 (vreinterpretq_u64_f32): Likewise.
14756 (vreinterpretq_u64_u8): Likewise.
14757 (vreinterpretq_u64_u16): Likewise.
14758 (vreinterpretq_u64_u32): Likewise.
14759 (vreinterpretq_u64_p8): Likewise.
14760 (vreinterpretq_u64_p16): Likewise.
14761 (vreinterpret_s8_s16): Likewise.
14762 (vreinterpret_s8_s32): Likewise.
14763 (vreinterpret_s8_s64): Likewise.
14764 (vreinterpret_s8_f32): Likewise.
14765 (vreinterpret_s8_u8): Likewise.
14766 (vreinterpret_s8_u16): Likewise.
14767 (vreinterpret_s8_u32): Likewise.
14768 (vreinterpret_s8_u64): Likewise.
14769 (vreinterpret_s8_p8): Likewise.
14770 (vreinterpret_s8_p16): Likewise.
14771 (vreinterpretq_s8_s16): Likewise.
14772 (vreinterpretq_s8_s32): Likewise.
14773 (vreinterpretq_s8_s64): Likewise.
14774 (vreinterpretq_s8_f32): Likewise.
14775 (vreinterpretq_s8_u8): Likewise.
14776 (vreinterpretq_s8_u16): Likewise.
14777 (vreinterpretq_s8_u32): Likewise.
14778 (vreinterpretq_s8_u64): Likewise.
14779 (vreinterpretq_s8_p8): Likewise.
14780 (vreinterpretq_s8_p16): Likewise.
14781 (vreinterpret_s16_s8): Likewise.
14782 (vreinterpret_s16_s32): Likewise.
14783 (vreinterpret_s16_s64): Likewise.
14784 (vreinterpret_s16_f32): Likewise.
14785 (vreinterpret_s16_u8): Likewise.
14786 (vreinterpret_s16_u16): Likewise.
14787 (vreinterpret_s16_u32): Likewise.
14788 (vreinterpret_s16_u64): Likewise.
14789 (vreinterpret_s16_p8): Likewise.
14790 (vreinterpret_s16_p16): Likewise.
14791 (vreinterpretq_s16_s8): Likewise.
14792 (vreinterpretq_s16_s32): Likewise.
14793 (vreinterpretq_s16_s64): Likewise.
14794 (vreinterpretq_s16_f32): Likewise.
14795 (vreinterpretq_s16_u8): Likewise.
14796 (vreinterpretq_s16_u16): Likewise.
14797 (vreinterpretq_s16_u32): Likewise.
14798 (vreinterpretq_s16_u64): Likewise.
14799 (vreinterpretq_s16_p8): Likewise.
14800 (vreinterpretq_s16_p16): Likewise.
14801 (vreinterpret_s32_s8): Likewise.
14802 (vreinterpret_s32_s16): Likewise.
14803 (vreinterpret_s32_s64): Likewise.
14804 (vreinterpret_s32_f32): Likewise.
14805 (vreinterpret_s32_u8): Likewise.
14806 (vreinterpret_s32_u16): Likewise.
14807 (vreinterpret_s32_u32): Likewise.
14808 (vreinterpret_s32_u64): Likewise.
14809 (vreinterpret_s32_p8): Likewise.
14810 (vreinterpret_s32_p16): Likewise.
14811 (vreinterpretq_s32_s8): Likewise.
14812 (vreinterpretq_s32_s16): Likewise.
14813 (vreinterpretq_s32_s64): Likewise.
14814 (vreinterpretq_s32_f32): Likewise.
14815 (vreinterpretq_s32_u8): Likewise.
14816 (vreinterpretq_s32_u16): Likewise.
14817 (vreinterpretq_s32_u32): Likewise.
14818 (vreinterpretq_s32_u64): Likewise.
14819 (vreinterpretq_s32_p8): Likewise.
14820 (vreinterpretq_s32_p16): Likewise.
14821 (vreinterpret_u8_s8): Likewise.
14822 (vreinterpret_u8_s16): Likewise.
14823 (vreinterpret_u8_s32): Likewise.
14824 (vreinterpret_u8_s64): Likewise.
14825 (vreinterpret_u8_f32): Likewise.
14826 (vreinterpret_u8_u16): Likewise.
14827 (vreinterpret_u8_u32): Likewise.
14828 (vreinterpret_u8_u64): Likewise.
14829 (vreinterpret_u8_p8): Likewise.
14830 (vreinterpret_u8_p16): Likewise.
14831 (vreinterpretq_u8_s8): Likewise.
14832 (vreinterpretq_u8_s16): Likewise.
14833 (vreinterpretq_u8_s32): Likewise.
14834 (vreinterpretq_u8_s64): Likewise.
14835 (vreinterpretq_u8_f32): Likewise.
14836 (vreinterpretq_u8_u16): Likewise.
14837 (vreinterpretq_u8_u32): Likewise.
14838 (vreinterpretq_u8_u64): Likewise.
14839 (vreinterpretq_u8_p8): Likewise.
14840 (vreinterpretq_u8_p16): Likewise.
14841 (vreinterpret_u16_s8): Likewise.
14842 (vreinterpret_u16_s16): Likewise.
14843 (vreinterpret_u16_s32): Likewise.
14844 (vreinterpret_u16_s64): Likewise.
14845 (vreinterpret_u16_f32): Likewise.
14846 (vreinterpret_u16_u8): Likewise.
14847 (vreinterpret_u16_u32): Likewise.
14848 (vreinterpret_u16_u64): Likewise.
14849 (vreinterpret_u16_p8): Likewise.
14850 (vreinterpret_u16_p16): Likewise.
14851 (vreinterpretq_u16_s8): Likewise.
14852 (vreinterpretq_u16_s16): Likewise.
14853 (vreinterpretq_u16_s32): Likewise.
14854 (vreinterpretq_u16_s64): Likewise.
14855 (vreinterpretq_u16_f32): Likewise.
14856 (vreinterpretq_u16_u8): Likewise.
14857 (vreinterpretq_u16_u32): Likewise.
14858 (vreinterpretq_u16_u64): Likewise.
14859 (vreinterpretq_u16_p8): Likewise.
14860 (vreinterpretq_u16_p16): Likewise.
14861 (vreinterpret_u32_s8): Likewise.
14862 (vreinterpret_u32_s16): Likewise.
14863 (vreinterpret_u32_s32): Likewise.
14864 (vreinterpret_u32_s64): Likewise.
14865 (vreinterpret_u32_f32): Likewise.
14866 (vreinterpret_u32_u8): Likewise.
14867 (vreinterpret_u32_u16): Likewise.
14868 (vreinterpret_u32_u64): Likewise.
14869 (vreinterpret_u32_p8): Likewise.
14870 (vreinterpret_u32_p16): Likewise.
14871 (vreinterpretq_u32_s8): Likewise.
14872 (vreinterpretq_u32_s16): Likewise.
14873 (vreinterpretq_u32_s32): Likewise.
14874 (vreinterpretq_u32_s64): Likewise.
14875 (vreinterpretq_u32_f32): Likewise.
14876 (vreinterpretq_u32_u8): Likewise.
14877 (vreinterpretq_u32_u16): Likewise.
14878 (vreinterpretq_u32_u64): Likewise.
14879 (vreinterpretq_u32_p8): Likewise.
14880 (vreinterpretq_u32_p16): Likewise.
14881
14882 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14883
14884 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
14885 Pattern extended.
14886 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
14887 (sqabs): Likewise.
14888 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
14889 (vqnegd_s64): Likewise.
14890 (vqabs_s64): Likewise.
14891 (vqabsd_s64): Likewise.
14892
14893 2014-04-22 Richard Henderson <rth@redhat.com>
14894
14895 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
14896 computation to the top of the loop.
14897
14898 2014-04-22 Renlin <renlin.li@arm.com>
14899 Jiong Wang <jiong.wang@arm.com>
14900
14901 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
14902 * config/aarch64/aarch64.c (aarch64_layout_frame)
14903 (aarch64_initial_elimination_offset): Likewise.
14904
14905 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
14906
14907 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
14908 Fix indentation.
14909
14910 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
14911
14912 * machmode.h (bitwise_mode_for_mode): Declare.
14913 * stor-layout.h (bitwise_type_for_mode): Likewise.
14914 * stor-layout.c (bitwise_mode_for_mode): New function.
14915 (bitwise_type_for_mode): Likewise.
14916 * builtins.c (fold_builtin_memory_op): Use it instead of
14917 int_mode_for_mode and build_nonstandard_integer_type.
14918
14919 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14920
14921 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
14922 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
14923 (*-*-solaris2*): Simplify.
14924 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
14925 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
14926 *-*-solaris2.9* handling.
14927
14928 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
14929 as bug.
14930 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
14931 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
14932 handling, simplify.
14933 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
14934 * configure: Regenerate.
14935
14936 * config/i386/sol2-9.h: Remove.
14937
14938 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
14939 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
14940 Remove Solaris 9 references.
14941
14942 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
14943
14944 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
14945 (floatuns<GPI:mode><GPF:mode>2): Remove.
14946 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
14947 and floatuns conversions.
14948 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
14949 and floatuns conversions.
14950 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
14951 (w1,w2): New mode attributes for inequal width conversions.
14952
14953 2014-04-22 Renlin Li <Renlin.Li@arm.com>
14954
14955 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
14956 the output asm format.
14957
14958 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
14959
14960 * config/aarch64/aarch64-simd.md
14961 (aarch64_cm<optab>di): Always split.
14962 (*aarch64_cm<optab>di): New.
14963 (aarch64_cmtstdi): Always split.
14964 (*aarch64_cmtstdi): New.
14965
14966 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14967
14968 PR tree-optimization/60823
14969 * omp-low.c (ipa_simd_modify_function_body): Go through
14970 all SSA_NAMEs and for those refering to vector arguments
14971 which are going to be replaced adjust SSA_NAME_VAR and,
14972 if it is a default definition, change it into a non-default
14973 definition assigned at the beginning of function from new_decl.
14974 (ipa_simd_modify_stmt_ops): Rewritten.
14975 * tree-dfa.c (set_ssa_default_def): When removing default def,
14976 check for NULL loc instead of NULL *loc.
14977
14978 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14979
14980 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
14981 restrictions on core registers for DImode values in Thumb2.
14982
14983 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14984
14985 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
14986 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
14987
14988 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14989
14990 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
14991 (*iordi_notzesidi_di): Likewise.
14992 (*iordi_notsesidi_di): Likewise.
14993
14994 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14995
14996 * config/arm/arm-protos.h (tune_params): New struct members.
14997 * config/arm/arm.c: Initialise tune_params per processor.
14998 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
14999 for speed, based on new tune_params.
15000
15001 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15002
15003 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15004 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15005 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15006 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15007 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15008 (vrnda_f64): Likewise.
15009 (vrndi_f64): Likewise.
15010 (vrndm_f64): Likewise.
15011 (vrndn_f64): Likewise.
15012 (vrndp_f64): Likewise.
15013 (vrndx_f64): Likewise.
15014
15015 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15016
15017 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15018 GET_MODE_SIZE argument is enum machine_mode.
15019
15020 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15021
15022 PR target/60910
15023 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15024 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15025
15026 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15027
15028 PR middle-end/60281
15029 * asan.c (asan_emit_stack_protection): Force the base to align to
15030 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15031 appropriate bits if STRICT_ALIGNMENT.
15032 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15033 when asan is on.
15034 (expand_used_vars): Leave a space in the stack frame for alignment
15035 if STRICT_ALIGNMENT.
15036
15037 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15038
15039 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15040 than a gimple.
15041 (gimple_store_p): Likewise.
15042 (gimple_assign_load_p): Likewise.
15043 (gimple_assign_cast_p): Likewise.
15044 (gimple_clobber_p): Likewise.
15045
15046 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15047 rather than a gimple.
15048 (gimple_assign_cast_p): Likewise.
15049
15050 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15051
15052 PR target/60735
15053 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15054 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15055
15056 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15057 more debug information for E500 if -mdebug=reg.
15058
15059 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15060
15061 PR target/60909
15062 * config/i386/i386.c (ix86_expand_builtin)
15063 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15064 register for target RTX.
15065 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15066
15067 2014-04-18 Cong Hou <congh@google.com>
15068
15069 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15070 the widen-mult pattern by handling two operands with different sizes,
15071 and operands whose size is smaller than half of the result type.
15072
15073 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15074
15075 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15076 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15077 (do_estimate_edge_time): Compute it.
15078 * ipa-inline.c (want_inline_small_function_p): Bypass
15079 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15080
15081 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15082
15083 * ipa-inline.c (spec_rem): New static variable.
15084 (dump_overall_stats): New function.
15085 (dump_inline_stats): New function.
15086
15087 2014-04-18 Richard Henderson <rth@redhat.com>
15088
15089 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15090 to GET_MODE_SIZE, not a reg_class_t.
15091
15092 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15093
15094 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15095 (vsx_xxmrglw_<mode>): Likewise.
15096
15097 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15098
15099 PR target/60876
15100 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15101 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15102 (rs6000_init_hard_regno_mode_ok): Likewise.
15103
15104 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15105
15106 * ipa-inline.c (inline_small_functions): Account only non-cold
15107 functions.
15108 * doc/invoke.texi (inline-unit-growth): Update documentation.
15109
15110 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15111
15112 * config/rs6000/rs6000.md (addti3, subti3): New.
15113
15114 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15115
15116 PR target/60863
15117 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15118 comment. Check optimize_insn_for_size_p instead of
15119 optimize_insn_for_speed_p.
15120
15121 2014-04-17 Martin Jambor <mjambor@suse.cz>
15122
15123 * gimple-iterator.c (gsi_start_edge): New function.
15124 * gimple-iterator.h (gsi_start_edge): Declare.
15125 * tree-sra.c (single_non_eh_succ): New function.
15126 (disqualify_ops_if_throwing_stmt): Renamed to
15127 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15128 having one non-EH successor BB.
15129 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15130 generate loads into replacements.
15131 (sra_modify_assign): Likewise and and also use the simple path for
15132 such statements.
15133 (sra_modify_function_body): Commit statements on edges.
15134
15135 2014-04-17 Richard Biener <rguenther@suse.de>
15136
15137 PR middle-end/60849
15138 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15139 comparison results and add clarifying comment.
15140
15141 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15142
15143 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15144 (blank_mode): Initialize it.
15145 (emit_mode_size_inline, emit_mode_nunits_inline,
15146 emit_mode_inner_inline): New functions.
15147 (emit_insn_modes_h): Call them and surround their output with
15148 #if GCC_VERSION >= 4001 ... #endif.
15149 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15150 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15151 mode_* arrays if the argument is __builtin_constant_p.
15152 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15153 is enum machine_mode.
15154
15155 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15156
15157 * passes.c (opt_pass::execute): Adjust.
15158 (pass_manager::execute_pass_mode_switching): Likewise.
15159 (early_local_passes::execute): Likewise.
15160 (execute_one_pass): Pass cfun to the pass's execute method.
15161 * tree-pass.h (opt_pass::execute): Add function * argument.
15162 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15163 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15164 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15165 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15166 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15167 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15168 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15169 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15170 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15171 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15172 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15173 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15174 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15175 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15176 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15177 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15178 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15179 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15180 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15181 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15182 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15183 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15184 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15185 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15186 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15187 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15188 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15189 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15190 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15191 Adjust.
15192
15193 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15194
15195 * passes.c (opt_pass::gate): Take function * argument.
15196 (gate_all_early_local_passes): Merge into
15197 (early_local_passes::gate): this.
15198 (gate_all_early_optimizations): Merge into
15199 (all_early_optimizations::gate): this.
15200 (gate_all_optimizations): Mege into
15201 (all_optimizations::gate): this.
15202 (gate_all_optimizations_g): Merge into
15203 (all_optimizations_g::gate): this.
15204 (gate_rest_of_compilation): Mege into
15205 (rest_of_compilation::gate): this.
15206 (gate_postreload): Merge into
15207 (postreload::gate): this.
15208 (dump_one_pass): Pass cfun to the pass's gate method.
15209 (execute_ipa_summary_passes): Likewise.
15210 (execute_one_pass): Likewise.
15211 (ipa_write_summaries_2): Likewise.
15212 (ipa_write_optimization_summaries_1): Likewise.
15213 (ipa_read_summaries_1): Likewise.
15214 (ipa_read_optimization_summaries_1): Likewise.
15215 (execute_ipa_stmt_fixups): Likewise.
15216 * tree-pass.h (opt_pass::gate): Add function * argument.
15217 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15218 combine-stack-adj.c, combine.c, compare-elim.c,
15219 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15220 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15221 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15222 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15223 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15224 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15225 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15226 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15227 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15228 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15229 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15230 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15231 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15232 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15233 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15234 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15235 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15236 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15237 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15238 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15239 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15240 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15241 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15242 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15243 var-tracking.c, vtable-verify.c, web.c: Adjust.
15244
15245 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15246
15247 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15248 * configure: Regenerate.
15249
15250 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15251
15252 * passes.c (dump_one_pass): don't check pass->has_gate.
15253 (execute_ipa_summary_passes): Likewise.
15254 (execute_one_pass): Likewise.
15255 (ipa_write_summaries_2): Likewise.
15256 (ipa_write_optimization_summaries_1): Likewise.
15257 (ipa_read_optimization_summaries_1): Likewise.
15258 (execute_ipa_stmt_fixups): Likewise.
15259 * tree-pass.h (pass_data::has_gate): Remove.
15260 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15261 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15262 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15263 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15264 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15265 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15266 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15267 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15268 gimple-low.c, gimple-ssa-isolate-paths.c,
15269 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15270 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15271 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15272 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15273 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15274 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15275 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15276 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15277 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15278 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15279 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15280 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15281 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15282 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15283 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15284 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15285 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15286 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15287 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15288 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15289 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15290 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15291 Adjust.
15292
15293 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15294
15295 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15296 declaration.
15297 * passes.c (pass_manager::register_dump_files_1): Merge into
15298 (pass_manager::register_dump_files): this, and remove its handling of
15299 properties since the pass always has the properties anyway.
15300 (pass_manager::pass_manager): Adjust.
15301
15302 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15303
15304 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15305 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15306 dealing with properties.
15307 (pass_manager::register_dump_files): Adjust.
15308
15309 2014-03-20 Mark Wielaard <mjw@redhat.com>
15310
15311 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15312 then represent the bound as normal constant value.
15313
15314 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15315
15316 PR target/60847
15317 Forward port from 4.8 branch
15318 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15319
15320 * config/i386/bmiintrin.h (_blsi_u32): New.
15321 (_blsi_u64): Ditto.
15322 (_blsr_u32): Ditto.
15323 (_blsr_u64): Ditto.
15324 (_blsmsk_u32): Ditto.
15325 (_blsmsk_u64): Ditto.
15326 (_tzcnt_u32): Ditto.
15327 (_tzcnt_u64): Ditto.
15328
15329 2014-04-17 Kito Cheng <kito@0xlab.org>
15330
15331 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15332
15333 2014-04-17 Richard Biener <rguenther@suse.de>
15334
15335 PR middle-end/60849
15336 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15337 boolean results for comparisons.
15338
15339 2014-04-17 Richard Biener <rguenther@suse.de>
15340
15341 PR tree-optimization/60836
15342 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15343 initial PHI args to be gimple values.
15344
15345 2014-04-17 Richard Biener <rguenther@suse.de>
15346
15347 PR tree-optimization/60841
15348 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15349 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15350 of stmts to SLP build.
15351 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15352 (vect_analyze_slp): Likewise.
15353 (vect_analyze_slp_instance): Likewise.
15354 (vect_build_slp_tree): Limit overall SLP tree growth.
15355 * tree-vectorizer.h (vect_analyze_data_refs,
15356 vect_analyze_slp): Adjust prototypes.
15357
15358 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15359
15360 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15361 Silvermont.
15362
15363 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15364
15365 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15366 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15367 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15368 for TARGET_SLOW_PSHUFB
15369
15370 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15371
15372 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15373 * config/i386/i386.c (intel_cost): Ditto.
15374
15375 2014-04-17 Joey Ye <joey.ye@arm.com>
15376
15377 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15378
15379 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15380
15381 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15382 with -fuse-profile.
15383
15384 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15385
15386 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15387 (type_all_derivations_known_p): New predicate.
15388 (type_all_ctors_visible_p): New predicate.
15389 (type_possibly_instantiated_p): New predicate.
15390 (get_odr_type): Compute all_derivations_known.
15391 (dump_odr_type): Dump the flag.
15392 (maybe_record_type): Cleanup.
15393 (record_target_from_binfo): Add bases_to_consider array;
15394 record bases for types w/o instances and skip CXX destructor.
15395 (possible_polymorphic_call_targets_1): Add bases_to_consider
15396 and consider_construction parameters; check if type may have instance.
15397 (get_polymorphic_call_info): Set maybe_in_construction to true
15398 when we know nothing.
15399 (record_targets_from_bases): Skip CXX destructors; they are
15400 never called for types in construction.
15401 (possible_polymorphic_call_targets): Do not record target when
15402 type may not have instance.
15403
15404 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15405
15406 PR ipa/60854
15407 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15408 external aliases alive, too.
15409
15410 2014-04-16 Andrew Pinski <apinski@cavium.com>
15411
15412 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15413 definition.
15414
15415 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15416
15417 * final.c (compute_alignments): Do not apply loop alignment to a block
15418 falling through to the exit.
15419
15420 2014-04-16 Catherine Moore <clm@codesourcery.com>
15421
15422 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15423 Adjust constraints for microMIPS store patterns.
15424
15425 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15426
15427 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15428
15429 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15430
15431 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15432 (append_use): Run at -O0.
15433 (append_vdef): Likewise.
15434 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15435 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15436
15437 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15438
15439 PR tree-optimization/60844
15440 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15441 (propagate_op_to_single_use, remove_visited_stmt_chain,
15442 linearize_expr, repropagate_negates, reassociate_bb): Use it
15443 instead of gsi_remove.
15444
15445 2014-04-16 Martin Jambor <mjambor@suse.cz>
15446
15447 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15448 ipa_transforms_to_apply.
15449 (cgraph_function_versioning): Assert that old_node has empty
15450 ipa_transforms_to_apply.
15451 * trans-mem.c (ipa_tm_create_version): Likewise.
15452 * tree-inline.c (tree_function_versioning): Do not duplicate
15453 ipa_transforms_to_apply.
15454
15455 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15456
15457 PR target/60817
15458 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15459 x86_64-*-* cases.
15460 Pass necessary as flags on 64-bit Solaris/x86.
15461 Use lowercase relocs for x86_64-*-*.
15462 * configure: Regenerate.
15463
15464 2014-04-15 Jan Hubicka <jh@suse.cz>
15465
15466 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15467 (maybe_record_node, likely_target_p): Use it.
15468
15469 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15470
15471 PR target/60839
15472 Revert following patch
15473
15474 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15475
15476 PR target/60735
15477 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15478 software floating point or no floating point registers, do not
15479 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15480 in GPRs that occurs after we tested for GPRs that would never be
15481 true.
15482
15483 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15484 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15485 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15486 specifically allow DDmode, since that does not use the SPE SIMD
15487 instructions.
15488
15489 2014-03-21 Mark Wielaard <mjw@redhat.com>
15490
15491 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15492 as unsigned or int depending on type and value used.
15493
15494 2014-04-15 Richard Biener <rguenther@suse.de>
15495
15496 PR rtl-optimization/56965
15497 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15498 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15499 ... here.
15500 * alias.c (true_dependence_1): Do not call
15501 nonoverlapping_component_refs_p.
15502 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15503 nonoverlapping_component_refs_p.
15504 (indirect_refs_may_alias_p): Likewise.
15505
15506 2014-04-15 Teresa Johnson <tejohnson@google.com>
15507
15508 * cfg.c (dump_bb_info): Fix flags check.
15509 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15510
15511 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15512
15513 PR rtl-optimization/60663
15514 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15515 avoid 0 cost.
15516
15517 2014-04-15 Richard Biener <rguenther@suse.de>
15518
15519 * lto-streamer.h (LTO_major_version): Bump to 4.
15520
15521 2014-04-15 Richard Biener <rguenther@suse.de>
15522
15523 * common.opt (lto_partition_model): New enum.
15524 (flto-partition=): Merge separate options with a single with argument,
15525 add -flto-partition=one support.
15526 * flag-types.h (enum lto_partition_model): Declare.
15527 * opts.c (finish_options): Remove duplicate -flto-partition=
15528 option check.
15529 * lto-wrapper.c (run_gcc): Adjust.
15530
15531 2014-04-15 Richard Biener <rguenther@suse.de>
15532
15533 * alias.c (ncr_compar): New function.
15534 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15535
15536 2014-04-15 Richard Biener <rguenther@suse.de>
15537
15538 * alias.c (record_component_aliases): Do not walk BINFOs.
15539
15540 2014-04-15 Richard Biener <rguenther@suse.de>
15541
15542 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15543 Add struct function argument and adjust.
15544 (find_func_aliases_for_call): Likewise.
15545 (find_func_aliases): Likewise.
15546 (find_func_clobbers): Likewise.
15547 (intra_create_variable_infos): Likewise.
15548 (compute_points_to_sets): Likewise.
15549 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15550
15551 2014-04-15 Richard Biener <rguenther@suse.de>
15552
15553 * tree.c (iterative_hash_expr): Use enum tree_code_class
15554 to store TREE_CODE_CLASS.
15555 (tree_block): Likewise.
15556 (tree_set_block): Likewise.
15557 * tree.h (fold_build_pointer_plus_loc): Use
15558 convert_to_ptrofftype_loc.
15559
15560 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15561
15562 PR plugins/59335
15563 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15564 added in 4.9.
15565
15566 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15567
15568 * cfgloop.h (struct loop): Move force_vectorize down.
15569 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15570 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15571 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15572 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15573 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15574 * tree-core.h (enum annot_expr_kind): Add new kind values.
15575 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15576 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15577 kinds.
15578 * tree.def (ANNOTATE_EXPR): Tweak comment.
15579
15580 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15581
15582 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15583 cxa_pure_virtual).
15584
15585 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15586
15587 * tree.h (TYPE_IDENTIFIER): Declare.
15588 * tree.c (subrange_type_for_debug_p): Use it.
15589 * godump.c (go_format_type): Likewise.
15590 * dwarf2out.c (is_cxx_auto, modified_type_die,
15591 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15592 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15593
15594 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15595
15596 PR lto/60820
15597 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15598
15599 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15600
15601 * config/i386/i386.c (examine_argument): Return bool. Return true if
15602 parameter should be passed in memory.
15603 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15604 (construct_container): Update calls to examine_argument.
15605 (function_arg_advance_64): Ditto.
15606 (return_in_memory_32): Merge with ix86_return_in_memory.
15607 (return_in_memory_64): Ditto.
15608 (return_in_memory_ms_64): Ditto.
15609
15610 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15611
15612 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15613 * coverage.c (coverage_compute_profile_id): Handle externally visible
15614 symbols.
15615
15616 2014-04-14 Martin Jambor <mjambor@suse.cz>
15617
15618 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15619 DECL_DISREGARD_INLINE_LIMITS functions.
15620
15621 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15622
15623 PR target/60827
15624 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15625
15626 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15627
15628 PR target/60827
15629 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15630 optimize_insn_for_speed_p instead of
15631 optimize_function_for_speed_p.
15632
15633 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15634
15635 * doc/invoke.texi (free): Document AArch64.
15636
15637 2014-04-14 Richard Biener <rguenther@suse.de>
15638
15639 PR tree-optimization/60042
15640 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15641 (insert_into_preds_of_block): Do not prevent PHI insertion
15642 for REFERENCE exprs here ...
15643 (eliminate_dom_walker::before_dom_children): ... but prevent
15644 their use here under similar conditions when applied to the
15645 IL after PRE optimizations.
15646
15647 2014-04-14 Richard Biener <rguenther@suse.de>
15648
15649 * passes.def: Move early points-to after early SRA.
15650
15651 2014-04-14 Richard Biener <rguenther@suse.de>
15652
15653 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15654 check for which sign-changes we allow when forwarding
15655 a converted value into a switch.
15656
15657 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15658
15659 * stor-layout.c (place_field): Finalize non-constant offset for the
15660 field, if any.
15661
15662 2014-04-14 Richard Biener <rguenther@suse.de>
15663
15664 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15665 as argument.
15666 (expand_switch_using_bit_tests_p): Likewise.
15667 (process_switch): Compute and pass on speed_p based on the
15668 switch stmt.
15669 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15670 optimize_bb_for_speed_p.
15671
15672 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15673
15674 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15675 * function.h (struct function): Rename has_force_vect_loops into
15676 has_force_vectorize_loops.
15677 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15678 (input_struct_function_base): Likewise.
15679 * lto-streamer-out.c (output_cfg): Likewise.
15680 (output_struct_function_base): Likewise.
15681 * omp-low.c (expand_omp_simd): Likewise.
15682 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15683 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15684 (version_loop_for_if_conversion): Likewise.
15685 (tree_if_conversion): Likewise.
15686 (main_tree_if_conversion): Likewise.
15687 (gate_tree_if_conversion): Likewise.
15688 * tree-inline.c (copy_loops): Likewise.
15689 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15690 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15691 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15692 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15693 * tree-vectorizer.c (vectorize_loops): Likewise.
15694 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15695
15696 2014-04-14 Richard Biener <rguenther@suse.de>
15697
15698 PR lto/60720
15699 * lto-streamer-out.c (wrap_refs): New function.
15700 (lto_output): Wrap symbol references in global initializes in
15701 type-preserving MEM_REFs.
15702
15703 2014-04-14 Christian Bruel <christian.bruel@st.com>
15704
15705 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15706
15707 2014-04-14 Christian Bruel <christian.bruel@st.com>
15708
15709 * config/sh/sh.md (setmemqi): New expand pattern.
15710 * config/sh/sh.h (CLEAR_RATIO): Define.
15711 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15712 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15713
15714 2014-04-14 Richard Biener <rguenther@suse.de>
15715
15716 PR middle-end/55022
15717 * fold-const.c (negate_expr_p): Don't negate directional rounding
15718 division.
15719 (fold_negate_expr): Likewise.
15720
15721 2014-04-14 Richard Biener <rguenther@suse.de>
15722
15723 PR tree-optimization/59817
15724 PR tree-optimization/60453
15725 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15726 recursion to catch all CHRECs in the scalar evolution and restrict
15727 the predicate for the remains appropriately.
15728
15729 2014-04-12 Catherine Moore <clm@codesourcery.com>
15730
15731 * config/mips/constraints.md: Add new register constraint "kb".
15732 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15733 (*movhi_internal): Likewise.
15734 (*movqi_internal): Likewise.
15735 * config/mips/mips.h (M16_STORE_REGS): New register class.
15736 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15737 (REG_CLASS_CONTENTS): Likewise.
15738 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15739
15740 2014-04-11 Tobias Burnus <burnus@net-b.de>
15741
15742 PR c/60194
15743 * doc/invoke.texi (-Wformat-signedness): Document it.
15744 (Wformat=2): Mention that this enables -Wformat-signedness.
15745
15746 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15747
15748 * common/config/epiphany/epiphany-common.c
15749 (epiphany_option_optimization_table): Enable section anchors by
15750 default at -O1 or higher.
15751 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15752 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15753 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15754 carries no extra cost.
15755 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15756 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15757 * config/epiphany/predicates.md (memclob_operand): New predicate.
15758 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15759 Use memclob_operand predicate and X constraint for operand 3.
15760
15761 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15762
15763 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15764 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15765 its operands.
15766
15767 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15768
15769 PR rtl-optimization/60651
15770 * mode-switching.c (optimize_mode_switching): Make sure to emit
15771 sets of a lower numbered entity before sets of a higher numbered
15772 entity to a mode of the same or lower priority.
15773 When creating a seginfo for a basic block that starts with a code
15774 label, move the insertion point past the code label.
15775 (new_seginfo): Document and enforce requirement that
15776 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15777 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15778 * doc/tm.texi: Regenerate.
15779
15780 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15781
15782 PR target/60811
15783 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15784
15785 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15786
15787 * BASE-VER: Set to 4.10.0.
15788
15789 2014-04-11 Tobias Burnus <burnus@net-b.de>
15790
15791 PR other/59055
15792 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15793 * doc/gcc.texi (Service): Update description in the @menu
15794 * doc/invoke.texi (Option Summary): Remove misplaced and
15795 duplicated @menu.
15796
15797 2014-04-11 Steve Ellcey <sellcey@mips.com>
15798 Jakub Jelinek <jakub@redhat.com>
15799
15800 PR middle-end/60556
15801 * expr.c (convert_move): Use emit_store_flag_force instead of
15802 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15803 argument to it.
15804
15805 2014-04-11 Richard Biener <rguenther@suse.de>
15806
15807 PR middle-end/60797
15808 * varasm.c (assemble_alias): Avoid endless error reporting
15809 recursion by setting TREE_ASM_WRITTEN.
15810
15811 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15812
15813 * config/s390/s390.md: Add a splitter for NOT rtx.
15814
15815 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15816
15817 PR rtl-optimization/60663
15818 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15819
15820 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15821 Jakub Jelinek <jakub@redhat.com>
15822
15823 PR lto/60567
15824 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15825 flag from decl_node to node.
15826
15827 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15828
15829 PR debug/60655
15830 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15831 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15832 ameliorating the cases where it can be.
15833
15834 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15835
15836 Revert
15837 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15838
15839 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15840 (loadsync_<mode>): Change mode.
15841 (load_quadpti, store_quadpti): New.
15842 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15843 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15844 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15845
15846 2014-04-09 Cong Hou <congh@google.com>
15847
15848 PR testsuite/60773
15849 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
15850 documentation.
15851
15852 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15853
15854 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
15855 instead of vnor to exploit possible fusion opportunity in the
15856 future.
15857 (altivec_expand_vec_perm_const_le): Likewise.
15858
15859 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15860
15861 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15862 (loadsync_<mode>): Change mode.
15863 (load_quadpti, store_quadpti): New.
15864 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15865 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15866
15867 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
15868
15869 PR target/60763
15870 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
15871 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
15872 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
15873
15874 2014-04-08 Richard Biener <rguenther@suse.de>
15875
15876 PR middle-end/60706
15877 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
15878 a 64bit widest int print double-int similar to on HWI64 hosts.
15879
15880 2014-04-08 Richard Biener <rguenther@suse.de>
15881
15882 PR tree-optimization/60785
15883 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
15884 default defs properly.
15885
15886 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
15887
15888 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
15889 (Weffc++): Likewise.
15890
15891 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
15892
15893 * ipa-devirt.c (maybe_record_node): When node is not recorded,
15894 set completep to false rather than true.
15895
15896 2014-04-07 Douglas B Rupp <rupp@adacore.com>
15897
15898 PR target/60504
15899 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
15900 ARM_TARGET2_DWARF_FORMAT.
15901
15902 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
15903
15904 PR target/60609
15905 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
15906 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
15907 ADDR_DIFF_VEC.
15908
15909 2014-04-07 Richard Biener <rguenther@suse.de>
15910
15911 PR tree-optimization/60766
15912 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
15913 (may_eliminate_iv): Convert cand_value_at result to desired type.
15914
15915 2014-04-07 Jason Merrill <jason@redhat.com>
15916
15917 PR c++/60731
15918 * common.opt (-fno-gnu-unique): Add.
15919 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
15920
15921 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15922
15923 * haifa-sched.c: Fix outdated function reference and minor
15924 grammar errors in introductory comment.
15925
15926 2014-04-07 Richard Biener <rguenther@suse.de>
15927
15928 PR middle-end/60750
15929 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
15930 for noreturn calls.
15931 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
15932
15933 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
15934
15935 PR debug/55794
15936 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
15937 size accounting for thunks.
15938 (pa_asm_output_mi_thunk): Use final_start_function() and
15939 final_end_function() to output function start and end directives.
15940
15941 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15942
15943 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
15944 device specific ISA/ feature information. Remove short_sp and
15945 errata_skip ds. Add avr_device_specific_features enum to have device
15946 specific info.
15947 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
15948 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
15949 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
15950 updated device specific info.
15951 * config/avr/avr-mcus.def: Merge device specific details to
15952 dev_attribute field.
15953 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
15954 errata_skip.
15955 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
15956 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
15957 assembler if RMW isa supported by current device.
15958 * config/avr/genmultilib.awk: Update as device info structure changed.
15959 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
15960
15961 2014-04-04 Cong Hou <congh@google.com>
15962
15963 PR tree-optimization/60656
15964 * tree-vect-stmts.c (supportable_widening_operation):
15965 Fix a bug that elements in a vector with vect_used_by_reduction
15966 property are incorrectly reordered when the operation on it is not
15967 consistant with the one in reduction operation.
15968
15969 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
15970
15971 PR rtl-optimization/60155
15972 * gcse.c (record_set_data): New function.
15973 (single_set_gcse): New function.
15974 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
15975 (hoist_code): Likewise.
15976 (get_pressure_class_and_nregs): Likewise.
15977
15978 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
15979
15980 * explow.c (probe_stack_range): Emit a final optimization blockage.
15981
15982 2014-04-04 Anthony Green <green@moxielogic.com>
15983
15984 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
15985 typos.
15986
15987 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
15988
15989 PR ipa/59626
15990 * lto-cgraph.c (input_overwrite_node): Check that partitioning
15991 flags are set only during streaming.
15992 * ipa.c (process_references, walk_polymorphic_call_targets,
15993 symtab_remove_unreachable_nodes): Drop bodies of always inline
15994 after early inlining.
15995 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
15996
15997 2014-04-04 Jakub Jelinek <jakub@redhat.com>
15998 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15999
16000 PR debug/60655
16001 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16002 containing a NOT.
16003
16004 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16005
16006 PR bootstrap/60743
16007 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16008 duration.
16009 (cortex_a53_fdivd): Likewise.
16010
16011 2014-04-04 Martin Jambor <mjambor@suse.cz>
16012
16013 PR ipa/60640
16014 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16015 Adjust all callers.
16016 * cgraph.c (clone_of_p): Also return true if thunks match.
16017 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16018 cgraph_function_or_thunk_node and an obsolete comment.
16019 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16020 file.
16021 (build_function_decl_skip_args): Likewise.
16022 (set_new_clone_decl_and_node_flags): New function.
16023 (duplicate_thunk_for_node): Likewise.
16024 (redirect_edge_duplicating_thunks): Likewise.
16025 (cgraph_clone_node): New parameter args_to_skip, pass it to
16026 redirect_edge_duplicating_thunks which is called instead of
16027 cgraph_redirect_edge_callee.
16028 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16029 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16030
16031 2014-04-04 Jeff Law <law@redhat.com>
16032
16033 PR target/60657
16034 * config/arm/predicates.md (const_int_I_operand): New predicate.
16035 (const_int_M_operand): Similarly.
16036 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16037 const_int_operand.
16038 (insv_t2, extv_reg, extzv_t2): Likewise.
16039 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16040 (pop_multiple_with_writeback_and_return): Likewise.
16041 (vfp_pop_multiple_with_writeback): Likewise
16042
16043 2014-04-04 Richard Biener <rguenther@suse.de>
16044
16045 PR ipa/60746
16046 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16047 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16048 non-GIMPLE_LABELs.
16049 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16050 * gimplify.c (gimple_add_tmp_var_fn): New function.
16051 * gimple-expr.h (create_tmp_reg_fn): Declare.
16052 * gimple-expr.c (create_tmp_reg_fn): New function.
16053 * gimple-low.c (record_vars_into): Don't change cfun.
16054 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16055 code generation without cfun.
16056
16057 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16058
16059 PR bootstrap/60719
16060 * Makefile.in (install-driver): Fix shell scripting.
16061
16062 2014-04-03 Cong Hou <congh@google.com>
16063
16064 PR tree-optimization/60505
16065 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16066 threshold of number of iterations below which no vectorization
16067 will be done.
16068 * tree-vect-loop.c (new_loop_vec_info):
16069 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16070 * tree-vect-loop.c (vect_analyze_loop_operations):
16071 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16072 * tree-vect-loop.c (vect_transform_loop):
16073 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16074 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16075 of iterations of the loop and see if we should build the epilogue.
16076
16077 2014-04-03 Richard Biener <rguenther@suse.de>
16078
16079 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16080 (streamer_tree_cache_create): Adjust.
16081 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16082 to allow optional nodes array.
16083 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16084 (streamer_tree_cache_append): Likewise.
16085 (streamer_tree_cache_create): Create nodes array optionally
16086 as specified by parameter.
16087 * lto-streamer-out.c (create_output_block): Avoid maintaining
16088 the node array in the writer cache.
16089 (DFS_write_tree): Remove assertion.
16090 (produce_asm_for_decls): Free the out decl state hash table early.
16091 * lto-streamer-in.c (lto_data_in_create): Adjust for
16092 streamer_tree_cache_create prototype change.
16093
16094 2014-04-03 Richard Biener <rguenther@suse.de>
16095
16096 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16097 set TREE_CHAIN to NULL_TREE.
16098
16099 2014-04-03 Richard Biener <rguenther@suse.de>
16100
16101 PR tree-optimization/60740
16102 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16103 over all GIMPLE_COND operands.
16104
16105 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16106
16107 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16108 (Weffc++): Remove Scott's numbering, merge lists and reference
16109 Wnon-virtual-dtor.
16110
16111 2014-04-03 Nick Clifton <nickc@redhat.com>
16112
16113 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16114 properly.
16115
16116 2014-04-03 Martin Jambor <mjambor@suse.cz>
16117
16118 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16119 mention gcc_unreachable before failing.
16120 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16121 removed symbols.
16122
16123 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16124
16125 PR ipa/60659
16126 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16127 inconsistent code and instead mark the context inconsistent.
16128 (possible_polymorphic_call_targets): For inconsistent contexts
16129 return empty complete list.
16130
16131 2014-04-02 Anthony Green <green@moxielogic.com>
16132
16133 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16134 (extendqisi2, extendhisi2): Define.
16135 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16136 (WCHAR_TYPE): Change to unsigned int.
16137
16138 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16139
16140 PR tree-optimization/60733
16141 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16142 insertion point for PHI candidates to be the end of the feeding
16143 block for the PHI argument.
16144
16145 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16146
16147 PR rtl-optimization/60650
16148 * lra-constraints.c (process_alt_operands): Decrease reject for
16149 earlyclobber matching.
16150
16151 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16152
16153 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16154
16155 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16156
16157 * config/spu/spu.c (pad_bb): Do not crash when the last
16158 insn is CODE_FOR_blockage.
16159
16160 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16161
16162 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16163 lies outside the target mode.
16164
16165 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16166
16167 PR target/60735
16168 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16169 software floating point or no floating point registers, do not
16170 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16171 in GPRs that occurs after we tested for GPRs that would never be
16172 true.
16173
16174 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16175 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16176 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16177 specifically allow DDmode, since that does not use the SPE SIMD
16178 instructions.
16179
16180 2014-04-02 Richard Biener <rguenther@suse.de>
16181
16182 PR middle-end/60729
16183 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16184 MODE_INTs. Properly use negv_optab.
16185 (expand_abs): Likewise.
16186
16187 2014-04-02 Richard Biener <rguenther@suse.de>
16188
16189 PR bootstrap/60719
16190 * Makefile.in (install-driver): Guard extra installs with special
16191 names properly.
16192
16193 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16194
16195 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16196 Document vec_vgbbd.
16197
16198 2014-04-01 Richard Henderson <rth@redhat.com>
16199
16200 PR target/60704
16201 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16202 alternative enabled before register allocation.
16203
16204 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16205
16206 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16207 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16208 typo.
16209 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16210 (nios2_got_address): Update nios2_large_got_address call site.
16211 (nios2_delegitimize_address): New function.
16212 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16213 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16214 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16215
16216 2014-04-01 Martin Husemann <martin@duskware.de>
16217
16218 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16219 for -mabi=32.
16220
16221 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16222
16223 PR rtl-optimization/60604
16224 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16225 check from register_operand.
16226 (register_operand): Redefine in terms of general_operand.
16227 (nonmemory_operand): Use register_operand for the non-constant cases.
16228
16229 2014-04-01 Richard Biener <rguenther@suse.de>
16230
16231 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16232
16233 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16234
16235 * doc/invoke.texi (mapp-regs): Clarify.
16236
16237 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16238
16239 * config/i386/avx512fintrin.h (__v32hi): Define type.
16240 (__v64qi): Likewise.
16241 (_mm512_set1_epi8): Define.
16242 (_mm512_set1_epi16): Define.
16243 (_mm512_set4_epi32): Define.
16244 (_mm512_set4_epi64): Define.
16245 (_mm512_set4_pd): Define.
16246 (_mm512_set4_ps): Define.
16247 (_mm512_setr4_epi64): Define.
16248 (_mm512_setr4_epi32): Define.
16249 (_mm512_setr4_pd): Define.
16250 (_mm512_setr4_ps): Define.
16251 (_mm512_setzero_epi32): Define.
16252
16253 2014-03-31 Martin Jambor <mjambor@suse.cz>
16254
16255 PR middle-end/60647
16256 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16257 callsite_arguments_match_p. Updated all callers. Also check types of
16258 corresponding formal parameters and actual arguments.
16259 (not_all_callers_have_enough_arguments_p) Renamed to
16260 some_callers_have_mismatched_arguments_p.
16261
16262 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16263
16264 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16265
16266 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16267
16268 PR target/60034
16269 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16270 section anchor.
16271
16272 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16273
16274 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16275 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16276 Split out
16277 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16278 Use FMAMODE_NOVF512 mode iterator.
16279 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16280 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16281 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16282 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16283 Split out
16284 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16285 Use VF_128_256 mode iterator.
16286 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16287 Ditto.
16288
16289 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16290
16291 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16292 static chain if needed.
16293
16294 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16295
16296 PR target/60697
16297 * lra-constraints.c (index_part_to_reg): New.
16298 (process_address): Use it.
16299
16300 2014-03-27 Jeff Law <law@redhat.com>
16301 Jakub Jelinek <jakub@redhat.com>
16302
16303 PR target/60648
16304 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16305 gen_rtx_{PLUS,MULT} to build up the address expression.
16306
16307 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16308 creating non-canonical RTL.
16309
16310 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16311
16312 PR ipa/60243
16313 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16314 functions; reorganize to make cheap checks first.
16315 (inline_small_functions): Do not estimate growth when dumping;
16316 it is expensive.
16317 * ipa-inline.h (inline_summary): Add min_size.
16318 (growth_likely_positive): New function.
16319 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16320 (set_cond_stmt_execution_predicate): Cleanup.
16321 (estimate_edge_size_and_time): Compute min_size.
16322 (estimate_calls_size_and_time): Likewise.
16323 (estimate_node_size_and_time): Likewise.
16324 (inline_update_overall_summary): Update min_size.
16325 (do_estimate_edge_time): Likewise.
16326 (do_estimate_edge_size): Update.
16327 (do_estimate_edge_hints): Update.
16328 (growth_likely_positive): New function.
16329
16330 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16331
16332 PR target/60693
16333 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16334 also if addr has VOIDmode.
16335
16336 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16337
16338 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16339 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16340 Declare extern.
16341 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16342 instructions as well as AdvancedSIMD loads.
16343
16344 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16345
16346 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16347 Use crypto_aese type.
16348 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16349 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16350 crypto_aese, crypto_aesmc. Move to types.md.
16351 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16352 crypto_aesmc.
16353 * config/arm/iterators.md (crypto_type): Likewise.
16354
16355 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16356
16357 * cgraph.c: Include expr.h and tree-dfa.h.
16358 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16359 remove LHS.
16360
16361 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16362
16363 PR target/60675
16364 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16365 regs from checking multi-reg pseudos.
16366
16367 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16368
16369 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16370
16371 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16372
16373 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16374 if it would clobber the stack pointer, even temporarily.
16375
16376 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16377
16378 * mode-switching.c: Make small adjustments to the top comment.
16379
16380 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16381
16382 * config/rs6000/constraints.md (wD constraint): New constraint to
16383 match the constant integer to get the top DImode/DFmode out of a
16384 vector in a VSX register.
16385
16386 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16387 match the constant integer to get the top DImode/DFmode out of a
16388 vector in a VSX register.
16389
16390 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16391 for ISA 2.07.
16392
16393 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16394 vbpermq builtins.
16395
16396 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16397 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16398
16399 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16400 Optimize vec_extract of 64-bit values, where the value being
16401 extracted is in the top word, where we can use scalar
16402 instructions. Add direct move and store support. Combine the big
16403 endian/little endian vector select load support into a single insn.
16404 (vsx_extract_<mode>_internal1): Likewise.
16405 (vsx_extract_<mode>_internal2): Likewise.
16406 (vsx_extract_<mode>_load): Likewise.
16407 (vsx_extract_<mode>_store): Likewise.
16408 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16409 combined into vsx_extract_<mode>_load.
16410 (vsx_extract_<mode>_one_le): Likewise.
16411
16412 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16413 define the top 64-bit vector element.
16414
16415 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16416 constraint.
16417
16418 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16419 Document vec_vbpermq builtin.
16420
16421 PR target/60672
16422 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16423 enable use of xxsldwi and xxpermdi builtin functions.
16424 (vec_xxpermdi): Likewise.
16425
16426 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16427 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16428
16429 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16430
16431 PR rtl-optimization/60650
16432 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16433 first_p. Use it.
16434 (find_spills_for): New.
16435 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16436 Spill all pseudos on the second iteration.
16437
16438 2014-03-27 Marek Polacek <polacek@redhat.com>
16439
16440 PR c/50347
16441 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16442 types.
16443
16444 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16445
16446 * config/s390/s390.c (s390_can_use_return_insn): Check for
16447 call-saved FPRs on 31 bit.
16448
16449 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16450
16451 PR middle-end/60682
16452 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16453 if they need regimplification, just drop them instead of
16454 calling gimple_regimplify_operands on them.
16455
16456 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16457
16458 PR target/60580
16459 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16460 (aarch64_frame_pointer_required): Adjust logic.
16461 (aarch64_can_eliminate): Adjust logic.
16462 (aarch64_override_options_after_change): Adjust logic.
16463
16464 2014-03-27 Dehao Chen <dehao@google.com>
16465
16466 * ipa-inline.c (early_inliner): Update node's inline info.
16467
16468 2014-03-26 Dehao Chen <dehao@google.com>
16469
16470 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16471 compiler inserted conditional jumps for NAN float check.
16472
16473 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16474
16475 * ubsan.h (ubsan_create_data): Change second argument's type
16476 to const location_t *.
16477 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16478 _("<unknown>").
16479 (ubsan_create_data): Change second argument to const location_t *PLOC.
16480 Create Loc field whenever PLOC is non-NULL.
16481 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16482 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16483 callers.
16484
16485 PR other/59545
16486 * real.c (real_to_integer2): Change type of low to UHWI.
16487
16488 2014-03-26 Tobias Burnus <burnus@net-b.de>
16489
16490 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16491 (CILK_SELF_SPECS): New define.
16492 (driver_self_specs): Use it.
16493
16494 2014-03-26 Richard Biener <rguenther@suse.de>
16495
16496 * tree-pretty-print.c (percent_K_format): Implement special
16497 case for LTO and its stripped down BLOCK tree.
16498
16499 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16500
16501 PR sanitizer/60636
16502 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16503
16504 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16505 one range is range_int_cst_p, but not both, at least optimize
16506 addition/subtraction of 0 and multiplication by 0 or 1.
16507 * gimple-fold.c (gimple_fold_call): Fold
16508 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16509 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16510 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16511
16512 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16513
16514 PR rtl-optimization/60452
16515 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16516 <case REG>: Return 1 for invalid offsets from the frame pointer.
16517
16518 2014-03-26 Marek Polacek <polacek@redhat.com>
16519
16520 PR c/37428
16521 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16522 a structure/union.
16523
16524 2014-03-26 Marek Polacek <polacek@redhat.com>
16525
16526 PR c/39525
16527 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16528 field members.
16529
16530 2014-03-26 Marek Polacek <polacek@redhat.com>
16531
16532 PR other/59545
16533 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16534 multiplication in unsigned type.
16535
16536 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16537
16538 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16539
16540 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16541
16542 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16543
16544 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16545
16546 PR ipa/60315
16547 * cif-code.def (UNREACHABLE) New code.
16548 * ipa-inline.c (inline_small_functions): Skip edges to
16549 __builtlin_unreachable.
16550 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16551 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16552 predicate to __bulitin_unreachable.
16553 (set_cond_stmt_execution_predicate): Fix issue when
16554 invert_tree_comparison returns ERROR_MARK.
16555 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16556 propagate to inline clones.
16557 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16558 to unreachable.
16559 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16560 * cgraphclones.c (cgraph_clone_node): If call destination is already
16561 ureachable, do not redirect it back.
16562 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16563 unreachable.
16564
16565 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16566
16567 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16568 Do not modify inline clones.
16569
16570 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16571
16572 * config/i386/i386.md (general_sext_operand): New mode attr.
16573 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16574 don't generate (sign_extend (const_int)).
16575 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16576 operands[2]. Use We constraint instead of <i> and
16577 <general_sext_operand> predicate instead of <general_operand>.
16578 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16579 * config/i386/constraints.md (We): New constraint.
16580 * config/i386/predicates.md (x86_64_sext_operand,
16581 sext_operand): New predicates.
16582
16583 2014-03-25 Martin Jambor <mjambor@suse.cz>
16584
16585 PR ipa/60600
16586 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16587 inconsistent devirtualizations to __builtin_unreachable.
16588
16589 2014-03-25 Marek Polacek <polacek@redhat.com>
16590
16591 PR c/35449
16592 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16593
16594 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16595
16596 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16597 order of elements for big-endian.
16598
16599 2014-03-25 Richard Biener <rguenther@suse.de>
16600
16601 PR middle-end/60635
16602 * gimplify-me.c (gimple_regimplify_operands): Update the
16603 re-gimplifed stmt.
16604
16605 2014-03-25 Martin Jambor <mjambor@suse.cz>
16606
16607 PR ipa/59176
16608 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16609 (lto_output_varpool_node): Likewise.
16610 (input_overwrite_node): Likewise.
16611 (input_varpool_node): Likewise.
16612
16613 2014-03-25 Richard Biener <rguenther@suse.de>
16614
16615 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16616 (run_gcc): Likewise.
16617
16618 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16619
16620 * combine.c (simplify_compare_const): Add MODE argument.
16621 Handle mode_width 0 as very large mode_width.
16622 (try_combine, simplify_comparison): Adjust callers.
16623
16624 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16625 type to avoid signed integer overflow.
16626 * explow.c (plus_constant): Likewise.
16627
16628 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16629
16630 * doc/generic.texi: Correct typos.
16631
16632 2014-03-24 Tobias Burnus <burnus@net-b.de>
16633
16634 * doc/invoke.texi (-flto): Expand section about
16635 using static libraries with LTO.
16636
16637 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16638
16639 PR rtl-optimization/60501
16640 * optabs.def (addptr3_optab): New optab.
16641 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16642 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16643 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16644
16645 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16646
16647 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16648
16649 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16650
16651 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16652 _mm512_set1_pd.
16653
16654 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16655 (_mm256_undefined_ps): Define.
16656 (_mm256_undefined_pd): Define.
16657 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16658 (_mm_undefined_pd): Define.
16659 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16660 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16661 (_mm512_undefined_ps): Define.
16662 (_mm512_undefined_pd): Define.
16663 Use _mm*_undefined_*.
16664 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16665
16666 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16667
16668 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16669 (lshr_simd): DI mode added.
16670 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16671 (aarch64_ushr_simddi): Likewise.
16672 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16673 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16674 (vshrd_n_u64): Likewise.
16675
16676 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16677
16678 * Makefile.in (s-macro_list): Depend on cc1.
16679
16680 2014-03-23 Teresa Johnson <tejohnson@google.com>
16681
16682 * ipa-utils.c (ipa_print_order): Use specified dump file.
16683
16684 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16685
16686 PR rtl-optimization/60601
16687 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16688
16689 * gcc.c (eval_spec_function): Initialize save_growing_value.
16690
16691 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16692
16693 PR sanitizer/60613
16694 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16695 code == MINUS_EXPR, never swap op0 with op1.
16696
16697 * toplev.c (init_local_tick): Avoid signed integer multiplication
16698 overflow.
16699 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16700 shift by first operand's bitsize.
16701
16702 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16703
16704 PR target/60610
16705 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16706 redefine to 1 or 0.
16707 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16708 TARGET_ISA_64BIT_P(x).
16709
16710 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16711
16712 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16713 pattern for vector nor instead of subtract from splat(-1).
16714 (altivec_expand_vec_perm_const_le): Likewise.
16715
16716 2014-03-21 Richard Henderson <rth@twiddle.net>
16717
16718 PR target/60598
16719 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16720 related insns after epilogue_completed.
16721
16722 2014-03-21 Martin Jambor <mjambor@suse.cz>
16723
16724 PR ipa/59176
16725 * cgraph.h (symtab_node): New flag body_removed.
16726 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16727 when removing bodies.
16728 * symtab.c (dump_symtab_base): Dump body_removed flag.
16729 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16730 had their bodies removed.
16731
16732 2014-03-21 Martin Jambor <mjambor@suse.cz>
16733
16734 PR ipa/60419
16735 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16736 in the border.
16737
16738 2014-03-21 Richard Biener <rguenther@suse.de>
16739
16740 PR tree-optimization/60577
16741 * tree-core.h (struct tree_base): Document nothrow_flag use
16742 in DECL_NONALIASED.
16743 * tree.h (DECL_NONALIASED): New.
16744 (may_be_aliased): Adjust.
16745 * coverage.c (build_var): Set DECL_NONALIASED.
16746
16747 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16748
16749 * expr.c (expand_expr_real_1): Remove outdated comment.
16750
16751 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16752
16753 PR middle-end/60597
16754 * ira.c (adjust_cleared_regs): Call copy_rtx on
16755 *reg_equiv[REGNO (loc)].src_p before passing it to
16756 simplify_replace_fn_rtx.
16757
16758 PR target/60568
16759 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16760 into CONST, put pic register as first operand of PLUS. Use
16761 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16762
16763 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16764
16765 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16766
16767 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16768
16769 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16770 around for store forwarding issue in the FPU on the UT699.
16771 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16772 loads and operations if -mfix-ut699 is specified.
16773 (divtf3_hq): Tweak attribute.
16774 (sqrttf2_hq): Likewise.
16775
16776 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16777
16778 * calls.c (store_one_arg): Remove incorrect const qualification on the
16779 type of the temporary.
16780 * cfgexpand.c (expand_return): Likewise.
16781 * expr.c (expand_constructor): Likewise.
16782 (expand_expr_real_1): Likewise.
16783
16784 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16785
16786 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16787 of parts.
16788
16789 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16790
16791 PR target/60039
16792 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16793
16794 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16795
16796 * config/arm/aarch-common-protos.h
16797 (alu_cost_table): Fix spelling of "extend".
16798 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16799
16800 2014-03-19 Richard Biener <rguenther@suse.de>
16801
16802 PR middle-end/60553
16803 * tree-core.h (tree_type_common): Re-order pointer members
16804 to reduce recursion depth during GC walks.
16805
16806 2014-03-19 Marek Polacek <polacek@redhat.com>
16807
16808 PR sanitizer/60569
16809 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16810 before accessing it.
16811
16812 2014-03-19 Richard Biener <rguenther@suse.de>
16813
16814 PR lto/59543
16815 * lto-streamer-in.c (input_function): In WPA stage do not drop
16816 debug stmts.
16817
16818 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16819
16820 PR tree-optimization/60559
16821 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16822 with build_zero_cst assignment.
16823
16824 2014-03-18 Kai Tietz <ktietz@redhat.com>
16825
16826 PR rtl-optimization/56356
16827 * sdbout.c (sdbout_parms): Verify that parms'
16828 incoming argument is valid.
16829 (sdbout_reg_parms): Likewise.
16830
16831 2014-03-18 Richard Henderson <rth@redhat.com>
16832
16833 PR target/60562
16834 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16835 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16836 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16837
16838 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16839
16840 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16841 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16842 Italicize plugin event names in description. Explain that
16843 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16844 Remind that no GCC functions should be called after PLUGIN_FINISH.
16845 Explain what pragmas with expansion are.
16846
16847 2014-03-18 Martin Liska <mliska@suse.cz>
16848
16849 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
16850 gimple call statement is update.
16851 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
16852 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
16853
16854 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16855
16856 PR sanitizer/60557
16857 * ubsan.c (ubsan_instrument_unreachable): Call
16858 initialize_sanitizer_builtins.
16859 (ubsan_pass): Likewise.
16860
16861 PR sanitizer/60535
16862 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
16863 varpool_finalize_decl instead of rest_of_decl_compilation.
16864
16865 2014-03-18 Richard Biener <rguenther@suse.de>
16866
16867 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
16868 by using bitmap_and_compl instead of bitmap_and_compl_into.
16869 (df_rd_transfer_function): Likewise.
16870
16871 2014-03-18 Richard Biener <rguenther@suse.de>
16872
16873 * doc/lto.texi (fresolution): Fix typo.
16874
16875 2014-03-18 Richard Biener <rguenther@suse.de>
16876
16877 * doc/invoke.texi (flto): Update for changes in 4.9.
16878
16879 2014-03-18 Richard Biener <rguenther@suse.de>
16880
16881 * doc/loop.texi: Remove section on the removed lambda framework.
16882 Update loop docs with recent changes in preserving loop structure.
16883
16884 2014-03-18 Richard Biener <rguenther@suse.de>
16885
16886 * doc/lto.texi (-fresolution): Document.
16887
16888 2014-03-18 Richard Biener <rguenther@suse.de>
16889
16890 * doc/contrib.texi: Adjust my name.
16891
16892 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16893
16894 PR ipa/58721
16895 * internal-fn.c: Include diagnostic-core.h.
16896 (expand_BUILTIN_EXPECT): New function.
16897 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
16898 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
16899 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
16900 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
16901 IFN_BUILTIN_EXPECT.
16902 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
16903 Revert 3 argument __builtin_expect code.
16904 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
16905 * gimple-fold.c (gimple_fold_call): Likewise.
16906 * tree.h (fold_builtin_expect): New prototype.
16907 * builtins.c (build_builtin_expect_predicate): Add predictor
16908 argument, if non-NULL, create 3 argument __builtin_expect.
16909 (fold_builtin_expect): No longer static. Add ARG2 argument,
16910 pass it through to build_builtin_expect_predicate.
16911 (fold_builtin_2): Adjust caller.
16912 (fold_builtin_3): Handle BUILT_IN_EXPECT.
16913 * internal-fn.def (BUILTIN_EXPECT): New.
16914
16915 2014-03-18 Tobias Burnus <burnus@net-b.de>
16916
16917 PR ipa/58721
16918 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
16919 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
16920 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
16921
16922 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
16923
16924 PR ipa/58721
16925 * predict.c (combine_predictions_for_bb): Fix up formatting.
16926 (expr_expected_value_1, expr_expected_value): Add predictor argument,
16927 fill what it points to if non-NULL.
16928 (tree_predict_by_opcode): Adjust caller, use the predictor.
16929 * predict.def (PRED_COMPARE_AND_SWAP): Add.
16930
16931 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
16932
16933 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
16934 proper constant for the store mode.
16935
16936 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
16937
16938 * symtab.c (change_decl_assembler_name): Fix transparent alias
16939 chain construction.
16940
16941 2014-03-16 Renlin Li <Renlin.Li@arm.com>
16942
16943 * config/aarch64/aarch64.c: Correct the comments about the
16944 aarch64 stack layout.
16945
16946 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
16947
16948 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
16949 check for GF_OMP_FOR_KIND_FOR.
16950
16951 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
16952
16953 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
16954 ymm and zmm register names.
16955
16956 2014-03-17 Jakub Jelinek <jakub@redhat.com>
16957
16958 PR target/60516
16959 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
16960 note creation for the 2010-08-31 changes.
16961
16962 2014-03-17 Marek Polacek <polacek@redhat.com>
16963
16964 PR middle-end/60534
16965 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
16966 as -fno-tree-loop-vectorize.
16967 (expand_omp_simd): Likewise.
16968
16969 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
16970
16971 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
16972 (eligible_for_call_delay): New prototype.
16973 * config/sparc/sparc.c (tls_call_delay): Rename into...
16974 (eligible_for_call_delay): ...this. Return false if the instruction
16975 cannot be put in the delay slot of a branch.
16976 (eligible_for_restore_insn): Simplify.
16977 (eligible_for_return_delay): Return false if the instruction cannot be
16978 put in the delay slot of a branch and simplify.
16979 (eligible_for_sibcall_delay): Return false if the instruction cannot be
16980 put in the delay slot of a branch.
16981 * config/sparc/sparc.md (fix_ut699): New attribute.
16982 (tls_call_delay): Delete.
16983 (in_call_delay): Reimplement.
16984 (eligible_for_sibcall_delay): Rename into...
16985 (in_sibcall_delay): ...this.
16986 (eligible_for_return_delay): Rename into...
16987 (in_return_delay): ...this.
16988 (in_branch_delay): Reimplement.
16989 (in_uncond_branch_delay): Delete.
16990 (in_annul_branch_delay): Delete.
16991
16992 2014-03-14 Richard Henderson <rth@redhat.com>
16993
16994 PR target/60525
16995 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
16996 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
16997 (*floathi<X87MODEF>2_i387_with_temp): Remove.
16998 (floathi splitters): Remove.
16999 (float<SWI48x>xf2): New pattern.
17000 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17001 code that tried to handle DImode for 32-bit, but which was excluded
17002 by the pattern's condition. Drop allocation of stack temporary.
17003 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17004 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17005 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17006 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17007 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17008 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17009 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17010 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17011 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17012 (*float<SWI48x><X87MODEF>2_i387): Remove.
17013 (all float _with_temp splitters): Remove.
17014 (*float<SWI48x><MODEF>2_i387): New pattern.
17015 (*float<SWI48><MODEF>2_sse): New pattern.
17016 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17017 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17018
17019 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17020 Marek Polacek <polacek@redhat.com>
17021
17022 PR middle-end/60484
17023 * common.opt (dump_base_name_prefixed): New Variable.
17024 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17025 if x_dump_base_name_prefixed is already set, set it at the end.
17026
17027 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17028
17029 PR rtl-optimization/60508
17030 * lra-constraints.c (get_reload_reg): Add new parameter
17031 in_subreg_p.
17032 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17033 Pass the new parameter values.
17034
17035 2014-03-14 Richard Biener <rguenther@suse.de>
17036
17037 * common.opt: Revert unintented changes from r205065.
17038 * opts.c: Likewise.
17039
17040 2014-03-14 Richard Biener <rguenther@suse.de>
17041
17042 PR middle-end/60518
17043 * cfghooks.c (split_block): Properly adjust all loops the
17044 block was a latch of.
17045
17046 2014-03-14 Martin Jambor <mjambor@suse.cz>
17047
17048 PR lto/60461
17049 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17050 and simplify it.
17051
17052 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17053
17054 PR target/59396
17055 * config/avr/avr.c (avr_set_current_function): Pass function name
17056 through default_strip_name_encoding before sanity checking instead
17057 of skipping the first char of the assembler name.
17058
17059 2014-03-13 Richard Henderson <rth@redhat.com>
17060
17061 PR debug/60438
17062 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17063 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17064 * config/i386/i386-protos.h: Likewise.
17065 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17066 in the expander instead of a splitter.
17067 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17068 any possibility of requiring a memory.
17069 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17070 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17071 (fp branch splitters): Update for ix86_split_fp_branch.
17072 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17073 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17074 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17075 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17076 (*fop_<MODEF>_3_i387): Likewise.
17077 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17078 (splitters for the fop_* register patterns): Remove.
17079 (fscalexf4_i387): Rename from *fscalexf4_i387.
17080 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17081
17082 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17083
17084 PR tree-optimization/59779
17085 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17086 type for bitsize and maxsize instead of HOST_WIDE_INT.
17087
17088 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17089
17090 PR rtl-optimization/57320
17091 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17092 the CFG after thread_prologue_and_epilogue_insns.
17093
17094 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17095
17096 PR rtl-optimization/57189
17097 * lra-constraints.c (process_alt_operands): Disfavor spilling
17098 vector pseudos.
17099
17100 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17101
17102 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17103
17104 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17105
17106 PR tree-optimization/59025
17107 PR middle-end/60418
17108 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17109 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17110
17111 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17112
17113 PR target/60486
17114 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17115 calls of avr_out_plus_1.
17116
17117 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17118
17119 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17120 BB's single pred and update the father loop's latch info later.
17121
17122 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17123
17124 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17125 (VEC_M): Likewise.
17126 (VEC_N): Likewise.
17127 (VEC_R): Likewise.
17128 (VEC_base): Likewise.
17129 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17130 registers, we need to swap double words in little endian mode.
17131
17132 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17133 to be a container mode for 128-bit integer operations added in ISA
17134 2.07. Unlike TImode and PTImode, the preferred register set is
17135 the Altivec/VMX registers for the 128-bit operations.
17136
17137 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17138 declarations.
17139 (rs6000_split_128bit_ok_p): Likewise.
17140
17141 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17142 macros for creating ISA 2.07 normal and overloaded builtin
17143 functions with 3 arguments.
17144 (BU_P8V_OVERLOAD_3): Likewise.
17145 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17146 for use as overloaded functions.
17147 (VPERM_1TI_UNS): Likewise.
17148 (VSEL_1TI): Likewise.
17149 (VSEL_1TI_UNS): Likewise.
17150 (ST_INTERNAL_1ti): Likewise.
17151 (LD_INTERNAL_1ti): Likewise.
17152 (XXSEL_1TI): Likewise.
17153 (XXSEL_1TI_UNS): Likewise.
17154 (VPERM_1TI): Likewise.
17155 (VPERM_1TI_UNS): Likewise.
17156 (XXPERMDI_1TI): Likewise.
17157 (SET_1TI): Likewise.
17158 (LXVD2X_V1TI): Likewise.
17159 (STXVD2X_V1TI): Likewise.
17160 (VEC_INIT_V1TI): Likewise.
17161 (VEC_SET_V1TI): Likewise.
17162 (VEC_EXT_V1TI): Likewise.
17163 (EQV_V1TI): Likewise.
17164 (NAND_V1TI): Likewise.
17165 (ORC_V1TI): Likewise.
17166 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17167 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17168 overloaded builtin.
17169 (VADDUQM): Likewise.
17170 (VSUBCUQ): Likewise.
17171 (VADDEUQM): Likewise.
17172 (VADDECUQ): Likewise.
17173 (VSUBEUQM): Likewise.
17174 (VSUBECUQ): Likewise.
17175
17176 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17177 __int128_t and __uint128_t types.
17178 (__uint128_type): Likewise.
17179 (altivec_categorize_keyword): Add support for vector __int128_t,
17180 vector __uint128_t, vector __int128, and vector unsigned __int128
17181 as a container type for TImode operations that need to be done in
17182 VSX/Altivec registers.
17183 (rs6000_macro_to_expand): Likewise.
17184 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17185 to support 128-bit integer instructions vaddcuq, vadduqm,
17186 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17187 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17188
17189 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17190 for V1TImode, and set up preferences to use VSX/Altivec registers.
17191 Setup VSX reload handlers.
17192 (rs6000_debug_reg_global): Likewise.
17193 (rs6000_init_hard_regno_mode_ok): Likewise.
17194 (rs6000_preferred_simd_mode): Likewise.
17195 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17196 (easy_altivec_constant): Likewise.
17197 (output_vec_const_move): Likewise.
17198 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17199 simple move.
17200 (rs6000_expand_vector_extract): Likewise.
17201 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17202 addressing.
17203 (rs6000_const_vec): Add support for V1TImode.
17204 (rs6000_emit_le_vsx_load): Swap double words when loading or
17205 storing TImode/V1TImode.
17206 (rs6000_emit_le_vsx_store): Likewise.
17207 (rs6000_emit_le_vsx_move): Likewise.
17208 (rs6000_emit_move): Add support for V1TImode.
17209 (altivec_expand_ld_builtin): Likewise.
17210 (altivec_expand_st_builtin): Likewise.
17211 (altivec_expand_vec_init_builtin): Likewise.
17212 (altivec_expand_builtin): Likewise.
17213 (rs6000_init_builtins): Add support for V1TImode type. Add
17214 support for ISA 2.07 128-bit integer builtins. Define type names
17215 for the VSX/Altivec vector types.
17216 (altivec_init_builtins): Add support for overloaded vector
17217 functions with V1TImode type.
17218 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17219 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17220 external function.
17221 (rs6000_split_128bit_ok_p): Likewise.
17222 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17223 __int128_t and vector __uint128_t.
17224
17225 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17226 and mode attributes.
17227 (VSX_M): Likewise.
17228 (VSX_M2): Likewise.
17229 (VSm): Likewise.
17230 (VSs): Likewise.
17231 (VSr): Likewise.
17232 (VSv): Likewise.
17233 (VS_scalar): Likewise.
17234 (VS_double): Likewise.
17235 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17236
17237 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17238 we support the ISA 2.07 128-bit integer arithmetic instructions.
17239 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17240 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17241 and TImode types for use with the builtin functions.
17242 (V1TI_type_node): Likewise.
17243 (unsigned_V1TI_type_node): Likewise.
17244 (intTI_type_internal_node): Likewise.
17245 (uintTI_type_internal_node): Likewise.
17246
17247 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17248 128-bit builtin functions.
17249 (UNSPEC_VADDEUQM): Likewise.
17250 (UNSPEC_VADDECUQ): Likewise.
17251 (UNSPEC_VSUBCUQ): Likewise.
17252 (UNSPEC_VSUBEUQM): Likewise.
17253 (UNSPEC_VSUBECUQ): Likewise.
17254 (VM): Add V1TImode to vector mode iterators.
17255 (VM2): Likewise.
17256 (VI_unit): Likewise.
17257 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17258 (altivec_vaddcuq): Likewise.
17259 (altivec_vsubuqm): Likewise.
17260 (altivec_vsubcuq): Likewise.
17261 (altivec_vaddeuqm): Likewise.
17262 (altivec_vaddecuq): Likewise.
17263 (altivec_vsubeuqm): Likewise.
17264 (altivec_vsubecuq): Likewise.
17265
17266 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17267 mode iterators.
17268 (BOOL_128): Likewise.
17269 (BOOL_REGS_OUTPUT): Likewise.
17270 (BOOL_REGS_OP1): Likewise.
17271 (BOOL_REGS_OP2): Likewise.
17272 (BOOL_REGS_UNARY): Likewise.
17273 (BOOL_REGS_AND_CR0): Likewise.
17274
17275 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17276 128-bit integer builtin support.
17277 (vec_vadduqm): Likewise.
17278 (vec_vaddecuq): Likewise.
17279 (vec_vaddeuqm): Likewise.
17280 (vec_vsubecuq): Likewise.
17281 (vec_vsubeuqm): Likewise.
17282 (vec_vsubcuq): Likewise.
17283 (vec_vsubuqm): Likewise.
17284
17285 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17286 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17287 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17288 128-bit integer add/subtract to ISA 2.07.
17289
17290 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17291
17292 * config/arc/arc.c (arc_predicate_delay_insns):
17293 Fix third argument passed to conditionalize_nonjump.
17294
17295 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17296
17297 * config/aarch64/aarch64-builtins.c
17298 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17299 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17300 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17301 instead of __builtin_lfloor.
17302 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17303
17304 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17305
17306 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17307 (tree_ssa_ifcombine_bb_1): New function.
17308 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17309 is an empty forwarder block to then_bb or vice versa and then_bb
17310 and else_bb are effectively swapped.
17311
17312 2014-03-12 Christian Bruel <christian.bruel@st.com>
17313
17314 PR target/60264
17315 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17316 REG_CFA_DEF_CFA note.
17317 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17318 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17319
17320 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17321
17322 PR tree-optimization/60454
17323 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17324
17325 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17326
17327 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17328 Do not define target_cpu_default2 to generic.
17329 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17330 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17331 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17332
17333 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17334 Marc Glisse <marc.glisse@inria.fr>
17335
17336 PR tree-optimization/60502
17337 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17338 instead of build_low_bits_mask.
17339
17340 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17341
17342 PR middle-end/60482
17343 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17344 if there are multiple uses, but op doesn't live on E edge.
17345 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17346 clobber stmts before __builtin_unreachable.
17347
17348 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17349
17350 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17351 hard_frame_pointer_rtx.
17352 * cse.c (cse_insn): Remove volatile check.
17353 * cselib.c (cselib_process_insn): Likewise.
17354 * dse.c (scan_insn): Likewise.
17355
17356 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17357
17358 * config/arc/arc.c (conditionalize_nonjump): New function,
17359 broken out of ...
17360 (arc_ifcvt): ... this.
17361 (arc_predicate_delay_insns): Use it.
17362
17363 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17364
17365 * config/arc/predicates.md (extend_operand): During/after reload,
17366 allow const_int_operand.
17367 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17368 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17369 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17370 to "i".
17371 (umulsi3_highpart_i): Likewise.
17372
17373 2014-03-11 Richard Biener <rguenther@suse.de>
17374
17375 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17376 Add asserts to guard possible wrong-code bugs.
17377
17378 2014-03-11 Richard Biener <rguenther@suse.de>
17379
17380 PR tree-optimization/60429
17381 PR tree-optimization/60485
17382 * tree-ssa-structalias.c (set_union_with_increment): Properly
17383 take into account all fields that overlap the shifted vars.
17384 (do_sd_constraint): Likewise.
17385 (do_ds_constraint): Likewise.
17386 (get_constraint_for_ptr_offset): Likewise.
17387
17388 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17389
17390 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17391 (nios2_compute_frame_layout):
17392 Add calculation of cfun->machine->fp_save_offset.
17393 (nios2_expand_prologue): Correct setting of frame pointer register
17394 in prologue.
17395 (nios2_expand_epilogue): Update recovery of stack pointer from
17396 frame pointer accordingly.
17397 (nios2_initial_elimination_offset): Update calculation of offset
17398 for eliminating to HARD_FRAME_POINTER_REGNUM.
17399
17400 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17401
17402 PR ipa/60457
17403 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17404 cgraph_get_create_node on VAR_DECLs.
17405
17406 2014-03-10 Richard Biener <rguenther@suse.de>
17407
17408 PR middle-end/60474
17409 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17410
17411 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17412
17413 * config/vms/vms.opt (vms_float_format): New variable.
17414
17415 2014-03-08 Tobias Burnus <burnus@net-b.de>
17416
17417 * doc/invoke.texi (-fcilkplus): Update implementation status.
17418
17419 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17420 Richard Biener <rguenther@suse.de>
17421
17422 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17423 consistently accross all TUs.
17424 (run_gcc): Enable -fshort-double automatically at link at link-time
17425 and disallow override.
17426
17427 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17428
17429 PR target/58271
17430 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17431 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17432 if they can't be used.
17433
17434 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17435
17436 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17437 for Solaris 11/x86 ld.
17438 * configure: Regenerate.
17439
17440 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17441
17442 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17443 (LIB_TLS_SPEC): Save as ld_tls_libs.
17444 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17445 (HAVE_AS_IX86_TLSLDM): New test.
17446 * configure, config.in: Regenerate.
17447 * config/i386/i386.c (legitimize_tls_address): Fall back to
17448 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17449 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17450 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17451 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17452
17453 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17454
17455 * common.opt (fira-loop-pressure): Mark as optimization.
17456
17457 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17458
17459 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17460 an OpenMP mappable type.
17461
17462 2014-03-06 Matthias Klose <doko@ubuntu.com>
17463
17464 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17465 MULTILIB_OSDIRNAMES is not defined.
17466
17467 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17468 Meador Inge <meadori@codesourcery.com>
17469
17470 PR target/58595
17471 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17472 (arm_legitimize_address): Call legitimize_tls_address for any
17473 arm_tls_referenced_p expression, handle constant addend. Call it
17474 before testing for !TARGET_ARM.
17475 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17476
17477 2014-03-06 Richard Biener <rguenther@suse.de>
17478
17479 PR middle-end/60445
17480 PR lto/60424
17481 PR lto/60427
17482 Revert
17483 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17484
17485 * tree-streamer.c (record_common_node): Assert we don't record
17486 nodes with type double.
17487 (preload_common_node): Skip type double, complex double and double
17488 pointer since it is now frontend dependent due to fshort-double option.
17489
17490 2014-03-06 Richard Biener <rguenther@suse.de>
17491
17492 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17493 or -fno-lto is specified and the linker has full plugin support.
17494 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17495 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17496 * lto-wrapper.c (merge_and_complain): Merge compile-time
17497 optimization levels.
17498 (run_gcc): And pass it through to the link options.
17499
17500 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17501
17502 PR debug/60381
17503 Revert:
17504 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17505 PR debug/59992
17506 * cselib.c (remove_useless_values): Skip to avoid quadratic
17507 behavior if the condition moved from...
17508 (cselib_process_insn): ... here holds.
17509
17510 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17511
17512 PR plugins/59335
17513 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17514 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17515
17516 PR plugins/59335
17517 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17518 (TM_H): Add x86-tune.def.
17519
17520 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17521
17522 * config/aarch64/aarch64.c (generic_tunings):
17523 Use cortexa57_extra_costs.
17524
17525 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17526
17527 PR lto/60404
17528 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17529 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17530 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17531 cost for in_lto_p.
17532
17533 2014-03-04 Heiher <r@hev.cc>
17534
17535 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17536 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17537
17538 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17539
17540 * config/i386/predicates.md (const2356_operand): Change to ...
17541 (const2367_operand): ... this.
17542 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17543 const2367_operand.
17544 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17545 (*avx512pf_scatterpf<mode>sf): Ditto.
17546 (avx512pf_scatterpf<mode>df): Ditto.
17547 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17548 (*avx512pf_scatterpf<mode>df): Ditto.
17549 * config/i386/i386.c (ix86_expand_builtin): Update
17550 incorrect hint operand error message.
17551
17552 2014-03-04 Richard Biener <rguenther@suse.de>
17553
17554 * lto-section-in.c (lto_get_section_data): Fix const cast.
17555
17556 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17557
17558 * tree-streamer.c (record_common_node): Assert we don't record
17559 nodes with type double.
17560 (preload_common_node): Skip type double, complex double and double
17561 pointer since it is now frontend dependent due to fshort-double option.
17562
17563 2014-03-04 Richard Biener <rguenther@suse.de>
17564
17565 PR lto/60405
17566 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17567 (lto_input_toplevel_asms): Likewise.
17568 * lto-section-in.c (lto_get_section_data): Instead do it here
17569 for every section.
17570
17571 2014-03-04 Richard Biener <rguenther@suse.de>
17572
17573 PR tree-optimization/60382
17574 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17575 dead PHIs a reduction.
17576
17577 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17578
17579 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17580 hint value.
17581 (_mm_prefetch): Move out of GCC target("sse") pragma.
17582 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17583 GCC target("prfchw") pragma.
17584 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17585 for locality <= 2.
17586 * config/i386/i386.c (ix86_option_override_internal): Enable
17587 -mprfchw with -mprefetchwt1.
17588
17589 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17590
17591 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17592 Mark as varying.
17593
17594 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17595
17596 * opts.h (CL_PCH_IGNORE): Define.
17597 * targhooks.c (option_affects_pch_p):
17598 Return false for options that have CL_PCH_IGNORE set.
17599 * opt-functions.awk: Process PchIgnore.
17600 * doc/options.texi: Document PchIgnore.
17601
17602 * config/arc/arc.opt (misize): Add PchIgnore property.
17603
17604 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17605
17606 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17607 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17608 constraint on constants to permit them being loaded into
17609 GENERAL_REGS or BASE_REGS.
17610
17611 2014-03-03 Nick Clifton <nickc@redhat.com>
17612
17613 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17614 anti-cacnonical alternatives.
17615 (negandhi3_real): New pattern.
17616 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17617
17618 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17619
17620 * config/avr/avr-mcus.def: Remove atxmega16x1.
17621 * config/avr/avr-tables.opt: Regenerate.
17622 * config/avr/t-multilib: Regenerate.
17623 * doc/avr-mmcu.texi: Regenerate.
17624
17625 2014-03-03 Tobias Grosser <tobias@grosser.es>
17626 Mircea Namolaru <mircea.namolaru@inria.fr>
17627
17628 PR tree-optimization/58028
17629 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17630 scalar dimensions.
17631
17632 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17633
17634 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17635 not handled by recognizers.
17636
17637 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17638
17639 PR middle-end/60175
17640 * function.c (expand_function_end): Don't emit
17641 clobber_return_register sequence if clobber_after is a BARRIER.
17642 * cfgexpand.c (construct_exit_block): Append instructions before
17643 return_label to prev_bb.
17644
17645 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17646
17647 * config/rs6000/constraints.md: Document reserved use of "wc".
17648
17649 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17650
17651 PR ipa/60150
17652 * ipa.c (function_and_variable_visibility): When dissolving comdat
17653 group, also set all symbols to local.
17654
17655 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17656
17657 PR ipa/60306
17658
17659 Revert:
17660 2013-12-14 Jan Hubicka <jh@suse.cz>
17661 PR middle-end/58477
17662 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17663
17664 2014-03-02 Jon Beniston <jon@beniston.com>
17665
17666 PR bootstrap/48230
17667 PR bootstrap/50927
17668 PR bootstrap/52466
17669 PR target/46898
17670 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17671 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17672 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17673 (simple_return, *simple_return): New patterns
17674 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17675 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17676
17677 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17678
17679 * dwarf2out.c (gen_subprogram_die): Tidy.
17680
17681 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17682
17683 PR target/60071
17684 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17685 (*mov_t_msb_neg_negc): ... this new insn.
17686
17687 2014-02-28 Jason Merrill <jason@redhat.com>
17688
17689 PR c++/58678
17690 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17691 function.
17692
17693 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17694
17695 PR c++/60314
17696 * dwarf2out.c (decltype_auto_die): New static.
17697 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17698 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17699 (is_cxx_auto): Likewise.
17700
17701 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17702
17703 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17704 we are not using general regs only.
17705
17706 2014-02-28 Richard Biener <rguenther@suse.de>
17707
17708 PR target/60280
17709 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17710 previous fix and only allow to remove trivial pre-headers
17711 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17712 (remove_forwarder_block): Properly update the latch of a loop.
17713
17714 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17715
17716 PR debug/59992
17717 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17718 (cselib_preserved_hash_table): New.
17719 (preserve_constants_and_equivs): Move preserved vals to it.
17720 (cselib_find_slot): Look it up first.
17721 (cselib_init): Initialize it.
17722 (cselib_finish): Release it.
17723 (dump_cselib_table): Dump it.
17724
17725 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17726
17727 PR debug/59992
17728 * cselib.c (remove_useless_values): Skip to avoid quadratic
17729 behavior if the condition moved from...
17730 (cselib_process_insn): ... here holds.
17731
17732 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17733
17734 PR debug/57232
17735 * var-tracking.c (vt_initialize): Apply the same condition to
17736 preserve the CFA base value.
17737
17738 2014-02-28 Joey Ye <joey.ye@arm.com>
17739
17740 PR target/PR60169
17741 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17742 if reload in progress or completed.
17743
17744 2014-02-28 Tobias Burnus <burnus@net-b.de>
17745
17746 PR middle-end/60147
17747 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17748 NAMELIST_DECL.
17749
17750 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17751
17752 * doc/tm.texi.in (Condition Code Status): Update documention for
17753 relative locations of cc0-setter and cc0-user.
17754
17755 2014-02-27 Jeff Law <law@redhat.com>
17756
17757 PR rtl-optimization/52714
17758 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17759 into two independent simple sets, if I3 is a jump, ensure the
17760 pattern we place into I3 is a (set (pc) ...).
17761
17762 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17763 Jeff Law <law@redhat.com>
17764
17765 PR rtl-optimization/49847
17766 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17767 are in different blocks.
17768 * doc/tm.texi (Condition Code Status): Update documention for
17769 relative locations of cc0-setter and cc0-user.
17770
17771 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17772
17773 PR target/59222
17774 * lra.c (lra_emit_add): Check SUBREG too.
17775
17776 2014-02-27 Andreas Schwab <schwab@suse.de>
17777
17778 * config/m68k/m68k.c (m68k_option_override): Disable
17779 -flive-range-shrinkage for classic m68k.
17780 (m68k_override_options_after_change): Likewise.
17781
17782 2014-02-27 Marek Polacek <polacek@redhat.com>
17783
17784 PR middle-end/59223
17785 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17786 -Wmaybe-uninitialized.
17787
17788 2014-02-27 Alan Modra <amodra@gmail.com>
17789
17790 PR target/57936
17791 * reload1.c (emit_input_reload_insns): When reload_override_in,
17792 set old to rl->in_reg when rl->in_reg is a subreg.
17793
17794 2014-02-26 Richard Biener <rguenther@suse.de>
17795
17796 PR bootstrap/60343
17797 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17798
17799 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17800
17801 * common/config/i386/predicates.md (const1256_operand): Remove.
17802 (const2356_operand): New.
17803 (const_1_to_2_operand): Remove.
17804 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17805 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17806 (*avx512pf_gatherpf<mode>sf): Ditto.
17807 (avx512pf_gatherpf<mode>df): Ditto.
17808 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17809 (*avx512pf_gatherpf<mode>df): Ditto.
17810 (avx512pf_scatterpf<mode>sf): Ditto.
17811 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17812 (*avx512pf_scatterpf<mode>sf): Ditto.
17813 (avx512pf_scatterpf<mode>df): Ditto.
17814 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17815 (*avx512pf_scatterpf<mode>df): Ditto.
17816 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17817
17818 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17819
17820 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17821 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17822 (_mm512_mask_testn_epi64_mask): Move to ...
17823 * config/i386/avx512cdintrin.h: Here.
17824 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17825 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17826 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17827 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17828 TARGET_AVX512F from TARGET_AVX512CD.
17829
17830 2014-02-26 Richard Biener <rguenther@suse.de>
17831
17832 PR ipa/60327
17833 * ipa.c (walk_polymorphic_call_targets): Properly guard
17834 call to inline_update_overall_summary.
17835
17836 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17837
17838 PR target/60280
17839 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17840 and latches only if requested. Fix latch if it is removed.
17841 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17842 LOOPS_HAVE_PREHEADERS.
17843
17844 2014-02-25 Andrew Pinski <apinski@cavium.com>
17845
17846 * builtins.c (expand_builtin_thread_pointer): Create a new target
17847 when the target is NULL.
17848
17849 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
17850
17851 PR rtl-optimization/60317
17852 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17853 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17854 * lra-assigns.c: Include params.h.
17855 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
17856 other reload pseudos considerations.
17857
17858 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17859
17860 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
17861 to use canonical form for nor<mode>3.
17862
17863 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17864
17865 PR target/55426
17866 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
17867 conversions.
17868
17869 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17870
17871 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
17872 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
17873 (ix86_handle_option): Handle OPT_mprefetchwt1.
17874 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
17875 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17876 PREFETCHWT1 CPUID.
17877 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17878 OPTION_MASK_ISA_PREFETCHWT1.
17879 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
17880 (PTA_PREFETCHWT1): New.
17881 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
17882 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
17883 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
17884 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
17885 (*prefetch_avx512pf_<mode>_: Change into ...
17886 (*prefetch_prefetchwt1_<mode>: This.
17887 * config/i386/i386.opt (mprefetchwt1): New.
17888 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
17889 (_mm_prefetch): Handle intent to write.
17890 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
17891
17892 2014-02-25 Richard Biener <rguenther@suse.de>
17893
17894 PR middle-end/60291
17895 * emit-rtl.c (mem_attrs_htab): Remove.
17896 (mem_attrs_htab_hash): Likewise.
17897 (mem_attrs_htab_eq): Likewise.
17898 (set_mem_attrs): Always allocate new mem-attrs when something changed.
17899 (init_emit_once): Do not allocate mem_attrs_htab.
17900
17901 2014-02-25 Richard Biener <rguenther@suse.de>
17902
17903 PR lto/60319
17904 * lto-opts.c (lto_write_options): Output non-explicit conservative
17905 -fwrapv, -fno-trapv and -fno-strict-overflow.
17906 * lto-wrapper.c (merge_and_complain): Handle merging those options.
17907 (run_gcc): And pass them through.
17908
17909 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17910
17911 * sel-sched.c (calculate_new_fences): New parameter ptime.
17912 Calculate it as a maximum over all fence cycles.
17913 (sel_sched_region_2): Adjust the call to calculate_new_fences.
17914 Print the final schedule timing when sched_verbose.
17915
17916 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17917
17918 PR rtl-optimization/60292
17919 * sel-sched.c (fill_vec_av_set): Do not reset target availability
17920 bit fot the fence instruction.
17921
17922 2014-02-24 Alangi Derick <alangiderick@gmail.com>
17923
17924 * calls.h: Fix typo in comment.
17925
17926 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
17927
17928 * config/pa/pa.c (pa_output_move_double): Don't valididate when
17929 adjusting offsetable addresses.
17930
17931 2014-02-24 Guozhi Wei <carrot@google.com>
17932
17933 * sparseset.h (sparseset_pop): Fix the wrong index.
17934
17935 2014-02-24 Walter Lee <walt@tilera.com>
17936
17937 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
17938 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
17939 triplet.
17940 * common/config/tilegx/tilegx-common.c
17941 (TARGET_DEFAULT_TARGET_FLAGS): Define.
17942 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
17943 (LINK_SPEC): Ditto.
17944 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
17945 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
17946 (tilegx_gimplify_va_arg_expr): Handle big endian.
17947 (tilegx_expand_unaligned_load): Ditto.
17948 (tilegx_expand_unaligned_store): Ditto.
17949 (TARGET_RETURN_IN_MSB): New.
17950 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
17951 (TARGET_ENDIAN_DEFAULT): New.
17952 (TARGET_BIG_ENDIAN): Handle big endian.
17953 (BYTES_BIG_ENDIAN): Ditto.
17954 (WORDS_BIG_ENDIAN): Ditto.
17955 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
17956 (ENDIAN_SPEC): New.
17957 (EXTRA_SPECS): New.
17958 * config/tilegx/tilegx.md (extv): Handle big endian.
17959 (extzv): Ditto.
17960 (insn_st<n>): Ditto.
17961 (insn_st<n>_add<bitsuffix>): Ditto.
17962 (insn_stnt<n>): Ditto.
17963 (insn_stnt<n>_add<bitsuffix>):Ditto.
17964 (vec_interleave_highv8qi): Handle big endian.
17965 (vec_interleave_highv8qi_be): New.
17966 (vec_interleave_highv8qi_le): New.
17967 (insn_v1int_h): Handle big endian.
17968 (vec_interleave_lowv8qi): Handle big endian.
17969 (vec_interleave_lowv8qi_be): New.
17970 (vec_interleave_lowv8qi_le): New.
17971 (insn_v1int_l): Handle big endian.
17972 (vec_interleave_highv4hi): Handle big endian.
17973 (vec_interleave_highv4hi_be): New.
17974 (vec_interleave_highv4hi_le): New.
17975 (insn_v2int_h): Handle big endian.
17976 (vec_interleave_lowv4hi): Handle big endian.
17977 (vec_interleave_lowv4hi_be): New.
17978 (vec_interleave_lowv4hi_le): New.
17979 (insn_v2int_l): Handle big endian.
17980 (vec_interleave_highv2si): Handle big endian.
17981 (vec_interleave_highv2si_be): New.
17982 (vec_interleave_highv2si_le): New.
17983 (insn_v4int_h): Handle big endian.
17984 (vec_interleave_lowv2si): Handle big endian.
17985 (vec_interleave_lowv2si_be): New.
17986 (vec_interleave_lowv2si_le): New.
17987 (insn_v4int_l): Handle big endian.
17988 * config/tilegx/tilegx.opt (mbig-endian): New option.
17989 (mlittle-endian): New option.
17990 * doc/install.texi: Document tilegxbe-linux.
17991 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
17992
17993 2014-02-24 Martin Jambor <mjambor@suse.cz>
17994
17995 PR ipa/60266
17996 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
17997 there are no parameter descriptors.
17998
17999 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18000
18001 PR rtl-optimization/60268
18002 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18003 initialization to ...
18004 (sched_rgn_init): ... here.
18005 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18006
18007 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18008
18009 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18010 names.
18011
18012 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18013
18014 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18015 definition.
18016
18017 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18018
18019 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18020 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18021
18022 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18023
18024 * config/microblaze/predicates.md: Add cmp_op predicate.
18025 * config/microblaze/microblaze.md: Add branch_compare instruction
18026 which uses cmp_op predicate and emits cmp insn before branch.
18027 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18028 to microblaze_expand_conditional_branch and consolidate logic.
18029 (microblaze_expand_conditional_branch): emit branch_compare
18030 insn instead of handling cmp op separate from branch insn.
18031
18032 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18033
18034 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18035 to permit subregs.
18036
18037 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18038
18039 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18040 define_insn with define_expand and new define_insn
18041 *altivec_lve<VI_char>x_internal.
18042 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18043 and new define_insn *altivec_stve<VI_char>x_internal.
18044 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18045 prototype.
18046 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18047 lve*x built-ins.
18048 (altivec_expand_stvex_be): New function.
18049
18050 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18051
18052 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18053 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18054 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18055 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18056
18057 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18058
18059 PR target/60298
18060 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18061 instead of emit_move_insn.
18062
18063 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18064
18065 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18066 vspltw with vsldoi.
18067 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18068 gen_altivec_vsumsws.
18069
18070 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18071
18072 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18073 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18074 (altivec_lvxl_<mode>): New define_expand incorporating
18075 -maltivec=be semantics where needed.
18076 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18077 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18078 semantics where needed.
18079 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18080 (altivec_stvx_<mode>): New define_expand incorporating
18081 -maltivec=be semantics where needed.
18082 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18083 VM2 iterator instead of V4SI.
18084 (altivec_stvxl_<mode>): New define_expand incorporating
18085 -maltivec=be semantics where needed.
18086 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18087 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18088 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18089 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18090 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18091 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18092 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18093 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18094 ALTIVEC_BUILTIN_STVXL.
18095 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18096 (altivec_expand_stvx_be): Likewise.
18097 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18098 (altivec_expand_lvx_be): Likewise.
18099 (altivec_expand_stvx_be): Likewise.
18100 (altivec_expand_builtin): Add cases for
18101 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18102 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18103 (altivec_init_builtins): Add definitions for
18104 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18105 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18106
18107 2014-02-21 Catherine Moore <clm@codesourcery.com>
18108
18109 * doc/invoke.texi (mvirt, mno-virt): Document.
18110 * config/mips/mips.opt (mvirt): New option.
18111 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18112
18113 2014-02-21 Richard Biener <rguenther@suse.de>
18114
18115 PR tree-optimization/60276
18116 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18117 (STMT_VINFO_MIN_NEG_DIST): New macro.
18118 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18119 STMT_VINFO_MIN_NEG_DIST.
18120 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18121 made for negative dependence distances still hold.
18122
18123 2014-02-21 Richard Biener <rguenther@suse.de>
18124
18125 PR middle-end/60291
18126 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18127 DECL_INITIAL for globals not in the current function context.
18128
18129 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18130
18131 PR tree-optimization/56490
18132 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18133 * tree-ssa-uninit.c: Include params.h.
18134 (compute_control_dep_chain): Add num_calls argument, return false
18135 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18136 num_calls to recursive call.
18137 (find_predicates): Change dep_chain into normal array,
18138 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18139 variable and adjust compute_control_dep_chain caller.
18140 (find_def_preds): Likewise.
18141
18142 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18143
18144 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18145 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18146
18147 2014-02-21 Nick Clifton <nickc@redhat.com>
18148
18149 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18150 (pushhi1): Likewise.
18151 (popqi1): Add mode to pre_dec.
18152 (pophi1): Likewise.
18153
18154 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18155
18156 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18157 mode for mask of V8SFmode permutation.
18158
18159 2014-02-20 Richard Henderson <rth@redhat.com>
18160
18161 PR c++/60272
18162 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18163 a new pseudo for OLDVAL.
18164
18165 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18166
18167 PR target/57896
18168 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18169 gen_reg_rtx if d->testing_p.
18170 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18171 if d->testing_p and we will certainly return true.
18172 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18173 if d->testing_p.
18174
18175 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18176
18177 * emit-rtl.c (gen_reg_rtx): Assert that
18178 crtl->emit.regno_pointer_align_length is non-zero.
18179
18180 2014-02-20 Richard Henderson <rth@redhat.com>
18181
18182 PR c++/60272
18183 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18184 on failure the store back into EXPECT.
18185
18186 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18187 Sandra Loosemore <sandra@codesourcery.com>
18188
18189 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18190 * config/nios2/nios2.c (nios2_function_profiler): Add
18191 -fPIC (flag_pic == 2) support.
18192 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18193 (nios2_large_offset_p): New function.
18194 (nios2_unspec_reloc_p): Move up position, update to use
18195 nios2_large_offset_p.
18196 (nios2_unspec_address): Remove function.
18197 (nios2_unspec_offset): New function.
18198 (nios2_large_got_address): New function.
18199 (nios2_got_address): Add large offset support.
18200 (nios2_legitimize_tls_address): Update usage of removed and new
18201 functions.
18202 (nios2_symbol_binds_local_p): New function.
18203 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18204 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18205 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18206 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18207 processing for (const (unspec ...)).
18208 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18209
18210 2014-02-20 Richard Biener <rguenther@suse.de>
18211
18212 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18213 doing the substitution.
18214 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18215
18216 2014-02-20 Martin Jambor <mjambor@suse.cz>
18217
18218 PR ipa/55260
18219 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18220 info when checking whether lattices are bottom.
18221
18222 2014-02-20 Richard Biener <rguenther@suse.de>
18223
18224 PR middle-end/60221
18225 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18226 regions at -O0.
18227
18228 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18229
18230 PR ipa/58555
18231 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18232 parameter specifying the scaling.
18233 (inline_call): Update.
18234 (want_inline_recursively): Guard division by zero.
18235 (recursive_inlining): Update.
18236 * ipa-inline.h (clone_inlined_nodes): Update.
18237
18238 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18239
18240 PR target/60204
18241 * config/i386/i386.c (classify_argument): Pass structures of size
18242 64 bytes or less in register.
18243
18244 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18245 Kirill Yukhin <kirill.yukhin@intel.com>
18246
18247 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18248 (_mm_rcp28_round_ss): Ditto.
18249 (_mm_rsqrt28_round_sd): Ditto.
18250 (_mm_rsqrt28_round_ss): Ditto.
18251 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18252 (_mm_rcp14_round_ss): Ditto.
18253 (_mm_rsqrt14_round_sd): Ditto.
18254 (_mm_rsqrt14_round_ss): Ditto.
18255 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18256 the first input operand, get rid of match_dup.
18257 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18258 attribute to sse.
18259 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18260 Ditto.
18261 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18262 operand as the first input operand, set type attribute.
18263 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18264 Set type attribute.
18265 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18266 operand as the first input operand, set type attribute.
18267
18268 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18269
18270 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18271 bit of zero.
18272
18273 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18274
18275 PR target/60207
18276 * config/i386/i386.c (construct_container): Remove TFmode check
18277 for X86_64_INTEGER_CLASS.
18278
18279 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18280
18281 PR target/59794
18282 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18283 only when -Wpsabi is enabled.
18284
18285 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18286
18287 PR target/59799
18288 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18289 passing arrays in registers are the same as for structs, so remove the
18290 special case for them.
18291
18292 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18293
18294 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18295 destination type, extract only the valid bits if the source type is not
18296 integral and has a different mode.
18297
18298 2014-02-19 Richard Biener <rguenther@suse.de>
18299
18300 PR ipa/60243
18301 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18302 for all calls.
18303
18304 2014-02-19 Richard Biener <rguenther@suse.de>
18305
18306 PR ipa/60243
18307 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18308 (ipa_modify_call_arguments): Emit an argument load explicitely and
18309 preserve virtual SSA form there and for the replacement call.
18310 Do not update SSA form nor free dominance info.
18311
18312 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18313
18314 * ipa.c (function_and_variable_visibility): Also clear WEAK
18315 flag when disolving COMDAT_GROUP.
18316
18317 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18318
18319 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18320 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18321 not devirtualizing.
18322 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18323 do more sanity checks.
18324 (detect_type_change): Return true when giving up early.
18325 (compute_complex_assign_jump_func): Fix type parameter of
18326 ipa_set_ancestor_jf.
18327 (compute_complex_ancestor_jump_func): Likewise.
18328 (update_jump_functions_after_inlining): Fix updating of
18329 ancestor function.
18330 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18331
18332 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18333
18334 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18335 inline clones when edge disappears.
18336
18337 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18338
18339 PR target/60203
18340 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18341 Split 64-bit moves into 2 patterns. Do not allow the use of
18342 direct move for TDmode in little endian, since the decimal value
18343 has little endian bytes within a word, but the 64-bit pieces are
18344 ordered in a big endian fashion, and normal subreg's of TDmode are
18345 not allowed.
18346 (mov<mode>_64bit_dm): Likewise.
18347 (movtd_64bit_nodm): Likewise.
18348
18349 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18350
18351 PR tree-optimization/60174
18352 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18353 statement of an SSA_NAME that occurs in an abnormal PHI node.
18354
18355 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18356
18357 PR sanitizer/60142
18358 * final.c (SEEN_BB): Remove.
18359 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18360 (final_scan_insn): Don't force_source_line on second
18361 NOTE_INSN_BASIC_BLOCK.
18362
18363 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18364
18365 PR target/60205
18366 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18367 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18368 (type_natural_mode): Warn ABI change when %zmm register is not
18369 available for AVX512F vector value passing.
18370
18371 2014-02-18 Kai Tietz <ktietz@redhat.com>
18372
18373 PR target/60193
18374 * config/i386/i386.c (ix86_expand_prologue): Use value in
18375 rax register as displacement when restoring %r10 or %rax.
18376 Fix wrong offset when restoring both registers.
18377
18378 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18379
18380 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18381 assertion with conditional return.
18382
18383 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18384 Uros Bizjak <ubizjak@gmail.com>
18385
18386 PR driver/60233
18387 * config/i386/driver-i386.c (host_detect_local_cpu): If
18388 YMM state is not saved by the OS, also clear has_f16c. Move
18389 CPUID 0x80000001 handling before YMM state saving checking.
18390
18391 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18392
18393 PR rtl-optimization/58960
18394 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18395 factored out from ...
18396 (sched_init): ... here.
18397 (free_global_sched_pressure_data): New, factored out from ...
18398 (sched_finish): ... here.
18399 * sched-int.h (free_global_sched_pressure_data): Declare.
18400 * sched-rgn.c (nr_regions_initial): New static global.
18401 (haifa_find_rgns): Initialize it.
18402 (schedule_region): Disable sched-pressure for the newly
18403 generated regions.
18404
18405 2014-02-17 Richard Biener <rguenther@suse.de>
18406
18407 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18408 release SSA defs of pattern stmts.
18409
18410 2014-02-17 Richard Biener <rguenther@suse.de>
18411
18412 * tree-inline.c (expand_call_inline): Release the virtual
18413 operand defined by the call we are about to inline.
18414
18415 2014-02-17 Richard Biener <rguenther@suse.de>
18416
18417 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18418
18419 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18420 Ilya Tocar <ilya.tocar@intel.com>
18421
18422 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18423 arguments order in builtin.
18424 (_mm512_permutexvar_epi64): Ditto.
18425 (_mm512_mask_permutexvar_epi64): Ditto
18426 (_mm512_maskz_permutexvar_epi32): Ditto
18427 (_mm512_permutexvar_epi32): Ditto
18428 (_mm512_mask_permutexvar_epi32): Ditto
18429
18430 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18431
18432 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18433 (p8_vmrgow): Likewise.
18434
18435 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18436
18437 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18438 endian targets.
18439
18440 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18441
18442 PR target/60203
18443 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18444 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18445 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18446 using direct move instructions on ISA 2.07. Also adjust
18447 instruction length for 64-bit.
18448 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18449 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18450
18451 2014-02-15 Alan Modra <amodra@gmail.com>
18452
18453 PR target/58675
18454 PR target/57935
18455 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18456 find_replacement on parts of insn rtl that might be reloaded.
18457
18458 2014-02-15 Richard Biener <rguenther@suse.de>
18459
18460 PR tree-optimization/60183
18461 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18462 (tree_ssa_phiprop): Calculate and free post-dominators.
18463
18464 2014-02-14 Jeff Law <law@redhat.com>
18465
18466 PR rtl-optimization/60131
18467 * ree.c (get_extended_src_reg): New function.
18468 (combine_reaching_defs): Use it rather than assuming location of REG.
18469 (find_and_remove_re): Verify first operand of extension is
18470 a REG before adding the insns to the copy list.
18471
18472 2014-02-14 Roland McGrath <mcgrathr@google.com>
18473
18474 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18475 * configure: Regenerated.
18476 * config.in: Regenerated.
18477 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18478 instead of ASM_SHORT.
18479
18480 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18481 Richard Earnshaw <rearnsha@arm.com>
18482
18483 PR rtl-optimization/59535
18484 * lra-constraints.c (process_alt_operands): Encourage alternative
18485 when unassigned pseudo class is superset of the alternative class.
18486 (inherit_reload_reg): Don't inherit when optimizing for code size.
18487 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18488 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18489 modes not less than 4 for Thumb1.
18490
18491 2014-02-14 Kyle McMartin <kyle@redhat.com>
18492
18493 PR pch/60010
18494 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18495
18496 2014-02-14 Richard Biener <rguenther@suse.de>
18497
18498 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18499 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18500 Do not strip INDIRECT_REFs.
18501
18502 2014-02-14 Richard Biener <rguenther@suse.de>
18503
18504 PR lto/60179
18505 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18506 DECL_FUNCTION_SPECIFIC_TARGET.
18507 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18508 * tree-streamer-out.c (pack_ts_target_option): Remove.
18509 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18510 (write_ts_function_decl_tree_pointers): Do not stream
18511 DECL_FUNCTION_SPECIFIC_TARGET.
18512 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18513 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18514 (lto_input_ts_function_decl_tree_pointers): Do not stream
18515 DECL_FUNCTION_SPECIFIC_TARGET.
18516
18517 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18518
18519 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18520 (get_initial_def_for_induction, vectorizable_induction): Ignore
18521 debug stmts when looking for exit_phi.
18522 (vectorizable_live_operation): Fix up condition.
18523
18524 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18525
18526 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18527 nreverse() because it changes the content of original tree list.
18528
18529 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18530
18531 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18532 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18533
18534 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18535
18536 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18537 GNU coding standards.
18538
18539 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18540
18541 PR debug/60152
18542 * dwarf2out.c (gen_subprogram_die): Don't call
18543 add_calling_convention_attribute if subr_die is old_die.
18544
18545 2014-02-13 Sharad Singhai <singhai@google.com>
18546
18547 * doc/optinfo.texi: Fix order of nodes.
18548
18549 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18550
18551 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18552 operands[2], not operands[3].
18553
18554 2014-02-13 Richard Biener <rguenther@suse.de>
18555
18556 PR bootstrap/59878
18557 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18558 mention the possibility of an in-tree build.
18559 (CLooG): Update recommended version to 0.18.1, mention the
18560 possibility of an in-tree build and clarify that the ISL
18561 bundled with CLooG does not work.
18562
18563 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18564
18565 PR target/43546
18566 * expr.c (compress_float_constant): If x is a hard register,
18567 extend into a pseudo and then move to x.
18568
18569 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18570
18571 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18572 caused by bad second argument to warning_at() with -mhotpatch and
18573 nested functions (e.g. with gfortran).
18574
18575 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18576
18577 * opts.c (option_name): Remove "enabled by default" rider.
18578
18579 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18580
18581 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18582
18583 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18584 Uros Bizjak <ubizjak@gmail.com>
18585
18586 PR target/60151
18587 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18588 * configure: Regenerated.
18589
18590 2014-02-12 Richard Biener <rguenther@suse.de>
18591
18592 * vec.c (vec_prefix::calculate_allocation): Move as
18593 inline variant to vec.h.
18594 (vec_prefix::calculate_allocation_1): New out-of-line version.
18595 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18596 (vec_prefix::m_has_auto_buf): Rename to ...
18597 (vec_prefix::m_using_auto_storage): ... this.
18598 (vec_prefix::calculate_allocation): Inline the easy cases
18599 and dispatch to calculate_allocation_1 which doesn't need the
18600 prefix address.
18601 (va_heap::reserve): Use gcc_checking_assert.
18602 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18603 m_using_auto_storage.
18604 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18605 member and adjust.
18606 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18607 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18608 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18609
18610 2014-02-12 Richard Biener <rguenther@suse.de>
18611
18612 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18613 when we found a dependence.
18614
18615 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18616
18617 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18618 common code...
18619 (maybe_fold_stmt): ... into this new function.
18620 * omp-low.c (lower_omp): Update comment.
18621
18622 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18623 last use.
18624
18625 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18626 dereference.
18627
18628 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18629
18630 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18631 identifiers in comments.
18632 (cortexa53_extra_costs): Likewise.
18633 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18634 (cortexa7_extra_costs): Likewise.
18635 (cortexa12_extra_costs): Likewise.
18636 (cortexa15_extra_costs): Likewise.
18637 (v7m_extra_costs): Likewise.
18638
18639 2014-02-12 Richard Biener <rguenther@suse.de>
18640
18641 PR middle-end/60092
18642 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18643 of posix_memalign being successful.
18644 (lower_stmt): Restrict lowering of posix_memalign to when
18645 -ftree-bit-ccp is enabled.
18646
18647 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18648
18649 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18650 arg_loc.
18651 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18652
18653 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18654
18655 PR rtl-optimization/60116
18656 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18657 other_insn once the combination has been validated.
18658
18659 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18660
18661 PR lto/59468
18662 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18663 and wrapper.
18664 * ipa-devirt.c: Include demangle.h
18665 (odr_violation_reported): New static variable.
18666 (add_type_duplicate): Update odr_violations.
18667 (maybe_record_node): Add completep parameter; update it.
18668 (record_target_from_binfo): Add COMPLETEP parameter;
18669 update it as needed.
18670 (possible_polymorphic_call_targets_1): Likewise.
18671 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18672 rename FINAL to COMPLETE.
18673 (record_targets_from_bases): Sanity check we found the binfo;
18674 fix COMPLETEP updating.
18675 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18676 parameter, fix computing of COMPLETEP.
18677 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18678 at LTO time do demangling.
18679 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18680 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18681 parameter.
18682 (gimple_get_virt_method_for_binfo): Likewise.
18683 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18684 gimple_get_virt_method_for_vtable): Update prototypes.
18685
18686 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18687
18688 PR target/49008
18689 * genautomata.c (add_presence_absence): Fix typo with
18690 {final_}presence_list.
18691
18692 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18693
18694 PR target/60137
18695 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18696 for VSX/Altivec vectors that land in GPR registers.
18697
18698 2014-02-11 Richard Henderson <rth@redhat.com>
18699 Jakub Jelinek <jakub@redhat.com>
18700
18701 PR debug/59776
18702 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18703 around drhs if type conversion to lacc->type is not useless.
18704
18705 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18706
18707 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18708 tuning struct.
18709 (cortex-a57.cortex-a53): Likewise.
18710 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18711
18712 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18713
18714 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18715 arm_restrict_it.
18716
18717 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18718
18719 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18720 add_options_for_arm_vfp3.
18721
18722 2014-02-11 Jeff Law <law@redhat.com>
18723
18724 PR middle-end/54041
18725 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18726 object with an undesirable mode.
18727
18728 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18729
18730 PR libgomp/60107
18731 * config/i386/sol2-9.h: New file.
18732 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18733 *-*-solaris2.9*): Use it.
18734
18735 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18736
18737 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18738 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18739
18740 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18741
18742 * config/microblaze/microblaze.c: Extend mcpu version format
18743
18744 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18745
18746 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18747
18748 2014-02-10 Richard Henderson <rth@redhat.com>
18749
18750 PR target/59927
18751 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18752 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18753 ms-abi vs -mno-accumulate-outgoing-args.
18754 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18755 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18756 respect to ms-abi.
18757
18758 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18759
18760 PR middle-end/60080
18761 * cfgexpand.c (expand_asm_operands): Attach source location to
18762 ASM_INPUT rtx objects.
18763 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18764
18765 2014-02-10 Nick Clifton <nickc@redhat.com>
18766
18767 * config/mn10300/mn10300.c (popcount): New function.
18768 (mn10300_expand_prologue): Include saved registers in stack usage
18769 count.
18770
18771 2014-02-10 Jeff Law <law@redhat.com>
18772
18773 PR middle-end/52306
18774 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18775 when changing the SET_DEST of a prior insn to avoid an input reload.
18776
18777 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18778
18779 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18780 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18781 -mcall-openbsd, or -mcall-linux.
18782 (CC1_ENDIAN_BIG_SPEC): Remove.
18783 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18784 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18785 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18786 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18787 and %cc1_endian_default.
18788 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18789
18790 2014-02-10 Richard Biener <rguenther@suse.de>
18791
18792 PR tree-optimization/60115
18793 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18794 MEM_REF handling. Properly verify that the accesses are not
18795 out of the objects bound.
18796
18797 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18798
18799 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18800 coretex to cortex.
18801
18802 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18803
18804 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18805 proper constants and fix formatting.
18806 (possible_polymorphic_call_targets): Fix formatting.
18807
18808 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18809 Ilya Tocar <ilya.tocar@intel.com>
18810
18811 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18812 (_mm512_loadu_epi32): Renamed into...
18813 (_mm512_loadu_si512): This.
18814 (_mm512_storeu_epi32): Renamed into...
18815 (_mm512_storeu_si512): This.
18816 (_mm512_maskz_ceil_ps): Removed.
18817 (_mm512_maskz_ceil_pd): Ditto.
18818 (_mm512_maskz_floor_ps): Ditto.
18819 (_mm512_maskz_floor_pd): Ditto.
18820 (_mm512_floor_round_ps): Ditto.
18821 (_mm512_floor_round_pd): Ditto.
18822 (_mm512_ceil_round_ps): Ditto.
18823 (_mm512_ceil_round_pd): Ditto.
18824 (_mm512_mask_floor_round_ps): Ditto.
18825 (_mm512_mask_floor_round_pd): Ditto.
18826 (_mm512_mask_ceil_round_ps): Ditto.
18827 (_mm512_mask_ceil_round_pd): Ditto.
18828 (_mm512_maskz_floor_round_ps): Ditto.
18829 (_mm512_maskz_floor_round_pd): Ditto.
18830 (_mm512_maskz_ceil_round_ps): Ditto.
18831 (_mm512_maskz_ceil_round_pd): Ditto.
18832 (_mm512_expand_pd): Ditto.
18833 (_mm512_expand_ps): Ditto.
18834 * config/i386/i386.c (ix86_builtins): Remove
18835 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18836 (bdesc_args): Ditto.
18837 * config/i386/predicates.md (const1256_operand): New.
18838 (const_1_to_2_operand): Ditto.
18839 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18840 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18841 (*avx512pf_gatherpf<mode>sf): Ditto.
18842 (avx512pf_gatherpf<mode>df): Ditto.
18843 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18844 (*avx512pf_gatherpf<mode>df): Ditto.
18845 (avx512pf_scatterpf<mode>sf): Ditto.
18846 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18847 (*avx512pf_scatterpf<mode>sf): Ditto.
18848 (avx512pf_scatterpf<mode>df): Ditto.
18849 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18850 (*avx512pf_scatterpf<mode>df): Ditto.
18851 (avx512f_expand<mode>): Removed.
18852 (<shift_insn><mode>3<mask_name>): Change predicate type.
18853
18854 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18855
18856 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
18857 not at the end of datarefs vector use ordered_remove to avoid
18858 reordering datarefs vector.
18859
18860 PR c/59984
18861 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
18862 mark local addressable non-static vars as GOVD_PRIVATE
18863 instead of GOVD_LOCAL.
18864 * omp-low.c (lower_omp_for): Move gimple_bind_vars
18865 and BLOCK_VARS of gimple_bind_block to new_stmt rather
18866 than copying them.
18867
18868 PR middle-end/60092
18869 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
18870 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
18871 assume_aligned or alloc_align attributes.
18872 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
18873 arguments. Handle also assume_aligned and alloc_align attributes.
18874 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
18875 calls to functions with assume_aligned or alloc_align attributes.
18876 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
18877
18878 2014-02-08 Terry Guo <terry.guo@arm.com>
18879
18880 * doc/invoke.texi: Document ARM -march=armv7e-m.
18881
18882 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18883
18884 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
18885 flag on __cilkrts_rethrow builtin.
18886
18887 PR ipa/60026
18888 * ipa-cp.c (determine_versionability): Fail at -O0
18889 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
18890 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
18891
18892 Revert:
18893 2014-02-04 Jakub Jelinek <jakub@redhat.com>
18894
18895 PR ipa/60026
18896 * tree-inline.c (copy_forbidden): Fail for
18897 __attribute__((optimize (0))) functions.
18898
18899 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18900
18901 * varpool.c: Include pointer-set.h.
18902 (varpool_remove_unreferenced_decls): Variables in other partitions
18903 will not be output; be however careful to not lose information
18904 about partitioning.
18905
18906 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18907
18908 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
18909 lookup in the vtable constructor.
18910
18911 2014-02-07 Jeff Law <law@redhat.com>
18912
18913 PR target/40977
18914 * config/m68k/m68k.md (ashldi_extsi): Turn into a
18915 define_insn_and_split.
18916
18917 * ipa-inline.c (inline_small_functions): Fix typos.
18918
18919 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18920
18921 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
18922 (s390_can_use_return_insn): Declare.
18923 * config/s390/s390.h (EPILOGUE_USES): Define.
18924 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
18925 instructions.
18926 (s390_chunkify_start): Handle return JUMP_LABELs.
18927 (s390_early_mach): Emit a main_pool instruction on the entry edge.
18928 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
18929 (s390_can_use_return_insn): New functions.
18930 (s390_fix_long_loop_prediction): Handle conditional returns.
18931 (TARGET_SET_UP_BY_PROLOGUE): Define.
18932 * config/s390/s390.md (ANY_RETURN): New code iterator.
18933 (*creturn, *csimple_return, return, simple_return): New patterns.
18934
18935 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18936
18937 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
18938 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
18939 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
18940 REG_CFA_RESTORE list when deciding not to restore a register.
18941
18942 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18943
18944 * config/s390/s390.c: Include tree-pass.h and context.h.
18945 (s390_early_mach): New function, split out from...
18946 (s390_emit_prologue): ...here.
18947 (pass_data_s390_early_mach): New pass structure.
18948 (pass_s390_early_mach): New class.
18949 (s390_option_override): Create and register early_mach pass.
18950 Move to end of file.
18951
18952 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18953
18954 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
18955 to match for the exit block.
18956
18957 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18958
18959 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
18960 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
18961 Reject misaligned operands.
18962
18963 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18964
18965 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
18966
18967 2014-02-07 Richard Biener <rguenther@suse.de>
18968
18969 PR middle-end/60092
18970 * gimple-low.c (lower_builtin_posix_memalign): New function.
18971 (lower_stmt): Call it to lower posix_memalign in a way
18972 to make alignment info accessible.
18973
18974 2014-02-07 Jakub Jelinek <jakub@redhat.com>
18975
18976 PR c++/60082
18977 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
18978 __builtin_setjmp_receiver.
18979
18980 2014-02-07 Richard Biener <rguenther@suse.de>
18981
18982 PR middle-end/60092
18983 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
18984 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
18985 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18986 Handle BUILT_IN_POSIX_MEMALIGN.
18987 (find_func_clobbers): Likewise.
18988 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18989 (call_may_clobber_ref_p_1): Likewise.
18990
18991 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18992
18993 PR ipa/59918
18994 * ipa-devirt.c (record_target_from_binfo): Remove overactive
18995 sanity check.
18996
18997 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18998
18999 PR ipa/59469
19000 * lto-cgraph.c (lto_output_node): Use
19001 symtab_get_symbol_partitioning_class.
19002 (lto_output_varpool_node): likewise.
19003 (symtab_get_symbol_partitioning_class): Move here from
19004 lto/lto-partition.c
19005 * cgraph.h (symbol_partitioning_class): Likewise.
19006 (symtab_get_symbol_partitioning_class): Declare.
19007
19008 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19009
19010 * ggc.h (ggc_internal_cleared_alloc): New macro.
19011 * vec.h (vec_safe_copy): Handle memory stats.
19012 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19013 * target-globals.c (save_target_globals): Likewise.
19014
19015 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19016
19017 PR target/60077
19018 * expr.c (emit_move_resolve_push): Export; be bit more selective
19019 on when to clear alias set.
19020 * expr.h (emit_move_resolve_push): Declare.
19021 * function.h (struct function): Add tail_call_marked.
19022 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19023 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19024 * config/i386/i386.md (TImode move expander): De not call
19025 ix86_expand_push.
19026 (FP push expanders): Preserve memory attributes.
19027 * config/i386/sse.md (push<mode>1): Remove.
19028 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19029 (ix86_expand_push): Remove.
19030 * config/i386/mmx.md (push<mode>1): Remove.
19031
19032 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19033
19034 PR rtl-optimization/60030
19035 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19036 lopart with paradoxical subreg before shifting it up by hprec.
19037
19038 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19039
19040 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19041 Remove extra newline at end of file.
19042 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19043 (arm_issue_rate): Handle cortexa57.
19044 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19045 (cortex-a57.cortex-a53): Likewise.
19046
19047 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19048
19049 PR target/59575
19050 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19051 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19052 bitmask.
19053 (arm_expand_prologue): Adjust all callers.
19054 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19055 info, registers also at the lowest numbered registers side. Use
19056 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19057 XEXP.
19058
19059 PR debug/59992
19060 * var-tracking.c (adjust_mems): Before adding a SET to
19061 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19062
19063 2014-02-06 Alan Modra <amodra@gmail.com>
19064
19065 PR target/60032
19066 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19067 change SDmode to DDmode when lra_in_progress.
19068
19069 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19070
19071 PR middle-end/59150
19072 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19073 free_data_ref on the dr first, and before goto again also set dr
19074 to the next dr. For simd_lane_access, free old datarefs[i] before
19075 overwriting it. For get_vectype_for_scalar_type failure, don't
19076 free_data_ref if simd_lane_access.
19077
19078 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19079
19080 PR target/60062
19081 * tree.h (opts_for_fn): New inline function.
19082 (opt_for_fn): Define.
19083 * config/i386/i386.c (ix86_function_regparm): Use
19084 opt_for_fn (decl, optimize) instead of optimize.
19085
19086 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19087
19088 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19089 for SYMBOL_REF in large memory model.
19090
19091 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19092
19093 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19094 and crypto support.
19095 (cortex-a57): Likewise.
19096 (cortex-a57.cortex-a53): Likewise.
19097
19098 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19099 Kugan Vivekanandarajah <kuganv@linaro.org>
19100
19101 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19102 unaligned_access.
19103 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19104
19105 2014-02-06 Richard Biener <rguenther@suse.de>
19106
19107 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19108 set_loop_copy and initialize_original_copy_tables.
19109
19110 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19111
19112 * config/aarch64/aarch64-simd.md
19113 (aarch64_ashr_simddi): Change QI to SI.
19114
19115 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19116 Jakub Jelinek <jakub@redhat.com>
19117
19118 PR middle-end/60013
19119 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19120 of the dataflow.
19121
19122 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19123
19124 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19125 CODE_FOR_altivec_vpku[hw]um to
19126 CODE_FOR_altivec_vpku[hw]um_direct.
19127 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19128 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19129 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19130 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19131
19132 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19133
19134 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19135 generation for -maltivec=be.
19136 (altivec_vsumsws): Simplify redundant test.
19137
19138 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19139
19140 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19141 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19142 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19143 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19144 gen_altivec_vpkuwum.
19145 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19146 BYTES_BIG_ENDIAN.
19147 (altivec_vpks<VI_char>ss): Likewise.
19148 (altivec_vpks<VI_char>us): Likewise.
19149 (altivec_vpku<VI_char>us): Likewise.
19150 (altivec_vpku<VI_char>um): Likewise.
19151 (altivec_vpku<VI_char>um_direct): New (copy of
19152 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19153 internal use).
19154 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19155 target is little endian and -maltivec=be is not specified.
19156 (*altivec_vupkhs<VU_char>_direct): New (copy of
19157 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19158 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19159 target is little endian and -maltivec=be is not specified.
19160 (*altivec_vupkls<VU_char>_direct): New (copy of
19161 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19162 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19163 little endian and -maltivec=be is not specified.
19164 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19165 little endian and -maltivec=be is not specified.
19166
19167 2014-02-05 Richard Henderson <rth@redhat.com>
19168
19169 PR debug/52727
19170 * combine-stack-adj.c: Revert r206943.
19171 * sched-int.h (struct deps_desc): Add last_args_size.
19172 * sched-deps.c (init_deps): Initialize it.
19173 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19174 contain REG_ARGS_SIZE notes.
19175
19176 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19177
19178 * lto-cgraph.c (asm_nodes_output): Make global.
19179 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19180 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19181 (driver_handle_option): Handle OPT_fwpa.
19182
19183 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19184
19185 PR ipa/59947
19186 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19187 a comment typo and formatting issue. If odr_hash hasn't been
19188 created, return vNULL and set *completep to false.
19189
19190 PR middle-end/57499
19191 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19192 bb with no successors.
19193
19194 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19195
19196 PR target/59718
19197 * doc/invoke.texi (-march): Clarify documentation for ARM.
19198 (-mtune): Likewise.
19199 (-mcpu): Likewise.
19200
19201 2014-02-05 Richard Biener <rguenther@suse.de>
19202
19203 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19204 when not vectorizing because of too many alias checks.
19205 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19206 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19207
19208 2014-02-05 Nick Clifton <nickc@redhat.com>
19209
19210 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19211 accept extended registers in any mode when compiling for the MN10300.
19212
19213 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19214
19215 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19216 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19217 sanitization attributes.
19218 (can_inline_edge_p): Likewise.
19219 (sanitize_attrs_match_for_inline_p): New function.
19220
19221 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19222
19223 * ipa-prop.c (detect_type_change): Shor circuit testing of
19224 type changes on THIS pointer.
19225
19226 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19227
19228 PR target/59777
19229 * config/pa/pa.c (legitimize_tls_address): Return original address
19230 if not passed a SYMBOL_REF rtx.
19231 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19232 addresses.
19233 (pa_emit_move_sequence): Simplify TLS source operands.
19234 (pa_legitimate_constant_p): Reject all TLS constants.
19235 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19236 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19237
19238 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19239
19240 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19241 groups when we know they are controlled by LTO.
19242 * varasm.c (default_binds_local_p_1): If object is in other partition,
19243 it will be resolved locally.
19244
19245 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19246
19247 * config/host-linux.c (linux_gt_pch_use_address): Don't
19248 use SSIZE_MAX because it is not always defined.
19249
19250 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19251
19252 PR bootstrap/59913
19253 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19254 threshold for pseudo splitting.
19255 (update_ebb_live_info): Process call argument hard registers and
19256 hard registers from insn definition too.
19257 (max_small_class_regs_num): New constant.
19258 (inherit_in_ebb): Update live hard regs through EBBs. Update
19259 reloads_num only for small register classes. Don't split for
19260 outputs of jumps.
19261
19262 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19263
19264 PR ipa/60058
19265 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19266 is non-null.
19267
19268 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19269
19270 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19271 visibility is safe.
19272
19273 2014-02-04 Marek Polacek <polacek@redhat.com>
19274
19275 * gdbinit.in (pel): Define.
19276
19277 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19278
19279 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19280 behavior.
19281
19282 2014-02-04 Richard Biener <rguenther@suse.de>
19283
19284 PR lto/59723
19285 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19286 in function context local.
19287 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19288 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19289 similar to LTO_imported_decl_ref.
19290
19291 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19292
19293 PR tree-optimization/60002
19294 * cgraphclones.c (build_function_decl_skip_args): Clear
19295 DECL_LANG_SPECIFIC.
19296
19297 PR tree-optimization/60023
19298 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19299 false to gsi_replace.
19300 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19301 has been in some EH region and vec_stmt could throw, add
19302 vec_stmt into the same EH region.
19303 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19304 has no lhs, ignore it.
19305 * internal-fn.c (expand_MASK_LOAD): Likewise.
19306
19307 PR ipa/60026
19308 * tree-inline.c (copy_forbidden): Fail for
19309 __attribute__((optimize (0))) functions.
19310
19311 PR other/58712
19312 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19313 is set, copy one less argument.
19314 (expand_simd_clones): Don't subtract clone_info->inbranch
19315 from simd_clone_struct_alloc argument.
19316
19317 PR rtl-optimization/57915
19318 * recog.c (simplify_while_replacing): If all unary/binary/relational
19319 operation arguments are constant, attempt to simplify those.
19320
19321 PR middle-end/59261
19322 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19323 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19324
19325 2014-02-04 Richard Biener <rguenther@suse.de>
19326
19327 PR tree-optimization/60012
19328 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19329 TBAA disambiguation to all DDRs.
19330
19331 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19332
19333 PR target/59788
19334 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19335 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19336
19337 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19338
19339 PR ipa/59882
19340 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19341
19342 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19343
19344 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19345 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19346
19347 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19348
19349 PR ipa/59831
19350 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19351 to figure out targets of polymorphic calls with known decl.
19352 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19353 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19354 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19355 (get_polymorphic_call_info): ... here.
19356 (get_polymorphic_call_info_from_invariant): New function.
19357
19358 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19359
19360 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19361 lookup via vtable pointer; check for type consistency
19362 and turn inconsitent facts into UNREACHABLE.
19363 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19364 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19365 type inconsistent querries; return UNREACHABLE instead.
19366
19367 2014-02-03 Richard Henderson <rth@twiddle.net>
19368
19369 PR tree-opt/59924
19370 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19371 already processed this node.
19372 (normalize_one_pred_1): Pass along mark_set.
19373 (normalize_one_pred): Create and destroy a pointer_set_t.
19374 (normalize_one_pred_chain): Likewise.
19375
19376 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19377
19378 PR gcov-profile/58602
19379 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19380
19381 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19382
19383 PR ipa/59831
19384 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19385 -fno-devirtualize; try to devirtualize by the knowledge of
19386 virtual table pointer given by aggregate propagation.
19387 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19388 (ipa_print_node_jump_functions): Dump also offset that
19389 is relevant for polymorphic calls.
19390 (determine_known_aggregate_parts): Add arg_type parameter; use it
19391 instead of determining the type from pointer type.
19392 (ipa_compute_jump_functions_for_edge): Update call of
19393 determine_known_aggregate_parts.
19394 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19395 (gimple_get_virt_method_for_binfo): ... here; simplify using
19396 vtable_pointer_value_to_vtable.
19397 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19398 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19399 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19400 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19401 POINTER_PLUS_EXPR.
19402 (vtable_pointer_value_to_binfo): ... here.
19403 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19404
19405 2014-02-03 Teresa Johnson <tejohnson@google.com>
19406
19407 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19408 redef of outer loop index variable.
19409
19410 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19411
19412 PR c++/53017
19413 PR c++/59211
19414 * doc/extend.texi (Function Attributes): Typo.
19415
19416 2014-02-03 Cong Hou <congh@google.com>
19417
19418 PR tree-optimization/60000
19419 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19420 if the vectorized statement is a store. A store statement can only
19421 appear at the end of pattern statements.
19422
19423 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19424
19425 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19426 (ix86_option_override_internal): Default long double to 64-bit for
19427 32-bit Bionic and to 128-bit for 64-bit Bionic.
19428
19429 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19430 TARGET_LONG_DOUBLE_128 is true.
19431 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19432
19433 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19434 (mlong-double-64): Negate -mlong-double-128.
19435 (mlong-double-128): New option.
19436
19437 * config/i386/i386-c.c (ix86_target_macros): Define
19438 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19439
19440 * doc/invoke.texi: Document -mlong-double-128.
19441
19442 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19443
19444 PR rtl-optimization/60024
19445 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19446
19447 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19448
19449 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19450
19451 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19452
19453 PR rtl-optimization/57662
19454 * sel-sched.c (code_motion_path_driver): Do not mark already not
19455 existing blocks in the visiting bitmap.
19456
19457 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19458
19459 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19460 on the insn being emitted.
19461
19462 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19463 Will Deacon <will.deacon@arm.com>
19464
19465 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19466
19467 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19468
19469 * config/arm/arm-tables.opt: Regenerate.
19470
19471 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19472
19473 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19474 for vector types other than V16QImode.
19475 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19476 define_expand, and call altivec_expand_vec_perm_le when producing
19477 code with little endian element order.
19478 (*altivec_vperm_<mode>_internal): New insn having previous
19479 behavior of altivec_vperm_<mode>.
19480 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19481 altivec_expand_vec_perm_le when producing code with little endian
19482 element order.
19483 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19484 behavior of altivec_vperm_<mode>_uns.
19485
19486 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19487
19488 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19489 (altivec_vsumsws): Add handling for -maltivec=be with a little
19490 endian target.
19491 (altivec_vsumsws_direct): New.
19492 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19493 gen_altivec_vsumsws.
19494
19495 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19496
19497 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19498 vtable_pointer_value_to_binfo): New functions.
19499 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19500 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19501
19502 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19503
19504 * config/nios2/nios2.md (load_got_register): Initialize GOT
19505 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19506 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19507
19508 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19509
19510 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19511 preserverd by passthrough, do not propagate the type.
19512
19513 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19514
19515 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19516 (mips_atomic_assign_expand_fenv): New function.
19517 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19518
19519 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19520
19521 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19522 (__builtin_mips_set_fcsr): Likewise.
19523 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19524 MIPS_USI_FTYPE_VOID.
19525 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19526 (mips16_expand_set_fcsr): Likewise.
19527 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19528 (mips16_set_fcsr_stub): Likewise.
19529 (mips16_get_fcsr_one_only_stub): New class.
19530 (mips16_set_fcsr_one_only_stub): Likewise.
19531 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19532 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19533 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19534 (hard_float): New availability predicate.
19535 (mips_builtins): Add get_fcsr and set_fcsr.
19536 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19537 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19538 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19539 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19540 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19541 patterns.
19542
19543 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19544
19545 * config/mips/mips.c (mips_one_only_stub): New class.
19546 (mips_need_mips16_rdhwr_p): Replace with...
19547 (mips16_rdhwr_stub): ...this new variable.
19548 (mips16_stub_call_address): New function.
19549 (mips16_rdhwr_one_only_stub): New class.
19550 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19551 (mips_output_mips16_rdhwr): Delete.
19552 (mips_finish_stub): New function.
19553 (mips_code_end): Use it to handle rdhwr stubs.
19554
19555 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19556
19557 PR target/60017
19558 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19559 when calculating size of integer atomic types.
19560
19561 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19562
19563 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19564
19565 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19566
19567 PR tree-optimization/60003
19568 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19569 * profile.c (branch_prob): Use gimple_call_builtin_p
19570 to check for BUILT_IN_SETJMP_RECEIVER.
19571 * tree-inline.c (copy_bb): Call notice_special_calls.
19572
19573 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19574
19575 PR bootstrap/59985
19576 * lra-constraints.c (process_alt_operands): Update reload_sum only
19577 on the first pass.
19578
19579 2014-01-31 Richard Henderson <rth@redhat.com>
19580
19581 PR middle-end/60004
19582 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19583 until after else_eh is processed.
19584
19585 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19586
19587 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19588 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19589 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19590 in smmintrin.h, remove them.
19591 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19592 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19593 * config/i386/i386.md (ROUND_SAE): Fix value.
19594 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19595 (const48_operand): New.
19596 * config/i386/subst.md (round), (round_expand): Use
19597 const_4_or_8_to_11_operand.
19598 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19599
19600 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19601
19602 * config/i386/constraints.md (Yk): Swap meaning with k.
19603 * config/i386/i386.md (movhi_internal): Change Yk to k.
19604 (movqi_internal): Ditto.
19605 (*k<logic><mode>): Ditto.
19606 (*andhi_1): Ditto.
19607 (*andqi_1): Ditto.
19608 (kandn<mode>): Ditto.
19609 (*<code>hi_1): Ditto.
19610 (*<code>qi_1): Ditto.
19611 (kxnor<mode>): Ditto.
19612 (kortestzhi): Ditto.
19613 (kortestchi): Ditto.
19614 (kunpckhi): Ditto.
19615 (*one_cmplhi2_1): Ditto.
19616 (*one_cmplqi2_1): Ditto.
19617 * config/i386/sse.md (): Change k to Yk.
19618 (avx512f_load<mode>_mask): Ditto.
19619 (avx512f_blendm<mode>): Ditto.
19620 (avx512f_store<mode>_mask): Ditto.
19621 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19622 (avx512f_storedqu<mode>_mask): Ditto.
19623 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19624 Ditto.
19625 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19626 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19627 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19628 (avx512f_maskcmp<mode>3): Ditto.
19629 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19630 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19631 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19632 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19633 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19634 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19635 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19636 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19637 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19638 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19639 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19640 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19641 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19642 (vec_extract_lo_<mode>_maskm): Ditto.
19643 (vec_extract_hi_<mode>_maskm): Ditto.
19644 (avx512f_vternlog<mode>_mask): Ditto.
19645 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19646 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19647 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19648 (avx512f_<code>v8div16qi2_mask): Ditto.
19649 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19650 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19651 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19652 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19653 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19654 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19655 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19656 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19657 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19658 (avx512cd_maskb_vec_dupv8di): Ditto.
19659 (avx512cd_maskw_vec_dupv16si): Ditto.
19660 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19661 (avx512f_vpermi2var<mode>3_mask): Ditto.
19662 (avx512f_vpermi2var<mode>3_mask): Ditto.
19663 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19664 (*avx512f_gathersi<mode>): Ditto.
19665 (*avx512f_gathersi<mode>_2): Ditto.
19666 (*avx512f_gatherdi<mode>): Ditto.
19667 (*avx512f_gatherdi<mode>_2): Ditto.
19668 (*avx512f_scattersi<mode>): Ditto.
19669 (*avx512f_scatterdi<mode>): Ditto.
19670 (avx512f_compress<mode>_mask): Ditto.
19671 (avx512f_compressstore<mode>_mask): Ditto.
19672 (avx512f_expand<mode>_mask): Ditto.
19673 * config/i386/subst.md (mask): Change k to Yk.
19674 (mask_scalar_merge): Ditto.
19675 (sd): Ditto.
19676
19677 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19678
19679 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19680
19681 2014-01-31 Richard Biener <rguenther@suse.de>
19682
19683 PR middle-end/59990
19684 * builtins.c (fold_builtin_memory_op): Make sure to not
19685 use a floating-point mode or a boolean or enumeral type for
19686 the copy operation.
19687
19688 2014-01-30 DJ Delorie <dj@redhat.com>
19689
19690 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19691 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19692 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19693 whenever main() has an epilogue.
19694
19695 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19696
19697 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19698 unused variable "field".
19699 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19700 (vsx_mergeh_<mode>): Likewise.
19701 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19702 (altivec_vmrghh): Likewise.
19703 (altivec_vmrghw): Likewise.
19704 (altivec_vmrglb): Likewise.
19705 (altivec_vmrglh): Likewise.
19706 (altivec_vmrglw): Likewise.
19707 (altivec_vspltb): Add missing uses.
19708 (altivec_vsplth): Likewise.
19709 (altivec_vspltw): Likewise.
19710 (altivec_vspltsf): Likewise.
19711
19712 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19713
19714 PR target/59923
19715 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19716 frame related instructions.
19717
19718 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19719
19720 PR rtl-optimization/59959
19721 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19722 any reload of register whose subreg is invalid.
19723
19724 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19725
19726 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19727 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19728 Add missing return type - void.
19729
19730 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19731
19732 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19733 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19734 remove element index adjustment for endian (now handled in vsx.md
19735 and altivec.md).
19736 (altivec_expand_vec_perm_const): Use
19737 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19738 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19739 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19740 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19741 define_expand and a new define_insn *altivec_vspltb_internal;
19742 adjust for -maltivec=be on a little endian target.
19743 (altivec_vspltb_direct): New.
19744 (altivec_vsplth): Divide into a define_expand and a new
19745 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19746 little endian target.
19747 (altivec_vsplth_direct): New.
19748 (altivec_vspltw): Divide into a define_expand and a new
19749 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19750 little endian target.
19751 (altivec_vspltw_direct): New.
19752 (altivec_vspltsf): Divide into a define_expand and a new
19753 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19754 a little endian target.
19755
19756 2014-01-30 Richard Biener <rguenther@suse.de>
19757
19758 PR tree-optimization/59993
19759 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19760 can propagate form the earlier stmt and avoid the transform
19761 when the intermediate result is needed.
19762
19763 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19764
19765 * README.Portability: Fix typo.
19766
19767 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19768
19769 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19770 comparison_operator with ordered_comparison_operator.
19771
19772 2014-01-30 Nick Clifton <nickc@redhat.com>
19773
19774 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19775 Rename to mn10300_store_multiple_regs.
19776 * config/mn10300/mn10300.c: Likewise.
19777 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19778 store_multiple_regs.
19779 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19780 Call mn10300_store_multiple_regs.
19781
19782 2014-01-30 Nick Clifton <nickc@redhat.com>
19783 DJ Delorie <dj@redhat.com>
19784
19785 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19786 %fp 2 to keep registers after it properly word-aligned.
19787 (rl78_alloc_physical_registers_umul): Handle the case where both
19788 input operands are the same.
19789
19790 2014-01-30 Richard Biener <rguenther@suse.de>
19791
19792 PR tree-optimization/59903
19793 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19794 check properly.
19795
19796 2014-01-30 Jason Merrill <jason@redhat.com>
19797
19798 PR c++/59633
19799 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19800
19801 PR c++/59645
19802 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19803
19804 2014-01-30 Richard Biener <rguenther@suse.de>
19805
19806 PR tree-optimization/59951
19807 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19808
19809 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19810
19811 PR target/59784
19812 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19813 SFmode to DFmode case.
19814
19815 2014-01-29 DJ Delorie <dj@redhat.com>
19816
19817 * config/msp430/msp430.opt (-minrt): New.
19818 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19819 if -minrt given.
19820 (ENDFILE_SPEC): Likewise.
19821
19822 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19823
19824 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19825 (estimate_function_body_sizes): Use it.
19826
19827 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19828
19829 PR c++/58561
19830 * dwarf2out.c (is_cxx_auto): New.
19831 (is_base_type): Use it.
19832 (gen_type_die_with_usage): Likewise.
19833
19834 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19835
19836 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19837 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19838 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19839 -maltivec=be with LE targets.
19840 (vsx_mergeh_<mode>): Likewise.
19841 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19842 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19843 (altivec_vmrghb): Replace with define_expand and new
19844 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19845 (altivec_vmrghb_direct): New define_insn.
19846 (altivec_vmrghh): Replace with define_expand and new
19847 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19848 (altivec_vmrghh_direct): New define_insn.
19849 (altivec_vmrghw): Replace with define_expand and new
19850 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
19851 (altivec_vmrghw_direct): New define_insn.
19852 (*altivec_vmrghsf): Adjust for endianness.
19853 (altivec_vmrglb): Replace with define_expand and new
19854 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
19855 (altivec_vmrglb_direct): New define_insn.
19856 (altivec_vmrglh): Replace with define_expand and new
19857 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
19858 (altivec_vmrglh_direct): New define_insn.
19859 (altivec_vmrglw): Replace with define_expand and new
19860 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
19861 (altivec_vmrglw_direct): New define_insn.
19862 (*altivec_vmrglsf): Adjust for endianness.
19863 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19864 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19865 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19866 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19867 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19868 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19869 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19870 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19871
19872 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
19873
19874 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
19875 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
19876 whitespace.
19877
19878 2014-01-29 Richard Biener <rguenther@suse.de>
19879
19880 PR tree-optimization/58742
19881 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
19882 associate_pointerplus_align.
19883 (associate_pointerplus_diff): New function.
19884 (associate_pointerplus): Likewise. Call associate_pointerplus_align
19885 and associate_pointerplus_diff.
19886
19887 2014-01-29 Richard Biener <rguenther@suse.de>
19888
19889 * lto-streamer.h (LTO_major_version): Bump to 3.
19890 (LTO_minor_version): Reset to 0.
19891
19892 2014-01-29 Renlin Li <Renlin.Li@arm.com>
19893
19894 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
19895 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
19896 (arm_file_start): Generate correct asm header for armv7ve.
19897 * config/arm/bpabi.h: Add multilib support for armv7ve.
19898 * config/arm/driver-arm.c: Change the architectures of cortex-a7
19899 and cortex-a15 to armv7ve.
19900 * config/arm/t-aprofile: Add multilib support for armv7ve.
19901 * doc/invoke.texi: Document -march=armv7ve.
19902
19903 2014-01-29 Richard Biener <rguenther@suse.de>
19904
19905 PR tree-optimization/58742
19906 * tree-ssa-forwprop.c (associate_plusminus): Return true
19907 if we changed sth, defer EH cleanup to ...
19908 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
19909 (simplify_mult): New function.
19910
19911 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19912
19913 PR middle-end/59917
19914 PR tree-optimization/59920
19915 * tree.c (build_common_builtin_nodes): Remove
19916 __builtin_setjmp_dispatcher initialization.
19917 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
19918 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
19919 instead of gsi_after_labels + manually skipping debug stmts.
19920 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
19921 ignore bbs with IFN_ABNORMAL_DISPATCHER.
19922 * tree-inline.c (copy_edges_for_bb): Remove
19923 can_make_abnormal_goto argument, instead add abnormal_goto_dest
19924 argument. Ignore computed_goto_p stmts. Don't call
19925 make_abnormal_goto_edges. If a call might need abnormal edges
19926 for non-local gotos, see if it already has an edge to
19927 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
19928 with true argument, don't do anything then, otherwise add
19929 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
19930 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
19931 caller.
19932 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
19933 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
19934 (lower_stmt): Don't set data->calls_builtin_setjmp.
19935 (lower_builtin_setjmp): Adjust comment.
19936 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
19937 * tree-cfg.c (found_computed_goto): Remove.
19938 (factor_computed_gotos): Remove.
19939 (make_goto_expr_edges): Return bool, true for computed gotos.
19940 Don't call make_abnormal_goto_edges.
19941 (build_gimple_cfg): Don't set found_computed_goto, don't call
19942 factor_computed_gotos.
19943 (computed_goto_p): No longer static.
19944 (make_blocks): Don't set found_computed_goto.
19945 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
19946 (make_edges): If make_goto_expr_edges returns true, push bb
19947 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
19948 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
19949 vector. Record mapping between bbs and OpenMP regions if there
19950 are any, adjust make_gimple_omp_edges caller. Call
19951 handle_abnormal_edges.
19952 (make_abnormal_goto_edges): Remove.
19953 * tree-cfg.h (make_abnormal_goto_edges): Remove.
19954 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
19955 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
19956 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
19957 * internal-fn.def (ABNORMAL_DISPATCHER): New.
19958 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
19959 filling *region also set *region_idx to (*region)->entry->index.
19960
19961 PR other/58712
19962 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
19963 For REGs set ORIGINAL_REGNO.
19964
19965 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
19966
19967 * doc/md.texi: Mention that a target shouldn't implement
19968 vec_widen_(s|u)mul_even/odd pair if it is less efficient
19969 than hi/lo pair.
19970
19971 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19972
19973 PR tree-optimization/59594
19974 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
19975 a copy of the datarefs vector rather than the vector itself.
19976
19977 2014-01-28 Jason Merrill <jason@redhat.com>
19978
19979 PR c++/53756
19980 * dwarf2out.c (auto_die): New static.
19981 (gen_type_die_with_usage): Handle C++1y 'auto'.
19982 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
19983 on definition.
19984
19985 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
19986
19987 PR target/59672
19988 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
19989 (SPEC_X32): Likewise.
19990 (SPEC_64): Likewise.
19991 * config/i386/i386.c (ix86_option_override_internal): Turn off
19992 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
19993 for TARGET_16BIT.
19994 (x86_file_start): Output .code16gcc for TARGET_16BIT.
19995 * config/i386/i386.h (TARGET_16BIT): New macro.
19996 (TARGET_16BIT_P): Likewise.
19997 * config/i386/i386.opt: Add m16.
19998 * doc/invoke.texi: Document -m16.
19999
20000 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20001
20002 PR preprocessor/59935
20003 * input.c (location_get_source_line): Bail out on when line number
20004 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20005
20006 2014-01-28 Richard Biener <rguenther@suse.de>
20007
20008 PR tree-optimization/58742
20009 * tree-ssa-forwprop.c (associate_plusminus): Handle
20010 pointer subtraction of the form (T)(P + A) - (T)P.
20011
20012 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20013
20014 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20015 at const_int_cost.
20016
20017 2014-01-28 Richard Biener <rguenther@suse.de>
20018
20019 Revert
20020 2014-01-28 Richard Biener <rguenther@suse.de>
20021
20022 PR rtl-optimization/45364
20023 PR rtl-optimization/59890
20024 * var-tracking.c (local_get_addr_clear_given_value): Handle
20025 already cleared slot.
20026 (val_reset): Handle not allocated local_get_addr_cache.
20027 (vt_find_locations): Use post-order on the inverted CFG.
20028
20029 2014-01-28 Richard Biener <rguenther@suse.de>
20030
20031 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20032
20033 2014-01-28 Richard Biener <rguenther@suse.de>
20034
20035 PR rtl-optimization/45364
20036 PR rtl-optimization/59890
20037 * var-tracking.c (local_get_addr_clear_given_value): Handle
20038 already cleared slot.
20039 (val_reset): Handle not allocated local_get_addr_cache.
20040 (vt_find_locations): Use post-order on the inverted CFG.
20041
20042 2014-01-28 Alan Modra <amodra@gmail.com>
20043
20044 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20045 * configure.ac <recursive call for build != host>: Define
20046 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20047 and LD_FOR_BUILD too.
20048 * configure: Regenerate.
20049
20050 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20051
20052 * config/i386/i386.c (get_builtin_code_for_version): Separate
20053 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20054 Broadwell from Haswell.
20055
20056 2014-01-27 Steve Ellcey <sellcey@mips.com>
20057
20058 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20059 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20060 * config/mips/mips.c (mips_option_override): Change setting
20061 of TARGET_DSP.
20062 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20063 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20064 Change from Mask to Var.
20065
20066 2014-01-27 Jeff Law <law@redhat.com>
20067
20068 * ipa-inline.c (inline_small_functions): Fix typo.
20069
20070 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20071
20072 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20073 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20074 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20075 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20076 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20077 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20078 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20079 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20080 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20081 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20082 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20083 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20084 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20085 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20086 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20087 (_mm512_storeu_epi64): Ditto.
20088 (_mm512_cmpge_epi32_mask): Ditto.
20089 (_mm512_cmpge_epu32_mask): Ditto.
20090 (_mm512_cmpge_epi64_mask): Ditto.
20091 (_mm512_cmpge_epu64_mask): Ditto.
20092 (_mm512_cmple_epi32_mask): Ditto.
20093 (_mm512_cmple_epu32_mask): Ditto.
20094 (_mm512_cmple_epi64_mask): Ditto.
20095 (_mm512_cmple_epu64_mask): Ditto.
20096 (_mm512_cmplt_epi32_mask): Ditto.
20097 (_mm512_cmplt_epu32_mask): Ditto.
20098 (_mm512_cmplt_epi64_mask): Ditto.
20099 (_mm512_cmplt_epu64_mask): Ditto.
20100 (_mm512_cmpneq_epi32_mask): Ditto.
20101 (_mm512_cmpneq_epu32_mask): Ditto.
20102 (_mm512_cmpneq_epi64_mask): Ditto.
20103 (_mm512_cmpneq_epu64_mask): Ditto.
20104 (_mm512_expand_pd): Ditto.
20105 (_mm512_expand_ps): Ditto.
20106 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20107 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20108 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20109 * config/i386/i386.c (ix86_builtins): Add
20110 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20111 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20112 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20113 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20114 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20115 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20116 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20117 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20118 IX86_BUILTIN_PMOVUSQW512_MEM.
20119 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20120 __builtin_ia32_pmovsqd512mem_mask,
20121 __builtin_ia32_pmovqd512mem_mask,
20122 __builtin_ia32_pmovusqw512mem_mask,
20123 __builtin_ia32_pmovsqw512mem_mask,
20124 __builtin_ia32_pmovqw512mem_mask,
20125 __builtin_ia32_pmovusdw512mem_mask,
20126 __builtin_ia32_pmovsdw512mem_mask,
20127 __builtin_ia32_pmovdw512mem_mask,
20128 __builtin_ia32_pmovqb512mem_mask,
20129 __builtin_ia32_pmovusqb512mem_mask,
20130 __builtin_ia32_pmovsqb512mem_mask,
20131 __builtin_ia32_pmovusdb512mem_mask,
20132 __builtin_ia32_pmovsdb512mem_mask,
20133 __builtin_ia32_pmovdb512mem_mask.
20134 (bdesc_args): Add __builtin_ia32_expanddf512,
20135 __builtin_ia32_expandsf512.
20136 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20137 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20138 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20139 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20140 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20141 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20142 (avx512f_<code>v8div16qi2_mask_store): This.
20143 (avx512f_expand<mode>): New.
20144
20145 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20146
20147 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20148 New.
20149 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20150 (_mm512_prefetch_i32scatter_pd): Ditto.
20151 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20152 (_mm512_prefetch_i64scatter_pd): Ditto.
20153 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20154 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20155 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20156 (_mm512_prefetch_i32scatter_ps): Ditto.
20157 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20158 (_mm512_prefetch_i64scatter_ps): Ditto.
20159 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20160 * config/i386/i386-builtin-types.def: Define
20161 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20162 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20163 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20164 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20165 IX86_BUILTIN_SCATTERPFQPD.
20166 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20167 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20168 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20169 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20170 __builtin_ia32_scatterpfqps.
20171 (ix86_expand_builtin): Expand new built-ins.
20172 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20173 fix memory access data type.
20174 (*avx512pf_gatherpf<mode>_mask): Ditto.
20175 (*avx512pf_gatherpf<mode>): Ditto.
20176 (avx512pf_scatterpf<mode>): Ditto.
20177 (*avx512pf_scatterpf<mode>_mask): Ditto.
20178 (*avx512pf_scatterpf<mode>): Ditto.
20179 (GATHER_SCATTER_SF_MEM_MODE): New.
20180 (avx512pf_gatherpf<mode>df): Ditto.
20181 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20182 (*avx512pf_scatterpf<mode>df): Ditto.
20183
20184 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20185
20186 PR bootstrap/59934
20187 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20188 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20189 reached.
20190
20191 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20192
20193 * common/config/arm/arm-common.c
20194 (arm_rewrite_mcpu): Handle multiple names.
20195 * config/arm/arm.h
20196 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20197
20198 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20199
20200 * gimple-builder.h (create_gimple_tmp): Delete.
20201
20202 2014-01-27 Christian Bruel <christian.bruel@st.com>
20203
20204 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20205 words comparisons.
20206
20207 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20208
20209 * config/pa/pa.md (call): Generate indirect long calls to non-local
20210 functions when outputing 32-bit code.
20211 (call_value): Likewise except for special call to buggy powf function.
20212
20213 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20214 portable runtime and PIC indirect calls.
20215 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20216 and PIC call sequences. Use ldo instead of blr to set return register
20217 in PIC call sequence.
20218
20219 2014-01-25 Walter Lee <walt@tilera.com>
20220
20221 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20222 avoid clobbering a live register.
20223
20224 2014-01-25 Walter Lee <walt@tilera.com>
20225
20226 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20227 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20228 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20229 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20230
20231 2014-01-25 Walter Lee <walt@tilera.com>
20232
20233 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20234 arguments on even registers.
20235 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20236 STACK_BOUNDARY.
20237 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20238 (BIGGEST_ALIGNMENT): Ditto.
20239 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20240
20241 2014-01-25 Walter Lee <walt@tilera.com>
20242
20243 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20244 insns before bundling.
20245 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20246
20247 2014-01-25 Walter Lee <walt@tilera.com>
20248
20249 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20250 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20251 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20252
20253 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20254
20255 * config/mips/constraints.md (kl): Delete.
20256 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20257 define expands, using...
20258 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20259 instructions for MIPS16.
20260 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20261 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20262
20263 2014-01-25 Walter Lee <walt@tilera.com>
20264
20265 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20266 (clzdi2): Ditto.
20267 (ffsdi2): Ditto.
20268
20269 2014-01-25 Walter Lee <walt@tilera.com>
20270
20271 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20272 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20273
20274 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20275
20276 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20277 Handle XOR.
20278
20279 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20280
20281 * print-rtl.c (in_call_function_usage): New var.
20282 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20283 EXPR_LIST mode as mode and not as reg note name.
20284
20285 PR middle-end/59561
20286 * cfgloopmanip.c (copy_loop_info): If
20287 loop->warned_aggressive_loop_optimizations, make sure
20288 the flag is set in target loop too.
20289
20290 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20291
20292 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20293 flag_cilkplus.
20294 * builtins.def: Likewise.
20295 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20296 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20297 * ira.c (ira_setup_eliminable_regset): Likewise.
20298 * omp-low.c (gate_expand_omp): Likewise.
20299 (execute_lower_omp): Likewise.
20300 (diagnose_sb_0): Likewise.
20301 (gate_diagnose_omp_blocks): Likewise.
20302 (simd_clone_clauses_extract): Likewise.
20303 (gate): Likewise.
20304
20305 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20306
20307 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20308 correction for little endian...
20309 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20310 here.
20311
20312 2014-01-24 Jeff Law <law@redhat.com>
20313
20314 PR tree-optimization/59919
20315 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20316 for non-returning calls.
20317
20318 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20319
20320 * common/config/aarch64/aarch64-common.c
20321 (aarch64_rewrite_mcpu): Handle multiple names.
20322 * config/aarch64/aarch64.h
20323 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20324
20325 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20326
20327 * input.c (add_file_to_cache_tab): Handle the case where fopen
20328 returns NULL.
20329
20330 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20331
20332 PR target/59929
20333 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20334 from push operand if code of push isn't PRE_DEC.
20335
20336 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20337
20338 PR target/59909
20339 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20340 -mquad-memory-atomic. Update -mquad-memory documentation to say
20341 it is only used for non-atomic loads/stores.
20342
20343 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20344 -mquad-memory or -mquad-memory-atomic switches.
20345
20346 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20347 -mquad-memory-atomic to ISA 2.07 support.
20348
20349 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20350 to separate support of normal quad word memory operations (ldq, stq)
20351 from the atomic quad word memory operations.
20352
20353 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20354 support to separate non-atomic quad word operations from atomic
20355 quad word operations. Disable non-atomic quad word operations in
20356 little endian mode so that we don't have to swap words after the
20357 load and before the store.
20358 (quad_load_store_p): Add comment about atomic quad word support.
20359 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20360 options printed with -mdebug=reg.
20361
20362 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20363 -mquad-memory-atomic as the test for whether we have quad word
20364 atomic instructions.
20365 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20366 or -mp8-vector are used, allow byte/half-word atomic operations.
20367
20368 * config/rs6000/sync.md (load_lockedti): Insure that the address
20369 is a proper indexed or indirect address for the lqarx instruction.
20370 On little endian systems, swap the hi/lo registers after the lqarx
20371 instruction.
20372 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20373 insure the address is valid for the lqarx instruction.
20374 (store_conditionalti): Insure that the address is a proper indexed
20375 or indirect address for the stqcrx. instruction. On little endian
20376 systems, swap the hi/lo registers before doing the stqcrx.
20377 instruction.
20378 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20379 insure the address is valid for the stqcrx. instruction.
20380
20381 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20382 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20383 type of quad memory support is available.
20384
20385 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20386
20387 PR regression/59915
20388 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20389 there is a danger of looping.
20390
20391 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20392
20393 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20394 force flag_ira_loop_pressure if set via command line.
20395
20396 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20397
20398 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20399 (ashr_simd): New builtin handling DI mode.
20400 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20401 (aarch64_sshr_simddi): New match pattern.
20402 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20403 (vshrd_n_s64): Likewise.
20404 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20405
20406 2014-01-23 Nick Clifton <nickc@redhat.com>
20407
20408 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20409 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20410 favour of mcu specific scripts.
20411 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20412 430x multilibs.
20413
20414 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20415 Alex Velenko <Alex.Velenko@arm.com>
20416
20417 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20418 (vaddv_s16): Likewise.
20419 (vaddv_s32): Likewise.
20420 (vaddv_u8): Likewise.
20421 (vaddv_u16): Likewise.
20422 (vaddv_u32): Likewise.
20423 (vaddvq_s8): Likewise.
20424 (vaddvq_s16): Likewise.
20425 (vaddvq_s32): Likewise.
20426 (vaddvq_s64): Likewise.
20427 (vaddvq_u8): Likewise.
20428 (vaddvq_u16): Likewise.
20429 (vaddvq_u32): Likewise.
20430 (vaddvq_u64): Likewise.
20431 (vaddv_f32): Likewise.
20432 (vaddvq_f32): Likewise.
20433 (vaddvq_f64): Likewise.
20434 (vmaxv_f32): Likewise.
20435 (vmaxv_s8): Likewise.
20436 (vmaxv_s16): Likewise.
20437 (vmaxv_s32): Likewise.
20438 (vmaxv_u8): Likewise.
20439 (vmaxv_u16): Likewise.
20440 (vmaxv_u32): Likewise.
20441 (vmaxvq_f32): Likewise.
20442 (vmaxvq_f64): Likewise.
20443 (vmaxvq_s8): Likewise.
20444 (vmaxvq_s16): Likewise.
20445 (vmaxvq_s32): Likewise.
20446 (vmaxvq_u8): Likewise.
20447 (vmaxvq_u16): Likewise.
20448 (vmaxvq_u32): Likewise.
20449 (vmaxnmv_f32): Likewise.
20450 (vmaxnmvq_f32): Likewise.
20451 (vmaxnmvq_f64): Likewise.
20452 (vminv_f32): Likewise.
20453 (vminv_s8): Likewise.
20454 (vminv_s16): Likewise.
20455 (vminv_s32): Likewise.
20456 (vminv_u8): Likewise.
20457 (vminv_u16): Likewise.
20458 (vminv_u32): Likewise.
20459 (vminvq_f32): Likewise.
20460 (vminvq_f64): Likewise.
20461 (vminvq_s8): Likewise.
20462 (vminvq_s16): Likewise.
20463 (vminvq_s32): Likewise.
20464 (vminvq_u8): Likewise.
20465 (vminvq_u16): Likewise.
20466 (vminvq_u32): Likewise.
20467 (vminnmv_f32): Likewise.
20468 (vminnmvq_f32): Likewise.
20469 (vminnmvq_f64): Likewise.
20470
20471 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20472
20473 * config/aarch64/aarch64-simd.md
20474 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20475 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20476 (*aarch64_mul3_elt<mode>): Likewise.
20477 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20478 (*aarch64_mul3_elt_to_64v2df): Likewise.
20479 (*aarch64_mla_elt<mode>): Likewise.
20480 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20481 (*aarch64_mls_elt<mode>): Likewise.
20482 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20483 (*aarch64_fma4_elt<mode>): Likewise.
20484 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20485 (*aarch64_fma4_elt_to_64v2df): Likewise.
20486 (*aarch64_fnma4_elt<mode>): Likewise.
20487 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20488 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20489 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20490 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20491 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20492 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20493 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20494 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20495 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20496
20497 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20498
20499 * config/aarch64/aarch64-simd.md
20500 (aarch64_be_checked_get_lane<mode>): New define_expand.
20501 * config/aarch64/aarch64-simd-builtins.def
20502 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20503 New builtin definition.
20504 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20505 Use new safe be builtin.
20506
20507 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20508
20509 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20510 New define_insn.
20511 (aarch64_be_st1<mode>): Likewise.
20512 (aarch_ld1<VALL:mode>): Define_expand modified.
20513 (aarch_st1<VALL:mode>): Likewise.
20514 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20515 (UNSPEC_ST1): Likewise.
20516
20517 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20518
20519 * config/microblaze/microblaze.md: Add trap insn and attribute
20520
20521 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20522
20523 PR preprocessor/58580
20524 * input.h (location_get_source_line): Take an additional line_size
20525 parameter.
20526 (void diagnostics_file_cache_fini): Declare new function.
20527 * input.c (struct fcache): New type.
20528 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20529 New static constants.
20530 (diagnostic_file_cache_init, total_lines_num)
20531 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20532 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20533 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20534 (get_next_line, read_next_line, goto_next_line, read_line_num):
20535 New static function definitions.
20536 (diagnostic_file_cache_fini): New function.
20537 (location_get_source_line): Take an additional output line_len
20538 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20539 read_line_num.
20540 * diagnostic.c (diagnostic_finish): Call
20541 diagnostic_file_cache_fini.
20542 (adjust_line): Take an additional input parameter for the length
20543 of the line, rather than calculating it with strlen.
20544 (diagnostic_show_locus): Adjust the use of
20545 location_get_source_line and adjust_line with respect to their new
20546 signature. While displaying a line now, do not stop at the first
20547 null byte. Rather, display the zero byte as a space and keep
20548 going until we reach the size of the line.
20549 * Makefile.in: Add vec.o to OBJS-libcommon
20550
20551 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20552 Ilya Tocar <ilya.tocar@intel.com>
20553
20554 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20555 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20556 (__builtin_ia32_kmov16): Ditto.
20557 * config/i386/i386.md (UNSPEC_KMOV): New.
20558 (kmovw): Ditto.
20559
20560 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20561
20562 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20563 (_mm512_storeu_si512): Ditto.
20564
20565 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20566
20567 PR target/52125
20568 * rtl.h (get_referenced_operands): Declare.
20569 * recog.c (get_referenced_operands): New function.
20570 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20571 operands have been referenced when recording LO_SUM references.
20572
20573 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20574
20575 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20576
20577 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20578
20579 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20580 Enable for generic and recent AMD targets.
20581
20582 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20583
20584 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20585 ARG_SIZE note when adjustment was eliminated.
20586
20587 2014-01-22 Jeff Law <law@redhat.com>
20588
20589 PR tree-optimization/59597
20590 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20591 in file. Accept new argument REGISTERING and use it to modify
20592 dump output appropriately.
20593 (register_jump_thread): Corresponding changes.
20594 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20595 thread paths involving joiner blocks. Add code to dump cancelled
20596 jump threading paths.
20597
20598 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20599
20600 PR rtl-optimization/59477
20601 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20602 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20603
20604 2014-01-22 Tom Tromey <tromey@redhat.com>
20605
20606 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20607 PARAMS.
20608 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20609
20610 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20611
20612 PR rtl-optimization/59896
20613 * lra-constraints.c (process_alt_operands): Check unused note for
20614 matched operands of insn with no output reloads.
20615
20616 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20617
20618 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20619 (mips_move_from_gpr_cost): Likewise.
20620
20621 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20622
20623 PR rtl-optimization/59858
20624 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20625 ira_class_hard_regs_num.
20626 (process_alt_operands): Increase reject for dying matched operand.
20627
20628 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20629
20630 PR target/59003
20631 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20632 smaller than size, perform several stores or loads and stores
20633 at dst + count - size to store or copy all of size bytes, rather
20634 than just last modesize bytes.
20635
20636 2014-01-20 DJ Delorie <dj@redhat.com>
20637
20638 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20639 that CLOBBERs are REGs before propogating their values.
20640
20641 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20642
20643 PR middle-end/59789
20644 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20645 (cgraph_inline_failed_type): New function.
20646 * cgraph.h (DEFCIFCODE): Add type.
20647 (cgraph_inline_failed_type_t): New enum.
20648 (cgraph_inline_failed_type): New prototype.
20649 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20650 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20651 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20652 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20653 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20654 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20655 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20656 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20657 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20658 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20659 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20660 OPTIMIZATION_MISMATCH.
20661 * tree-inline.c (expand_call_inline): Emit errors during
20662 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20663
20664 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20665
20666 PR target/59685
20667 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20668 mode attribute in insn output.
20669
20670 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20671
20672 * output.h (output_constant): Delete.
20673 * varasm.c (output_constant): Make private.
20674
20675 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20676
20677 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20678
20679 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20680
20681 PR middle-end/59860
20682 * tree.h (fold_builtin_strcat): New prototype.
20683 * builtins.c (fold_builtin_strcat): No longer static. Add len
20684 argument, if non-NULL, don't call c_strlen. Optimize
20685 directly into __builtin_memcpy instead of __builtin_strcpy.
20686 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20687 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20688
20689 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20690
20691 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20692 for SImode_address_operand operands, having only a REG argument.
20693
20694 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20695
20696 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20697 loader name using mbig-endian.
20698 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20699
20700 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20701
20702 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20703 (-mtune): Likewise.
20704 (-mcpu): Likewise.
20705
20706 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20707
20708 * config/aarch64/aarch64-protos.h
20709 (aarch64_cannot_change_mode_class_ptr): Declare.
20710 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20711 aarch64_cannot_change_mode_class_ptr): New.
20712 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20713 backend hook aarch64_cannot_change_mode_class.
20714
20715 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20716
20717 * common/config/aarch64/aarch64-common.c
20718 (aarch64_handle_option): Don't handle any option order logic here.
20719 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20720 selected_cpu, warn on architecture version mismatch.
20721 (aarch64_override_options): Fix parsing order for option strings.
20722
20723 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20724 Iain Sandoe <iain@codesourcery.com>
20725
20726 PR bootstrap/59496
20727 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20728 warning. Amend comment to reflect current functionality.
20729
20730 2014-01-20 Richard Biener <rguenther@suse.de>
20731
20732 PR middle-end/59860
20733 * builtins.c (fold_builtin_strcat): Remove case better handled
20734 by tree-ssa-strlen.c.
20735
20736 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20737
20738 * config/aarch64/aarch64.opt
20739 (mcpu, march, mtune): Make case-insensitive.
20740
20741 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20742
20743 PR target/59880
20744 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20745 if operands[1] is a REG or ZERO_EXTEND of a REG.
20746
20747 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20748
20749 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20750
20751 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20752
20753 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20754 long non-pic millicode calls.
20755
20756 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20757
20758 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20759
20760 2014-01-19 Kito Cheng <kito@0xlab.org>
20761
20762 * builtins.c (expand_movstr): Check movstr expand done or fail.
20763
20764 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20765 H.J. Lu <hongjiu.lu@intel.com>
20766
20767 PR target/59379
20768 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20769 to DImode for zero-extended addresses.
20770
20771 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20772
20773 PR rtl-optimization/57763
20774 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20775 on the new indirect jump_insn and increment LABEL_NUSES (label).
20776
20777 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20778
20779 PR bootstrap/59580
20780 PR bootstrap/59583
20781 * config.gcc (x86_archs): New variable.
20782 (x86_64_archs): Likewise.
20783 (x86_cpus): Likewise.
20784 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20785 --with-arch/--with-cpu= options.
20786 Support --with-arch=/--with-cpu={nehalem,westmere,
20787 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20788
20789 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20790
20791 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20792 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20793
20794 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20795
20796 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20797
20798 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20799
20800 PR target/58944
20801 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20802 clear cpp_get_options (parse_in)->warn_unused_macros for
20803 ix86_target_macros_internal with cpp_define.
20804
20805 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20806
20807 * jump.c (delete_related_insns): Keep (use (insn))s.
20808 * reorg.c (redundant_insn): Check for barriers too.
20809
20810 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20811
20812 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20813
20814 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20815
20816 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20817 call to $$dyncall when TARGET_LONG_CALLS is true.
20818
20819 2014-01-17 Jeff Law <law@redhat.com>
20820
20821 * ree.c (combine_set_extension): Temporarily disable test for
20822 changing number of hard registers.
20823
20824 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20825
20826 PR middle-end/58125
20827 * ipa-inline-analysis.c (inline_free_summary):
20828 Do not free summary of aliases.
20829
20830 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20831
20832 PR middle-end/59706
20833 * gimplify.c (gimplify_expr): Use create_tmp_var
20834 instead of create_tmp_var_raw. If cond doesn't have
20835 integral type, don't add the IFN_ANNOTATE builtin at all.
20836
20837 2014-01-17 Martin Jambor <mjambor@suse.cz>
20838
20839 PR ipa/59736
20840 * ipa-cp.c (prev_edge_clone): New variable.
20841 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20842 Also resize prev_edge_clone vector.
20843 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20844 (ipcp_edge_removal_hook): New function.
20845 (ipcp_driver): Register ipcp_edge_removal_hook.
20846
20847 2014-01-17 Andrew Pinski <apinski@cavium.com>
20848 Steve Ellcey <sellcey@mips.com>
20849
20850 PR target/59462
20851 * config/mips/mips.c (mips_print_operand): Check operand mode instead
20852 of operator mode.
20853
20854 2014-01-17 Jeff Law <law@redhat.com>
20855
20856 PR middle-end/57904
20857 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
20858 so that pass_ccp runs first.
20859
20860 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20861
20862 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
20863 (ix86_adjust_cost): Use !TARGET_XXX.
20864 (do_reorder_for_imul): Likewise.
20865 (swap_top_of_ready_list): Likewise.
20866 (ix86_sched_reorder): Likewise.
20867
20868 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20869
20870 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20871 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
20872 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
20873 (intel_memset): New. Duplicate slm_memset.
20874 (intel_cost): New. Duplicate slm_cost.
20875 (m_INTEL): New macro.
20876 (processor_target_table): Add "intel".
20877 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
20878 with PROCESSOR_INTEL for "intel".
20879 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
20880 PROCESSOR_SILVERMONT.
20881 (ix86_issue_rate): Likewise.
20882 (ix86_adjust_cost): Likewise.
20883 (ia32_multipass_dfa_lookahead): Likewise.
20884 (swap_top_of_ready_list): Likewise.
20885 (ix86_sched_reorder): Likewise.
20886 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
20887 instead of TARGET_OPT_AGU.
20888 * config/i386/i386.h (TARGET_INTEL): New.
20889 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
20890 (processor_type): Add PROCESSOR_INTEL.
20891 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
20892 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
20893
20894 2014-01-17 Marek Polacek <polacek@redhat.com>
20895
20896 PR c/58346
20897 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
20898 size is zero.
20899
20900 2014-01-17 Richard Biener <rguenther@suse.de>
20901
20902 PR tree-optimization/46590
20903 * opts.c (default_options_table): Add entries for
20904 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
20905 all enabled at -O1 but not for -Og.
20906 * common.opt (fbranch-count-reg): Remove Init(1).
20907 (fmove-loop-invariants): Likewise.
20908 (ftree-pta): Likewise.
20909
20910 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20911
20912 * config/i386/i386.c (ix86_data_alignment): For compatibility with
20913 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
20914 decls to at least the GCC 4.8 used alignments.
20915
20916 PR fortran/59440
20917 * tree-nested.c (convert_nonlocal_reference_stmt,
20918 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
20919 of GIMPLE_BIND stmts, adjust associated decls.
20920
20921 2014-01-17 Richard Biener <rguenther@suse.de>
20922
20923 PR tree-optimization/46590
20924 * vec.h (vec<>::bseach): New member function implementing
20925 binary search according to C89 bsearch.
20926 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
20927 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
20928 bitmap pointer again. Make accesses_in_loop a flat array.
20929 (mem_ref_obstack): New global.
20930 (outermost_indep_loop): Adjust for mem_ref->stored changes.
20931 (mark_ref_stored): Likewise.
20932 (ref_indep_loop_p_2): Likewise.
20933 (set_ref_stored_in_loop): New helper function.
20934 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
20935 (memref_free): Adjust.
20936 (record_mem_ref_loc): Simplify.
20937 (gather_mem_refs_stmt): Adjust.
20938 (sort_locs_in_loop_postorder_cmp): New function.
20939 (analyze_memory_references): Sort accesses_in_loop after
20940 loop postorder number.
20941 (find_ref_loc_in_loop_cmp): New function.
20942 (for_all_locs_in_loop): Find relevant cluster of locs in
20943 accesses_in_loop and iterate without recursion.
20944 (execute_sm): Avoid uninit warning.
20945 (struct ref_always_accessed): Simplify.
20946 (ref_always_accessed::operator ()): Likewise.
20947 (ref_always_accessed_p): Likewise.
20948 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
20949 loop postorder numbers here.
20950 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
20951 numbers.
20952
20953 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20954
20955 PR c++/57945
20956 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
20957 on decls for which assemble_alias has been called.
20958
20959 2014-01-17 Nick Clifton <nickc@redhat.com>
20960
20961 * config/msp430/msp430.opt: (mcpu): New option.
20962 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
20963 (msp430_option_override): Parse target_cpu. If the MCU name
20964 matches a generic string, clear target_mcu.
20965 (msp430_attr): Allow numeric interrupt values up to 63.
20966 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
20967 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
20968 option.
20969 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
20970 Add mcpu matches.
20971 * config/msp430/msp430.md (popm): Use %J rather than %I.
20972 (addsi3): Use msp430_nonimmediate_operand for operand 2.
20973 (addhi_cy_i): Use immediate_operand for operand 2.
20974 * doc/invoke.texi: Document -mcpu option.
20975
20976 2014-01-17 Richard Biener <rguenther@suse.de>
20977
20978 PR rtl-optimization/38518
20979 * df.h (df_analyze_loop): Declare.
20980 * df-core.c: Include cfgloop.h.
20981 (df_analyze_1): Split out main part of df_analyze.
20982 (df_analyze): Adjust.
20983 (loop_inverted_post_order_compute): New function.
20984 (loop_post_order_compute): Likewise.
20985 (df_analyze_loop): New function avoiding whole-function
20986 postorder computes.
20987 * loop-invariant.c (find_defs): Use df_analyze_loop.
20988 (find_invariants): Adjust.
20989 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
20990
20991 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
20992
20993 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
20994 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
20995
20996 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20997
20998 * ipa-ref.c (ipa_remove_stmt_references): Fix references
20999 traversal when removing references.
21000
21001 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21002
21003 PR ipa/59775
21004 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21005
21006 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21007
21008 PR middle-end/56791
21009 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21010 pushing a reload for an autoinc when we had previously reloaded an
21011 inner part of the address.
21012
21013 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21014
21015 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21016 field.
21017 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21018 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21019 when not giving up or versioning for alias only because of
21020 loop->safelen.
21021 (vect_analyze_data_ref_dependences): Set to true.
21022 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21023 is a GIMPLE_PHI.
21024 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21025 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21026 to the condition.
21027
21028 PR middle-end/58344
21029 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21030
21031 PR target/59839
21032 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21033 operand 0 predicate for gathers, use a new pseudo as subtarget.
21034
21035 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21036
21037 PR middle-end/59609
21038 * lra-constraints.c (process_alt_operands): Add printing debug info.
21039 Check absence of input/output reloads for matched operands too.
21040
21041 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21042
21043 PR rtl-optimization/59835
21044 * ira.c (ira_init_register_move_cost): Increase cost for
21045 impossible modes.
21046
21047 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21048
21049 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21050
21051 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21052
21053 PR target/59780
21054 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21055 non-register objects. Use gen_(high/low)part more consistently.
21056 Fix assertions.
21057
21058 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21059
21060 PR target/59844
21061 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21062 endian support, remove tests for WORDS_BIG_ENDIAN.
21063 (p8_mfvsrd_3_<mode>): Likewise.
21064 (reload_gpr_from_vsx<mode>): Likewise.
21065 (reload_gpr_from_vsxsf): Likewise.
21066 (p8_mfvsrd_4_disf): Likewise.
21067
21068 2014-01-16 Richard Biener <rguenther@suse.de>
21069
21070 PR rtl-optimization/46590
21071 * lcm.c (compute_antinout_edge): Use postorder iteration.
21072 (compute_laterin): Use inverted postorder iteration.
21073
21074 2014-01-16 Nick Clifton <nickc@redhat.com>
21075
21076 PR middle-end/28865
21077 * varasm.c (output_constant): Return the number of bytes actually
21078 emitted.
21079 (output_constructor_array_range): Update the field size with the
21080 number of bytes emitted by output_constant.
21081 (output_constructor_regular_field): Likewise. Also do not
21082 complain if the total number of bytes emitted is now greater
21083 than the expected fieldpos.
21084 * output.h (output_constant): Update prototype and descriptive comment.
21085
21086 2014-01-16 Marek Polacek <polacek@redhat.com>
21087
21088 PR middle-end/59827
21089 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21090 it is error_mark_node.
21091
21092 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21093
21094 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21095 VALID_AVX256_REG_OR_OI_MODE.
21096
21097 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21098
21099 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21100 current procedure should be profiled.
21101
21102 2014-01-15 Andrew Pinski <apinski@cavium.com>
21103
21104 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21105 of moving from/to the STACK_REG register class.
21106
21107 2014-01-15 Richard Henderson <rth@redhat.com>
21108
21109 PR debug/54694
21110 * reginfo.c (global_regs_decl): Globalize.
21111 * rtl.h (global_regs_decl): Declare.
21112 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21113 reserved via global_regs.
21114
21115 2014-01-15 Teresa Johnson <tejohnson@google.com>
21116
21117 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21118
21119 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21120
21121 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21122 and vmulosh rather than call gen_vec_widen_smult_*.
21123 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21124 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21125 (vec_widen_smult_even_v16qi): Likewise.
21126 (vec_widen_umult_even_v8hi): Likewise.
21127 (vec_widen_smult_even_v8hi): Likewise.
21128 (vec_widen_umult_odd_v16qi): Likewise.
21129 (vec_widen_smult_odd_v16qi): Likewise.
21130 (vec_widen_umult_odd_v8hi): Likewise.
21131 (vec_widen_smult_odd_v8hi): Likewise.
21132 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21133 vmuloub rather than call gen_vec_widen_umult_*.
21134 (vec_widen_umult_lo_v16qi): Likewise.
21135 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21136 vmulosb rather than call gen_vec_widen_smult_*.
21137 (vec_widen_smult_lo_v16qi): Likewise.
21138 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21139 rather than call gen_vec_widen_umult_*.
21140 (vec_widen_umult_lo_v8hi): Likewise.
21141 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21142 rather than call gen_vec_widen_smult_*.
21143 (vec_widen_smult_lo_v8hi): Likewise.
21144
21145 2014-01-15 Jeff Law <law@redhat.com>
21146
21147 PR tree-optimization/59747
21148 * ree.c (find_and_remove_re): Properly handle case where a second
21149 eliminated extension requires widening a copy created for elimination
21150 of a prior extension.
21151 (combine_set_extension): Ensure that the number of hard regs needed
21152 for a destination register does not change when we widen it.
21153
21154 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21155
21156 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21157 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21158 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21159 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21160 (avr-*-rtems*): Likewise.
21161 (bfin*-rtems*): Likewise.
21162 (moxie-*-rtems*): Likewise.
21163 (h8300-*-rtems*): Likewise.
21164 (i[34567]86-*-rtems*): Likewise.
21165 (lm32-*-rtems*): Likewise.
21166 (m32r-*-rtems*): Likewise.
21167 (m68k-*-rtems*): Likewise.
21168 (microblaze*-*-rtems*): Likewise.
21169 (mips*-*-rtems*): Likewise.
21170 (powerpc-*-rtems*): Likewise.
21171 (sh-*-rtems*): Likewise.
21172 (sparc-*-rtems*): Likewise.
21173 (sparc64-*-rtems*): Likewise.
21174 (v850-*-rtems*): Likewise.
21175 (m32c-*-rtems*): Likewise.
21176
21177 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21178
21179 PR rtl-optimization/59511
21180 * ira.c (ira_init_register_move_cost): Use memory costs for some
21181 cases of register move cost calculations.
21182 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21183 instead of BB frequency.
21184 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21185 * lra-assigns.c (find_hard_regno_for): Ditto.
21186
21187 2014-01-15 Richard Biener <rguenther@suse.de>
21188
21189 PR tree-optimization/59822
21190 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21191 (vectorizable_load): Use it to hoist defs of uses of invariant
21192 loads out of the loop.
21193
21194 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21195 Kugan Vivekanandarajah <kuganv@linaro.org>
21196
21197 PR target/59695
21198 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21199 truncation.
21200
21201 2014-01-15 Richard Biener <rguenther@suse.de>
21202
21203 PR rtl-optimization/59802
21204 * lcm.c (compute_available): Use inverted postorder to seed
21205 the initial worklist.
21206
21207 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21208
21209 PR target/59803
21210 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21211 ADDR_REGS for invalid symrefs in non-PIC code.
21212
21213 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21214
21215 PR other/58712
21216 * builtins.c (determine_block_size): Initialize *probable_max_size
21217 even if len_rtx is CONST_INT.
21218
21219 2014-01-14 Andrew Pinski <apinski@cavium.com>
21220
21221 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21222 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21223 (cortexa53_tunings): Likewise.
21224 (aarch64_sched_issue_rate): New function.
21225 (TARGET_SCHED_ISSUE_RATE): Define.
21226
21227 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21228
21229 * ira-costs.c (find_costs_and_classes): Add missed
21230 ira_init_register_move_cost_if_necessary.
21231
21232 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21233
21234 PR target/59787
21235 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21236
21237 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21238
21239 PR target/59794
21240 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21241 to indicate if type is used for function return value. Warn ABI
21242 change if the vector mode isn't available for function return value.
21243 (ix86_function_arg_advance): Pass false to type_natural_mode.
21244 (ix86_function_arg): Likewise.
21245 (ix86_gimplify_va_arg): Likewise.
21246 (function_arg_32): Don't warn ABI change.
21247 (ix86_function_value): Pass true to type_natural_mode.
21248 (ix86_return_in_memory): Likewise.
21249 (ix86_struct_value_rtx): Removed.
21250 (TARGET_STRUCT_VALUE_RTX): Likewise.
21251
21252 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21253
21254 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21255 converting a conditional jump into a conditional return.
21256
21257 2014-01-14 Richard Biener <rguenther@suse.de>
21258
21259 PR tree-optimization/58921
21260 PR tree-optimization/59006
21261 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21262 hoisting invariant stmts.
21263 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21264 invariant loads on the preheader edge if possible.
21265
21266 2014-01-14 Joey Ye <joey.ye@arm.com>
21267
21268 * doc/plugin.texi (Building GCC plugins): Update to C++.
21269
21270 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21271
21272 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21273 (_mm_rcp28_round_ss): Ditto.
21274 (_mm_rsqrt28_round_sd): Ditto.
21275 (_mm_rsqrt28_round_ss): Ditto.
21276 (_mm_rcp28_sd): Ditto.
21277 (_mm_rcp28_ss): Ditto.
21278 (_mm_rsqrt28_sd): Ditto.
21279 (_mm_rsqrt28_ss): Ditto.
21280 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21281 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21282 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21283 (IX86_BUILTIN_RCP28SD): Ditto.
21284 (IX86_BUILTIN_RCP28SS): Ditto.
21285 (IX86_BUILTIN_RSQRT28SD): Ditto.
21286 (IX86_BUILTIN_RSQRT28SS): Ditto.
21287 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21288 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21289 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21290 (ix86_expand_special_args_builtin): Expand new FTYPE.
21291 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21292 (srcp14<mode>): Make insn unary.
21293 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21294 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21295 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21296 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21297 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21298 Fix rounding: make it SAE only.
21299 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21300 Ditto.
21301 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21302 Ditto.
21303 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21304 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21305 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21306 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21307 (round_saeonly_mask_scalar_operand4): Ditto.
21308 (round_saeonly_mask_scalar_op3): Ditto.
21309 (round_saeonly_mask_scalar_op4): Ditto.
21310
21311 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21312
21313 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21314 Implement -maltivec=be for vec_insert and vec_extract.
21315
21316 2014-01-10 DJ Delorie <dj@redhat.com>
21317
21318 * config/msp430/msp430.md (call_internal): Don't allow memory
21319 references with SP as the base register.
21320 (call_value_internal): Likewise.
21321 * config/msp430/constraints.md (Yc): New. For memory references
21322 that don't use SP as a base register.
21323
21324 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21325 "an integer without a # prefix"
21326 * config/msp430/msp430.md (epilogue_helper): Use it.
21327
21328 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21329
21330 PR target/59617
21331 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21332 AVX512F gather builtins.
21333 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21334 on gather decls with INTEGER_TYPE masktype.
21335 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21336 directly into the builtin rather than hoisting it before loop.
21337
21338 PR tree-optimization/59387
21339 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21340 (scev_const_prop): If folded_casts and type has undefined overflow,
21341 use force_gimple_operand instead of force_gimple_operand_gsi and
21342 for each added stmt if it is assign with
21343 arith_code_with_undefined_signed_overflow, call
21344 rewrite_to_defined_overflow.
21345 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21346 gimple-fold.h instead.
21347 (arith_code_with_undefined_signed_overflow,
21348 rewrite_to_defined_overflow): Moved to ...
21349 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21350 rewrite_to_defined_overflow): ... here. No longer static.
21351 Include gimplify-me.h.
21352 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21353 rewrite_to_defined_overflow): New prototypes.
21354
21355 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21356
21357 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21358
21359 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21360
21361 * builtins.c (get_object_alignment_2): Minor tweak.
21362 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21363
21364 2014-01-13 Christian Bruel <christian.bruel@st.com>
21365
21366 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21367 optimized non constant lengths.
21368
21369 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21370
21371 PR libgomp/59194
21372 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21373 load as __atomic_load_N if possible.
21374
21375 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21376
21377 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21378 target parameter.
21379 (rs6000_expand_builtin): Adjust call.
21380
21381 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21382
21383 PR target/58115
21384 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21385 * config/rs6000/rs6000.c: Include target-globals.h.
21386 (rs6000_set_current_function): Instead of doing target_reinit
21387 unconditionally, use save_target_globals_default_opts and
21388 restore_target_globals.
21389
21390 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21391 FPSCR.
21392 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21393 (rs6000_expand_builtin): Handle mffs and mtfsf.
21394 (rs6000_init_builtins): Define mffs and mtfsf.
21395 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21396 (rs6000_mffs): New pattern.
21397 (rs6000_mtfsf): New pattern.
21398
21399 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21400
21401 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21402 Start narrowing with START. Apply candidate-use pair
21403 and check overall cost in narrowing.
21404 (iv_ca_prune): Pass new argument.
21405
21406 2014-01-10 Jeff Law <law@redhat.com>
21407
21408 PR middle-end/59743
21409 * ree.c (combine_reaching_defs): Ensure the defining statement
21410 occurs before the extension when optimizing extensions with
21411 different source and destination hard registers.
21412
21413 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21414
21415 PR ipa/58585
21416 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21417 vtables into the type inheritance graph.
21418
21419 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21420
21421 PR rtl-optimization/59754
21422 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21423 modes in the REGNO != REGNO case.
21424
21425 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21426
21427 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21428
21429 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21430
21431 PR tree-optimization/59745
21432 * tree-predcom.c (tree_predictive_commoning_loop): Call
21433 free_affine_expand_cache if giving up because components is NULL.
21434
21435 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21436 GC in payload of target_globals struct instead of allocating them on
21437 the heap and the larger structs separately using GC.
21438 * target-globals.h (struct target_globals): Make regs, hard_regs,
21439 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21440 of GTY((skip)) and change type to void *.
21441 (reset_target_globals): Cast loads from those fields to corresponding
21442 types.
21443
21444 2014-01-10 Steve Ellcey <sellcey@mips.com>
21445
21446 PR plugins/59335
21447 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21448 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21449 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21450
21451 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21452
21453 PR target/59744
21454 * aarch64-modes.def (CC_Zmode): New flags mode.
21455 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21456 represents an equality.
21457 (aarch64_get_condition_code): Handle CC_Zmode.
21458 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21459
21460 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21461
21462 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21463 extraction in good case.
21464
21465 2014-01-10 Richard Biener <rguenther@suse.de>
21466
21467 PR tree-optimization/59374
21468 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21469 checking after SLP discovery. Mark stmts not participating
21470 in any SLP instance properly.
21471
21472 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21473
21474 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21475 when handling a SET rtx.
21476
21477 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21478
21479 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21480 (cortex-a57): Likewise.
21481 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21482
21483 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21484
21485 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21486 non-iwmmxt builtins.
21487
21488 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21489
21490 PR ipa/58252
21491 PR ipa/59226
21492 * ipa-devirt.c record_target_from_binfo): Take as argument
21493 stack of binfos and lookup matching one for virtual inheritance.
21494 (possible_polymorphic_call_targets_1): Update.
21495
21496 2014-01-10 Huacai Chen <chenhc@lemote.com>
21497
21498 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21499 kernel strings for Loongson-2E/2F/3A.
21500
21501 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21502
21503 PR middle-end/59670
21504 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21505 is_gimple_call before calling gimple_call_internal_p.
21506
21507 2014-01-09 Steve Ellcey <sellcey@mips.com>
21508
21509 * Makefile.in (TREE_FLOW_H): Remove.
21510 (TREE_SSA_H): Add file names from tree-flow.h.
21511 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21512 * tree.h: Remove tree-flow.h reference.
21513 * hash-table.h: Remove tree-flow.h reference.
21514 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21515 reference with tree-ssa-loop.h.
21516
21517 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21518
21519 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21520 default element-order behavior for -maltivec.
21521 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21522 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21523 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21524 when targeting big endian, at least for now.
21525 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21526
21527 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21528
21529 PR middle-end/47735
21530 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21531 var satisfies use_register_for_decl, just take into account type
21532 alignment, rather than decl alignment.
21533
21534 PR tree-optimization/59622
21535 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21536 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21537 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21538 Don't devirtualize for inplace at all. For targets.length () == 1,
21539 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21540
21541 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21542
21543 * config/i386/i386.md (cpu): Remove the unused btver1.
21544
21545 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21546
21547 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21548
21549 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21550
21551 PR target/58115
21552 * tree-core.h (struct target_globals): New forward declaration.
21553 (struct tree_target_option): Add globals field.
21554 * tree.h (TREE_TARGET_GLOBALS): Define.
21555 (prepare_target_option_nodes_for_pch): New prototype.
21556 * target-globals.h (struct target_globals): Define even if
21557 !SWITCHABLE_TARGET.
21558 * tree.c (prepare_target_option_node_for_pch,
21559 prepare_target_option_nodes_for_pch): New functions.
21560 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21561 * config/i386/i386.c: Include target-globals.h.
21562 (ix86_set_current_function): Instead of doing target_reinit
21563 unconditionally, use save_target_globals_default_opts and
21564 restore_target_globals.
21565
21566 2014-01-09 Richard Biener <rguenther@suse.de>
21567
21568 PR tree-optimization/59715
21569 * tree-cfg.h (split_critical_edges): Declare.
21570 * tree-cfg.c (split_critical_edges): Export.
21571 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21572
21573 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21574
21575 * cfgexpand.c (expand_stack_vars): Optionally disable
21576 asan stack protection.
21577 (expand_used_vars): Likewise.
21578 (partition_stack_vars): Likewise.
21579 * asan.c (asan_emit_stack_protection): Optionally disable
21580 after return stack usage.
21581 (instrument_derefs): Optionally disable memory access instrumentation.
21582 (instrument_builtin_call): Likewise.
21583 (instrument_strlen_call): Likewise.
21584 (asan_protect_global): Optionally disable global variables protection.
21585 * doc/invoke.texi: Added doc for new options.
21586 * params.def: Added new options.
21587 * params.h: Likewise.
21588
21589 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21590
21591 PR rtl-optimization/59724
21592 * ifcvt.c (cond_exec_process_if_block): Don't call
21593 flow_find_head_matching_sequence with 0 longest_match.
21594 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21595 non-active insns if !stop_after.
21596 (try_head_merge_bb): Revert 2014-01-07 changes.
21597
21598 2014-01-08 Jeff Law <law@redhat.com>
21599
21600 * ree.c (get_sub_rtx): New function, extracted from...
21601 (merge_def_and_ext): Here.
21602 (combine_reaching_defs): Use get_sub_rtx.
21603
21604 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21605
21606 * cgraph.h (varpool_variable_node): Do not choke on null node.
21607
21608 2014-01-08 Catherine Moore <clm@codesourcery.com>
21609
21610 * config/mips/mips.md (simple_return): Attempt to use JRC
21611 for microMIPS.
21612 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21613
21614 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21615
21616 PR rtl-optimization/59137
21617 * reorg.c (steal_delay_list_from_target): Call update_block for
21618 elided insns.
21619 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21620
21621 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21622
21623 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21624 two duplicate entries.
21625
21626 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21627
21628 Revert:
21629 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21630
21631 * config/mips/mips.c (mips_truncated_op_cost): New function.
21632 (mips_rtx_costs): Adjust test for BADDU.
21633 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21634
21635 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21636
21637 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21638 (*baddu_si): ...this new pattern.
21639
21640 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21641
21642 PR ipa/59722
21643 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21644
21645 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21646
21647 PR middle-end/57748
21648 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21649 inner_reference_p.
21650 (expand_expr, expand_normal): Adjust.
21651 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21652 inner_reference_p. Use inner_reference_p to expand inner references.
21653 (store_expr): Adjust.
21654 * cfgexpand.c (expand_call_stmt): Adjust.
21655
21656 2014-01-08 Rong Xu <xur@google.com>
21657
21658 * gcov-io.c (gcov_var): Move from gcov-io.h.
21659 (gcov_position): Ditto.
21660 (gcov_is_error): Ditto.
21661 (gcov_rewrite): Ditto.
21662 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21663 only part to libgcc/libgcov.h.
21664
21665 2014-01-08 Marek Polacek <polacek@redhat.com>
21666
21667 PR middle-end/59669
21668 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21669
21670 2014-01-08 Marek Polacek <polacek@redhat.com>
21671
21672 PR sanitizer/59667
21673 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21674
21675 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21676
21677 PR rtl-optimization/59649
21678 * stor-layout.c (get_mode_bounds): For BImode return
21679 0 and STORE_FLAG_VALUE.
21680
21681 2014-01-08 Richard Biener <rguenther@suse.de>
21682
21683 PR middle-end/59630
21684 * gimple.h (is_gimple_builtin_call): Remove.
21685 (gimple_builtin_call_types_compatible_p): New.
21686 (gimple_call_builtin_p): New overload.
21687 * gimple.c (is_gimple_builtin_call): Remove.
21688 (validate_call): Rename to ...
21689 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21690 check return types.
21691 (validate_type): New static function.
21692 (gimple_call_builtin_p): New overload and adjust.
21693 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21694 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21695 (gimple_fold_stmt_to_constant_1): Likewise.
21696 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21697
21698 2014-01-08 Richard Biener <rguenther@suse.de>
21699
21700 PR middle-end/59471
21701 * gimplify.c (gimplify_expr): Gimplify register-register type
21702 VIEW_CONVERT_EXPRs to separate stmts.
21703
21704 2014-01-07 Jeff Law <law@redhat.com>
21705
21706 PR middle-end/53623
21707 * ree.c (combine_set_extension): Handle case where source
21708 and destination registers in an extension insn are different.
21709 (combine_reaching_defs): Allow source and destination registers
21710 in extension to be different under limited circumstances.
21711 (add_removable_extension): Remove restriction that the
21712 source and destination registers in the extension are the same.
21713 (find_and_remove_re): Emit a copy from the extension's
21714 destination to its source after the defining insn if
21715 the source and destination registers are different.
21716
21717 PR middle-end/59285
21718 * ifcvt.c (merge_if_block): If we are merging a block with more than
21719 one successor with a block with no successors, remove any BARRIER
21720 after the second block.
21721
21722 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21723
21724 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21725
21726 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21727
21728 PR target/59652
21729 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21730 for 14-bit register offsets when INT14_OK_STRICT is false.
21731
21732 2014-01-07 Roland Stigge <stigge@antcom.de>
21733 Michael Meissner <meissner@linux.vnet.ibm.com>
21734
21735 PR 57386/target
21736 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21737 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21738
21739 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21740
21741 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21742 -mcpu.
21743
21744 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21745
21746 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21747 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21748 rtx is const0_rtx or not.
21749
21750 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21751
21752 PR target/58115
21753 * target-globals.c (save_target_globals): Remove this_fn_optab
21754 handling.
21755 * toplev.c: Include optabs.h.
21756 (target_reinit): Temporarily restore the global options if another
21757 set of options are in force.
21758
21759 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21760
21761 PR rtl-optimization/58668
21762 * cfgcleanup.c (flow_find_cross_jump): Don't count
21763 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21764 to determine what is counted.
21765 (flow_find_head_matching_sequence): Use active_insn_p to determine
21766 what is counted.
21767 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21768 counting change.
21769 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21770 determine what is counted.
21771
21772 PR tree-optimization/59643
21773 * tree-predcom.c (split_data_refs_to_components): If one dr is
21774 read and one write, determine_offset fails and the write isn't
21775 in the bad component, just put the read into the bad component.
21776
21777 2014-01-07 Mike Stump <mikestump@comcast.net>
21778 Jakub Jelinek <jakub@redhat.com>
21779
21780 PR pch/59436
21781 * tree-core.h (struct tree_optimization_option): Change optabs
21782 type from unsigned char * to void *.
21783 * optabs.c (init_tree_optimization_optabs): Adjust
21784 TREE_OPTIMIZATION_OPTABS initialization.
21785
21786 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21787
21788 PR target/59644
21789 * config/i386/i386.h (struct machine_function): Add
21790 no_drap_save_restore field.
21791 * config/i386/i386.c (ix86_save_reg): Use
21792 !cfun->machine->no_drap_save_restore instead of
21793 crtl->stack_realign_needed.
21794 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21795 this function clears frame_pointer_needed. Set
21796 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21797 and DRAP reg is needed.
21798
21799 2014-01-06 Marek Polacek <polacek@redhat.com>
21800
21801 PR c/57773
21802 * doc/implement-c.texi: Mention that other integer types are
21803 permitted as bit-field types in strictly conforming mode.
21804
21805 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21806
21807 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21808 is newly allocated.
21809
21810 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21811
21812 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21813
21814 2014-01-06 Martin Jambor <mjambor@suse.cz>
21815
21816 PR ipa/59008
21817 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21818 to int.
21819 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21820
21821 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21822
21823 PR debug/59350
21824 PR debug/59510
21825 * var-tracking.c (add_stores): Preserve the value of the source even if
21826 we don't record the store.
21827
21828 2014-01-06 Terry Guo <terry.guo@arm.com>
21829
21830 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21831
21832 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21833
21834 PR bootstrap/59541
21835 * config/darwin.c (darwin_function_section): Adjust return values to
21836 correspond to optimisation changes made in r206070.
21837
21838 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21839
21840 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21841 from prefetch_block tune setting.
21842 (nocona_cost): Correct size of prefetch block to 64.
21843
21844 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21845
21846 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21847 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21848 used to save the static chain register in the computation of the offset
21849 from which the FP registers need to be restored.
21850
21851 2014-01-04 Jakub Jelinek <jakub@redhat.com>
21852
21853 PR tree-optimization/59519
21854 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
21855 ICE if get_current_def (current_new_name) is already non-NULL, as long
21856 as it is a phi result of some other phi in *new_exit_bb that has
21857 the same argument.
21858
21859 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
21860 or vmovdqu* for misaligned_operand.
21861 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
21862 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
21863 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
21864 aligned_mem for AVX512F masked aligned load and store builtins and for
21865 non-temporal moves.
21866
21867 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
21868
21869 PR tree-optimization/59651
21870 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21871 Address range for negative step should be added by TYPE_SIZE_UNIT.
21872
21873 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
21874
21875 * config/m68k/m68k.c (handle_move_double): Handle pushes with
21876 overlapping registers also for registers other than the stack pointer.
21877
21878 2014-01-03 Marek Polacek <polacek@redhat.com>
21879
21880 PR other/59661
21881 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
21882 __builtin_FILE.
21883
21884 2014-01-03 Jakub Jelinek <jakub@redhat.com>
21885
21886 PR target/59625
21887 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
21888 asm goto as jump.
21889
21890 * config/i386/i386.md (MODE_SIZE): New mode attribute.
21891 (push splitter): Use <P:MODE_SIZE> instead of
21892 GET_MODE_SIZE (<P:MODE>mode).
21893 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
21894 (mov -1, reg peephole2): Likewise.
21895 * config/i386/sse.md (*mov<mode>_internal,
21896 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
21897 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
21898 *<code><mode>3, *andnot<mode>3<mask_name>,
21899 <mask_codefor><code><mode>3<mask_name>): Likewise.
21900 * config/i386/subst.md (mask_mode512bit_condition,
21901 sd_mask_mode512bit_condition): Likewise.
21902
21903 2014-01-02 Xinliang David Li <davidxl@google.com>
21904
21905 PR tree-optimization/59303
21906 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
21907 (dump_predicates): Better output format.
21908 (pred_equal_p): New function.
21909 (is_neq_relop_p): Ditto.
21910 (is_neq_zero_form_p): Ditto.
21911 (pred_expr_equal_p): Ditto.
21912 (pred_neg_p): Ditto.
21913 (simplify_pred): Ditto.
21914 (simplify_preds_2): Ditto.
21915 (simplify_preds_3): Ditto.
21916 (simplify_preds_4): Ditto.
21917 (simplify_preds): Ditto.
21918 (push_pred): Ditto.
21919 (push_to_worklist): Ditto.
21920 (get_pred_info_from_cmp): Ditto.
21921 (is_degenerated_phi): Ditto.
21922 (normalize_one_pred_1): Ditto.
21923 (normalize_one_pred): Ditto.
21924 (normalize_one_pred_chain): Ditto.
21925 (normalize_preds): Ditto.
21926 (normalize_cond_1): Remove function.
21927 (normalize_cond): Ditto.
21928 (is_gcond_subset_of): Ditto.
21929 (is_subset_of_any): Ditto.
21930 (is_or_set_subset_of): Ditto.
21931 (is_and_set_subset_of): Ditto.
21932 (is_norm_cond_subset_of): Ditto.
21933 (pred_chain_length_cmp): Ditto.
21934 (convert_control_dep_chain_into_preds): Type change.
21935 (find_predicates): Ditto.
21936 (find_def_preds): Ditto.
21937 (destroy_predicates_vecs): Ditto.
21938 (find_matching_predicates_in_rest_chains): Ditto.
21939 (use_pred_not_overlap_with_undef_path_pred): Ditto.
21940 (is_pred_expr_subset): Ditto.
21941 (is_pred_chain_subset_of): Ditto.
21942 (is_included_in): Ditto.
21943 (is_superset_of): Ditto.
21944
21945 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21946
21947 Update copyright years.
21948
21949 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21950
21951 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
21952 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
21953 config/arc/arc.md, config/arc/arc.opt,
21954 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
21955 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
21956 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
21957 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
21958 config/linux-protos.h, config/linux.c, config/winnt-c.c,
21959 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
21960 vtable-verify.c, vtable-verify.h: Use the standard form for the
21961 copyright notice.
21962
21963 2014-01-02 Tobias Burnus <burnus@net-b.de>
21964
21965 * gcc.c (process_command): Update copyright notice dates.
21966 * gcov-dump.c: Ditto.
21967 * gcov.c: Ditto.
21968 * doc/cpp.texi: Bump @copying's copyright year.
21969 * doc/cppinternals.texi: Ditto.
21970 * doc/gcc.texi: Ditto.
21971 * doc/gccint.texi: Ditto.
21972 * doc/gcov.texi: Ditto.
21973 * doc/install.texi: Ditto.
21974 * doc/invoke.texi: Ditto.
21975
21976 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21977
21978 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
21979
21980 2014-01-01 Jakub Jelinek <jakub@redhat.com>
21981
21982 * config/i386/sse.md (*mov<mode>_internal): Guard
21983 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
21984
21985 PR rtl-optimization/59647
21986 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
21987 new_rtx into UNSIGNED_FLOAT rtxes.
21988 \f
21989 Copyright (C) 2014 Free Software Foundation, Inc.
21990
21991 Copying and distribution of this file, with or without modification,
21992 are permitted in any medium without royalty provided the copyright
21993 notice and this notice are preserved.