1 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5 (duplicate_insn_chain): Likewise.
6 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
7 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8 checked cast for now (until we can strengthen the params in the
10 (duplicate_insn_chain): Likewise.
12 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14 * rtl.h (next_cc0_user): Strengthen return type from rtx to
16 (prev_cc0_setter): Likewise.
18 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
19 rtx_insn *, adding checked casts for now as necessary.
20 (prev_cc0_setter): Likewise.
22 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24 * expr.h (emit_move_insn): Strengthen return type from rtx to
26 (emit_move_insn_1): Likewise.
27 (emit_move_complex_push): Likewise.
28 (emit_move_complex_parts): Likewise.
30 * expr.c (emit_move_via_integer): Strengthen return type from rtx
31 to rtx_insn *. Replace use of NULL_RTX with NULL when working
33 (emit_move_complex_push): Strengthen return type from rtx to
35 (emit_move_complex): Likewise, also for local "ret".
36 (emit_move_ccmode): Likewise.
37 (emit_move_multi_word): Likewise for return type and locals
39 (emit_move_insn_1): Likewise for return type and locals "result",
41 (emit_move_insn): Likewise for return type and local "last_insn".
42 (compress_float_constant): Likewise.
44 2014-08-19 David Malcolm <dmalcolm@redhat.com>
46 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
47 from rtx to rtx_insn *.
49 * rtl.h (emit_insn_before): Likewise.
50 (emit_insn_before_noloc): Likewise.
51 (emit_insn_before_setloc): Likewise.
52 (emit_jump_insn_before): Likewise.
53 (emit_jump_insn_before_noloc): Likewise.
54 (emit_jump_insn_before_setloc): Likewise.
55 (emit_call_insn_before): Likewise.
56 (emit_call_insn_before_noloc): Likewise.
57 (emit_call_insn_before_setloc): Likewise.
58 (emit_debug_insn_before): Likewise.
59 (emit_debug_insn_before_noloc): Likewise.
60 (emit_debug_insn_before_setloc): Likewise.
61 (emit_label_before): Likewise.
62 (emit_insn_after): Likewise.
63 (emit_insn_after_noloc): Likewise.
64 (emit_insn_after_setloc): Likewise.
65 (emit_jump_insn_after): Likewise.
66 (emit_jump_insn_after_noloc): Likewise.
67 (emit_jump_insn_after_setloc): Likewise.
68 (emit_call_insn_after): Likewise.
69 (emit_call_insn_after_noloc): Likewise.
70 (emit_call_insn_after_setloc): Likewise.
71 (emit_debug_insn_after): Likewise.
72 (emit_debug_insn_after_noloc): Likewise.
73 (emit_debug_insn_after_setloc): Likewise.
74 (emit_label_after): Likewise.
75 (emit_insn): Likewise.
76 (emit_debug_insn): Likewise.
77 (emit_jump_insn): Likewise.
78 (emit_call_insn): Likewise.
79 (emit_label): Likewise.
80 (gen_clobber): Likewise.
81 (emit_clobber): Likewise.
86 (emit_barrier_before): Strengthen return type from rtx to
88 (emit_barrier_after): Likewise.
89 (emit_barrier): Likewise.
91 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
92 from rtx to rtx_insn *. Add checked casts for now when converting
93 "last" from rtx to rtx_insn *.
94 (emit_insn_before_noloc): Likewise for return type.
95 (emit_jump_insn_before_noloc): Likewise.
96 (emit_call_insn_before_noloc): Likewise.
97 (emit_debug_insn_before_noloc): Likewise.
98 (emit_barrier_before): Strengthen return type and local "insn"
99 from rtx to rtx_barrier *.
100 (emit_label_before): Strengthen return type from rtx to
101 rtx_insn *. Add checked cast for now when returning param
102 (emit_pattern_after_noloc): Strengthen return type from rtx to
103 rtx_insn *. Add checked casts for now when converting "last" from
105 (emit_insn_after_noloc): Strengthen return type from rtx to
107 (emit_jump_insn_after_noloc): Likewise.
108 (emit_call_insn_after_noloc): Likewise.
109 (emit_debug_insn_after_noloc): Likewise.
110 (emit_barrier_after): Strengthen return type from rtx to
112 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
113 Add checked cast for now when converting "label" from rtx to
115 (emit_pattern_after_setloc): Strengthen return type from rtx to
116 rtx_insn *. Add checked casts for now when converting "last" from
118 (emit_pattern_after): Strengthen return type from rtx to
120 (emit_insn_after_setloc): Likewise.
121 (emit_insn_after): Likewise.
122 (emit_jump_insn_after_setloc): Likewise.
123 (emit_jump_insn_after): Likewise.
124 (emit_call_insn_after_setloc): Likewise.
125 (emit_call_insn_after): Likewise.
126 (emit_debug_insn_after_setloc): Likewise.
127 (emit_debug_insn_after): Likewise.
128 (emit_pattern_before_setloc): Likewise. Add checked casts for now
129 when converting "last" from rtx to rtx_insn *.
130 (emit_pattern_before): Strengthen return type from rtx to
132 (emit_insn_before_setloc): Likewise.
133 (emit_insn_before): Likewise.
134 (emit_jump_insn_before_setloc): Likewise.
135 (emit_jump_insn_before): Likewise.
136 (emit_call_insn_before_setloc): Likewise.
137 (emit_call_insn_before): Likewise.
138 (emit_debug_insn_before_setloc): Likewise.
139 (emit_debug_insn_before): Likewise.
140 (emit_insn): Strengthen return type and locals "last", "insn",
141 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
142 within cases where we know we have an insn.
143 (emit_debug_insn): Likewise.
144 (emit_jump_insn): Likewise.
145 (emit_call_insn): Strengthen return type and local "insn" from rtx
147 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
148 a checked cast to rtx_insn * for now on "label".
149 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
150 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
151 (emit_use): Likewise.
152 (gen_use): Likewise, also for local "seq".
153 (emit): Likewise for return type and local "insn".
154 (rtx_insn): Likewise for return type and local "new_rtx".
156 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
157 from rtx to rtx_barrier *.
159 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
160 changed return type from rtx to rtx_insn *, we must update
161 "emit_fn" type, and this in turn means updating...
162 (frame_insn): ...this. Strengthen return type from rtx to
163 rtx_insn *. Introduce a new local "insn" of the appropriate type.
165 2014-08-19 David Malcolm <dmalcolm@redhat.com>
167 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
168 rtx to rtx_jump_table_data *. Also for local.
169 * rtl.h (emit_jump_table_data): Likewise.
171 2014-08-19 David Malcolm <dmalcolm@redhat.com>
173 * basic-block.h (create_basic_block_structure): Strengthen third
174 param "bb_note" from rtx to rtx_note *.
175 * rtl.h (emit_note_before): Strengthen return type from rtx to
177 (emit_note_after): Likewise.
178 (emit_note): Likewise.
179 (emit_note_copy): Likewise. Also, strengthen param similarly.
180 * function.h (struct rtl_data): Strengthen field
181 "x_stack_check_probe_note" from rtx to rtx_note *.
183 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
184 from rtx to rtx_note *.
185 * cfgrtl.c (create_basic_block_structure): Strengthen third param
186 "bb_note" from rtx to rtx_note *.
187 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
188 when calling emit_note_copy.
189 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
191 (emit_note_after): Likewise.
192 (emit_note_before): Likewise.
193 (emit_note_copy): Likewise. Also, strengthen param similarly.
194 (emit_note): Likewise.
195 * except.c (emit_note_eh_region_end): Likewise for return type.
196 Strengthen local "next" from rtx to rtx_insn *.
197 (convert_to_eh_region_ranges): Strengthen local "note"
198 from rtx to rtx_note *.
199 * final.c (change_scope): Likewise.
200 (reemit_insn_block_notes): Likewise, for both locals named "note".
201 Also, strengthen local "insn" from rtx to rtx_insn *.
202 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
204 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
205 strengthen local "seq" from rtx to rtx_insn *.
206 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
208 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
210 (get_bb_note_from_pool): Strengthen return type from rtx to
212 (sel_create_basic_block): Strengthen local "new_bb_note" from
213 insn_t to rtx_note *.
214 * var-tracking.c (emit_note_insn_var_location): Strengthen local
215 "note" from rtx to rtx_note *.
216 (emit_notes_in_bb): Likewise.
218 2014-08-19 David Malcolm <dmalcolm@redhat.com>
220 * function.h (struct rtl_data): Strengthen field
221 "x_parm_birth_insn" from rtx to rtx_insn *.
222 * function.c (struct assign_parm_data_all): Strengthen fields
223 "first_conversion_insn" and "last_conversion_insn" from rtx to
226 2014-08-19 David Malcolm <dmalcolm@redhat.com>
228 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
229 to rtx_insn *; also for local "var_end_seq".
230 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
231 (maybe_cleanup_end_of_block): Likewise for param "last" and local
233 (expand_gimple_cond): Likewise for locals "last2" and "last".
234 (mark_transaction_restart_calls): Likewise for local "insn".
235 (expand_gimple_stmt): Likewise for return type and locals "last"
237 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
238 (avoid_complex_debug_insns): Likewise for param "insn".
239 (expand_debug_locations): Likewise for locals "insn", "last",
240 "prev_insn" and "insn2".
241 (expand_gimple_basic_block): Likewise for local "last".
242 (construct_exit_block): Likewise for locals "head", "end",
244 (pass_expand::execute): Likewise for locals "var_seq",
245 "var_ret_seq", "next".
247 2014-08-19 David Malcolm <dmalcolm@redhat.com>
249 * asan.h (asan_emit_stack_protection): Strengthen return type from
251 * asan.c (asan_emit_stack_protection): Likewise. Add local
252 "insns" to hold the return value.
254 2014-08-19 David Malcolm <dmalcolm@redhat.com>
256 * basic-block.h (bb_note): Strengthen return type from rtx to
258 * sched-int.h (bb_note): Likewise.
259 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
261 2014-08-19 David Malcolm <dmalcolm@redhat.com>
263 * rtl.h (make_insn_raw): Strengthen return type from rtx to
266 * emit-rtl.c (make_insn_raw): Strengthen return type and local
267 "insn" from rtx to rtx_insn *.
268 (make_debug_insn_raw): Strengthen return type from rtx to
269 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
270 (make_jump_insn_raw): Strengthen return type from rtx to
271 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
272 (make_call_insn_raw): Strengthen return type from rtx to
273 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
274 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
275 callback from rtx to rtx_insn *; likewise for local "insn" and
276 "next", adding a checked cast to rtx_insn in the relevant cases of
277 the switch statement.
278 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
279 callback from rtx to rtx_insn *.
280 (emit_pattern_after_setloc): Likewise.
281 (emit_pattern_after): Likewise.
282 (emit_pattern_before_setloc): Likewise.
283 (emit_pattern_before): Likewise.
285 2014-08-19 David Malcolm <dmalcolm@redhat.com>
287 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
289 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
290 accepting an rtx_insn *.
291 (last_call_insn): Strengthen return type from rtx to
294 2014-08-19 David Malcolm <dmalcolm@redhat.com>
296 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
297 "insns" from rtx to rtx_insn *.
298 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
299 locals "insn" and "prev".
301 2014-08-19 David Malcolm <dmalcolm@redhat.com>
303 * rtl.h (tablejump_p): Strengthen third param from rtx * to
304 rtx_jump_table_data **.
306 * cfgbuild.c (make_edges): Introduce local "table", using it in
307 place of "tmp" for jump table data.
308 (find_bb_boundaries): Strengthen local "table" from rtx to
309 rtx_jump_table_data *.
310 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
311 (outgoing_edges_match): Likewise for locals "table1" and "table2".
312 (try_crossjump_to_edge): Likewise.
313 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
315 (patch_jump_insn): Introduce local "table", using it in place of
316 "tmp" for jump table data.
317 (force_nonfallthru_and_redirect): Introduce local "table", so that
318 call to tablejump_p can receive an rtx_jump_table_data **. Update
319 logic around the call to overwrite "note" appropriately if
320 tablejump_p returns non-zero.
321 (get_last_bb_insn): Introduce local "table", using it in place of
322 "tmp" for jump table data.
323 * dwarf2cfi.c (create_trace_edges): Likewise.
325 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
326 from rtx to rtx_jump_table_data *.
327 (create_fix_barrier): Strengthen local "tmp" from rtx to
328 rtx_jump_table_data *.
329 (arm_reorg): Likewise for local "table".
331 * config/s390/s390.c (s390_chunkify_start): Likewise.
333 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
335 * jump.c (delete_related_insns): Strengthen local "lab_next" from
336 rtx to rtx_jump_table_data *.
338 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
339 rtx_jump_table_data **. Add a checked cast when writing through
340 the pointer: we know there that local "table" is non-NULL and that
341 JUMP_TABLE_DATA_P (table) holds.
342 (label_is_jump_target_p): Introduce local "table", using it in
343 place of "tmp" for jump table data.
345 2014-08-19 Marek Polacek <polacek@redhat.com>
348 * doc/invoke.texi: Document -Wbool-compare.
350 2014-08-19 David Malcolm <dmalcolm@redhat.com>
352 * rtl.h (entry_of_function): Strengthen return type from rtx to
354 * cfgrtl.c (entry_of_function): Likewise.
356 2014-08-19 David Malcolm <dmalcolm@redhat.com>
358 * emit-rtl.h (get_insns): Strengthen return type from rtx to
359 rtx_insn *, adding a checked cast for now.
360 (get_last_insn): Likewise.
362 2014-08-19 David Malcolm <dmalcolm@redhat.com>
364 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
367 * emit-rtl.c (gen_label_rtx): Likewise.
369 2014-08-19 David Malcolm <dmalcolm@redhat.com>
371 * rtl.h (previous_insn): Strengthen return type from rtx to
373 (next_insn): Likewise.
374 (prev_nonnote_insn): Likewise.
375 (prev_nonnote_insn_bb): Likewise.
376 (next_nonnote_insn): Likewise.
377 (next_nonnote_insn_bb): Likewise.
378 (prev_nondebug_insn): Likewise.
379 (next_nondebug_insn): Likewise.
380 (prev_nonnote_nondebug_insn): Likewise.
381 (next_nonnote_nondebug_insn): Likewise.
382 (prev_real_insn): Likewise.
383 (next_real_insn): Likewise.
384 (prev_active_insn): Likewise.
385 (next_active_insn): Likewise.
387 * emit-rtl.c (next_insn): Strengthen return type from rtx to
388 rtx_insn *, adding a checked cast.
389 (previous_insn): Likewise.
390 (next_nonnote_insn): Likewise.
391 (next_nonnote_insn_bb): Likewise.
392 (prev_nonnote_insn): Likewise.
393 (prev_nonnote_insn_bb): Likewise.
394 (next_nondebug_insn): Likewise.
395 (prev_nondebug_insn): Likewise.
396 (next_nonnote_nondebug_insn): Likewise.
397 (prev_nonnote_nondebug_insn): Likewise.
398 (next_real_insn): Likewise.
399 (prev_real_insn): Likewise.
400 (next_active_insn): Likewise.
401 (prev_active_insn): Likewise.
403 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
404 param "stepfunc" so that it returns an rtx_insn * rather than an
405 rtx, to track the change to prev_nonnote_insn_bb, which is the
406 only function this is called with.
407 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
409 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
411 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
414 2014-08-19 David Malcolm <dmalcolm@redhat.com>
416 * coretypes.h (class rtx_debug_insn): Add forward declaration.
417 (class rtx_nonjump_insn): Likewise.
418 (class rtx_jump_insn): Likewise.
419 (class rtx_call_insn): Likewise.
420 (class rtx_jump_table_data): Likewise.
421 (class rtx_barrier): Likewise.
422 (class rtx_code_label): Likewise.
423 (class rtx_note): Likewise.
425 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
426 adding the invariant DEBUG_INSN_P (X).
427 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
428 the invariant NONJUMP_INSN_P (X).
429 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
430 the invariant JUMP_P (X).
431 (class rtx_call_insn): New, a subclass of rtx_insn, adding
432 the invariant CALL_P (X).
433 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
434 invariant JUMP_TABLE_DATA_P (X).
435 (class rtx_barrier): New, a subclass of rtx_insn, adding the
436 invariant BARRIER_P (X).
437 (class rtx_code_label): New, a subclass of rtx_insn, adding
438 the invariant LABEL_P (X).
439 (class rtx_note): New, a subclass of rtx_insn, adding
440 the invariant NOTE_P(X).
441 (is_a_helper <rtx_debug_insn *>::test): New.
442 (is_a_helper <rtx_nonjump_insn *>::test): New.
443 (is_a_helper <rtx_jump_insn *>::test): New.
444 (is_a_helper <rtx_call_insn *>::test): New.
445 (is_a_helper <rtx_jump_table_data *>::test): New functions,
446 overloaded for both rtx and rtx_insn *.
447 (is_a_helper <rtx_barrier *>::test): New.
448 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
449 for both rtx and rtx_insn *.
450 (is_a_helper <rtx_note *>::test): New.
452 2014-08-19 Marek Polacek <polacek@redhat.com>
454 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
455 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
456 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
457 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
459 2014-08-19 David Malcolm <dmalcolm@redhat.com>
461 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
462 rtx_insn *. To help with transition, for now, convert from an
463 access macro into a pair of functions: BND_TO, returning an
465 (SET_BND_TO): New function, for use where BND_TO is used as an
468 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
470 (BND_TO): New function, adding a checked cast.
471 (SET_BND_TO): New function.
473 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
475 (compute_av_set_on_boundaries): Likewise.
477 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
479 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
480 destination if it is used in source.
481 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
482 (*popcount<mode>2_falsedep_1): Likewise.
484 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
487 * configure.ac: Set install_gold_as_default to no first.
488 * configure: Regenerated.
490 2014-08-19 David Malcolm <dmalcolm@redhat.com>
492 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
493 "note_list" field will eventually be an rtx_insn *. To help with
494 transition, for now, convert from an access macro into a pair of
495 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
496 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
499 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
500 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
502 * sel-sched-ir.c (init_bb): Likewise.
503 (sel_restore_notes): Likewise.
504 (move_bb_info): Likewise.
505 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
506 (SET_BB_NOTE_LIST): New function.
508 2014-08-19 David Malcolm <dmalcolm@redhat.com>
510 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
511 field will eventually be an rtx_insn *. To help with transition,
512 for now, convert from an access macro into a pair of functions:
513 VINSN_INSN_RTX, returning an rtx_insn *, and...
514 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
515 is used as an lvalue.
517 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
518 SET_VINSN_INSN_RTX where it's used as an lvalue.
519 (VINSN_INSN_RTX): New function.
520 (SET_VINSN_INSN_RTX): New function.
522 2014-08-19 David Malcolm <dmalcolm@redhat.com>
524 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
525 eventually be rtx_insn *, but to help with transition, for now,
526 convert from an access macro into a pair of functions: DEP_PRO
527 returning an rtx_insn * and...
528 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
529 lvalue, returning an rtx&.
530 (DEP_CON): Analogous changes to DEP_PRO above.
531 (SET_DEP_CON): Likewise.
533 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
534 an lvalue to SET_DEP_CON.
535 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
536 (sd_copy_back_deps): Likewise for DEP_CON.
537 (DEP_PRO): New function, adding a checked cast for now.
539 (SET_DEP_PRO): New function.
540 (SET_DEP_CON): Likewise.
542 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
544 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
545 (extra_options): Add i386/cygwin.opt.
546 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
547 (CPP_SPEC): Accept -pthread.
549 (GOMP_SELF_SPECS): Update comment.
550 * config/i386/cygwin.opt: New file for -pthread flag.
552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
554 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
555 * df.h (DF_REF_INSN): Convert from a macro to a function, so
556 that we can return an rtx_insn *.
558 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
560 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
561 when building executables, not DLLs. Add --large-address-aware
562 under the same conditions.
563 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
564 when building executables, not DLLs. Add --large-address-aware
565 under the same conditions when using -m32.
567 * config/i386/cygwin-stdint.h: Throughout, make type
568 definitions dependent on target architecture, not host.
570 2014-08-19 David Malcolm <dmalcolm@redhat.com>
572 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
573 the return type from rtx to rtx_insn *, which will enable various
574 conversions in followup patches. For now this is is done by a
576 (NEXT_INSN): Likewise.
577 (SET_PREV_INSN): Convert to an inline function. This is intended
578 for use as an lvalue, and so returns an rtx& to allow in-place
580 (SET_NEXT_INSN): Likewise.
582 2014-07-08 Mark Wielaard <mjw@redhat.com>
585 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
587 2014-08-19 Marek Polacek <polacek@redhat.com>
590 * cgraphunit.c (handle_alias_pairs): Fix condition.
592 2014-08-19 Richard Biener <rguenther@suse.de>
594 * gimple-fold.c (fold_gimple_assign): Properly build a
595 null-pointer constant when devirtualizing addresses.
597 2014-07-07 Mark Wielaard <mjw@redhat.com>
599 * dwarf2out.c (decl_quals): New function.
600 (modified_type_die): Take one cv_quals argument instead of two,
601 one for const and one for volatile.
602 (add_type_attribute): Likewise.
603 (generic_parameter_die): Call add_type_attribute with one modifier
605 (base_type_for_mode): Likewise.
606 (add_bounds_info): Likewise.
607 (add_subscript_info): Likewise.
608 (gen_array_type_die): Likewise.
609 (gen_descr_array_type_die): Likewise.
610 (gen_entry_point_die): Likewise.
611 (gen_enumeration_type_die): Likewise.
612 (gen_formal_parameter_die): Likewise.
613 (gen_subprogram_die): Likewise.
614 (gen_variable_die): Likewise.
615 (gen_const_die): Likewise.
616 (gen_field_die): Likewise.
617 (gen_pointer_type_die): Likewise.
618 (gen_reference_type_die): Likewise.
619 (gen_ptr_to_mbr_type_die): Likewise.
620 (gen_inheritance_die): Likewise.
621 (gen_subroutine_type_die): Likewise.
622 (gen_typedef_die): Likewise.
623 (force_type_die): Likewise.
625 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
627 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
629 * configure: Regenerate.
631 2014-08-19 Richard Biener <rguenther@suse.de>
633 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
634 DECL_EXTERNALs in BLOCKs as non-references.
635 * tree-streamer-out.c (streamer_write_chain): Likewise.
637 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
638 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
639 Anna Tikhonova <anna.tikhonova@intel.com>
640 Ilya Tocar <ilya.tocar@intel.com>
641 Andrey Turetskiy <andrey.turetskiy@intel.com>
642 Ilya Verbin <ilya.verbin@intel.com>
643 Kirill Yukhin <kirill.yukhin@intel.com>
644 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
647 (define_mode_iterator VI48_AVX512F): Delete.
648 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
649 (define_mode_iterator VI2_AVX512VL): Ditto.
650 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
653 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
655 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
656 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
657 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
658 with VI48_AVX512F_AVX512VL): New.
659 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
660 with VI2_AVX512VL): Ditto.
662 2014-08-19 Marek Polacek <polacek@redhat.com>
664 * doc/invoke.texi: Document -Wc99-c11-compat.
666 2014-08-19 David Malcolm <dmalcolm@redhat.com>
668 * rtl.h (PREV_INSN): Split macro in two: the existing one,
670 (SET_PREV_INSN): New macro, for use as an lvalue.
671 (NEXT_INSN, SET_NEXT_INSN): Likewise.
673 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
674 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
675 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
676 (fixup_abnormal_edges): Likewise.
677 (unlink_insn_chain): Likewise.
678 (fixup_reorder_chain): Likewise.
679 (cfg_layout_delete_block): Likewise.
680 (cfg_layout_merge_blocks): Likewise.
681 * combine.c (update_cfg_for_uncondjump): Likewise.
682 * emit-rtl.c (link_insn_into_chain): Likewise.
683 (remove_insn): Likewise.
684 (delete_insns_since): Likewise.
685 (reorder_insns_nobb): Likewise.
686 (emit_insn_after_1): Likewise.
687 * final.c (rest_of_clean_state): Likewise.
688 (final_scan_insn): Likewise.
689 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
690 * haifa-sched.c (concat_note_lists): Likewise.
691 (remove_notes): Likewise.
692 (restore_other_notes): Likewise.
693 (move_insn): Likewise.
694 (unlink_bb_notes): Likewise.
695 (restore_bb_notes): Likewise.
696 * jump.c (delete_for_peephole): Likewise.
697 * optabs.c (emit_libcall_block_1): Likewise.
698 * reorg.c (emit_delay_sequence): Likewise.
699 (fill_simple_delay_slots): Likewise.
700 * sel-sched-ir.c (sel_move_insn): Likewise.
701 (sel_remove_insn): Likewise.
702 (get_bb_note_from_pool): Likewise.
703 * sel-sched.c (move_nop_to_previous_block): Likewise.
705 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
706 * config/c6x/c6x.c (gen_one_bundle): Likewise.
707 (c6x_gen_bundles): Likewise.
708 (hwloop_optimize): Likewise.
709 * config/frv/frv.c (frv_function_prologue): Likewise.
710 (frv_register_nop): Likewise.
711 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
712 (ia64_reorg): Likewise.
713 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
714 (mep_make_bundle): Likewise.
715 (mep_bundle_insns): Likewise.
716 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
717 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
718 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
720 2014-08-19 David Malcolm <dmalcolm@redhat.com>
722 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
723 return type from rtx to rtx_insn *.
725 (BB_HEADER): Likewise.
726 (BB_FOOTER): Likewise.
727 (SET_BB_HEAD): Convert to a function.
728 (SET_BB_END): Likewise.
729 (SET_BB_HEADER): Likewise.
730 (SET_BB_FOOTER): Likewise.
732 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
733 Strengthen the return type from rtx to rtx_insn *. For now, this
734 is done by adding a checked cast, but this will eventually
735 become a field lookup.
737 (BB_HEADER): Likewise.
738 (BB_FOOTER): Likewise.
739 (SET_BB_HEAD): New function, from macro of same name. This is
740 intended for use as an lvalue, and so returns an rtx& to allow
741 in-place modification.
742 (SET_BB_END): Likewise.
743 (SET_BB_HEADER): Likewise.
744 (SET_BB_FOOTER): Likewise.
746 2014-08-18 David Malcolm <dmalcolm@redhat.com>
748 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
750 (SET_BB_HEAD): New macro, for use as a lvalue.
751 (BB_END, SET_BB_END): Likewise.
752 (BB_HEADER, SET_BB_HEADER): Likewise.
753 (BB_FOOTER, SET_BB_FOOTER): Likewise.
755 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
756 of BB_* macros into SET_BB_* macros.
757 (fix_crossing_unconditional_branches): Likewise.
758 * caller-save.c (save_call_clobbered_regs): Likewise.
759 (insert_one_insn): Likewise.
760 * cfgbuild.c (find_bb_boundaries): Likewise.
761 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
762 (outgoing_edges_match): Likewise.
763 (try_optimize_cfg): Likewise.
764 * cfgexpand.c (expand_gimple_cond): Likewise.
765 (expand_gimple_tailcall): Likewise.
766 (expand_gimple_basic_block): Likewise.
767 (construct_exit_block): Likewise.
768 * cfgrtl.c (delete_insn): Likewise.
769 (create_basic_block_structure): Likewise.
770 (rtl_delete_block): Likewise.
771 (rtl_split_block): Likewise.
772 (emit_nop_for_unique_locus_between): Likewise.
773 (rtl_merge_blocks): Likewise.
774 (block_label): Likewise.
775 (try_redirect_by_replacing_jump): Likewise.
776 (emit_barrier_after_bb): Likewise.
777 (fixup_abnormal_edges): Likewise.
778 (record_effective_endpoints): Likewise.
779 (relink_block_chain): Likewise.
780 (fixup_reorder_chain): Likewise.
781 (fixup_fallthru_exit_predecessor): Likewise.
782 (cfg_layout_duplicate_bb): Likewise.
783 (cfg_layout_split_block): Likewise.
784 (cfg_layout_delete_block): Likewise.
785 (cfg_layout_merge_blocks): Likewise.
786 * combine.c (update_cfg_for_uncondjump): Likewise.
787 * emit-rtl.c (add_insn_after): Likewise.
788 (remove_insn): Likewise.
789 (reorder_insns): Likewise.
790 (emit_insn_after_1): Likewise.
791 * haifa-sched.c (get_ebb_head_tail): Likewise.
792 (restore_other_notes): Likewise.
793 (move_insn): Likewise.
794 (sched_extend_bb): Likewise.
795 (fix_jump_move): Likewise.
796 * ifcvt.c (noce_process_if_block): Likewise.
797 (dead_or_predicable): Likewise.
798 * ira.c (update_equiv_regs): Likewise.
799 * reg-stack.c (change_stack): Likewise.
800 * sel-sched-ir.c (sel_move_insn): Likewise.
801 * sel-sched.c (move_nop_to_previous_block): Likewise.
803 * config/c6x/c6x.c (hwloop_optimize): Likewise.
804 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
806 2014-08-18 David Malcolm <dmalcolm@redhat.com>
808 * rtl.h (for_each_rtx_in_insn): New function.
809 * rtlanal.c (for_each_rtx_in_insn): Likewise.
811 2014-08-18 David Malcolm <dmalcolm@redhat.com>
813 * coretypes.h (class rtx_insn): Add forward declaration.
815 * rtl.h: Include is-a.h.
816 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
817 workaround to ensure gengtype knows inheritance is occurring,
818 whilst continuing to use the pre-existing special-casing for
820 (class rtx_insn): New subclass of rtx_def, adding the
821 invariant that we're dealing with something we can sanely use
822 INSN_UID, NEXT_INSN, PREV_INSN on.
823 (is_a_helper <rtx_insn *>::test): New.
824 (is_a_helper <const rtx_insn *>::test): New.
826 2014-08-18 David Malcolm <dmalcolm@redhat.com>
828 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
830 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
832 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
835 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
837 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
838 to BUILT_IN_UNREACHABLE.
840 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
843 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
845 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
846 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
847 (ffs<mode>2): Do not expand with tzcnt for
848 TARGET_AVOID_FALSE_DEP_FOR_BMI.
849 (ffssi2_no_cmove): Ditto.
850 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
851 (ctz<mode>2): New expander.
852 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
853 (*ctz<mode>2_falsedep): New insn.
854 (*ctz<mode>2): Rename from ctz<mode>2.
855 (clz<mode>2_lzcnt): New expander.
856 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
857 (*clz<mode>2_lzcnt_falsedep): New insn.
858 (*clz<mode>2): Rename from ctz<mode>2.
859 (popcount<mode>2): New expander.
860 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
861 (*popcount<mode>2_falsedep): New insn.
862 (*popcount<mode>2): Rename from ctz<mode>2.
863 (*popcount<mode>2_cmp): Remove.
864 (*popcountsi2_cmp_zext): Ditto.
866 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
868 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
869 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
870 * config/microblaze/microblaze.h
871 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
873 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
876 * configure.ac: Set install_gold_as_default to no for
878 * configure: Regenerated.
880 2014-08-18 Roman Gareev <gareevroman@gmail.com>
882 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
883 * config.in: Add undef of HAVE_isl.
884 * configure: Regenerate.
885 * configure.ac: Add definition of HAVE_isl.
886 * graphite-blocking.c: Add checking of HAVE_isl.
887 * graphite-dependences.c: Likewise.
888 * graphite-interchange.c: Likewise.
889 * graphite-isl-ast-to-gimple.c: Likewise.
890 * graphite-optimize-isl.c: Likewise.
891 * graphite-poly.c: Likewise.
892 * graphite-scop-detection.c: Likewise.
893 * graphite-sese-to-poly.c: Likewise.
894 * graphite.c: Likewise.
895 * toplev.c: Replace the checking of HAVE_cloog with the checking
898 2014-08-18 Richard Biener <rguenther@suse.de>
900 PR tree-optimization/62090
901 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
902 (fold_builtin_3): Do not fold snprintf.
903 (fold_builtin_4): Likewise.
904 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
905 moved from builtins.c.
906 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
907 (gimple_fold_builtin): Do not fold sprintf here.
909 2014-08-18 Richard Biener <rguenther@suse.de>
911 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
913 (maybe_canonicalize_mem_ref_addr): ... this function.
914 (fold_stmt_1): Apply it here before all simplification.
916 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
919 * cgraph.h (cgraph_node::create_indirect_edge): Add
920 compute_indirect_info param.
921 * cgraph.c (cgraph_node::create_indirect_edge): Compute
922 indirect_info only when it is required.
923 * cgraphclones.c (cgraph_clone_edge): Do not recompute
924 indirect_info fore cloned indirect edge.
926 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
928 Anna Tikhonova <anna.tikhonova@intel.com>
929 Ilya Tocar <ilya.tocar@intel.com>
930 Andrey Turetskiy <andrey.turetskiy@intel.com>
931 Ilya Verbin <ilya.verbin@intel.com>
932 Kirill Yukhin <kirill.yukhin@intel.com>
933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
936 (define_mode_iterator VI8_AVX2_AVX512BW): New.
937 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
939 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
940 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
941 Anna Tikhonova <anna.tikhonova@intel.com>
942 Ilya Tocar <ilya.tocar@intel.com>
943 Andrey Turetskiy <andrey.turetskiy@intel.com>
944 Ilya Verbin <ilya.verbin@intel.com>
945 Kirill Yukhin <kirill.yukhin@intel.com>
946 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
949 (define_mode_iterator VF1_AVX512VL): New.
950 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
951 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
954 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
955 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
956 Anna Tikhonova <anna.tikhonova@intel.com>
957 Ilya Tocar <ilya.tocar@intel.com>
958 Andrey Turetskiy <andrey.turetskiy@intel.com>
959 Ilya Verbin <ilya.verbin@intel.com>
960 Kirill Yukhin <kirill.yukhin@intel.com>
961 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
963 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
964 * config/i386/i386.md
965 (define_code_iterator any_float): New.
966 (define_code_attr floatsuffix): New.
968 (define_mode_iterator VF1_128_256VL): New.
969 (define_mode_iterator VF2_512_256VL): New.
970 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
972 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
973 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
975 (define_mode_attr qq2pssuff): New.
976 (define_mode_attr sselongvecmode): New.
977 (define_mode_attr sselongvecmodelower): New.
978 (define_mode_attr sseintvecmode3): New.
979 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
981 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
982 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
983 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
984 (define_insn "ufloatv2siv2df2<mask_name>"): New.
986 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
988 Anna Tikhonova <anna.tikhonova@intel.com>
989 Ilya Tocar <ilya.tocar@intel.com>
990 Andrey Turetskiy <andrey.turetskiy@intel.com>
991 Ilya Verbin <ilya.verbin@intel.com>
992 Kirill Yukhin <kirill.yukhin@intel.com>
993 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
996 (define_mode_iterator VF2_AVX512VL): New.
997 (define_mode_attr sseintvecmode2): New.
998 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
999 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1000 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1002 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1004 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1006 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1009 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1010 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1011 Anna Tikhonova <anna.tikhonova@intel.com>
1012 Ilya Tocar <ilya.tocar@intel.com>
1013 Andrey Turetskiy <andrey.turetskiy@intel.com>
1014 Ilya Verbin <ilya.verbin@intel.com>
1015 Kirill Yukhin <kirill.yukhin@intel.com>
1016 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1018 * config/i386/i386.md
1019 (define_insn "*movoi_internal_avx"): Add evex version.
1020 (define_insn "*movti_internal"): Ditto.
1022 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1023 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1024 Anna Tikhonova <anna.tikhonova@intel.com>
1025 Ilya Tocar <ilya.tocar@intel.com>
1026 Andrey Turetskiy <andrey.turetskiy@intel.com>
1027 Ilya Verbin <ilya.verbin@intel.com>
1028 Kirill Yukhin <kirill.yukhin@intel.com>
1029 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1031 * config/i386/i386.md
1032 (define_attr "isa"): Add avx512dq, noavx512dq.
1033 (define_attr "enabled"): Ditto.
1034 * config/i386/sse.md
1035 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1037 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1038 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1039 Anna Tikhonova <anna.tikhonova@intel.com>
1040 Ilya Tocar <ilya.tocar@intel.com>
1041 Andrey Turetskiy <andrey.turetskiy@intel.com>
1042 Ilya Verbin <ilya.verbin@intel.com>
1043 Kirill Yukhin <kirill.yukhin@intel.com>
1044 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1046 * config/i386/i386.c
1047 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1048 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1049 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1050 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1051 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1052 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1053 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1054 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1055 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1056 * config/i386/sse.md
1057 (define_mode_iterator VMOVE): Allow V4TI mode.
1058 (define_mode_iterator V_AVX512VL): New.
1059 (define_mode_iterator V): New handling for AVX512VL.
1060 (define_insn "avx512f_load<mode>_mask"): Delete.
1061 (define_insn "<avx512>_load<mode>_mask"): New.
1062 (define_insn "avx512f_store<mode>_mask"): Delete.
1063 (define_insn "<avx512>_store<mode>_mask"): New.
1066 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1069 * asan.c (instrument_derefs): Fix bitfield check.
1071 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1073 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1074 * config/rs6000/htm.md (ttest): Remove clobber.
1075 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1076 (and_operand): Reformat.
1077 (and_2rld_operand): New predicate.
1078 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1080 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1081 parameter. Handle AND directly.
1082 (rs6000_split_logical_di): Remove last parameter.
1083 (rs6000_split_logical): Remove last parameter. Remove obsolete
1085 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1086 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1087 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1088 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1089 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1090 and 5 anonymous splitters): Delete.
1091 (and<mode>3): New expander.
1092 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1093 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1094 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1095 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1096 (floatdisf2_internal1): Remove clobbers.
1097 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1098 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1099 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1100 (and<mode>3 for BOOL_128): Remove clobber.
1101 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1102 rs6000_split_logical.
1103 (*bool<mode>3_internal for BOOL_128): Adjust call of
1104 rs6000_split_logical.
1105 (*boolc<mode>3_internal1 for BOOL_128,
1106 *boolc<mode>3_internal2 for BOOL_128,
1107 *boolcc<mode>3_internal1 for BOOL_128,
1108 *boolcc<mode>3_internal2 for BOOL_128,
1109 *eqv<mode>3_internal1 for BOOL_128,
1110 *eqv<mode>3_internal2 for BOOL_128,
1111 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1112 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1114 (*vec_reload_and_reg_<mptrsize>): Delete.
1116 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1118 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1119 and split, *boolccsi3_internal3 and split): Delete.
1120 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1121 *boolccdi3_internal3 and split): Delete.
1122 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1123 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1125 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1127 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1128 and split, *boolcsi3_internal3 and split): Delete.
1129 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1130 *boolcdi3_internal3 and split): Delete.
1131 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1133 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1135 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1136 <'u'>: Also support printing the low-order 16 bits.
1137 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1138 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1139 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1140 *booldi3_internal3 and split): Delete.
1141 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1142 *bool<mode>3_dot2): New.
1143 (two anonymous define_splits for non_logical_cint_operand): Merge.
1145 2014-08-17 Marek Polacek <polacek@redhat.com>
1146 Manuel López-Ibáñez <manu@gcc.gnu.org>
1149 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1150 (diagnostic_show_locus): Don't print caret diagnostic
1151 if a column is larger than the line_width.
1153 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1155 * common.opt: Make the ISL AST generator to be the main code generator
1158 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1160 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1162 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1165 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1167 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1168 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1169 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1171 * config/pa/pa.md (begin_brtab): Delete insn.
1172 (end_brtab): Likewise.
1174 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1176 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1178 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1180 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1181 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1182 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1183 (get_dynamic_type): Remove.
1184 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1185 (clear_speculation): Bring to ipa-deivrt.h
1186 (get_class_context): Rename to ...
1187 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1188 (contains_type_p): Update.
1189 (get_dynamic_type): Rename to ...
1190 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1191 (possible_polymorphic_call_targets): UPdate.
1192 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1193 * ipa-prop.c (ipa_analyze_call_uses): Update.
1195 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1197 * doc/invoke.texi (SH options): Document missing processor variant
1198 options. Remove references to Hitachi. Undocument deprecated mspace
1201 2014-08-15 Jason Merrill <jason@redhat.com>
1203 * tree.c (type_hash_canon): Uncomment assert.
1205 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1207 * input.h (in_system_header_at): Add comment.
1209 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1212 * diagnostic.c (build_message_string): Make it extern.
1213 * diagnostic.h (build_message_string): Make it extern.
1215 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1217 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1218 load/store from/to non-floating class pseudo.
1220 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1222 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1224 2014-08-15 Richard Biener <rguenther@suse.de>
1226 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1227 (get_constraint_for_ssa_var): Remove dead code.
1228 (get_constraint_for_1): Adjust.
1229 (find_what_var_points_to): Likewise.
1230 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1232 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1235 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1236 (_mm512_mask_cmpge_epu32_mask): Ditto.
1237 (_mm512_cmpge_epu32_mask): Ditto.
1238 (_mm512_mask_cmpge_epi64_mask): Ditto.
1239 (_mm512_cmpge_epi64_mask): Ditto.
1240 (_mm512_mask_cmpge_epu64_mask): Ditto.
1241 (_mm512_cmpge_epu64_mask): Ditto.
1242 (_mm512_mask_cmple_epi32_mask): Ditto.
1243 (_mm512_cmple_epi32_mask): Ditto.
1244 (_mm512_mask_cmple_epu32_mask): Ditto.
1245 (_mm512_cmple_epu32_mask): Ditto.
1246 (_mm512_mask_cmple_epi64_mask): Ditto.
1247 (_mm512_cmple_epi64_mask): Ditto.
1248 (_mm512_mask_cmple_epu64_mask): Ditto.
1249 (_mm512_cmple_epu64_mask): Ditto.
1250 (_mm512_mask_cmplt_epi32_mask): Ditto.
1251 (_mm512_cmplt_epi32_mask): Ditto.
1252 (_mm512_mask_cmplt_epu32_mask): Ditto.
1253 (_mm512_cmplt_epu32_mask): Ditto.
1254 (_mm512_mask_cmplt_epi64_mask): Ditto.
1255 (_mm512_cmplt_epi64_mask): Ditto.
1256 (_mm512_mask_cmplt_epu64_mask): Ditto.
1257 (_mm512_cmplt_epu64_mask): Ditto.
1258 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1259 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1260 (_mm512_cmpneq_epu32_mask): Ditto.
1261 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1262 (_mm512_cmpneq_epi64_mask): Ditto.
1263 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1264 (_mm512_cmpneq_epu64_mask): Ditto.
1265 (_mm512_castpd_ps): Ditto.
1266 (_mm512_castpd_si512): Ditto.
1267 (_mm512_castps_pd): Ditto.
1268 (_mm512_castps_si512): Ditto.
1269 (_mm512_castsi512_ps): Ditto.
1270 (_mm512_castsi512_pd): Ditto.
1271 (_mm512_castpd512_pd128): Ditto.
1272 (_mm512_castps512_ps128): Ditto.
1273 (_mm512_castsi512_si128): Ditto.
1274 (_mm512_castpd512_pd256): Ditto.
1275 (_mm512_castps512_ps256): Ditto.
1276 (_mm512_castsi512_si256): Ditto.
1277 (_mm512_castpd128_pd512): Ditto.
1278 (_mm512_castps128_ps512): Ditto.
1279 (_mm512_castsi128_si512): Ditto.
1280 (_mm512_castpd256_pd512): Ditto.
1281 (_mm512_castps256_ps512): Ditto.
1282 (_mm512_castsi256_si512): Ditto.
1283 (_mm512_cmpeq_epu32_mask): Ditto.
1284 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1285 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1286 (_mm512_cmpeq_epu64_mask): Ditto.
1287 (_mm512_cmpgt_epu32_mask): Ditto.
1288 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1289 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1290 (_mm512_cmpgt_epu64_mask): Ditto.
1291 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1292 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1293 * config/i386/i386.c (enum ix86_builtins): Add
1294 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1295 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1296 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1297 (bdesc_args): Add __builtin_ia32_si512_256si,
1298 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1299 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1300 __builtin_ia32_pd512_pd.
1301 (ix86_expand_args_builtin): Handle new FTYPEs.
1302 * config/i386/sse.md (castmode): Add 512-bit modes.
1303 (AVX512MODE2P): New.
1304 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1305 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1307 2014-08-15 Richard Biener <rguenther@suse.de>
1309 * fold-const.c (tree_swap_operands_p): Put all constants
1310 last, also strip sign-changing NOPs when considering further
1311 canonicalization. Canonicalize also when optimizing for size.
1313 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1315 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1316 one_match > zero_match case to just before simple_sequence.
1318 2014-08-15 Richard Biener <rguenther@suse.de>
1320 * data-streamer.h (streamer_string_index, string_for_index):
1322 * data-streamer-out.c (streamer_string_index): Make static.
1323 * data-streamer-in.c (string_for_index): Likewise.
1324 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1325 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1327 2014-08-15 Richard Biener <rguenther@suse.de>
1329 PR tree-optimization/62031
1330 * tree-data-ref.c (dr_analyze_indices): Do not set
1331 DR_UNCONSTRAINED_BASE.
1332 (dr_may_alias_p): All indirect accesses have to go the
1333 formerly DR_UNCONSTRAINED_BASE path.
1334 * tree-data-ref.h (struct indices): Remove
1335 unconstrained_base member.
1336 (DR_UNCONSTRAINED_BASE): Remove.
1338 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1341 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1342 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1343 in OMP_CLAUSE_MAP in some outer target region.
1345 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1347 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1348 name_expansion_cache.
1349 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1350 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1351 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1352 (difference_cannot_overflow_p): New parameter. Use affine
1353 expansion for equality check.
1354 (iv_elimination_compare_lt): Pass new argument.
1356 2014-08-14 DJ Delorie <dj@redhat.com>
1358 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1359 variables to the accumulator.
1361 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1362 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1363 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1366 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1367 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1368 (umulqihi3_virt): Likewise.
1369 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1370 (umulqihi3_real): Likewise.
1372 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1374 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1376 PR tree-optimization/62091
1377 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1378 function_entry_reached.
1379 (walk_aliased_vdefs): Clear it here.
1380 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1382 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1384 * ipa-utils.h (compare_virtual_tables): Declare.
1385 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1387 2014-08-14 Marek Polacek <polacek@redhat.com>
1390 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1391 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1393 2014-08-14 Tom de Vries <tom@codesourcery.com>
1395 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1397 2014-08-14 Tom de Vries <tom@codesourcery.com>
1399 PR rtl-optimization/62004
1400 PR rtl-optimization/62030
1401 * ifcvt.c (rtx_interchangeable_p): New function.
1402 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1403 * emit-rtl.h (mem_attrs_eq_p): Declare.
1405 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1407 * graphite-scop-detection.c:
1408 Add inclusion of cp-tree.h.
1409 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1410 in case they are pointers to object types
1412 2014-08-14 Richard Biener <rguenther@suse.de>
1414 * BASE-VER: Change to 5.0.0
1416 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1417 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1418 Anna Tikhonova <anna.tikhonova@intel.com>
1419 Ilya Tocar <ilya.tocar@intel.com>
1420 Andrey Turetskiy <andrey.turetskiy@intel.com>
1421 Ilya Verbin <ilya.verbin@intel.com>
1422 Kirill Yukhin <kirill.yukhin@intel.com>
1423 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1425 * config/i386/sse.md (define_mode_attr avx512): New.
1426 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1428 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1429 (define_mode_attr ssse3_avx2): Ditto.
1430 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1431 (define_mode_attr avx2_avx512bw): New.
1432 (define_mode_attr ssedoublemodelower): New.
1433 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1435 (define_mode_attr ssebytemode): Allow V8DI modes.
1436 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1437 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1438 (define_mode_attr ssePSmode2): New.
1439 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1441 (define_mode_attr dbpsadbwmode): New.
1442 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1443 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1444 (vi8_sse4_1_avx2_avx512): New.
1445 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1447 (define_mode_attr blendbits): Move before its immediate use.
1449 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1450 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1451 Anna Tikhonova <anna.tikhonova@intel.com>
1452 Ilya Tocar <ilya.tocar@intel.com>
1453 Andrey Turetskiy <andrey.turetskiy@intel.com>
1454 Ilya Verbin <ilya.verbin@intel.com>
1455 Kirill Yukhin <kirill.yukhin@intel.com>
1456 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1458 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1459 * config/i386/subst.md
1460 (define_mode_iterator SUBST_V): Update.
1461 (define_mode_iterator SUBST_A): Ditto.
1462 (define_subst_attr "mask_operand7"): New.
1463 (define_subst_attr "mask_operand10"): New.
1464 (define_subst_attr "mask_operand_arg34") : New.
1465 (define_subst_attr "mask_expand_op3"): New.
1466 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1467 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1468 (define_subst_attr "mask_avx512vl_condition"): New.
1469 (define_subst_attr "round_mask_operand4"): Ditto.
1470 (define_subst_attr "round_mask_scalar_op3"): Delete.
1471 (define_subst_attr "round_mask_op4"): New.
1472 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1474 (define_subst_attr "round_modev8sf_condition"): New.
1475 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1477 (define_subst_attr "round_saeonly_mask_operand4"): New.
1478 (define_subst_attr "round_saeonly_mask_op4"): New.
1479 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1480 V8DImode, V16SImode.
1481 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1482 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1483 (define_subst_attr "mask_expand4_args"): New.
1484 (define_subst "mask_expand4"): New.
1486 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1487 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1488 Anna Tikhonova <anna.tikhonova@intel.com>
1489 Ilya Tocar <ilya.tocar@intel.com>
1490 Andrey Turetskiy <andrey.turetskiy@intel.com>
1491 Ilya Verbin <ilya.verbin@intel.com>
1492 Kirill Yukhin <kirill.yukhin@intel.com>
1493 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1495 * config/i386/i386.md
1496 (define_attr "isa"): Add avx512bw,noavx512bw.
1497 (define_attr "enabled"): Ditto.
1498 (define_split): Add 32/64-bit mask logic.
1499 (define_insn "*k<logic>qi"): New.
1500 (define_insn "*k<logic>hi"): New.
1501 (define_insn "*anddi_1"): Add mask version.
1502 (define_insn "*andsi_1"): Ditto.
1503 (define_insn "*<code><mode>_1"): Ditto.
1504 (define_insn "*<code>hi_1"): Ditto.
1505 (define_insn "kxnor<mode>"): New.
1506 (define_insn "kunpcksi"): New.
1507 (define_insn "kunpckdi"): New.
1508 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1509 (define_insn "*one_cmplhi2_1"): Ditto.
1511 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1512 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1513 Anna Tikhonova <anna.tikhonova@intel.com>
1514 Ilya Tocar <ilya.tocar@intel.com>
1515 Andrey Turetskiy <andrey.turetskiy@intel.com>
1516 Ilya Verbin <ilya.verbin@intel.com>
1517 Kirill Yukhin <kirill.yukhin@intel.com>
1518 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1520 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1523 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1524 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1525 Anna Tikhonova <anna.tikhonova@intel.com>
1526 Ilya Tocar <ilya.tocar@intel.com>
1527 Andrey Turetskiy <andrey.turetskiy@intel.com>
1528 Ilya Verbin <ilya.verbin@intel.com>
1529 Kirill Yukhin <kirill.yukhin@intel.com>
1530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1532 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
1534 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1535 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1536 xmm/ymm16+ when availble.
1537 * config/i386/i386.h
1538 (HARD_REGNO_NREGS): Add mask regs.
1539 (VALID_AVX512F_REG_MODE): Ditto.
1540 (VALID_AVX512F_REG_MODE) : Define.
1541 (VALID_MASK_AVX512BW_MODE): Ditto.
1542 (reg_class) (MASK_REG_P(X)): Define.
1543 * config/i386/i386.md: Do not split long moves with mask register,
1544 use kmovb if avx512bw is availible.
1545 (movdi_internal): Handle mask registers.
1547 2014-08-14 Richard Biener <rguenther@suse.de>
1549 PR tree-optimization/62081
1550 * tree-ssa-loop.c (pass_fix_loops): New pass.
1551 (pass_tree_loop::gate): Do not fixup loops here.
1552 * tree-pass.h (make_pass_fix_loops): Declare.
1553 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1555 2014-08-14 Richard Biener <rguenther@suse.de>
1557 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1558 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1560 2014-08-14 Richard Biener <rguenther@suse.de>
1562 PR tree-optimization/62090
1563 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
1564 (fold_builtin_2): Do not fold sprintf.
1565 (fold_builtin_3): Likewise.
1566 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
1567 moved from builtins.c.
1568 (gimple_fold_builtin): Fold sprintf.
1570 2014-08-14 Richard Biener <rguenther@suse.de>
1572 PR rtl-optimization/62079
1573 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
1576 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1578 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
1579 current_function_decl.
1581 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1583 * cgraph.c (cgraph_node::function_symbol): Fix wrong
1584 cgraph_function_node to cgraph_node::function_symbol
1587 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
1589 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
1590 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
1592 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
1594 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
1597 2014-08-13 Roman Gareev <gareevroman@gmail.com>
1599 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
1602 2014-08-12 Jakub Jelinek <jakub@redhat.com>
1605 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
1606 any registers that are used in mem_insn.
1608 2014-08-12 Steve Ellcey <sellcey@mips.com>
1610 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
1612 2014-08-12 Steve Ellcey <sellcey@mips.com>
1614 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
1615 (MULTILIB_DIRNAMES): Ditto.
1616 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
1617 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
1618 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
1619 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
1620 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
1621 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
1623 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1626 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
1627 of __ARM_SIZEOF_WCHAR_T.
1629 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1632 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
1633 Remove unnecessary attributes.
1635 2014-08-12 Yury Gribov <y.gribov@samsung.com>
1637 * internal-fn.c (init_internal_fns): Fix off-by-one.
1639 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1641 Anna Tikhonova <anna.tikhonova@intel.com>
1642 Ilya Tocar <ilya.tocar@intel.com>
1643 Andrey Turetskiy <andrey.turetskiy@intel.com>
1644 Ilya Verbin <ilya.verbin@intel.com>
1645 Kirill Yukhin <kirill.yukhin@intel.com>
1646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1648 * config/i386/i386.c (standard_sse_constant_opcode): Use
1649 vpxord/vpternlog if avx512 is availible.
1651 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1654 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
1655 bitfields, that is when size doesn't match the size of type or the
1656 size of the constructor.
1658 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1660 * config/rs6000/constraints.md (wh constraint): New constraint,
1661 for FP registers if direct move is available.
1662 (wi constraint): New constraint, for VSX/FP registers that can
1663 handle 64-bit integers.
1664 (wj constraint): New constraint for VSX/FP registers that can
1665 handle 64-bit integers for direct moves.
1666 (wk constraint): New constraint for VSX/FP registers that can
1667 handle 64-bit doubles for direct moves.
1668 (wy constraint): Make documentation match implementation.
1670 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
1671 scalar_in_vmx_p field to simplify tests of whether SFmode or
1672 DFmode can go in the Altivec registers.
1673 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
1674 (rs6000_setup_reg_addr_masks): Likewise.
1675 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
1676 field, and wh/wi/wj/wk constraints.
1677 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
1678 the wh/wi/wj/wk constraints.
1679 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
1680 upper registers, prefer VSX registers unless the operation is a
1681 memory operation with REG+OFFSET addressing.
1683 * config/rs6000/vsx.md (VSr mode attribute): Add support for
1684 DImode. Change SFmode to use ww constraint instead of d to allow
1685 SF registers in the upper registers.
1688 (VSr5): Fix thinko in comment.
1689 (VSa): New mode attribute that is an alternative to wa, that
1690 returns the VSX register class that a mode can go in, but may not
1691 be the preferred register class.
1692 (VS_64dm): New mode attribute for appropriate register classes for
1693 referencing 64-bit elements of vectors for direct moves and normal
1695 (VS_64reg): Likewise.
1696 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
1697 register allocator to only registers the data type can handle.
1698 (vsx_le_perm_load_<mode>): Likewise.
1699 (vsx_le_perm_store_<mode>): Likewise.
1700 (vsx_xxpermdi2_le_<mode>): Likewise.
1701 (vsx_xxpermdi4_le_<mode>): Likewise.
1702 (vsx_lxvd2x2_le_<mode>): Likewise.
1703 (vsx_lxvd2x4_le_<mode>): Likewise.
1704 (vsx_stxvd2x2_le_<mode>): Likewise.
1705 (vsx_add<mode>3): Likewise.
1706 (vsx_sub<mode>3): Likewise.
1707 (vsx_mul<mode>3): Likewise.
1708 (vsx_div<mode>3): Likewise.
1709 (vsx_tdiv<mode>3_internal): Likewise.
1710 (vsx_fre<mode>2): Likewise.
1711 (vsx_neg<mode>2): Likewise.
1712 (vsx_abs<mode>2): Likewise.
1713 (vsx_nabs<mode>2): Likewise.
1714 (vsx_smax<mode>3): Likewise.
1715 (vsx_smin<mode>3): Likewise.
1716 (vsx_sqrt<mode>2): Likewise.
1717 (vsx_rsqrte<mode>2): Likewise.
1718 (vsx_tsqrt<mode>2_internal): Likewise.
1719 (vsx_fms<mode>4): Likewise.
1720 (vsx_nfma<mode>4): Likewise.
1721 (vsx_eq<mode>): Likewise.
1722 (vsx_gt<mode>): Likewise.
1723 (vsx_ge<mode>): Likewise.
1724 (vsx_eq<mode>_p): Likewise.
1725 (vsx_gt<mode>_p): Likewise.
1726 (vsx_ge<mode>_p): Likewise.
1727 (vsx_xxsel<mode>): Likewise.
1728 (vsx_xxsel<mode>_uns): Likewise.
1729 (vsx_copysign<mode>3): Likewise.
1730 (vsx_float<VSi><mode>2): Likewise.
1731 (vsx_floatuns<VSi><mode>2): Likewise.
1732 (vsx_fix_trunc<mode><VSi>2): Likewise.
1733 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
1734 (vsx_x<VSv>r<VSs>i): Likewise.
1735 (vsx_x<VSv>r<VSs>ic): Likewise.
1736 (vsx_btrunc<mode>2): Likewise.
1737 (vsx_b2trunc<mode>2): Likewise.
1738 (vsx_floor<mode>2): Likewise.
1739 (vsx_ceil<mode>2): Likewise.
1740 (vsx_<VS_spdp_insn>): Likewise.
1741 (vsx_xscvspdp): Likewise.
1742 (vsx_xvcvspuxds): Likewise.
1743 (vsx_float_fix_<mode>2): Likewise.
1744 (vsx_set_<mode>): Likewise.
1745 (vsx_extract_<mode>_internal1): Likewise.
1746 (vsx_extract_<mode>_internal2): Likewise.
1747 (vsx_extract_<mode>_load): Likewise.
1748 (vsx_extract_<mode>_store): Likewise.
1749 (vsx_splat_<mode>): Likewise.
1750 (vsx_xxspltw_<mode>): Likewise.
1751 (vsx_xxspltw_<mode>_direct): Likewise.
1752 (vsx_xxmrghw_<mode>): Likewise.
1753 (vsx_xxmrglw_<mode>): Likewise.
1754 (vsx_xxsldwi_<mode>): Likewise.
1755 (vsx_xscvdpspn): Tighten constraints to only use register classes
1757 (vsx_xscvspdpn): Likewise.
1758 (vsx_xscvdpspn_scalar): Likewise.
1760 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
1761 wj, and wk constraints.
1762 (GPR_REG_CLASS_P): New helper macro for register classes targeting
1763 general purpose registers.
1765 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
1767 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
1768 DImode instead of wm. Use wk constraint for direct move of DFmode
1770 (extendsidi2_lfiwax): Likewise.
1773 (movdi_internal64): Likewise.
1775 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
1776 wk constraints. Make the wy constraint documentation match them
1779 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
1781 Replacement of isl_int by isl_val
1782 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
1783 (compute_bounds_for_param): use isl_val instead of isl_int
1784 (compute_bounds_for_loop): likewise
1785 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
1786 (build_linearized_memory_access): use isl_val instead of isl_int
1787 (pdr_stride_in_loop): likewise
1788 * graphite-optimize-isl.c:
1789 (getPrevectorMap): use isl_val instead of isl_int
1791 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
1792 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
1793 (extern the_isl_ctx): declare
1794 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
1795 (extract_affine_gmp): likewise
1797 (build_loop_iteration_domains): likewise
1798 (add_param_constraints): likewise
1800 2014-08-11 Richard Biener <rguenther@suse.de>
1802 PR tree-optimization/62075
1803 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
1804 handle uses in patterns.
1806 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1807 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1808 Anna Tikhonova <anna.tikhonova@intel.com>
1809 Ilya Tocar <ilya.tocar@intel.com>
1810 Andrey Turetskiy <andrey.turetskiy@intel.com>
1811 Ilya Verbin <ilya.verbin@intel.com>
1812 Kirill Yukhin <kirill.yukhin@intel.com>
1813 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1815 * common/config/i386/i386-common.c
1816 (OPTION_MASK_ISA_AVX512VL_SET): Define.
1817 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
1818 (ix86_handle_option): Handle OPT_mavx512vl.
1819 * config/i386/cpuid.h (bit_AVX512VL): Define.
1820 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
1821 set -mavx512vl accordingly.
1822 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1823 OPTION_MASK_ISA_AVX512VL.
1824 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
1825 (ix86_option_override_internal): Define PTA_AVX512VL, handle
1826 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
1827 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
1828 * config/i386/i386.h (TARGET_AVX512VL): Define.
1829 (TARGET_AVX512VL_P(x)): Ditto.
1830 * config/i386/i386.opt: Add mavx512vl.
1832 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
1834 PR tree-optimization/62073
1835 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
1838 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1839 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1840 Anna Tikhonova <anna.tikhonova@intel.com>
1841 Ilya Tocar <ilya.tocar@intel.com>
1842 Andrey Turetskiy <andrey.turetskiy@intel.com>
1843 Ilya Verbin <ilya.verbin@intel.com>
1844 Kirill Yukhin <kirill.yukhin@intel.com>
1845 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1847 * common/config/i386/i386-common.c
1848 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
1849 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
1850 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
1851 (ix86_handle_option): Handle OPT_mavx512bw.
1852 * config/i386/cpuid.h (bit_AVX512BW): Define.
1853 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
1854 set -mavx512bw accordingly.
1855 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1856 OPTION_MASK_ISA_AVX512BW.
1857 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
1858 (ix86_option_override_internal): Define PTA_AVX512BW, handle
1859 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
1860 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
1861 * config/i386/i386.h (TARGET_AVX512BW): Define.
1862 (TARGET_AVX512BW_P(x)): Ditto.
1863 * config/i386/i386.opt: Add mavx512bw.
1865 2014-08-11 Richard Biener <rguenther@suse.de>
1867 PR tree-optimization/62070
1868 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
1869 Remove SSA checking.
1871 2014-08-11 Yury Gribov <y.gribov@samsung.com>
1873 * asan.c (asan_check_flags): New enum.
1874 (build_check_stmt_with_calls): Removed function.
1875 (build_check_stmt): Split inlining logic to
1876 asan_expand_check_ifn.
1877 (instrument_derefs): Rename parameter.
1878 (instrument_mem_region_access): Rename parameter.
1879 (instrument_strlen_call): Likewise.
1880 (asan_expand_check_ifn): New function.
1881 (asan_instrument): Remove old code.
1882 (pass_sanopt::execute): Change handling of
1883 asan-instrumentation-with-call-threshold.
1884 (asan_clear_shadow): Fix formatting.
1885 (asan_function_start): Likewise.
1886 (asan_emit_stack_protection): Likewise.
1887 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
1889 * internal-fn.c (expand_ASAN_CHECK): New function.
1890 * internal-fn.def (ASAN_CHECK): New internal function.
1891 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
1893 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
1894 * tree.c: Small comment fix.
1896 2014-08-11 Yury Gribov <y.gribov@samsung.com>
1898 * gimple.c (gimple_call_fnspec): Support internal functions.
1899 (gimple_call_return_flags): Use const.
1900 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
1901 * internal-fn.def: Add fnspec information.
1902 * internal-fn.h (internal_fn_fnspec): New function.
1903 (init_internal_fns): Declare new function.
1904 * internal-fn.c (internal_fn_fnspec_array): New global variable.
1905 (init_internal_fns): New function.
1906 * tree-core.h: Update macro call.
1907 * tree.c (build_common_builtin_nodes): Initialize internal fns.
1909 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
1911 * lto-streamer.h (struct output_block::symbol): Change from
1912 struct symtab_node to plain symtab_node.
1913 (referenced_from_this_partition_p): Change first parameter
1914 from struct symtab_node to plain symtab_node.
1916 2014-08-10 Marek Polacek <polacek@redhat.com>
1919 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
1921 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
1923 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
1924 DECL correctly; do not give up on types in static storage.
1926 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
1928 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
1930 2014-08-09 Roman Gareev <gareevroman@gmail.com>
1932 * graphite-isl-ast-to-gimple.c:
1933 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
1935 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
1937 2014-08-08 Guozhi Wei <carrot@google.com>
1939 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
1941 2014-08-08 Cary Coutant <ccoutant@google.com>
1943 * dwarf2out.c (get_skeleton_type_unit): Remove.
1944 (output_skeleton_debug_sections): Remove skeleton type units.
1945 (output_comdat_type_unit): Likewise.
1946 (dwarf2out_finish): Likewise.
1948 2014-08-07 Yi Yang <ahyangyi@google.com>
1950 * predict.c (expr_expected_value_1): Remove the redundant assignment.
1952 2014-08-08 Richard Biener <rguenther@suse.de>
1954 * lto-streamer.h (struct lto_input_block): Make it a class
1956 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
1957 (struct lto_function_header, struct lto_simple_header,
1958 struct lto_simple_header_with_strings,
1959 struct lto_decl_header, struct lto_function_header): Make
1960 a simple inheritance hieararchy. Remove unused fields.
1961 (struct lto_asm_header): Remove.
1962 * lto-streamer-out.c (produce_asm): Adjust.
1963 (lto_output_toplevel_asms): Likewise.
1964 (produce_asm_for_decls): Likewise.
1965 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
1966 * data-streamer-in.c (string_for_index): Likewise.
1967 * ipa-inline-analysis.c (inline_read_section): Likewise.
1968 * ipa-prop.c (ipa_prop_read_section): Likewise.
1969 (read_replacements_section): Likewise.
1970 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
1971 * lto-section-in.c (lto_create_simple_input_block): Likewise.
1972 (lto_destroy_simple_input_block): Likewise.
1973 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
1974 (lto_input_toplevel_asms): Likewise.
1976 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
1977 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1978 Anna Tikhonova <anna.tikhonova@intel.com>
1979 Ilya Tocar <ilya.tocar@intel.com>
1980 Andrey Turetskiy <andrey.turetskiy@intel.com>
1981 Ilya Verbin <ilya.verbin@intel.com>
1982 Kirill Yukhin <kirill.yukhin@intel.com>
1983 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1985 * common/config/i386/i386-common.c
1986 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
1987 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
1988 (ix86_handle_option): Handle OPT_mavx512dq.
1989 * config/i386/cpuid.h (bit_AVX512DQ): Define.
1990 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
1991 set -mavx512dq accordingly.
1992 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1993 OPTION_MASK_ISA_AVX512DQ.
1994 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
1995 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
1996 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
1997 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
1998 * config/i386/i386.h (TARGET_AVX512DQ): Define.
1999 (TARGET_AVX512DQ_P(x)): Ditto.
2000 * config/i386/i386.opt: Add mavx512dq.
2002 2014-08-08 Richard Biener <rguenther@suse.de>
2004 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2005 target_percent, target_percent_s): Export.
2006 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2007 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2008 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2009 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2010 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2011 Move to gimple-fold.c.
2012 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2014 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2015 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2016 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2017 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2018 (rewrite_call_expr_array): Remove.
2019 (fold_builtin_sprintf_chk): Likewise.
2020 (fold_builtin_snprintf_chk): Likewise.
2021 (fold_builtin_varargs): Remove handling of sprintf_chk,
2022 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2023 (gimple_fold_builtin_sprintf_chk): Remove.
2024 (gimple_fold_builtin_snprintf_chk): Likewise.
2025 (gimple_fold_builtin_varargs): Likewise.
2026 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2027 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2028 * gimple.c (gimple_seq_add_seq_without_update): New function.
2029 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2030 * gimple-fold.c: Include output.h.
2031 (gsi_replace_with_seq_vops): New function, split out from ...
2032 (gimplify_and_update_call_from_tree): ... here.
2033 (replace_call_with_value): New function.
2034 (replace_call_with_call_and_fold): Likewise.
2035 (var_decl_component_p): Moved from builtins.c.
2036 (gimple_fold_builtin_memory_op): Moved from builtins.c
2037 fold_builtin_memory_op and rewritten to GIMPLE.
2038 (gimple_fold_builtin_memset): Likewise.
2039 (gimple_fold_builtin_strcpy): Likewise.
2040 (gimple_fold_builtin_strncpy): Likewise.
2041 (gimple_fold_builtin_strcat): Likewise.
2042 (gimple_fold_builtin_fputs): Likewise.
2043 (gimple_fold_builtin_memory_chk): Likewise.
2044 (gimple_fold_builtin_stxcpy_chk): Likewise.
2045 (gimple_fold_builtin_stxncpy_chk): Likewise.
2046 (gimple_fold_builtin_snprintf_chk): Likewise.
2047 (gimple_fold_builtin_sprintf_chk): Likewise.
2048 (gimple_fold_builtin_strlen): New function.
2049 (gimple_fold_builtin_with_strlen): New function split out from
2050 gimple_fold_builtin.
2051 (gimple_fold_builtin): Change signature and handle
2052 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2053 here. Call gimple_fold_builtin_with_strlen.
2054 (gimple_fold_call): Adjust.
2056 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2058 * calls.c (precompute_arguments): Check
2059 promoted_for_signed_and_unsigned_p and set the promoted mode.
2060 (promoted_for_signed_and_unsigned_p): New function.
2061 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2062 and set the promoted mode.
2063 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2064 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2065 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2068 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2070 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2071 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2072 (expand_call): Likewise.
2073 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2074 to get promoted mode.
2075 * combine.c (record_promoted_value): Skip > 0 comparison with
2076 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2077 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2078 of SUBREG_PROMOTED_UNSIGNED_P.
2079 (convert_modes): Likewise.
2080 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2081 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2082 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2083 SUBREG_PROMOTED_UNSIGNED_SET.
2084 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2085 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2086 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2087 SUBREG_PROMOTED_SET.
2088 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2089 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2090 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2091 of SUBREG_PROMOTED_UNSIGNED_P.
2092 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2093 (SUBREG_PROMOTED_SET): New define.
2094 (SUBREG_PROMOTED_GET): Likewise.
2095 (SUBREG_PROMOTED_SIGN): Likewise.
2096 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2097 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2098 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2099 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2100 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2101 (nonzero_bits1): Skip > 0 comparison with the results as
2102 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2103 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2104 of !SUBREG_PROMOTED_UNSIGNED_P.
2105 * simplify-rtx.c (simplify_unary_operation_1): Use new
2106 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2107 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2108 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2109 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2111 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2113 * ipa-devirt.c: Include gimple-pretty-print.h
2114 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2116 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2117 (get_polymorphic_call_info): Fix return value
2118 (type_change_info): New sturcture based on ipa-prop
2120 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2121 based on ipa-prop variant.
2122 (extr_type_from_vtbl_ptr_store): New function
2123 based on ipa-prop variant.
2124 (record_known_type): New function.
2125 (check_stmt_for_type_change): New function.
2126 (get_dynamic_type): New function.
2127 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2128 * tree-ssa-pre.c: ipa-utils.h
2129 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2130 machinery; sanity check with ipa-prop devirtualization.
2131 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2134 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2136 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2137 * alias.c, cfgexpand.c, cgraphbuild.c,
2138 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2139 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2140 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2141 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2142 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2143 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2144 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2145 dse.c, except.c, gengtype.c, gimple-expr.c,
2146 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2147 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2148 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2149 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2150 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2151 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2153 * pointer-set.c: Remove file.
2154 * pointer-set.h: Remove file.
2156 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2158 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2159 * config/arm/types.md (f_sels, f_seld): Delete.
2161 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2163 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2164 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2165 (aarch64_movdi_<mode>high): Likewise.
2166 (aarch64_mov<mode>high_di): Likewise.
2167 (aarch64_movdi_<mode>low): Likewise.
2168 (aarch64_mov<mode>low_di): Likewise.
2169 (aarch64_movtilow_tilow): Likewise.
2170 Add comment explaining usage of fp,simd attributes and of
2171 TARGET_FLOAT and TARGET_SIMD.
2173 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2174 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2176 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2177 Use MOVN when one of the half-words is 0xffff.
2179 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2181 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2183 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2185 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2186 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2187 (rfs_str): String corresponding to RFS_* constants.
2188 (rank_for_schedule_stats_t): New typedef.
2189 (rank_for_schedule_stats): New static variable.
2190 (rfs_result): New static function.
2191 (rank_for_schedule): Track statistics for deciding heuristics.
2192 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2194 (ready_sort): Use them for debug printouts.
2195 (schedule_block): Init statistics state. Print statistics on
2196 rank_for_schedule decisions.
2198 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2200 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2202 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2204 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2207 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2209 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2210 function to not conflict.
2211 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2212 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2213 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2214 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2215 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2218 2014-08-07 Marek Polacek <polacek@redhat.com>
2220 * fold-const.c (fold_binary_loc): Add folding of
2221 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2223 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2225 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2226 instead of type size.
2227 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2229 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2231 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2232 (*thumb1_movqi_insn): Likewise.
2233 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2235 2014-08-07 Tom de Vries <tom@codesourcery.com>
2237 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2238 (glibc_2_11_or_earlier): Remove effective-target keywords.
2240 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2242 * config/arm/arm.c (bdesc_2arg): Fix typo.
2243 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2245 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2247 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2249 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2252 * haifa-sched.c (advance_one_cycle): Fix dump.
2253 (schedule_block): Don't advance cycle if we are already at the
2254 beginning of the cycle.
2256 2014-08-06 Martin Jambor <mjambor@suse.cz>
2259 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2261 2014-08-06 Richard Biener <rguenther@suse.de>
2264 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2266 (lto_input_tree): Pop SCCs here.
2268 2014-08-06 Richard Biener <rguenther@suse.de>
2270 PR tree-optimization/61320
2271 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2272 handle misaligned loads.
2274 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2276 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2277 (aarch64_expand_vec_perm_const): Check for dup before zip.
2279 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2281 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2282 CONST_INT_P instead of GET_CODE and compare.
2283 (aarch64_select_cc_mode): Likewise.
2284 (aarch64_print_operand): Likewise.
2285 (aarch64_rtx_costs): Likewise.
2286 (aarch64_simd_valid_immediate): Likewise.
2287 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2288 (aarch64_simd_emit_pair_result_insn): Likewise.
2290 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2292 * gdbhooks.py (find_gcc_source_dir): New helper function.
2293 (class PassNames): New class, locating and parsing passes.def.
2294 (class BreakOnPass): New command "break-on-pass".
2296 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2298 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2301 2014-08-05 Richard Biener <rguenther@suse.de>
2303 PR rtl-optimization/61672
2304 * emit-rtl.h (mem_attrs_eq_p): Declare.
2305 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2306 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2307 * cfgcleanup.c (merge_memattrs): Likewise.
2310 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2312 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2313 rather than singleton vectors.
2314 (vqdmlsls_lane_s32): Likewise.
2316 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2318 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2319 Use VSDQ_HSI mode iterator.
2320 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2321 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2322 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2323 Use BUILTIN_VDQHS macro.
2324 (sqrdmulh_laneq): Likewise.
2325 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2326 (vqdmlals_laneq_s32): Likewise.
2327 (vqdmlslh_laneq_s16): Likewise.
2328 (vqdmlsls_laneq_s32): Likewise.
2329 (vqdmulhh_laneq_s16): Likewise.
2330 (vqdmulhs_laneq_s32): Likewise.
2331 (vqrdmulhh_laneq_s16): Likewise.
2332 (vqrdmulhs_laneq_s32): Likewise.
2334 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2336 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2337 (vmuld_laneq_f64): Likewise.
2338 (vmuls_laneq_f32): Likewise.
2339 (vmul_n_f64): Likewise.
2340 (vmuld_lane_f64): Reimplement in C.
2341 (vmuls_lane_f32): Likewise.
2343 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2345 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2347 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2349 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2351 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2352 (rbitsi2): Likewise.
2353 (*arm_rev): Set predicable and predicable_short_it attributes.
2355 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2357 * convert.c (convert_to_integer): Guard transformation to lrint by
2360 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2362 * config/aarch64/aarch64-builtins.c
2363 (aarch64_simd_builtin_type_mode): Delete.
2364 (v8qi_UP): Remap to V8QImode.
2365 (v4hi_UP): Remap to V4HImode.
2366 (v2si_UP): Remap to V2SImode.
2367 (v2sf_UP): Remap to V2SFmode.
2368 (v1df_UP): Remap to V1DFmode.
2369 (di_UP): Remap to DImode.
2370 (df_UP): Remap to DFmode.
2371 (v16qi_UP):V16QImode.
2372 (v8hi_UP): Remap to V8HImode.
2373 (v4si_UP): Remap to V4SImode.
2374 (v4sf_UP): Remap to V4SFmode.
2375 (v2di_UP): Remap to V2DImode.
2376 (v2df_UP): Remap to V2DFmode.
2377 (ti_UP): Remap to TImode.
2378 (ei_UP): Remap to EImode.
2379 (oi_UP): Remap to OImode.
2380 (ci_UP): Map to CImode.
2381 (xi_UP): Remap to XImode.
2382 (si_UP): Remap to SImode.
2383 (sf_UP): Remap to SFmode.
2384 (hi_UP): Remap to HImode.
2385 (qi_UP): Remap to QImode.
2386 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2387 (VAR1): Build builtin name.
2388 (aarch64_init_simd_builtins): Remove dead code.
2390 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2392 * graphite-isl-ast-to-gimple.c:
2393 (set_options): New function.
2394 (scop_to_isl_ast): Add calling of set_options.
2396 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2398 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2399 (analyze_iv_to_split_insn): Don't initialize them.
2400 (get_ivts_expr): Removed.
2401 (allocate_basic_variable, insert_base_initialization): Use
2402 SET_SRC instead of *get_ivts_expr.
2403 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2405 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2407 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2408 (translate_isl_ast_for_loop): Add checking of the
2409 flag_loop_parallelize_all.
2410 (ast_build_before_for): New function.
2411 (scop_to_isl_ast): Add checking of the
2412 flag_loop_parallelize_all.
2413 * graphite-dependences.c: Move the defenition of the
2414 scop_get_dependences from graphite-optimize-isl.c to this file.
2415 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2416 (carries_deps): Add checking of the x's value.
2417 * graphite-optimize-isl.c: Move the defenition of the
2418 scop_get_dependences to graphite-dependences.c.
2419 * graphite-poly.h: Add declarations of scop_get_dependences
2422 2014-08-04 Rohit <rohitarulraj@freescale.com>
2425 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2427 (alt_reg_names): Likewise.
2428 (rs6000_dwarf_register_span): For SPE high registers, replace
2429 dwarf register numbers with GCC hard register numbers.
2430 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2431 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2432 register number for the corresponding GCC hard register number.
2433 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2434 newly added GCC hard register numbers for SPE high registers.
2435 (DWARF_FRAME_REGISTERS): Likewise.
2436 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2437 (DWARF_FRAME_REGNUM): Likewise.
2438 (FIXED_REGISTERS): Likewise.
2439 (CALL_USED_REGISTERS): Likewise.
2440 (CALL_REALLY_USED_REGISTERS): Likewise.
2441 (REG_ALLOC_ORDER): Likewise.
2442 (enum reg_class): Likewise.
2443 (REG_CLASS_NAMES): Likewise.
2444 (REG_CLASS_CONTENTS): Likewise.
2445 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2447 2014-08-04 Richard Biener <rguenther@suse.de>
2449 * gimple-fold.h (gimple_fold_builtin): Remove.
2450 * gimple-fold.c (gimple_fold_builtin): Make static.
2451 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2452 fold_stmt, not gimple_fold_builtin.
2454 2014-08-04 Martin Liska <mliska@suse.cz>
2456 * cgraph.h (csi_end_p): Removed.
2457 (csi_next): Likewise.
2458 (csi_node): Likewise.
2459 (csi_start): Likewise.
2460 (cgraph_node_in_set_p): Likewise.
2461 (cgraph_node_set_size): Likewise.
2462 (vsi_end_p): Likewise.
2463 (vsi_next): Likewise.
2464 (vsi_node): Likewise.
2465 (vsi_start): Likewise.
2466 (varpool_node_set_size): Likewise.
2467 (cgraph_node_set_nonempty_p): Likewise.
2468 (varpool_node_set_nonempty_p): Likewise.
2469 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2471 * ipa-inline-transform.c: Likewise.
2472 * ipa-utils.c (cgraph_node_set_new): Removed.
2473 (cgraph_node_set_add): Likewise.
2474 (cgraph_node_set_remove): Likewise.
2475 (cgraph_node_set_find): Likewise.
2476 (dump_cgraph_node_set): Likewise.
2477 (debug_cgraph_node_set): Likewise.
2478 (free_cgraph_node_set): Likewise.
2479 (varpool_node_set_new): Likewise.
2480 (varpool_node_set_add): Likewise.
2481 (varpool_node_set_remove): Likewise.
2482 (varpool_node_set_find): Likewise.
2483 (dump_varpool_node_set): Likewise.
2484 (free_varpool_node_set): Likewise.
2485 (debug_varpool_node_set): Likewise.
2486 * tree-emutls.c (struct tls_var_data):
2487 (emutls_index): Removed.
2488 (emutls_decl): Likewise.
2489 (gen_emutls_addr): Function implementation uses newly added
2490 hash_map<varpool_node *, tls_var_data>.
2491 (clear_access_vars): Likewise.
2492 (create_emultls_var): Likewise.
2493 (ipa_lower_emutls): Likewise.
2494 (reset_access): New function.
2496 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2498 * config/i386/i386.c (ix86_option_override_internal): Add
2499 PTA_RDRND and PTA_MOVBE for bdver4.
2501 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2502 James Greenhalgh <james.greenhalgh@arm.com>
2504 * doc/md.texi (clrsb): Document.
2505 (clz): Change reference to x into operand 1.
2507 (popcount): Likewise.
2509 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2512 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2513 move to subtarget in serial version if result is ignored.
2515 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2516 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2518 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2519 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2520 (sched_analyze_insn): Update use of try_group_insn to
2521 sched_macro_fuse_insns.
2522 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2523 arguments that are not conditional jumps.
2525 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2527 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2528 family information. Handle BTVER2 cpu with cpuid family value.
2530 2014-08-04 Tom de Vries <tom@codesourcery.com>
2532 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2533 (glibc_2_11_or_earlier): Document effective-target keywords.
2535 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2537 * ipa-devirt.c (odr_type_warn_count): Add type.
2538 (possible_polymorphic_call_targets): Set it.
2539 (ipa_devirt): Use it.
2541 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2543 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2545 * ipa-devirt.c: Include hash-map.h
2546 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2547 (clear_speculation): Break out of ...
2548 (get_class_context): ... here; speed up handling obviously useless
2550 (odr_type_warn_count, decl_warn_count): New structures.
2551 (final_warning_record): New structure.
2552 (final_warning_records): New static variable.
2553 (possible_polymorphic_call_targets): Cleanup handling of
2554 speculative info; do not build speculation when user do not care;
2555 record info about warnings when asked for.
2556 (add_decl_warning): New function.
2557 (type_warning_cmp): New function.
2558 (decl_warning_cmp): New function.
2559 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2560 (gate): Enable pass when warnings are requested.
2561 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
2564 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2566 * hash-map.h (default_hashmap_traits::mark_key_deleted):
2568 (hash_map::remove): New method.
2569 (hash_map::traverse): New method.
2570 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
2571 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
2572 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
2573 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
2574 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
2575 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
2578 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2580 * hash-set.h: new File.
2581 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
2582 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
2583 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
2584 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
2585 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
2586 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
2587 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
2588 varpool.c: Use hash_set instead of pointer_set.
2590 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
2592 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
2594 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2596 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
2597 for frame access when strict_p is false.
2599 2014-08-01 Renlin Li <renlin.li@arm.com>
2600 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2602 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
2603 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
2604 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
2606 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
2608 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
2609 aarch64_mem_pair_offset.
2611 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2613 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
2615 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
2616 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
2618 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
2620 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
2622 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
2625 * cgraphunit.c (analyze_functions): Use get_create rather than get
2626 for decls which are clones of abstract functions.
2628 2014-08-01 Martin Liska <mliska@suse.cz>
2630 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
2631 * ipa-prop.h (count_formal_params): Global function created from static.
2632 * ipa-prop.c (count_formal_params): Likewise.
2633 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
2634 profiles for semantically equivalent functions.
2635 * passes.c (do_per_function): If we load body of a function
2636 during WPA, this condition should behave same.
2637 * varpool.c (ctor_for_folding): More tolerant assert for variable
2638 aliases created during WPA.
2640 2014-08-01 Martin Liska <mliska@suse.cz>
2642 * doc/invoke.texi (Options That Control Optimization): Documentation
2643 for -foptimize-strlen introduced. Optimization levels default options
2646 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2648 * opts.c (common_handle_option): Handle -fsanitize=alignment.
2649 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
2650 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
2652 * stor-layout.h (min_align_of_type): New prototype.
2653 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
2654 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
2656 * ubsan.c: Include builtins.h.
2657 (ubsan_expand_bounds_ifn): Change return type to bool,
2659 (ubsan_expand_null_ifn): Change return type to bool, change
2660 argument to gimple_stmt_iterator *. Handle both null and alignment
2661 sanitization, take type from ckind argument's type rather than
2663 (instrument_member_call): Removed.
2664 (instrument_mem_ref): Remove t argument, add mem and base arguments.
2665 Handle both null and alignment sanitization, don't say whole
2666 struct access is member access. Build 3 argument IFN_UBSAN_NULL
2667 call instead of 2 argument.
2668 (instrument_null): Adjust instrument_mem_ref caller. Don't
2669 instrument calls here.
2670 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
2672 * stor-layout.c (min_align_of_type): New function.
2673 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
2674 Or it into SANITIZE_UNDEFINED.
2675 * doc/invoke.texi (-fsanitize=alignment): Document.
2677 2014-07-31 Andi Kleen <ak@linux.intel.com>
2679 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
2681 2014-07-31 Andi Kleen <ak@linux.intel.com>
2683 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
2685 (vn_reference_compute_hash): Dito.
2686 (vn_nary_op_compute_hash): Dito.
2687 (vn_phi_compute_hash): Dito.
2688 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
2690 2014-07-31 Andi Kleen <ak@linux.intel.com>
2692 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
2693 Rename to inchash:add_expr_commutative. Convert to inchash.
2694 (iterative_hash_hashable_expr): Rename to
2695 inchash:add_hashable_expr. Convert to inchash.
2696 (avail_expr_hash): Dito.
2698 2014-07-31 Andi Kleen <ak@linux.intel.com>
2700 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
2703 2014-07-31 Andi Kleen <ak@linux.intel.com>
2705 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
2707 2014-07-31 Andi Kleen <ak@linux.intel.com>
2709 * Makefile.in (OBJS): Add rtlhash.o
2710 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
2711 (loc_checksum): Dito.
2712 (loc_checksum_ordered): Dito.
2713 (hash_loc_operands): Dito.
2715 (hash_loc_list): Dito.
2716 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
2717 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
2718 * rtlhash.c: New file.
2719 * rtlhash.h: New file.
2721 2014-07-31 Andi Kleen <ak@linux.intel.com>
2723 * inchash.h (inchash): Change inchash class to namespace.
2724 (class hash): ... Rename from inchash.
2725 (add_object): Move from macro to class template.
2726 * lto-streamer-out.c (hash_tree): Change inchash
2728 * tree.c (build_type_attribute_qual_variant): Dito.
2729 (type_hash_list): Dito.
2730 (attribute_hash_list): Dito.
2731 (iterative_hstate_expr): Rename to inchash::add_expr
2732 (build_range_type_1): Change inchash to inchash::hash
2733 and use hash::add_expr.
2734 (build_array_type_1): Dito.
2735 (build_function_type): Dito
2736 (build_method_type_directly): Dito.
2737 (build_offset_type): Dito.
2738 (build_complex_type): Dito.
2739 (make_vector_type): Dito.
2740 * tree.h (iterative_hash_expr): Dito.
2742 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
2744 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
2746 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
2748 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
2749 correct alphabetical position.
2750 (vpaddd_f64): Rewrite using builtins.
2751 (vpaddd_s64): Move to correct alphabetical position.
2754 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
2757 * config/sh/sh.c (sh_legitimate_address_p,
2758 sh_legitimize_reload_address): Handle reg+reg address modes when
2759 ALLOW_INDEXED_ADDRESS is false.
2760 * config/sh/predicates.md (general_movsrc_operand,
2761 general_movdst_operand): Likewise.
2763 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
2765 * config/aarch64/aarch64-builtins.c
2766 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
2769 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
2771 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
2772 the generated mask based on BYTES_BIG_ENDIAN.
2773 (aarch64_simd_check_vect_par_cnst_half): New.
2774 * config/aarch64/aarch64-protos.h
2775 (aarch64_simd_check_vect_par_cnst_half): New.
2776 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
2777 the check out to aarch64_simd_check_vect_par_cnst_half.
2778 (vect_par_cnst_lo_half): Likewise.
2779 * config/aarch64/aarch64-simd.md
2780 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
2781 (move_hi_quad_<mode>): Always generate a low mask.
2783 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2785 * doc/invoke.texi (AVR Options): Add documentation about
2786 __AVR_DEVICE_NAME__ built-in macro.
2788 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
2791 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
2792 constraints are satisfied.
2793 (<shift>di3_neon): Likewise.
2795 2014-07-31 Richard Biener <rguenther@suse.de>
2797 PR tree-optimization/61964
2798 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
2799 by structural equality.
2801 2014-07-31 Yury Gribov <y.gribov@samsung.com>
2803 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
2804 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
2805 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
2807 * gcc.c (sanitize_spec_function): Support new option.
2808 (SANITIZER_SPEC): Remove now redundant check.
2809 * opts.c (common_handle_option): Support new option.
2810 (finish_options): Check for incompatibilities.
2811 * toplev.c (process_options): Split userspace-specific checks.
2813 2014-07-31 Richard Biener <rguenther@suse.de>
2815 * lto-streamer.h (struct output_block): Remove global.
2816 (struct data_in): Remove labels, num_named_labels and
2818 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
2819 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
2821 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2824 * common.opt (-Wreturn-local-addr): Moved from c.opt.
2825 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
2826 (isolate_path): New argument to avoid inserting a trap.
2827 (find_implicit_erroneous_behaviour): Handle returning the address
2828 of a local variable.
2829 (find_explicit_erroneous_behaviour): Likewise.
2831 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
2834 * toplev.c (init_random_seed): Move piece of code never called to
2836 (set_random_seed): see above.
2838 2014-07-31 Tom de Vries <tom@codesourcery.com>
2840 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
2842 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
2844 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
2845 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
2847 2014-07-31 Richard Biener <rguenther@suse.de>
2849 * data-streamer.h (streamer_write_data_stream): Declare here,
2851 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
2852 * lto-cgraph.c (lto_output_node): Adjust.
2853 (lto_output_varpool_node): Likewise.
2854 * data-streamer-out.c (streamer_string_index): Likewise.
2855 (streamer_write_data_stream, lto_append_block): Move from ...
2856 * lto-section-out.c (lto_output_data_stream,
2857 lto_append_block): ... here.
2859 2014-07-30 Mike Stump <mikestump@comcast.net>
2861 * configure.ac: Also check for popen.
2862 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
2863 * configure: Regenerate.
2864 * config.in: Regenerate.
2866 2014-07-30 Martin Jambor <mjambor@suse.cz>
2868 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
2869 parameter to gimple.
2871 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2873 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
2874 address as second parameter to __tpf_eh_return routine.
2876 2014-07-30 Jiong Wang <jiong.wang@arm.com>
2878 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
2881 2014-07-30 Tom Tromey <tromey@redhat.com>
2884 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
2885 * doc/extend.texi (Type Attributes): Document designated_init
2888 2014-07-30 Roman Gareev <gareevroman@gmail.com>
2890 * graphite-isl-ast-to-gimple.c:
2891 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
2892 (gcc_expression_from_isl_expression): Pass type to
2893 gcc_expression_from_isl_ast_expr_id.
2895 2014-07-30 Richard Biener <rguenther@suse.de>
2897 * lto-streamer.h (lto_write_data): New function.
2898 * langhooks.c (lhd_append_data): Do not free block.
2899 * lto-section-out.c (lto_write_data): New function writing
2900 raw data to the current section.
2901 (lto_write_stream): Adjust for langhook semantic change.
2902 (lto_destroy_simple_output_block): Write header directly.
2903 * lto-opts.c (lto_write_options): Write options directly.
2904 * lto-streamer-out.c (produce_asm): Write heaeder directly.
2905 (lto_output_toplevel_asms): Likewise.
2906 (copy_function_or_variable): Copy data directly.
2907 (write_global_references): Output index table directly.
2908 (lto_output_decl_state_refs): Likewise.
2909 (write_symbol): Write data directly.
2910 (produce_symtab): Adjust.
2911 (produce_asm_for_decls): Output header and refs directly.
2913 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
2915 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
2916 to speculative_targets
2917 (get_class_context): Fix handling of contextes without outer type;
2918 avoid matching non-polymorphic types in LTO.
2919 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
2920 parameter to speculative_targetsp; handle speculation.
2921 (dump_possible_polymorphic_call_targets): Update dumping.
2923 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
2925 * common.opt (Wodr): Enable by default.
2927 2014-07-29 Olivier Hainque <hainque@adacore.com>
2929 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
2931 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
2934 * gengtype.c (strtoken): New function.
2935 (create_user_defined_type): Replace strtok with strtoken.
2937 2014-07-29 Nathan Sidwell <nathan@acm.org>
2939 * gcov-io.c (gcov_var): Make hidden.
2940 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
2941 (gcov_do_dump): Declare.
2942 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
2944 2014-07-29 Martin Jambor <mjambor@suse.cz>
2946 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
2947 parameter to gimple.
2948 (sra_modify_assign): Likewise.
2950 2014-07-29 Richard Biener <rguenther@suse.de>
2953 * expr.c (expand_expr_real_2): Revert last change.
2955 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
2957 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
2958 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
2959 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
2961 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
2962 (contains_type_p): Forward declare.
2963 (polymorphic_call_target_hasher::hash): Hash speculative info.
2964 (polymorphic_call_target_hasher::equal): Compare speculative info.
2965 (get_class_context): Handle speuclation.
2966 (contains_type_p): Update.
2967 (get_polymorphic_call_info_for_decl): Update.
2968 (walk_ssa_copies): Break out from ...
2969 (get_polymorphic_call_info): ... here; set speculative context
2971 * ipa-prop.c (ipa_write_indirect_edge_info,
2972 ipa_read_indirect_edge_info): Stream speculative context.
2973 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
2974 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
2975 SPECULATIVE_MAYBE_DERIVED_TYPE).
2976 (possible_polymorphic_call_targets overriders): Update.
2977 (dump_possible_polymorphic_call_targets overriders): Update.
2978 (dump_possible_polymorphic_call_target_p overriders): Update.
2980 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
2982 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
2983 ipa-devirt path; fix thinko there.
2985 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
2987 * config/i386/i386.c (ix86_return_in_memory): Replace one
2988 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
2990 2014-07-28 Marek Polacek <polacek@redhat.com>
2992 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
2994 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
2996 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
2997 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
2998 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
2999 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3000 (USE_LD_AS_NEEDED): Likewise.
3001 (ASM_APP_ON): Likewise.
3002 (ASM_APP_OFF): Likewise.
3003 (TARGET_POSIX_IO): Likewise.
3004 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3005 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3006 (USE_LD_AS_NEEDED): Likewise.
3007 (ASM_APP_ON): Likewise.
3008 (ASM_APP_OFF): Likewise.
3009 (TARGET_POSIX_IO): Likewise.
3011 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3014 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3015 operators other than the equality operators.
3017 2014-07-28 Richard Biener <rguenther@suse.de>
3020 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3021 sure to register SImode ones, not only >= word_mode ones.
3022 * expr.c (expand_expr_real_2): When expanding -ftrapv
3023 binops do not use OPTAB_LIB_WIDEN.
3025 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3028 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3029 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3030 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3031 inserting them in the insn stream.
3033 2014-07-28 Marek Polacek <polacek@redhat.com>
3036 * common.opt (Wodr): Add Var.
3038 2014-07-28 Richard Biener <rguenther@suse.de>
3040 PR tree-optimization/61921
3041 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3042 if there is a varpool node before dereferencing it.
3044 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3046 * graphite-sese-to-poly.c:
3047 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3048 id of the pbb), which contains pointer to the pbb1.
3050 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3052 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3054 * graphite-isl-ast-to-gimple.c:
3055 (graphite_create_new_guard): New function.
3056 (translate_isl_ast_node_if): New function.
3057 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3059 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3061 2014-07-27 Anthony Green <green@moxielogic.com>
3063 * config.gcc: Add moxie-*-moxiebox* configuration.
3064 * config/moxie/moxiebox.h: New file.
3066 2014-07-26 Andrew Pinski <apinski@cavium.com>
3068 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3069 from the read only register.
3071 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3073 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3074 as the allocation class if it isn't likely to be spilled.
3076 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3078 * rtl.h (tls_referenced_p): Declare.
3079 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3080 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3081 (mips_cannot_force_const_mem): Use tls_referenced_p.
3082 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3083 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3084 instead of pa_tls_referenced_p.
3085 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3086 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3087 (pa_legitimate_constant_p): Likewise.
3088 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3089 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3090 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3091 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3092 rs6000_tls_referenced_p.
3093 (rs6000_tls_symbol_ref_1): Delete.
3095 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3098 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3099 Optimize inverse of a VEC_CONCAT.
3101 2014-07-25 Xinliang David Li <davidxl@google.com>
3103 * params.def: New parameter.
3104 * coverage.c (get_coverage_counts): Check new flag.
3105 (coverage_compute_profile_id): Check new flag.
3106 (coverage_begin_function): Check new flag.
3107 (coverage_end_function): Check new flag.
3108 * value-prof.c (coverage_node_map_initialized_p): New function.
3109 (init_node_map): Populate map with all functions.
3110 * doc/invoke.texi: Document new parameter.
3112 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3113 Richard Biener <rguenther@suse.de>
3115 * lto-streamer-out.c (struct sccs): Turn to ...
3116 (class DFS): ... this one; refactor the DFS walk so it can
3117 be re-done on per-SCC basis.
3118 (DFS::DFS): New constructor.
3119 (DFS::~DFS): New destructor.
3120 (hash_tree): Add new MAP argument holding in-SCC hash values;
3121 remove POINTER_TYPE hashing hack.
3122 (scc_entry_compare): Rename to ...
3123 (DFS::scc_entry_compare): ... this one.
3124 (hash_scc): Rename to ...
3125 (DFS::hash_scc): ... this one; pass output_block instead
3126 of streamer_cache; work harder to get unique and stable SCC
3128 (DFS_write_tree): Rename to ...
3129 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3130 (lto_output_tree): Update.
3132 2014-07-25 Andi Kleen <ak@linux.intel.com>
3134 * lto-streamer-out.c (hash_tree): Convert to inchash.
3136 2014-07-25 Andi Kleen <ak@linux.intel.com>
3138 * tree.c (build_type_attribute_qual_variant): Use inchash.
3139 (type_hash_list): Dito.
3140 (attribute_hash_list): Dito
3141 (iterative_hstate_expr): Dito.
3142 (iterative_hash_expr): Dito.
3143 (build_range_type_1): Dito.
3144 (build_array_type_1): Dito.
3145 (build_function_type): Dito.
3146 (build_method_type_directly): Dito.
3147 (build_offset_type): Dito.
3148 (build_complex_type): Dito.
3149 (make_vector_type): Dito.
3150 * tree.h (iterative_hash_expr): Add compat wrapper.
3151 (iterative_hstate_expr): Add.
3153 2014-07-25 Andi Kleen <ak@linux.intel.com>
3155 * Makefile.in (OBJS): Add inchash.o.
3156 (PLUGIN_HEADERS): Add inchash.h.
3157 * ipa-devirt.c: Include inchash.h.
3158 * lto-streamer-out.c: Dito.
3159 * tree-ssa-dom.c: Dito.
3160 * tree-ssa-pre.c: Dito.
3161 * tree-ssa-sccvn.c: Dito.
3162 * tree-ssa-tail-merge.c: Dito.
3164 * tree.c (iterative_hash_hashval_t): Move to ...
3165 (iterative_hash_host_wide_int): Move to ...
3166 * inchash.c: Here. New file.
3167 * tree.h (iterative_hash_hashval_t): Move to ...
3168 (iterative_hash_host_wide_int): Move to ...
3169 * inchash.h: Here. New file.
3171 2014-07-25 Richard Biener <rguenther@suse.de>
3175 * fold-const.c (native_encode_int): Add and handle offset
3176 parameter to do partial encodings of expr.
3177 (native_encode_fixed): Likewise.
3178 (native_encode_real): Likewise.
3179 (native_encode_complex): Likewise.
3180 (native_encode_vector): Likewise.
3181 (native_encode_string): Likewise.
3182 (native_encode_expr): Likewise.
3183 * fold-const.c (native_encode_expr): Add offset parameter
3185 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3186 (fold_ctor_reference): Handle all reads from tcc_constant
3189 2014-07-25 Richard Biener <rguenther@suse.de>
3191 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3194 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3196 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3198 2014-07-24 Kyle McMartin <kyle@redhat.com>
3200 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3202 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3204 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3206 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3208 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3209 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3210 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3212 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3214 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3215 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3216 aggregate types. Instead, *all* aggregate types, except for single-
3217 element or homogeneous float/vector aggregates, are quadword-aligned
3218 if required by their type alignment. Issue -Wpsabi note when a type
3219 is now treated differently than before.
3221 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3223 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3224 does not fit fully into floating-point registers, and there is still
3225 space in the register parameter area, use GPRs to pass those parts
3226 of the argument. Issue -Wpsabi note if any parameter is now treated
3227 differently than before.
3228 (rs6000_arg_partial_bytes): Update.
3230 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3232 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3234 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3236 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3237 * toplev.c (initialize_rtl): Don't use it. Move previously
3238 "language-dependent" calls to...
3239 (backend_init): ...here.
3240 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3241 Assert that RTL initialization hasn't happend yet.
3243 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3245 PR rtl-optimization/61629
3246 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3247 they have already been initialized.
3249 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3252 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3253 DECL_INCOMING_RTL and entry_parm.
3254 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3255 * calls.c (load_register_parameters): Likewise argument values.
3256 (emit_library_call_value_1, store_one_arg): Likewise argument
3258 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3260 * explow.c (validize_mem): Modify the argument in-place.
3262 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3264 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3265 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3267 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3269 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3270 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3272 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3274 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3275 (aarch64_save_callee_saves): New parameter "skip_wb".
3276 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3278 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3280 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3282 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3284 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3286 * graphite-isl-ast-to-gimple.c:
3287 (graphite_create_new_loop): Add calling of isl_id_free to properly
3288 decrement reference counts.
3290 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3292 2014-07-24 Martin Liska <mliska@suse.cz>
3293 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3295 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3296 (rs6000_code_end): Likewise.
3298 2014-07-24 Martin Liska <mliska@suse.cz>
3300 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3301 symtab_node funtion used.
3302 (rs6000_xcoff_declare_object_name): Likewise.
3304 2014-07-24 Martin Liska <mliska@suse.cz>
3306 * cgraphunit.c (compile): Correct function used.
3308 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3310 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3313 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3316 * varasm.c (bss_initializer_p): Handle offlined ctors.
3317 (align_variable, get_variable_align): Likewise.
3318 (make_decl_one_only): Likewise.
3319 (default_binds_local_p_1): Likewise.
3320 (decl_binds_to_current_def_p): Likewise.
3321 (get_variable_section): Get constructor if it is offlined.
3322 (assemble_variable_contents): Sanity check that the caller
3323 streamed in the ctor in LTO.
3325 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3327 * graphite-isl-ast-to-gimple.c:
3328 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3329 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3330 isl_ast_op_pdiv_r to the different case.
3332 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3334 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3337 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3338 when flag_errno_math is on.
3340 2014-07-24 Martin Liska <mliska@suse.cz>
3342 * cgraph.h (varpool_node):
3343 (availability get_availability (void)):
3344 created from cgraph_variable_initializer_availability
3345 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3346 created from: cgraph_variable_initializer_availability
3347 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3348 (void finalize_named_section_flags (void)):
3349 created from varpool_finalize_named_section_flags
3350 (bool assemble_decl (void)): created from varpool_assemble_decl
3351 (void analyze (void)): created from varpool_analyze_node
3352 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3353 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3354 (void remove_initializer (void)): created from varpool_remove_initializer
3355 (tree get_constructor (void)): created from varpool_get_constructor
3356 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3357 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3358 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3359 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3360 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3361 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3362 (static bool output_variables (void)): created from varpool_output_variables
3363 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3364 created from varpool_extra_name_alias
3365 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3366 (static void dump_varpool (FILE *f)): created from dump_varpool
3367 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3368 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3369 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3370 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3371 (void assemble_aliases (void)): created from assemble_aliases
3373 2014-07-24 Martin Liska <mliska@suse.cz>
3375 * cgraph.h (symtab_node):
3376 (void register_symbol (void)): created from symtab_register_node
3377 (void remove (void)): created from symtab_remove_node
3378 (void dump (FILE *f)): created from dump_symtab_node
3379 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3380 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3381 (struct ipa_ref *add_reference (symtab_node *referred_node,
3382 enum ipa_ref_use use_type)): created from add_reference
3383 (struct ipa_ref *add_reference (symtab_node *referred_node,
3384 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3385 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3386 gimple stmt)): created from maybe_add_reference
3387 (bool semantically_equivalent_p (symtab_node *target)): created from
3388 symtab_semantically_equivalent_p
3389 (void remove_from_same_comdat_group (void)): created from
3390 remove_from_same_comdat_group
3391 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3392 symtab_add_to_same_comdat_group
3393 (void dissolve_same_comdat_group_list (void)): created from
3394 symtab_dissolve_same_comdat_group_list
3395 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3396 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3397 created from symtab_alias_ultimate_target
3398 (inline symtab_node *next_defined_symbol (void)): created from
3399 symtab_next_defined_symbol
3400 (bool resolve_alias (symtab_node *target)): created from
3401 symtab_resolve_alias
3402 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3403 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3404 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3405 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3406 (void set_section (const char *section)): created from set_section_1
3407 (enum availability get_availability (void)): created from symtab_node_availability
3408 (void make_decl_local (void)): created from symtab_make_decl_local
3409 (bool real_symbol_p (void)): created from symtab_read_node
3410 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3411 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3412 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3413 symtab_in_same_comdat_p;
3414 (bool address_taken_from_non_vtable_p (void)): created from
3415 address_taken_from_non_vtable_p
3416 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3417 (static void dump_table (FILE *)): created from dump_symtab
3418 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3419 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3420 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3421 symtab_used_from_object_file_p
3422 (void dump_base (FILE *)): created from dump_symtab_base
3423 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3424 (void unregister (void)): created from symtab_unregister_node
3425 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3426 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3427 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3428 symtab_nonoverwritable_alias_1
3429 * cgraph.h (cgraph_node):
3430 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3431 created from cgraph_remove_node_and_inline_clones
3432 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3433 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3434 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3435 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3436 created from cgraph_function_node
3437 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3438 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3439 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3440 created from cgraph_create_clone
3441 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3442 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3443 created from cgraph_create_virtual_clone
3444 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3445 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3446 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3447 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3448 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3449 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3450 created from cgraph_function_version_info
3451 (struct cgraph_function_version_info *insert_new_function_version (void)):
3452 created from insert_new_cgraph_node_version
3453 (struct cgraph_function_version_info *function_version (void)): created from
3454 get_cgraph_node_version
3455 (void analyze (void)): created from analyze_function
3456 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3457 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3458 tree real_alias) cgraph_add_thunk
3459 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3460 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3461 created from cgraph_function_or_thunk_node
3462 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3463 created from expand_thunk
3464 (void reset (void)): created from cgraph_reset_node
3465 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3466 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3467 (void remove (void)): created from cgraph_remove_node
3468 (void dump (FILE *f)): created from dump_cgraph_node
3469 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3470 (bool get_body (void)): created from cgraph_get_body
3471 (void release_body (void)): created from cgraph_release_function_body
3472 (void unnest (void)): created from cgraph_unnest_node
3473 (void make_local (void)): created from cgraph_make_node_local
3474 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3475 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3476 gcov_type count, int freq)): created from cgraph_create_edge
3477 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3478 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3479 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3480 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3481 created from cgraph_create_edge_including_clones
3482 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3483 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3484 (void remove_callers (void)): created from cgraph_node_remove_callers
3485 (void remove_callees (void)): created from cgraph_node_remove_callees
3486 (enum availability get_availability (void)): created from cgraph_function_body_availability
3487 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3488 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3489 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3490 (void call_duplication_hooks (cgraph_node *node2)): created from
3491 cgraph_call_node_duplication_hooks
3492 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3493 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3494 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3495 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3496 (void call_function_insertion_hooks (void)):
3497 created from cgraph_call_function_insertion_hooks
3498 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3499 (bool local_p (void)): created from cgraph_local_node
3500 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3501 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3502 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3503 (inline bool only_called_directly_or_aliased_p (void)):
3504 created from cgraph_only_called_directly_or_aliased_p
3505 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3506 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3507 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3508 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3509 (bool can_remove_if_no_direct_calls_p (void)):
3510 created from cgraph_can_remove_if_no_direct_calls_p
3511 (inline bool has_gimple_body_p (void)):
3512 created from cgraph_function_with_gimple_body_p
3513 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3514 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3515 (static inline void debug_cgraph (void)): created from debug_cgraph
3516 (static void record_function_versions (tree decl1, tree decl2)):
3517 created from record_function_versions
3518 (static void delete_function_version (tree decl)):
3519 created from delete_function_version
3520 (static void add_new_function (tree fndecl, bool lowered)):
3521 created from cgraph_add_new_function
3522 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3523 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3524 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3525 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3526 (static cgraph_node *get_for_asmname (tree asmname)):
3527 created from cgraph_node_for_asm
3528 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3529 created from cgraph_same_body_alias
3530 (static bool used_from_object_file_p_worker (cgraph_node *node,
3531 void *): new function
3532 (static bool non_local_p (cgraph_node *node, void *)):
3533 created from cgraph_non_local_node_p_1
3534 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3535 created from verify_cgraph
3536 (static bool make_local (cgraph_node *node, void *)):
3537 created from cgraph_make_node_local
3538 (static cgraph_node *create_alias (tree alias, tree target)):
3539 created from cgraph_create_function_alias
3540 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3541 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3542 created from cgraph_create_edge_1
3543 * cgraph.h (varpool_node):
3544 (void remove (void)): created from varpool_remove_node
3545 (void dump (FILE *f)): created from dump_varpool_node
3547 2014-07-24 Richard Biener <rguenther@suse.de>
3550 * tree-ssa-structalias.c (create_variable_info_for_1):
3551 Use varpool_get_constructor.
3552 (create_variable_info_for): Likewise.
3554 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3556 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3557 subtract outgoing area size when restoring stack_pointer_rtx.
3559 2014-07-24 Nick Clifton <nickc@redhat.com>
3561 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
3562 that operations are taking place in parallel.
3563 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
3565 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
3567 * omp-low.c (extract_omp_for_data): Add missing break statement.
3569 2014-07-24 Richard Biener <rguenther@suse.de>
3571 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
3572 * tree-inline.c (estimate_move_cost): Add speed_p parameter
3573 and adjust MOVE_RATIO query accordingly.
3574 (estimate_num_insns): Adjust callers.
3575 * ipa-prop.c (ipa_populate_param_decls): Likewise.
3576 * ipa-cp.c (gather_context_independent_values,
3577 estimate_local_effects): Likewise.
3578 * ipa-split.c (consider_split): Likewise.
3580 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
3582 * config/i386/driver-i386.c: Remove names of unused arguments and
3583 unnecessary unused attributes.
3584 * config/i386/host-mingw32.c: Likewise.
3585 * config/i386/i386.c: Likewise.
3586 * config/i386/winnt-stubs.c: Likewise.
3587 * config/i386/winnt.c: Likewise.
3589 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3591 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
3592 (aarch64_gen_loadwb_pair): New helper function.
3593 (aarch64_expand_epilogue): Simplify code using new helper functions.
3594 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
3596 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3598 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
3599 (aarch64_gen_storewb_pair): New helper function.
3600 (aarch64_expand_prologue): Simplify code using new helper functions.
3601 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
3603 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3605 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
3606 Rename to aarch64_save_callee_saves, remove restore code.
3607 (aarch64_restore_callee_saves): New function.
3609 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3611 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
3612 (aarch64_save_callee_saves): New function to handle reg save
3613 for both core and vectore regs.
3615 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3617 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
3618 (aarch64_gen_store_pair): New helper function.
3619 (aarch64_save_or_restore_callee_save_registers)
3620 (aarch64_save_or_restore_fprs): Use new helper functions.
3622 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3624 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
3625 (aarch64_save_or_restore_callee_save_registers)
3626 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
3628 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3630 * config/aarch64/aarch64.c
3631 (aarch64_save_or_restore_callee_save_registers)
3632 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
3634 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3636 * config/aarch64/aarch64.c
3637 (aarch64_save_or_restore_callee_save_registers)
3638 (aarch64_save_or_restore_fprs): Remove 'increment'.
3640 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3642 * config/aarch64/aarch64.c
3643 (aarch64_save_or_restore_callee_save_registers)
3644 (aarch64_save_or_restore_fprs): Use register offset in
3645 cfun->machine->frame.reg_offset.
3647 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3649 * config/aarch64/aarch64.c
3650 (aarch64_save_or_restore_callee_save_registers)
3651 (aarch64_save_or_restore_fprs): Remove base_rtx.
3653 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3655 * config/aarch64/aarch64.c
3656 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
3657 to 'start_offset'. Remove local variable 'start_offset'.
3659 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3661 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
3662 type to HOST_WIDE_INT.
3664 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3666 * config/aarch64/aarch64.c (aarch64_expand_prologue)
3667 (aarch64_save_or_restore_fprs)
3668 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
3670 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
3672 * config/arm/t-rtems-eabi: Add
3673 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
3674 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
3675 mbig-endian/mthumb/march=armv7-r, and
3676 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
3679 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
3680 Chris Johns <chrisj@rtems.org>
3681 Joel Sherrill <joel.sherrill@oarcorp.com>
3683 * config.gcc: Add nios2-*-rtems*.
3684 * config/nios2/rtems.h: New file.
3685 * gcc/config/nios2/t-rtems: New file.
3687 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
3690 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
3691 constant numbers, not general constants.
3692 (rs6000_expand_vector_init): Ditto.
3694 2014-07-23 Nathan Sidwell <nathan@acm.org>
3696 * gcov-tool.c (gcov_list): Declare here.
3697 (set_gcov_list): Remove.
3698 (gcov_output_files): Set gcov_list directly.
3700 2014-07-23 Host Schirmeier <horst@schirmeier.com>
3702 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
3704 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3706 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
3707 callee-saved registers are available for padding purpose
3708 and r3 is not mandatory, then prefer use those callee-saved
3711 2014-07-23 Richard Biener <rguenther@suse.de>
3713 * params.def (PARAM_MAX_COMBINE_INSNS): New.
3714 * combine.c: Include statistics.h and params.h.
3715 (combine_instructions): Guard three and four insn combines
3716 with max-combine-insns value. Record statistics for combines
3718 * doc/invoke.texi (max-combine-insns): Document new param.
3720 2014-07-23 Roman Gareev <gareevroman@gmail.com>
3722 * graphite-isl-ast-to-gimple.c:
3723 (translate_isl_ast_node_block): New function.
3724 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
3726 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
3727 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
3729 2014-07-23 Roman Gareev <gareevroman@gmail.com>
3731 * graphite-isl-ast-to-gimple.c:
3732 (get_max_schedule_dimensions): New function.
3733 (extend_schedule): Likewise.
3734 (generate_isl_schedule): Add calling of extend_schedule and
3735 get_max_schedule_dimensions.
3737 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3739 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
3740 (case UNSPEC): Handle UNSPEC_RBIT.
3742 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3744 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
3745 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
3747 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3749 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
3751 2014-07-22 Roman Gareev <gareevroman@gmail.com>
3753 * graphite-isl-ast-to-gimple.c:
3754 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
3756 (build_iv_mapping): New function.
3757 (translate_isl_ast_node_user): Likewise.
3758 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
3760 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
3761 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
3762 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
3764 2014-07-21 Bin Cheng <bin.cheng@arm.com>
3767 * config/arm/arm.md (setmem): New pattern.
3768 * config/arm/arm-protos.h (struct tune_params): New fields.
3769 (arm_gen_setmem): New prototype.
3770 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
3771 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3772 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3773 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
3774 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
3775 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
3776 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
3777 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3778 (arm_const_inline_cost): New function.
3779 (arm_block_set_max_insns): New function.
3780 (arm_block_set_non_vect_profit_p): New function.
3781 (arm_block_set_vect_profit_p): New function.
3782 (arm_block_set_unaligned_vect): New function.
3783 (arm_block_set_aligned_vect): New function.
3784 (arm_block_set_unaligned_non_vect): New function.
3785 (arm_block_set_aligned_non_vect): New function.
3786 (arm_block_set_vect, arm_gen_setmem): New functions.
3788 2014-07-21 Bin Cheng <bin.cheng@arm.com>
3790 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
3792 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
3795 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
3796 out of #ifdef __OPTIMIZE__.
3798 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
3800 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
3801 different trapping status if -fnon-call-exceptions is enabled.
3803 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
3805 * expr.c (store_field): Handle VOIDmode for calls that return values
3806 in multiple locations.
3808 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3810 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
3811 (altivec_vsldoi_<mode>): Likewise.
3813 2014-07-20 Roman Gareev <gareevroman@gmail.com>
3815 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
3816 to the number of characters in the line.
3818 2014-07-20 Roman Gareev <gareevroman@gmail.com>
3820 * graphite-isl-ast-to-gimple.c: Add using of
3821 build_nonstandard_integer_type instead of int128_integer_type_node.
3823 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
3825 * toplev.c (output_stack_usage): Adjust the location of the warning.
3827 2014-07-19 Daniel Cederman <cederman@gaisler.com>
3829 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
3830 (*membar_storeload): Disable for LEON3.
3832 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
3834 PR rtl-optimization/61461
3835 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
3837 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
3840 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
3841 Fix instruction constraint.
3842 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
3844 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
3846 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
3848 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
3850 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
3851 GNU coding standards.
3852 (nds32_register_move_cost): Likewise.
3853 (nds32_memory_move_cost): Likewise.
3854 (nds32_address_cost): Likewise.
3856 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3858 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
3860 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
3862 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
3863 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
3864 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
3865 (HAVE_sync_compare_and_swapqi): Define.
3866 (HAVE_sync_compare_and_swaphi): Likewise.
3867 (HAVE_sync_compare_and_swapsi): Likewise.
3869 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
3871 * config/mips/p5600.md: Add missing cpu tests.
3873 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3875 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
3876 (vmla_f64): Likewise.
3877 (vfms_f64): Likewise.
3878 (vmls_f64): Likewise.
3880 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3882 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
3883 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
3885 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3887 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
3888 (vmlal_high_lane_s32): Likewise.
3889 (vmlal_high_lane_u16): Likewise.
3890 (vmlal_high_lane_u32): Likewise.
3891 (vmlsl_high_lane_s16): Likewise.
3892 (vmlsl_high_lane_s32): Likewise.
3893 (vmlsl_high_lane_u16): Likewise.
3894 (vmlsl_high_lane_u32): Likewise.
3896 2014-07-17 Terry Guo <terry.guo@arm.com>
3898 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
3899 (alus_reg): Renamed to alus_sreg.
3900 * config/arm/arm-fixed.md: Change type of non-dsp instructions
3901 from alu_reg to alu_sreg. Change type of dsp instructions from
3902 alu_reg to alu_dsp_reg.
3903 * config/arm/thumb1.md: Likewise.
3904 * config/arm/thumb2.md: Likewise.
3905 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
3906 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
3907 with alu_sreg and alus_sreg.
3908 * config/arm/arm1026ejs.md (alu_op): Likewise.
3909 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3910 * config/arm/arm926ejs.md (9_alu_op): Likewise.
3911 * config/arm/fa526.md (526_alu_op): Likewise.
3912 * config/arm/fa606te.md (606te_alu_op): Likewise.
3913 * config/arm/fa626te.md (626te_alu_op): Likewise.
3914 * config/arm/fa726te.md (726te_alu_op): Likewise.
3915 * config/arm/fmp626.md (mp626_alu_op): Likewise.
3916 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
3917 alu_sreg, alu_dsp_reg and alus_sreg.
3918 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3919 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3920 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3921 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
3922 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3923 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3924 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3925 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
3926 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
3927 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
3928 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
3929 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
3930 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
3931 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
3932 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
3933 alus_reg to alus_sreg.
3935 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
3937 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
3940 2014-07-17 Richard Biener <rguenther@suse.de>
3942 PR rtl-optimization/61801
3943 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
3944 don't set reg_pending_barrier if it appears in a debug-insn.
3946 2014-07-16 DJ Delorie <dj@redhat.com>
3948 * config/rx/rx.c (rx_option_override): Fix alignment values.
3949 (rx_align_for_label): Likewise.
3951 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
3954 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
3955 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3956 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
3958 (cris_print_index, cris_print_operand, cris_constant_index_p)
3959 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
3960 (cris_address_cost): Ditto last CONSTANT_P.
3961 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
3962 callers changed. Yield cris_offsettable_symbol for non-PIC
3963 constant symbolic expressions including labels. Yield cris_unspec
3965 (cris_expand_pic_call_address): New parameter MARKERP. Set its
3966 target to pic_offset_table_rtx for calls that will likely go
3967 through PLT, const0_rtx when they can't. All callers changed.
3968 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
3969 symbolic expressions to be PICified. Remove second, redundant,
3970 assert on can_create_pseudo_p returning non-zero. Use
3971 replace_equiv_address_nv, not replace_equiv_address, for final
3973 * config/cris/cris.md ("movsi"): Move variable t to pattern
3974 toplevel. Adjust assert for new cris_symbol_type member. Use
3975 CONSTANT_P instead of CONSTANT_ADDRESS_P.
3976 ("*movsi_internal") <case 9>: Make check for valid unspec operands
3978 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
3979 ("call", "call_value"): Use second incoming operand as a marker
3980 for pic-offset-table-register being used.
3981 ("*expanded_call_non_v32", "*expanded_call_v32")
3982 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
3983 second incoming operand to CALL, match cris_call_type_marker.
3984 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
3985 ("*expanded_call_side"): Ditto. Fix typo in comment.
3986 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
3988 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
3989 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
3990 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
3991 users changed. Add members cris_offsettable_symbol and cris_unspec.
3992 (cris_symbol_type): Rename from cris_pic_symbol_type.
3993 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
3995 * config/cris/cris-protos.h (cris_symbol_type_of,
3996 cris_expand_pic_call_address): Adjust prototypes.
3997 (cris_legitimate_constant_p): New prototype.
3999 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4000 an existing tmake_file. Don't add t-slibgcc and t-linux.
4002 2014-07-17 Jason Merrill <jason@redhat.com>
4005 * symtab.c (symtab_remove_from_same_comdat_group): Also
4006 set_comdat_group to NULL_TREE.
4007 (verify_symtab): Fix diagnostic.
4009 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4012 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4014 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4016 Support location tracking for built-in macro tokens
4017 * input.h (is_location_from_builtin_token): New function declaration.
4018 * input.c (is_location_from_builtin_token): New function definition.
4019 * toplev.c (general_init): Tell libcpp what the pre-defined
4020 spelling location for built-in tokens is.
4022 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4024 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4025 on the FUNCTION_DECL.
4027 2014-07-16 Richard Biener <rguenther@suse.de>
4030 * doc/extend.texi (always_inline): Clarify.
4032 2014-07-15 Eric Christopher <echristo@gmail.com>
4034 * doc/invoke.texi (Link Options): Document -z option.
4036 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4038 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4039 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4041 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4043 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4045 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4047 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4048 varpool_assemble_decl.
4049 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4052 2014-07-15 Michael Matz <matz@suse.de>
4054 PR rtl-optimization/61772
4055 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4057 2014-07-15 Richard Biener <rguenther@suse.de>
4059 * opts.c (default_options_table): Disable bit-ccp at -Og.
4061 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4063 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4065 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4067 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4068 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4069 call langhook for unknown declaration.
4070 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4071 * tree.h (DECL_ARGUMENTS): Update.
4072 * print-tree.c (print_node): Update.
4073 * tree-core.h (tree_decl_non_common): Remove arguments.
4074 (tree_function_decl): Add arguments.
4076 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4078 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4080 2014-07-14 Richard Biener <rguenther@suse.de>
4082 PR tree-optimization/61779
4083 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4084 simplifying a condition.
4086 2014-07-14 Richard Biener <rguenther@suse.de>
4088 * builtins.c (c_strlen): Make only_value == 2 really only
4089 affect warning generation.
4091 2014-07-14 Richard Biener <rguenther@suse.de>
4093 PR tree-optimization/61757
4094 PR tree-optimization/61783
4095 PR tree-optimization/61787
4096 * tree-ssa-dom.c (record_equality): Revert canonicalization
4097 change and add comment.
4098 (propagate_rhs_into_lhs): Revert previous fix, removing
4099 loop depth restriction again.
4101 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4103 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4104 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4105 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4106 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4107 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4108 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4109 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4111 2014-07-14 Richard Biener <rguenther@suse.de>
4113 * cgraph.h (decl_in_symtab_p): Make inline.
4115 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4118 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4121 * config/i386/i386.c (classify_argument): Don't merge classes above
4124 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4126 * cgraph.h (symtab_node): Add nonzero_address.
4127 (decl_in_symtab_p): Break out from ...
4128 (symtab_get_node): ... here.
4129 * fold-const.c: Include cgraph.h
4130 (tree_single_nonzero_warnv_p): Use symtab to determine
4131 if symbol is non-zero.
4132 * symtab.c (symtab_node::nonzero_address): New method.
4134 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4136 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4137 forgotten in previous commit.
4139 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4141 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4143 * ipa-devirt.c: Include stor-layout.h and intl.h
4144 (odr_subtypes_equivalent_p): New function.
4145 (warn_odr): New function.
4146 (warn_type_mismatch): New function.
4147 (odr_types_equivalent_p): New function.
4148 (add_type_duplicate): Use it.
4149 * common.opt (Wodr): New flag.
4150 * doc/invoke.texi (Wodr): Document new warning.
4152 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4154 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4155 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4156 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4157 (varpool_get_constructor): Push CTORS_IN timevar.
4158 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4160 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4162 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4163 Remove VOID_FTYPE_PUSHORT.
4164 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4165 Change code to USHORT_FTYPE_VOID.
4166 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4167 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4168 (ix86_atomic_assign_expand_fenv): Update for
4169 __builtin_ia32_fnstsw changes.
4170 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4171 (fnstsw): Change operand 0 to nonimmediate operand.
4173 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4175 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4176 (varpool_get_constructor): New function.
4177 (varpool_ctor_useable_for_folding_p): Break out from ...
4178 (ctor_for_folding): ... here; use varpool_get_constructor.
4179 (varpool_assemble_decl): Likewise.
4180 * lto-streamer.h (struct output_block): Turn cgraph_node
4182 (lto_input_variable_constructor): Declare.
4183 * ipa-visibility.c (function_and_variable_visibility): Use
4184 varpool_get_constructor.
4185 * cgraph.h (varpool_get_constructor): Declare.
4186 (varpool_ctor_useable_for_folding_p): New function.
4187 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4188 parameter; return error_mark_node for non-trivial constructors.
4189 (lto_write_tree_1, DFS_write_tree): Update use of
4190 get_symbol_initial_value.
4191 (output_function): Update initialization of symbol.
4192 (output_constructor): New function.
4193 (copy_function): Rename to ..
4194 (copy_function_or_variable): ... this one; handle vars too.
4195 (lto_output): Output variable sections.
4196 * lto-streamer-in.c (input_constructor): New function.
4197 (lto_read_body): Rename from ...
4198 (lto_read_body_or_constructor): ... this one; handle vars too.
4199 (lto_input_variable_constructor): New function.
4200 * ipa-prop.c (ipa_prop_write_jump_functions,
4201 ipa_prop_write_all_agg_replacement): Update.
4202 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4203 (output_cgraph_opt_summary): Set symbol to NULL.
4205 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4207 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4208 non-polymorphic types.
4209 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4210 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4211 of types is not polymorphic.
4213 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4215 * lra-constraints.c (remove_inheritance_pseudos): Process
4216 destination pseudo too.
4218 2014-07-11 Rong Xu <xur@google.com>
4220 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4223 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4225 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4226 * config/avr/avr-devices.c (AVR_MCU): Same.
4227 (avr_mcu_types): add text start value to end of device list.
4228 * config/avr/avr-mcus.def: Add text section start for all devices.
4229 (ata5782): Add new avr5 device.
4231 * config/avr/avr-tables.opt: Regenerate.
4232 * config/avr/avr.h: Add declaration for text section start handler.
4233 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4235 (LINK_SPEC): Include text section start handler to linker spec.
4236 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4237 pass -Ttext option to linker if the text section start for the device
4239 * config/avr/t-multilib: Regenerate.
4240 * doc/avr-mmcu.texi: Regenerate.
4242 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4244 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4245 * config/rs6000/aix52.h (LINK_SPEC): Same.
4246 * config/rs6000/aix53.h (LINK_SPEC): Same.
4247 * config/rs6000/aix61.h (LINK_SPEC): Same.
4248 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4250 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4252 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4253 (graphite_verify): New function.
4254 (ivs_params_clear): New function.
4255 (gcc_expression_from_isl_ast_expr_id): New function.
4256 (gcc_expression_from_isl_expr_int): New function.
4257 (binary_op_to_tree): New function.
4258 (ternary_op_to_tree): New function.
4259 (unary_op_to_tree): New function.
4260 (nary_op_to_tree): New function.
4261 (gcc_expression_from_isl_expr_op): New function.
4262 (gcc_expression_from_isl_expression): New function.
4263 (graphite_create_new_loop): New function.
4264 (translate_isl_ast_for_loop): New function.
4265 (get_upper_bound): New function.
4266 (graphite_create_new_loop_guard): New function.
4267 (translate_isl_ast_node_for): New function.
4268 (translate_isl_ast): New function.
4269 (add_parameters_to_ivs_params): New function.
4270 (scop_to_isl_ast): New parameter ip.
4271 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4273 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4275 * config/xtensa/predicates.md (call expander): Update for
4276 DECL_SECTION_NAME being string.
4278 2014-07-11 Richard Biener <rguenther@suse.de>
4281 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4282 can be implemented with a single load followed by a single store.
4283 (c_strlen): Only warn when only_value is not 2.
4285 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4287 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4289 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4292 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4293 (*movhi_bytes): Likewise.
4294 (*arm_movqi_insn): Likewise.
4296 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4299 * config/alpha/alpha.c: Include tree-pass.h, context.h
4301 (pass_data_handle_trap_shadows): New pass.
4302 (pass_handle_trap_shadows::gate): New pass gate function.
4303 (make_pass_handle_trap_shadows): New function.
4304 (rest_of_handle_trap_shadows): Ditto.
4306 (alpha_align_insns_1): Rename from alpha_align_insns.
4307 (pass_data_align_insns): New pass.
4308 (pass_align_insns::gate): New pass gate function.
4309 (make_pass_aling_insns): New function.
4310 (rest_of_align_insns): Ditto.
4311 (alpha_align_insns): Ditto.
4313 (alpha_option_override): Declare handle_trap_shadows info
4314 and align_insns_info. Register handle_trap_shadows and align_insns
4316 (alpha_reorg): Do not call alpha_trap_shadows and
4317 alpha_align_insn from here.
4319 (alpha_pad_function_end): Do not skip BARRIERs.
4321 2014-07-10 Rong Xu <xur@google.com>
4323 Add gcov-tool: an offline gcda profile processing tool support.
4324 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4325 (gcov_is_error): Ditto.
4326 (gcov_read_string): Ditto.
4327 (gcov_read_sync): Ditto.
4328 * gcov-io.h: Move counter defines to gcov-counter.def.
4329 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4330 * coverage.c: Ditto.
4331 * gcov-tool.c: Offline gcda profile processing tool.
4332 (unlink_gcda_file): Remove one gcda file.
4333 (unlink_profile_dir): Remove gcda files from the profile path.
4334 (gcov_output_files): Output gcda files to an output dir.
4335 (profile_merge): Merge two profiles in directory.
4336 (print_merge_usage_message): Print merge usage.
4337 (merge_usage): Print merge usage and exit.
4338 (do_merge): Driver for profile merge sub-command.
4339 (profile_rewrite): Rewrite profile.
4340 (print_rewrite_usage_message): Print rewrite usage.
4341 (rewrite_usage): Print rewrite usage and exit.
4342 (do_rewrite): Driver for profile rewrite sub-command.
4343 (print_usage): Print gcov-info usage and exit.
4344 (print_version): Print gcov-info version.
4345 (process_args): Process arguments.
4346 (main): Main routine for gcov-tool.
4347 * Makefile.in: Build and install gcov-tool.
4348 * gcov-counter.def: New file split from gcov-io.h.
4349 * doc/gcc.texi: Include gcov-tool.texi.
4350 * doc/gcov-tool.texi: Document for gcov-tool.
4352 2014-07-10 Richard Biener <rguenther@suse.de>
4354 PR tree-optimization/61757
4355 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4356 (propagate_rhs_into_lhs): Revert part of last change.
4358 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4360 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4363 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4366 * function.c (allocate_struct_function): Revert r188667 change.
4368 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4370 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4372 * doc/install.texi: Remove links to defunct package providers for
4375 2014-07-09 Tom de Vries <tom@codesourcery.com>
4377 * final.c (get_call_fndecl): Declare.
4378 (self_recursive_call_p): New function.
4379 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4381 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4383 * ipa-devirt.c (record_node): Walk through aliases.
4385 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4387 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4389 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4392 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4394 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4396 * ipa-visibility.c (function_and_variable_visibility): Remove
4397 temporary hack disabling local aliases on AIX.
4399 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4401 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4402 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4404 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4406 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4407 * rs6000/rs6000.c: Inline output of .set instruction.
4408 (declare_alias_data): New struct.
4409 (rs6000_declare_alias): New function.
4410 (rs6000_xcoff_declare_function_name): Use it.
4411 (rs6000_xcoff_declare_object_name): New function.
4412 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4413 (ASM_OUTPUT_DEF): Turn to empty definition.
4415 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4418 * hash-table.h: use hash_table::value_type instead of
4419 Descriptor::value_type in the return types of several methods.
4421 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4423 * tree-pass.h (pass_data): Remove has_execute member.
4424 * passes.c (execute_one_pass): Don't check pass->has_execute.
4425 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4426 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4427 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4428 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4429 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4430 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4431 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4432 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4433 gimple-low.c, gimple-ssa-isolate-paths.c,
4434 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4435 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4436 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4437 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4438 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4439 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4440 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4441 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4442 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4443 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4444 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4445 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4446 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4447 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4448 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4449 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4450 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4451 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4452 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4453 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4454 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4455 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4456 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4457 web.c: Remove initializer for pass_data::has_execute.
4459 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4461 * graphite-htab.h: Use hash_map instead of hash_table.
4462 * graphite-clast-to-gimple.c: Adjust.
4463 * passes.c: Use hash_map instead of hash_table.
4465 * sese.h: Remove now unused code.
4467 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4470 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4473 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4475 PR rtl-optimization/61673
4476 * combine.c (simplify_comparison): Test just mode's sign bit
4477 in tmode rather than the sign bit and any bits above it.
4479 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4481 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4482 Add __isl_give to the declaration.
4483 (generate_isl_schedule): Likewise.
4484 (scop_to_isl_ast): Likewise.
4486 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4488 * config/arm/arm.c (cortexa5_extra_costs): New table.
4489 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4491 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4493 PR tree-optimization/61725
4494 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4495 range, use range_includes_zerop_p instead of integer_zerop on
4496 vr0->min, only use log2 of max if min is not negative.
4498 2014-07-08 Richard Biener <rguenther@suse.de>
4500 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4501 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4502 restriction on loop depth difference.
4503 (record_equality): Likewise.
4504 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4505 (loop_depth_of_name): Remove.
4506 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4507 restriction on loop depth difference.
4508 (init_copy_prop): Likewise.
4510 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4512 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4514 (walk_aliased_vdefs): Likewise.
4515 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4516 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4517 (detect_type_change_from_memory_writes): Check if entry was reached.
4519 2014-07-08 Richard Biener <rguenther@suse.de>
4521 PR tree-optimization/61681
4522 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4523 NONLOCAL inside ESCAPED.
4525 2014-07-08 Richard Biener <rguenther@suse.de>
4527 PR tree-optimization/61680
4528 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4529 Handle properly all read-write dependences with group accesses.
4531 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4533 PR tree-optimization/61576
4534 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4535 block containing reduction statement is predecessor of phi basi block.
4537 2014-07-08 Marek Polacek <polacek@redhat.com>
4540 * fold-const.c (round_up_loc): Change the parameter type.
4542 * fold-const.h (round_up_loc): Adjust declaration.
4543 * stor-layout.c (finalize_record_size): Check for too large types.
4545 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4547 * symtab.c: Include calls.h.
4548 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4550 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4552 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4553 little-endian code generation.
4554 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4555 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4556 (spe_evmergehilo): Rename to...
4557 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4558 (spe_evmergelo): Rename to...
4559 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4560 (spe_evmergelohi): Rename to...
4561 (vec_perm10_v2si): ... this. Handle little-endian code generation.
4562 (spe_evmergehi, spe_evmergehilo): New expanders.
4563 (spe_evmergelo, spe_evmergelohi): Likewise.
4564 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
4565 (*frob_tf_ti): Likewise.
4566 (*frob_<mode>_di_2): Likewise.
4567 (*frob_tf_di_8_2): Likewise.
4568 (*frob_di_<mode>): Likewise.
4569 (*frob_ti_tf): Likewise.
4570 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
4571 (*frob_ti_<mode>_8_2): Likewise.
4572 (*frob_ti_tf_2): Likewise.
4573 (mov_si<mode>_e500_subreg0): Rename to...
4574 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
4576 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
4577 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4578 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
4579 the big endianness only.
4580 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
4581 (*mov_si<mode>_e500_subreg0_2): Rename to...
4582 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
4583 big big endianness only.
4584 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
4585 (*mov_si<mode>_e500_subreg4): Rename to...
4586 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
4588 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
4589 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
4590 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
4591 the big endianness only.
4592 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
4594 (*mov_si<mode>_e500_subreg4_2): Rename to...
4595 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
4597 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
4598 (*mov_sitf_e500_subreg8): Rename to...
4599 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
4601 (*mov_sitf_e500_subreg8_le): New instruction pattern.
4602 (*mov_sitf_e500_subreg8_2): Rename to...
4603 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
4605 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
4606 (*mov_sitf_e500_subreg12): Rename to...
4607 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
4609 (*mov_sitf_e500_subreg12_le): New instruction pattern.
4610 (*mov_sitf_e500_subreg12_2): Rename to...
4611 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
4613 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
4615 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
4617 * asan.c (instrument_strlen_call): Do not instrument first byte
4618 in strlen if already instrumented.
4620 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4622 * config/arm/arm.opt (mwords-little-endian): Delete.
4623 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
4624 of TARGET_LITTLE_WORDS.
4625 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
4626 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
4628 * doc/invoke.texi: Remove references to -mwords-little-endian.
4630 2014-07-07 Jakub Jelinek <jakub@redhat.com>
4632 * expmed.c (struct init_expmed_rtl): Change all fields but
4633 pow2 and cint from struct rtx_def to rtx.
4634 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
4635 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
4638 2014-07-06 Marek Polacek <polacek@redhat.com>
4641 * doc/invoke.texi: Document -Wsizeof-array-argument.
4643 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
4645 * wide-int.h (wide_int_storage): Change declaration from struct
4648 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
4650 * cgraph.c (cgraph_create_indirect_edge): Update call of
4651 get_polymorphic_call_info.
4652 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
4653 (possible_polymorphic_call_targets): Add parameter call.
4654 (decl_maybe_in_construction_p): New predicate.
4655 (get_polymorphic_call_info): Add parameter call;
4656 use decl_maybe_in_construction_p.
4657 * gimple-fold.c (fold_gimple_assign): Update use of
4658 possible_polymorphic_call_targets.
4659 (gimple_fold_call): Likewise.
4660 * ipa-prop.c: Inlcude calls.h
4661 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
4662 (param_type_may_change_p): New predicate.
4663 (detect_type_change_from_memory_writes): Break out from ...
4664 (detect_type_change): ... this one; use param_type_may_change_p.
4665 (detect_type_change_ssa): Use param_type_may_change_p.
4666 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
4668 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
4671 * config/arm/arm-protos.h (arm_legitimate_address_p,
4672 arm_is_constant_pool_ref): Add prototypes.
4673 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
4674 (arm_is_constant_pool_ref) New function.
4675 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
4676 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
4677 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
4678 operand. Remove pool_range and neg_pool_range attributes.
4679 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
4680 pool_range and neg_pool_range attributes.
4681 * config/arm/constraints.md (Uh): New constraint.
4682 (Uq): Don't allow constant pool references.
4684 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
4686 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
4687 (move_lo_quad_internal_be_<mode>): Likewise.
4688 (move_lo_quad_<mode>): Convert to define_expand.
4689 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
4690 (aarch64_simd_move_hi_quad_be_<mode>): New.
4691 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
4692 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
4693 (aarch64_combinez_be<mode>): New.
4694 (aarch64_combine<mode>): Convert to define_expand.
4695 (aarch64_combine_internal<mode>): New.
4696 (aarch64_simd_combine<mode>): Remove bogus RTL description.
4698 2014-07-04 Tom de Vries <tom@codesourcery.com>
4700 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
4701 combination of earlyclobber and read/write modifiers.
4703 2014-07-04 Tom de Vries <tom@codesourcery.com>
4705 * config/aarch64/aarch64-simd.md
4706 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
4708 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
4711 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
4713 2014-07-04 Jakub Jelinek <jakub@redhat.com>
4716 * cgraphunit.c (expand_thunk): Call free_dominance_info.
4718 PR tree-optimization/61684
4719 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
4720 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
4722 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4723 Kito Cheng <kito@0xlab.org>
4724 Monk Chiang <sh.chiang04@gmail.com>
4726 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
4727 (nds32_symbol_load_store_p): Move to ...
4728 (nds32_fp_as_gp_check_available): Move to ...
4729 * config/nds32/nds32-fp-as-gp.c: ... here.
4730 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
4733 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4734 Kito Cheng <kito@0xlab.org>
4735 Monk Chiang <sh.chiang04@gmail.com>
4737 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
4738 (nds32_expand_store_multiple): Move to ...
4739 (nds32_expand_movmemqi): Move to ...
4740 * config/nds32/nds32-memory-manipulation.c: ... here.
4742 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4743 Kito Cheng <kito@0xlab.org>
4744 Monk Chiang <sh.chiang04@gmail.com>
4746 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
4747 (nds32_output_casesi_pc_relative): Move to ...
4748 (nds32_output_casesi): Move to ...
4749 (nds32_mem_format): Move to ...
4750 (nds32_output_16bit_store): Move to ...
4751 (nds32_output_16bit_load): Move to ...
4752 (nds32_output_32bit_store): Move to ...
4753 (nds32_output_32bit_load): Move to ...
4754 (nds32_output_32bit_load_s): Move to ...
4755 (nds32_output_stack_push): Move to ...
4756 (nds32_output_stack_pop): Move to ...
4757 * config/nds32/nds32-md-auxiliary.c: ... here.
4759 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4760 Ling-Hua Tseng <uranus@tinlans.org>
4762 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
4763 the purpose of this file.
4765 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4766 Kito Cheng <kito@0xlab.org>
4767 Monk Chiang <sh.chiang04@gmail.com>
4769 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
4770 (nds32_address_cost): Move implementation to ...
4771 * config/nds32/nds32-cost.c: ... here.
4772 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
4773 (nds32_address_cost_impl): Declare.
4775 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4776 Kito Cheng <kito@0xlab.org>
4777 Monk Chiang <sh.chiang04@gmail.com>
4779 * config/nds32/nds32.c
4780 (nds32_consecutive_registers_load_store_p): Move to ...
4781 (nds32_valid_multiple_load_store): Move to ...
4782 (nds32_valid_stack_push_pop): Move to ...
4783 (nds32_can_use_bclr_p): Move to ...
4784 (nds32_can_use_bset_p): Move to ...
4785 (nds32_can_use_btgl_p): Move to ...
4786 (nds32_can_use_bitci_p): Move to ...
4787 * config/nds32/nds32-predicates.c: ... here.
4789 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4790 Kito Cheng <kito@0xlab.org>
4791 Monk Chiang <sh.chiang04@gmail.com>
4793 * config/nds32/nds32.c
4794 (nds32_expand_builtin_null_ftype_reg): Move to ...
4795 (nds32_expand_builtin_reg_ftype_imm): Move to ...
4796 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
4797 (nds32_init_builtins): Move implementation to ...
4798 (nds32_expand_builtin): Move implementation to ...
4799 * config/nds32/nds32-intrinsic.c: ... here.
4800 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
4801 (nds32_expand_builtin_impl): Declare.
4803 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4804 Kito Cheng <kito@0xlab.org>
4805 Monk Chiang <sh.chiang04@gmail.com>
4807 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
4808 (nds32_emit_section_tail_template): Move to ...
4809 (nds32_emit_isr_jmptbl_section): Move to ...
4810 (nds32_emit_isr_vector_section): Move to ...
4811 (nds32_emit_isr_reset_conten): Move to ...
4812 (nds32_check_isr_attrs_conflict): Move to ...
4813 (nds32_construct_isr_vectors_information): Move to ...
4814 (nds32_asm_file_start): Move implementation to ...
4815 (nds32_asm_file_end): Move implementation to ...
4816 * config/nds32/nds32-isr.c: ... here.
4817 * config/nds32/nds32-protos.h
4818 (nds32_check_isr_attrs_conflict): Declare.
4819 (nds32_construct_isr_vectors_information): Declare.
4820 (nds32_asm_file_start_for_isr): Declare.
4821 (nds32_asm_file_end_for_isr): Declare.
4823 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
4824 Kito Cheng <kito@0xlab.org>
4825 Monk Chiang <sh.chiang04@gmail.com>
4827 * config.gcc (nds32*): Add new modules to extra_objs.
4828 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
4829 (nds32be-*-*): Likewise.
4830 * config/nds32/nds32-cost.c: New file.
4831 * config/nds32/nds32-fp-as-gp.c: New file.
4832 * config/nds32/nds32-intrinsic.c: New file.
4833 * config/nds32/nds32-isr.c: New file.
4834 * config/nds32/nds32-md-auxiliary.c: New file.
4835 * config/nds32/nds32-memory-manipulation.c: New file.
4836 * config/nds32/nds32-pipelines-auxiliary.c: New file.
4837 * config/nds32/nds32-predicates.c: New file.
4838 * config/nds32/t-nds32: New file.
4840 2014-07-03 Jakub Jelinek <jakub@redhat.com>
4842 PR tree-optimization/61682
4843 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
4844 using cases and when one of the operands is equal to 1.
4846 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
4848 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
4849 ashr<mode>3): Correct mode of operands[2].
4850 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
4851 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
4852 Correct mode of operands[2]. Fix split condition.
4854 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
4856 * arm.md (arch): Add armv6_or_vfpv3.
4857 (arch_enabled): Add test for the above.
4858 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
4860 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
4862 2014-07-03 Jakub Jelinek <jakub@redhat.com>
4864 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
4865 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
4866 HWI 1 and negate the unsigned value.
4867 * expmed.c (expand_sdiv_pow2): For modes wider than word always
4868 use AND instead of shift.
4869 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
4871 2014-07-03 Marek Polacek <polacek@redhat.com>
4873 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
4874 (-fsanitize=float-divide-by-zero): Move to the table with
4875 -fsanitize=undefined suboptions.
4876 (-fsanitize=float-cast-overflow): Likewise.
4878 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
4880 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
4881 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
4884 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4886 * loop-invariant.c (struct invariant): Add a new member: eqno;
4887 (find_identical_invariants): Update eqno;
4888 (create_new_invariant): Init eqno;
4889 (get_inv_cost): Compute comp_cost with eqno;
4891 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
4893 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
4894 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
4895 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
4896 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
4897 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
4899 2014-07-02 Christian Bruel <christian.bruel@st.com>
4903 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
4904 (make_preds_opaque): Delete.
4905 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
4906 (commit_mode_sets): New function.
4907 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
4908 Process all modes at once.
4909 * basic-block.h (pre_edge_lcm_avs): Declare.
4910 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
4911 Call clear_aux_for_edges. Fix comments.
4912 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
4913 (pre_edge_rev_lcm): Idem.
4914 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
4916 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
4917 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
4919 * config/i386/i386.c (x96_emit_mode_set): Idem.
4920 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
4921 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
4922 (fpscr_toggle) Disallow from delay slot.
4923 * target.def (emit_mode_set): Add prev_mode parameter.
4924 * doc/tm.texi: Regenerate.
4926 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4928 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
4931 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
4933 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
4934 vtable_pointer_value_to_vtable): Constify.
4935 (contains_polymorphic_type_p): Declare.
4936 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
4937 vtable_pointer_value_to_vtable): Constify.
4938 (contains_polymorphic_type_p): New predicate.
4939 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
4941 (ipa_set_ancestor_jf): Likewise.
4942 (detect_type_change): Return false in easy cases.
4943 (compute_complex_assign_jump_func): Require type to contain
4945 (compute_known_type_jump_func): Likewise.
4947 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
4949 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
4951 (type_in_anonymous_namespace_p): Constify argument.
4952 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
4953 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
4954 (main_odr_variant): New function.
4955 (hash_type_name): Make static; update assert; do not ICE on
4957 (types_same_for_odr): Bring here from tree.c; simplify and remove
4958 old structural comparing code that doesn't work for templates.
4959 (odr_hasher::equal): Update assert.
4960 (add_type_duplicate): Return true when bases should be computed;
4961 replace incomplete loader by complete; do not output duplicated
4962 warnings; do not ICE on non-records; set odr_violated flag.
4963 (get_odr_type): Be ready to replace incomplete type by complete
4964 one; work on ODR variants instead of main variants; reorder item
4965 in array so bases have still smaller indexes.
4966 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
4967 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
4969 2014-07-01 Cary Coutant <ccoutant@google.com>
4971 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
4973 (resolve_addr_in_expr): When replacing the rtx in a location list
4974 entry, get a new address table entry.
4975 (dwarf2out_finish): Call index_location_lists even if there are no
4976 addr_index_table entries yet.
4978 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
4980 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
4981 change for not being obvious.
4983 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
4985 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
4988 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4990 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
4991 (vcagt_f64): Likewise.
4992 (vcale_f64): Likewise.
4993 (vcaled_f64): Likewise.
4994 (vcales_f32): Likewise.
4995 (vcalt_f64): Likewise.
4996 (vcaltd_f64): Likewise.
4997 (vcalts_f32): Likewise.
4999 2014-07-01 Marek Polacek <polacek@redhat.com>
5001 * doc/invoke.texi: Document -Wint-conversion.
5003 2014-07-01 Marek Polacek <polacek@redhat.com>
5006 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5008 2014-07-01 Martin Liska <mliska@suse.cz>
5010 IPA REF alias refactoring
5011 * cgraph.h (iterate_direct_aliases): New function.
5012 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5013 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5014 FOR_EACH_ALIAS added.
5015 (cgraph_for_node_and_aliases): Likewise.
5016 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5017 * ipa-inline.c (reset_edge_caches): Likewise.
5018 (update_caller_keys): Likewise.
5019 * trans-mem.c (ipa_tm_execute): Likewise.
5020 *varpool.c (varpool_analyze_node): Likewise.
5021 (varpool_for_node_and_aliases): Likewise.
5022 * ipa-ref.h (first_alias): New function.
5023 (last_alias): Likewise.
5024 (has_aliases_p): Likewise.
5025 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5026 is sensitive to IPA_REF_ALIASes.
5027 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5028 are put at the beginning of the list.
5029 (symtab_node::iterate_direct_aliases): New function.
5031 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5034 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5036 (write_ts_type_common_tree_pointers): Do not stream fields not set
5037 for incomplete types; do not stream duplicated fields for variants;
5038 sanity check that variant and type match.
5039 (write_ts_type_non_common_tree_pointers): Likewise.
5040 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5041 TYPE_SIZE whether type is complete.
5042 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5043 write_ts_type_common_tree_pointers
5044 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5046 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5048 * var-tracking.c (add_stores): Return instead of asserting if old
5049 and new values for conditional store are the same.
5051 2014-06-30 Richard Henderson <rth@redhat.com>
5055 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5056 the cfg if there were any changes.
5057 * passes.def: Revert move of peephole2 after reorder_blocks;
5058 move duplicate_computed_gotos before peephole2.
5060 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5062 * except.c (emit_note_eh_region_end): New helper function.
5063 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5064 emit EH_REGION_END note.
5065 * jump.c (cleanup_barriers): Do not split a call and its
5066 corresponding CALL_ARG_LOCATION note.
5068 2014-06-30 Jeff Law <law@redhat.com>
5070 PR tree-optimization/61607
5071 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5072 deeper into the SSA_NAME_VALUE chain.
5074 2014-06-30 Marek Polacek <polacek@redhat.com>
5076 * convert.c (convert_to_integer): Don't instrument conversions if the
5077 function has no_sanitize_undefined attribute.
5078 * ubsan.c: Don't run the ubsan pass if the function has
5079 no_sanitize_undefined attribute.
5081 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5083 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5084 -fsanitize=undefined suboptions.
5086 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5088 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5089 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5090 against bigendian and adjust indices.
5092 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5094 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5096 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5099 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5100 Add alternative; make early clobber. Adjust both split patterns
5101 to use operand 0 as the working register.
5103 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5105 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5106 as ira_object_id_map might be NULL, or 1.
5108 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5110 * loop-invariant.c (get_inv_cost): Handle register class.
5111 (gain_for_invariant): Check the register pressure of the inv
5112 and its overlapped register class, other than all.
5114 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5116 * doc/invoke.texi (Optimize Options): Fix descriptions of
5117 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5119 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5121 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5124 2014-06-29 Tobias Grosser <tobias@grosser.es>
5127 * graphite-isl-ast-to-gimple.c: Add missing guards.
5129 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5131 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5132 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5133 * flag-types.h: Add new enum fgraphite_generator.
5134 * graphite-isl-ast-to-gimple.c: New.
5135 * graphite-isl-ast-to-gimple.h: New.
5136 * graphite.c (graphite_transform_loops): Add choice of Graphite
5137 code generator, which depends on flag_graphite_code_gen.
5139 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5141 * graphite-dependences.c (subtract_commutative_associative_deps):
5142 Add NULL checking of the following variables: must_raw_no_source,
5143 may_raw_no_source, must_war_no_source, may_war_no_source,
5144 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5145 must_war, may_war, must_waw, may_waw.
5147 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5149 * graphite-clast-to-gimple.c: gloog is renamed to
5150 graphite_regenerate_ast_cloog. gloog_error is renamed to
5151 graphite_regenerate_error.
5152 * graphite-clast-to-gimple.h: The definition of the struct
5153 bb_pbb_def is moved to graphite-htab.h.
5154 Add inclusion of the hash-table.h.
5155 * graphite-htab.h: The declaration of the function gloog is moved
5156 to graphite-clast-to-gimple.h and renamed to
5157 graphite_regenerate_ast_cloog.
5158 * graphite.c (graphite_transform_loops): gloog is renamed
5159 to graphite_regenerate_ast_cloog.
5161 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5163 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5165 (write_ts_type_common_tree_pointers): Do not stream fields not set
5166 for incomplete types; do not stream duplicated fields for variants;
5167 sanity check that variant and type match.
5168 (write_ts_type_non_common_tree_pointers): Likewise.
5169 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5170 TYPE_SIZE whether type is complete.
5171 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5172 write_ts_type_common_tree_pointers
5173 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5175 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5177 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5179 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5181 * tree-inline.c (remap_type_1): Do not duplicate fields
5182 that are shared in between type and its main variant.
5184 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5186 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5188 (ipa_set_ancestor_jf) Likewise.
5189 (check_stmt_for_type_change): Check that we work on main variant.
5190 (detect_type_change): Look into main variant.
5191 (compute_known_type_jump_func): Check that main variant has BINFO.
5193 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5195 * ipa-devirt.c (set_type_binfo): New function.
5196 (add_type_duplicate): Use it.
5197 (get_odr_type): Sanity check that binfos points to main variants.
5198 (get_class_context): Be sure the context's outer_type is main variant.
5199 (contains_type_p): Walk main variant.
5200 (get_polymorphic_call_info_for_decl): Set outer_type to be
5202 (get_polymorphic_call_info): Likewise.
5203 (possible_polymorphic_call_targets): Sanity check that we operate
5206 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5208 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5210 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5212 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5213 accidental change due to wide-int branch merge.
5215 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5217 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5218 compressed debug support.
5219 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5220 * configure: Regenerate.
5221 * config.in: Regenerate.
5222 * common.opt (compressed_debug_sections): New enum.
5223 (gz, gz=): New options.
5224 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5225 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5226 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5227 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5228 LINK_COMPRESS_DEBUG_SPEC.
5229 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5230 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5231 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5232 (Debugging Options): Document -gz[=type].
5234 2014-06-27 Martin Jambor <mjambor@suse.cz>
5237 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5238 args_to_skip, use those from node instead. Copy args_to_skip and
5239 combined_args_to_skip from node to the new thunk.
5240 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5241 (cgraph_create_virtual_clone): Moved computation of
5242 combined_args_to_skip...
5243 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5245 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5247 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5248 redundant diagnostic machinary.
5250 2014-06-27 Richard Biener <rguenther@suse.de>
5252 * tree-ssa-math-opts.c (bswap_replace): Fix
5253 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5255 2014-06-27 Martin Liska <mliska@suse.cz>
5257 * gimple.h (gimple_location_safe): New function introduced.
5258 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5259 of gimple_location_safe replaces gimple_location.
5260 (gimple_fold_call): Likewise.
5261 * ipa-devirt.c (ipa_devirt): Likewise.
5262 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5263 * ipa.c (walk_polymorphic_call_targets): Likewise.
5264 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5266 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5268 PR tree-optimization/57233
5269 PR tree-optimization/61299
5270 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5272 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5273 would be lowered to scalar shifts, check if corresponding
5274 shifts and vector BIT_IOR_EXPR are supported and don't lower
5275 or lower just to narrower vector type in that case.
5276 * expmed.c (expand_shift_1): Fix up handling of vector
5279 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5282 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5284 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5286 * doc/invoke.texi (-fsemantic-interposition): Document.
5287 * common.opt (fsemantic-interposition): New flag.
5288 * varasm.c (decl_replaceable_p): Use it.
5290 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5293 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5294 extraction other than index 3.
5296 2014-06-26 Teresa Johnson <tejohnson@google.com>
5298 * doc/invoke.texi: Fix typo.
5299 * dumpfile.c: Add support for documented -fdump-* options
5300 optimized/missed/note/optall.
5302 2014-06-26 Martin Jambor <mjambor@suse.cz>
5304 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5305 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5306 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5307 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5308 * opts.c (default_options_optimization): Set
5309 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5310 * doc/invoke.texi (allow-load-data-races)
5311 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5312 (allow-store-data-races): Document the new default.
5314 2014-06-26 Martin Jambor <mjambor@suse.cz>
5316 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5317 renamed to ipa_impossible_devirt_target. Fix typo.
5318 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5319 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5320 ipa_impossible_devirt_target.
5322 2014-06-26 Richard Biener <rguenther@suse.de>
5324 PR tree-optimization/61607
5325 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5326 explaining why we restrict copies on loop depth.
5327 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5329 (record_equivalences_from_phis): Instead add it here.
5331 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5333 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5334 (LTO_WRAPPER_OBJS): New variable.
5335 (lto-wrapper$(exeext)): Use it.
5336 * collect2.c: Include "collect-utils.h".
5337 (verbose, debug): Remove variables.
5338 (at_file_supplied): No longer static.
5339 (tool_name): New variable.
5340 (do_wait, fork_execute, maybe_unlink): Don't declare.
5341 (tool_cleanup): No longer static.
5342 (notice): Remove function.
5343 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5345 (collect_wait, do_wait, collect_execute): Remove functions.
5346 (maybe_unlink): No longer static.
5347 * collect2.h (verbose, debug): Don't declare.
5348 (at_file_supplied): Declare.
5349 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5351 (collect_execute): Replace with implementation from collect2, plus a
5352 new arg use_atfile. All callers changed.
5353 (collect_wait): Replace with implementation from collect2.
5354 (maybe_unlink_file): Remove function.
5355 (fork_execute): Replace with implementation from collect2, plus a
5356 new arg use_atfile. All callers changed.
5357 (do_wait): Add call to utils_cleanup to the error path.
5358 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5359 (tool_cleanup): Adjust declarations.
5360 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5361 * tlink.c: Include "collect-utils.h".
5362 (tlink_execute): New arg use_atfile. All callers changed.
5363 (tlink_init, tlink_execute): Remove declarations.
5365 * collect-utils.c (save_temps): New variable.
5366 (do_wait): Use it instead of debug. Use fatal_error.
5367 * collect-utils.h (save_temps): Declare.
5368 * collect2.c (verbose): Rename from vflag. All uses changed.
5369 (tool_cleanup): New function, copied from collect_atexit.
5370 (collect_atexit, handler): Just call it.
5371 * collect2.h (verbose): Declaration renamed from vflag.
5372 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5375 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5376 (lto-wrapper$(exeext)): Link with collect-utils.o.
5377 * collect-utils.c: New file.
5378 * collect-utils.h: New file.
5379 * lto-wrapper.c: Include "collect-utils.h".
5380 (args_name): Delete variable.
5381 (tool_name): New variable.
5382 (tool_cleanup): New function.
5383 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5384 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5385 (fork_execute): Remove functions.
5387 2014-06-26 Nick Clifton <nickc@redhat.com>
5389 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5391 * doc/extend.texi (Function Attributes): Fix typo in description
5392 of RX vector attribute.
5394 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5396 * config.gcc (supported_defaults): Error when passing either
5397 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5399 2014-06-26 Richard Biener <rguenther@suse.de>
5401 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5402 propagating volatile pointers.
5404 2014-06-26 Richard Biener <rguenther@suse.de>
5406 PR tree-optimization/61607
5407 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5408 loop if we redirected its latch edge.
5409 (thread_block_1): Do not cancel loops prematurely.
5411 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5413 * toplev.c (backend_init_target): Move init_emit_regs and
5415 (backend_init) ... here; skip ira_init_once and backend_init_target.
5416 (target_reinit) ... and here; clear
5417 this_target_rtl->lang_dependent_initialized.
5418 (lang_dependent_init_target): Clear
5419 this_target_rtl->lang_dependent_initialized;
5420 break out rtl initialization to ...
5421 (initialize_rtl): ... here; call also backend_init_target
5423 * toplev.h (initialize_rtl): New function.
5424 * function.c: Include toplev.h
5425 (init_function_start): Call initialize_rtl.
5426 * rtl.h (target_rtl): Add target_specific_initialized,
5427 lang_dependent_initialized.
5429 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5430 Jakub Jelinek <jakub@redhat.com>
5432 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5434 2014-06-25 Tom de Vries <tom@codesourcery.com>
5436 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5438 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5440 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5441 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5442 Issue a strict overflow warning if appropriate.
5444 2014-06-25 Martin Liska <mliska@suse.cz>
5447 * Makefile.in: Removed header file (ipa-ref-inline.h).
5448 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5450 (cgraph_speculative_call_info): Likewise.
5451 (cgraph_for_node_thunks_and_aliases): Likewise.
5452 (cgraph_for_node_and_aliases): Likewise.
5453 (verify_cgraph_node): Likewise.
5454 * cgraph.h: Batch of IPA REF functions become member functions of
5455 symtab_node: add_reference, maybe_add_reference, clone_references,
5456 clone_referring, clone_reference, find_reference,
5457 remove_stmt_references, remove_all_references,
5458 remove_all_referring, dump_references, dump_referring,
5459 has_alias_p, iterate_reference, iterate_referring.
5460 * cgraphbuild.c (record_reference): New IPA REF function used.
5461 (record_type_list): Likewise.
5462 (record_eh_tables): Likewise.
5463 (mark_address): Likewise.
5464 (mark_load): Likewise.
5465 (mark_store): Likewise.
5466 (pass_build_cgraph_edges): Likewise.
5467 (rebuild_cgraph_edge): Likewise.
5468 (cgraph_rebuild_references): Likewise.
5469 (pass_remove_cgraph_callee_edges): Likewise.
5470 * cgraphclones.c (cgraph_clone_node): Likewise.
5471 (cgraph_create_virtual_clone): Likewise.
5472 (cgraph_materialize_clone): Likewise.
5473 (cgraph_materialize_all_clones): Likewise.
5474 * cgraphunit.c (cgraph_reset_node): Likewise.
5475 (cgraph_reset_node): Likewise.
5476 (analyze_function): Likewise.
5477 (assemble_thunks_and_aliases): Likewise.
5478 (expand_function): Likewise.
5479 * ipa-comdats.c (propagate_comdat_group): Likewise.
5480 (enqueue_references): Likewise.
5481 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5482 (create_specialized_node): Likewise.
5483 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5484 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5485 * ipa-inline.c (reset_edge_caches): Likewise.
5486 (update_caller_keys): Likewise.
5487 (execute): Likewise.
5488 * ipa-prop.c (remove_described_reference): Likewise.
5489 (propagate_controlled_uses): Likewise.
5490 (ipa_edge_duplication_hook): Likewise.
5491 (ipa_modify_call_arguments): Likewise.
5492 * ipa-pure-const.c (propagate_pure_const): Likewise.
5493 * ipa-ref-inline.h: Header file removed, functions moved
5494 to symtab_node class.
5495 * ipa-ref.c (remove_reference): New class member function.
5496 (cannot_lead_to_return): New class member function.
5497 (referring_ref_list): Likewise.
5498 (referred_ref_list): Likewise.
5499 Rest of functions moved to symtab_node class.
5500 * ipa-ref.h: New member functions remove_reference,
5501 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5503 ipa_ref_list class has new member functions: first_reference,
5504 first_referring, clear, nreferences.
5505 * ipa-reference.c (analyze_function): New IPA REF function used.
5506 (write_node_summary_p): Likewise.
5507 (ipa_reference_write_optimization_summary): Likewise.
5508 * ipa-split.c (split_function): Likewise.
5509 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5510 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5511 (function_and_variable_visibility): Likewise.
5512 * ipa.c (has_addr_references_p): Likewise.
5513 (process_references): Argument type changed.
5514 (symtab_remove_unreachable_nodes): New IPA REF function used.
5515 (process_references): Likewise.
5516 (set_writeonly_bit): Likewise.
5517 * lto-cgraph.c: Implementation of new symtab_node member functions
5518 that uses new IPA REF functions.
5519 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5521 * lto-streamer-out.c (output_symbol_p): Likewise.
5522 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5524 * symtab.c: Implementation of new IPA REF API.
5525 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5526 (ipa_tm_create_version): Likewise.
5527 (ipa_tm_execute): Likewise.
5528 * tree-emutls.c (gen_emutls_addr): Likewise.
5529 * tree-inline.c (copy_bb): Likewise.
5530 (delete_unreachable_blocks_update_callgraph): Likewise.
5531 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5532 (varpool_for_node_and_aliases): Likewise.
5534 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5536 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5538 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5541 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5542 tree_node * instead of tree_node *.
5544 (print_fold_checksum): Likewise.
5545 (fold_check_failed): Likewise.
5546 (debug_fold_checksum): Likewise.
5547 (fold_build1_stat_loc): Likewise.
5548 (fold_build2_stat_loc): Likewise.
5549 (fold_build3_stat_loc): Likewise.
5550 (fold_build_call_array_loc): Likewise.
5552 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5554 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5555 implementation with call to...
5556 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5558 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5561 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
5563 PR tree-optimization/57742
5564 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
5565 after replacing the statement.
5567 2014-06-25 Nick Clifton <nickc@redhat.com>
5569 * config/v850/v850.c (GHS_default_section_names): Change to const
5571 (GHS_current_section_names): Likewise.
5572 (v850_insert_attributes): Do not build strings, just assign the
5573 names directly. Change the type of 'chosen_section' to const
5575 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
5576 directly to the array entry.
5577 * config/v850/v850.h (GHS_default_section_names): Change to const
5579 (GHS_current_section_names): Likewise.
5581 2014-06-25 Jakub Jelinek <jakub@redhat.com>
5583 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
5584 (LANG_HOOKS_DECLS): Add it.
5585 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
5587 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
5588 * langhooks.h (struct lang_hooks_for_decls): Add
5589 omp_clause_linear_ctor hook.
5590 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
5591 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
5592 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
5593 combined simd loop use omp_clause_linear_ctor hook.
5595 2014-06-24 Cong Hou <congh@google.com>
5597 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
5598 pattern recognition.
5599 (type_conversion_p): PROMOTION is true if it's a type promotion
5600 conversion, and false otherwise. Return true if the given expression
5601 is a type conversion one.
5602 * tree-vectorizer.h: Adjust the number of patterns.
5603 * tree.def: Add SAD_EXPR.
5604 * optabs.def: Add sad_optab.
5605 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
5606 * expr.c (expand_expr_real_2): Likewise.
5607 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5608 * gimple.c (get_gimple_rhs_num_ops): Likewise.
5609 * optabs.c (optab_for_tree_code): Likewise.
5610 * tree-cfg.c (estimate_operator_cost): Likewise.
5611 * tree-ssa-operands.c (get_expr_operands): Likewise.
5612 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
5613 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
5614 * doc/generic.texi: Add document for SAD_EXPR.
5615 * doc/md.texi: Add document for ssad and usad.
5617 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5619 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
5620 qualification in cast.
5622 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
5624 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
5625 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
5626 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
5627 (tree_function_decl): ... here.
5628 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
5629 streaming of vindex to ...
5630 (write_ts_function_decl_tree_pointers): ... here.
5631 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
5632 Do not stream DECL_VINDEX.
5633 (lto_input_ts_function_decl_tree_pointers): Stream it here.
5635 2014-06-24 Catherine Moore <clm@codesourcery.com>
5636 Sandra Loosemore <sandra@codesourcery.com>
5638 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
5639 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
5640 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
5642 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5644 * doc/invoke.texi (Warning Options): Remove duplicated
5645 -Wmaybe-uninitialized.
5647 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5649 PR tree-optimization/57742
5650 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
5651 (handle_builtin_malloc, handle_builtin_memset): New functions.
5652 (strlen_optimize_stmt): Call them.
5653 * passes.def: Move strlen after loop+dom but before vrp.
5655 2014-06-24 Jakub Jelinek <jakub@redhat.com>
5658 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
5659 model family 6 CPU with has_longmode never use a CPU without
5662 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
5665 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
5668 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5670 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
5671 * dominance.c (iterate_fix_dominators): Use hash_map instead of
5673 * hash-map.h: New file.
5674 * ipa-comdats.c: Use hash_map instead of pointer_map.
5676 * lto-section-out.c: Adjust.
5677 * lto-streamer.h: Replace pointer_map with hash_map.
5678 * symtab.c (verify_symtab): Likewise.
5679 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
5680 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
5681 * tree-streamer.h: Likewise.
5682 * tree-streamer.c: Adjust.
5683 * pointer-set.h: Remove pointer_map.
5685 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5687 * hash-table.h: Add a template arg to choose between storing values
5688 and storing pointers to values, and then provide partial
5689 specializations for both.
5690 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
5691 should store, not the type values should point to.
5692 * tree-into-ssa.c (var_info_hasher): Likewise.
5693 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
5694 * tree-complex.c: Adjust.
5695 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
5696 table instead of int_tree_map *.
5697 * tree-parloops.c: Adjust.
5698 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
5699 type is being stored.
5700 * tree-vectorizer.c: Adjust.
5702 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5704 * hash-table.h: Remove a layer of indirection from hash_table so that
5705 it contains the hash table's data instead of a pointer to the data.
5706 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
5707 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
5708 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
5709 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
5710 fold-const.c, gcse.c, ggc-common.c,
5711 gimple-ssa-strength-reduction.c, gimplify.c,
5712 graphite-clast-to-gimple.c, graphite-dependences.c,
5713 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
5714 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
5715 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
5716 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
5717 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
5718 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
5719 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
5720 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
5721 tree-ssa-live.c, tree-ssa-loop-im.c,
5722 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
5723 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
5724 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
5725 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
5726 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
5727 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
5728 vtable-verify.c, vtable-verify.h: Adjust.
5730 2014-06-24 Richard Biener <rguenther@suse.de>
5732 PR tree-optimization/61572
5733 * tree-ssa-sink.c (statement_sink_location): Do not sink
5734 loads from hard registers.
5736 2014-06-24 Jakub Jelinek <jakub@redhat.com>
5738 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
5739 not mentioned in clauses use private clause if the iterator is
5740 declared in #pragma omp for simd, and when adding lastprivate
5741 instead, add it to the outer #pragma omp for too. Diagnose
5742 if the variable is private in outer context. For simd collapse > 1
5743 loops, replace all iterators with temporaries.
5744 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
5745 same even in collapse > 1 loops.
5747 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
5748 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
5750 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
5751 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
5753 (gimplify_adjust_omp_clauses): Likewise.
5754 * omp-low.c (lower_rec_simd_input_clauses,
5755 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
5756 safelen the same as safelen(1).
5757 * tree-nested.c (convert_nonlocal_omp_clauses,
5758 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
5759 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
5760 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
5761 Fixup handling of GIMPLE_OMP_TARGET.
5762 (convert_tramp_reference_stmt, convert_gimple_call): Handle
5765 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
5767 PR tree-optimization/61554
5768 * tree-ssa-propagate.c: Include "bitmap.h".
5769 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
5770 properly update constructor/destructor.
5771 (substitute_and_fold_dom_walker::before_dom_children):
5772 Remove call to gimple_purge_dead_eh_edges, add bb->index to
5773 need_eh_cleaup instead.
5774 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
5777 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
5779 * varpool.c (dump_varpool_node): Dump used_by_single_function.
5780 * tree-pass.h (make_pass_ipa_single_use): New pass.
5781 * cgraph.h (used_by_single_function): New flag.
5782 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
5784 * passes.def (pass_ipa_single_use): Scedule.
5785 * ipa.c (BOTTOM): New macro.
5786 (meet): New function
5787 (propagate_single_user): New function.
5788 (ipa_single_use): New function.
5789 (pass_data_ipa_single_use): New pass.
5790 (pass_ipa_single_use): New pass.
5791 (pass_ipa_single_use::gate): New gate.
5792 (make_pass_ipa_single_use): New function.
5794 2014-06-23 Kai Tietz <ktietz@redhat.com>
5797 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
5798 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
5800 2014-06-23 Richard Biener <rguenther@suse.de>
5802 * tree-ssa-loop.c (gate_loop): New function.
5803 (pass_tree_loop::gate): Call it.
5804 (pass_data_tree_no_loop, pass_tree_no_loop,
5805 make_pass_tree_no_loop): New.
5806 * tree-vectorizer.c: Include tree-scalar-evolution.c
5807 (pass_slp_vectorize::execute): Initialize loops and SCEV if
5809 (pass_slp_vectorize::clone): New method.
5810 * timevar.def (TV_TREE_NOLOOP): New.
5811 * tree-pass.h (make_pass_tree_no_loop): Declare.
5812 * passes.def (pass_tree_no_loop): New pass group with
5815 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
5818 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
5819 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
5821 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
5823 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
5826 2014-06-23 Alan Modra <amodra@gmail.com>
5829 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
5830 to zero on debug statements.
5832 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
5835 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
5836 Ignore third operand if present by marking qualifier_internal.
5838 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
5840 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
5842 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
5843 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
5844 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
5845 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
5846 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
5847 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
5848 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
5849 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
5850 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
5851 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
5852 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
5853 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
5854 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
5855 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
5856 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
5857 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
5858 logic in GCC vector extensions
5860 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
5861 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
5862 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
5863 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
5864 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
5865 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
5866 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
5867 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
5868 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
5869 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
5871 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
5873 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
5876 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
5877 (vget_low_s64): Use __GET_LOW macro.
5878 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
5879 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
5880 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
5881 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
5882 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
5884 (vcombine_s64): Use GCC vector extensions; remove cast.
5885 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
5886 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
5887 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
5888 Fix type signature; remove cast.
5890 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
5893 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
5895 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
5898 (BUILTIN_VD_RE): Remove.
5899 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
5900 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
5901 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
5903 (vreinterpretv1df*, vreinterpret*v1df): New.
5904 (vreinterpretdf*, vreinterpret*df): Remove.
5905 * config/aarch64/aarch64-simd.md (aarch64_create,
5906 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
5907 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
5909 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
5910 (vcreate_f64): Remove cast, use v1df builtin.
5911 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
5912 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
5913 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
5914 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
5915 vmov_n_f64, vst1_f64): Use gcc vector extensions.
5916 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
5917 add range check using __builtin_aarch64_im_lane_boundsi.
5918 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
5919 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
5920 type signature, use gcc vector extensions.
5921 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
5922 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
5923 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
5924 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
5925 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
5926 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
5927 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
5928 vreinterpret_u64_f64): Use v1df builtin not df.
5930 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
5932 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
5935 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
5937 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
5940 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5942 * loop-invariant.c (pre_check_invariant_p): New function.
5943 (find_invariant_insn): Call pre_check_invariant_p.
5945 2014-06-22 Richard Henderson <rth@redhat.com>
5948 * compare-elim.c (struct comparison): Add eh_note.
5949 (find_comparison_dom_walker::before_dom_children): Don't eliminate
5950 a redundant comparison in a different EH region. Purge EH edges if
5953 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
5955 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
5956 (var_shift): Use it.
5957 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
5958 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
5959 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
5960 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
5961 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
5962 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
5963 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
5964 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
5965 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
5966 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
5967 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
5968 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
5969 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
5970 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
5971 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
5972 *rotldi3_internal15be): Use the new attribute. Merge register and
5973 integer alternatives.
5975 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
5977 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
5978 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
5979 split, *ashrdi3_internal3 and split): Delete, merge into...
5980 (ashr<mode>3): New expander.
5981 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
5982 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
5984 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
5986 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
5987 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
5988 *rotldi3_internal3 and split): Delete, merge into...
5989 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
5990 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
5991 Use "rotlw" extended mnemonic.
5993 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
5995 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
5996 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
5997 and split, *ashldi3_internal3 and split): Delete, merge into...
5998 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
5999 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6001 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6003 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6004 (lshrsi3, two anonymous define_insns and define_splits,
6005 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6006 *lshrdi3_internal3 and split): Delete, merge into...
6007 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6008 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6010 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6012 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6013 Remove "O" alternative.
6015 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6017 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6018 (mips_move_from_gpr_cost): Likewise.
6019 (mips_register_move_cost): Update accordingly.
6020 (mips_secondary_reload_class): Remove name of in_p.
6022 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6025 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6026 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6028 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6030 * config/nios2/nios2.c: Include "builtins.h".
6032 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6034 * cgraph.h (tls_model_names): New variable.
6035 * print-tree.c (print_node): Simplify.
6036 * varpool.c (tls_model_names): New variable.
6037 (dump_varpool_node): Output tls model.
6039 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6041 * ipa-visibility.c (function_and_variable_visibility): Disable
6042 temporarily local aliases for some targets.
6044 2014-06-20 Marek Polacek <polacek@redhat.com>
6046 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6047 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6048 into SANITIZE_UNDEFINED.
6049 * doc/invoke.texi: Describe -fsanitize=bounds.
6050 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6051 functions created in the FEs.
6052 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6053 (expand_UBSAN_BOUNDS): New function.
6054 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6055 * internal-fn.h: Don't define internal functions here.
6056 * opts.c (common_handle_option): Add -fsanitize=bounds.
6057 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6058 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6059 * tree-core.h: Define internal functions here.
6060 (struct tree_base): Add ifn field.
6061 * tree-pretty-print.c: Include "internal-fn.h".
6062 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6063 * tree.c (get_callee_fndecl): Likewise.
6064 (build_call_expr_internal_loc): New function.
6065 * tree.def (CALL_EXPR): Update description.
6066 * tree.h (CALL_EXPR_IFN): Define.
6067 (build_call_expr_internal_loc): Declare.
6068 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6070 (ubsan_type_descriptor): Change bool parameter to enum
6071 ubsan_print_style. Adjust the code. Add handling of
6073 (ubsan_expand_bounds_ifn): New function.
6074 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6075 (ubsan_build_overflow_builtin): Likewise.
6076 (instrument_bool_enum_load): Likewise.
6077 (ubsan_instrument_float_cast): Likewise.
6078 * ubsan.h (enum ubsan_print_style): New enum.
6079 (ubsan_expand_bounds_ifn): Declare.
6080 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6082 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6084 * config/rs6000/rs6000.md: Append `DONE' to preparation
6085 statements of `bswap' pattern splitters.
6087 2014-06-20 Tom de Vries <tom@codesourcery.com>
6089 * target.def (call_fusage_contains_non_callee_clobbers): Update
6091 * doc/tm.texi: Regenerate.
6093 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6094 Max Ostapenko <m.ostapenko@partner.samsung.com>
6097 * asan.c (instrument_strlen_call): Fixed instrumentation of
6100 2014-06-20 Martin Jambor <mjambor@suse.cz>
6103 * ipa-prop.c (impossible_devirt_target): New function.
6104 (try_make_edge_direct_virtual_call): Use it, also instead of
6107 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6108 Max Ostapenko <m.ostapenko@partner.samsung.com>
6111 * asan.c (build_check_stmt): Add condition.
6113 2014-06-20 Martin Jambor <mjambor@suse.cz>
6116 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6119 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6121 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6123 (VCONQ): Make comment more helpful.
6125 * config/aarch64/aarch64-simd.md
6126 (aarch64_sqdmulh_lane<mode>):
6127 Use VCOND for operands 2. Update lane checking and flipping logic.
6128 (aarch64_sqrdmulh_lane<mode>): Likewise.
6129 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6130 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6131 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6132 attribute of operand 3 to VCOND.
6133 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6134 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6135 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6136 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6137 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6138 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6140 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6141 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6142 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6143 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6144 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6145 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6146 operand to VCOND. Update lane flipping and bounds checking logic.
6147 (aarch64_sqdmlal2_lane<mode>): Likewise.
6148 (aarch64_sqdmlsl_lane<mode>): Likewise.
6149 (aarch64_sqdmull_lane<mode>): Likewise.
6150 (aarch64_sqdmull2_lane<mode>): Likewise.
6151 (aarch64_sqdmlal_laneq<mode>):
6152 Replace VCON usage with VCONQ.
6153 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6154 (aarch64_sqdmlal2_laneq<mode>): Emit
6155 aarch64_sqdmlal2_laneq<mode>_internal insn.
6156 Replace VCON with VCONQ.
6157 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6158 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6159 (aarch64_sqdmull_laneq<mode>): Emit
6160 aarch64_sqdmull_laneq<mode>_internal insn.
6161 Replace VCON with VCONQ.
6162 (aarch64_sqdmull2_laneq<mode>): Emit
6163 aarch64_sqdmull2_laneq<mode>_internal insn.
6164 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6165 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6166 of 3rd argument to int16x4_t.
6167 (vqdmlalh_lane_s16): Likewise.
6168 (vqdmlslh_lane_s16): Likewise.
6169 (vqdmull_high_lane_s16): Likewise.
6170 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6171 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6172 (vqdmlsl_lane_s16): Likewise.
6173 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6174 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6175 (vqdmlals_lane_s32): Likewise.
6176 (vqdmlsls_lane_s32): Likewise.
6177 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6178 (vqdmulls_lane_s32): Likewise.
6179 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6180 (vqdmlsl_lane_s32): Likewise.
6181 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6182 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6183 (vqrdmulhh_lane_s16): Likewise.
6184 (vqdmlsl_high_lane_s16): Likewise.
6185 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6186 (vqdmlsl_high_lane_s32): Likewise.
6187 (vqrdmulhs_lane_s32): Likewise.
6189 2014-06-20 Tom de Vries <tom@codesourcery.com>
6191 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6192 get_call_reg_set_usage.
6194 2014-06-20 Tom de Vries <tom@codesourcery.com>
6196 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6197 it contains all call_used_regs.
6199 2014-06-20 Tom de Vries <tom@codesourcery.com>
6201 * final.c (collect_fn_hard_reg_usage): Add and use variable
6204 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6206 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6207 (set_init_priority, get_init_priority, set_fini_priority,
6208 get_fini_priority): New methods.
6209 * tree.c (init_priority_for_decl): Remove.
6210 (init_ttree): Do not initialize init priority.
6211 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6212 (decl_priority_info): Remove.
6213 (decl_init_priority_insert): Rewrite.
6214 (decl_fini_priority_insert): Rewrite.
6215 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6216 tree_priority_map_marked_p): Remove.
6217 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6218 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6219 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6220 not output priorities.
6221 (pack_ts_function_decl_value_fields): Likewise.
6222 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6223 not input priorities.
6224 (unpack_ts_function_decl_value_fields): Likewise.
6225 * symtab.c (symbol_priority_map): Declare.
6226 (init_priority_hash): Declare.
6227 (symtab_unregister_node): Unregister from priority hash, too.
6228 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6230 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6231 (symbol_priority_info): New function.
6232 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6234 * tree-core.h (tree_priority_map): Remove.
6236 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6238 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6239 0xff to uint64_t before shifting it up.
6241 2014-06-20 Julian Brown <julian@codesourcery.com>
6242 Chung-Lin Tang <cltang@codesourcery.com>
6244 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6245 TARGET_THUMB1_ONLY. Add comments.
6247 2014-06-19 Tom de Vries <tom@codesourcery.com>
6249 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6250 return type to void.
6251 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6253 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6255 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6256 as "move", from depends_on.
6258 2014-06-19 Terry Guo <terry.guo@arm.com>
6260 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6263 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6265 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6267 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6269 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6272 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6273 addresses here if reload in progress or completed.
6275 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6277 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6278 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6279 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6280 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6281 (mips_register_priority): New function that implements the target
6282 hook TARGET_REGISTER_PRIORITY.
6283 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6284 (mips_lra_p): Likewise for TARGET_LRA_P.
6285 (TARGET_REGISTER_PRIORITY): Define macro.
6286 (TARGET_SPILL_CLASS): Likewise.
6287 (TARGET_LRA_P): Likewise.
6288 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6290 (REG_CLASS_NAMES): Likewise.
6291 (REG_CLASS_CONTENTS): Likewise.
6292 (BASE_REG_CLASS): Use M16_SP_REGS.
6293 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6294 New set attribute to enable alternatives depending on the register
6296 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6297 (*lea64): Disable pattern for MIPS16.
6298 * config/mips/mips.opt (mlra): New option.
6300 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6302 * lra-constraints.c (base_to_reg): New function.
6303 (process_address): Use new function.
6305 2014-06-18 Tom de Vries <tom@codesourcery.com>
6307 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6308 * config/aarch64/aarch64.c
6309 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6310 (aarch64_emit_call_insn): New function.
6311 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6313 * config/aarch64/aarch64.md (define_expand "call_internal")
6314 (define_expand "call_value_internal", define_expand "sibcall_internal")
6315 (define_expand "sibcall_value_internal"): New.
6316 (define_expand "call", define_expand "call_value")
6317 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6318 expand variant and aarch64_emit_call_insn.
6320 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6321 Tom de Vries <tom@codesourcery.com>
6323 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6324 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6326 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6327 clobbers to CALL_INSN_FUNCTION_USAGE.
6328 (define_expand "sibcall_internal")
6329 (define_expand "sibcall_value_internal"): New.
6330 (define_expand "call", define_expand "call_value"): Add argument to
6332 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6333 (define_expand "sibcall_value"): Use sibcall_value_internal and
6336 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6338 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6340 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6342 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6345 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6347 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6348 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6349 annotations. Fix DWARF information.
6351 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6353 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6354 __udivmoddi4, and fixups for negative operands.
6356 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6358 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6360 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6362 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6365 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6367 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6370 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6372 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6373 describing register usage on function entry and exit.
6375 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6377 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6378 (__aeabi_ldivmod): Fix whitespace.
6380 2014-06-18 Andreas Schwab <schwab@suse.de>
6382 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6383 Remove blank line after @item.
6385 2014-06-18 Richard Henderson <rth@redhat.com>
6388 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6390 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6392 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6393 POST_MODIFY for neon loads and stores.
6394 (arm_print_operand): Output post-index register for neon loads and
6397 2014-06-18 Richard Biener <rguenther@suse.de>
6399 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6401 2014-06-18 Richard Biener <rguenther@suse.de>
6403 * tree-pass.h (make_pass_dce_loop): Remove.
6404 * passes.def: Replace pass_dce_loop with pass_dce.
6405 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6406 changed free niter estimates and reset the scev cache.
6407 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6408 make_pass_dce_loop): Remove.
6409 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6410 (fini_copy_prop): Return whether something changed. Always
6411 let substitute_and_fold perform DCE and free niter estimates
6412 and reset the scev cache if so.
6413 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6414 (pass_data_copy_prop): Do not unconditionally schedule
6415 cleanup-cfg or update-ssa.
6417 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6419 PR tree-optimization/61518
6420 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6421 reduction var is used in reduction stmt or phi-function only.
6423 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6425 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6427 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6429 PR tree-optimization/61517
6430 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6431 whose rhs's first tree is the source expression instead of the
6433 (find_bswap_or_nop): Likewise.
6434 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6435 gimple stmt whose rhs's first tree is the source. In the memory source
6436 case, move the stmt to be replaced close to one of the original load to
6437 avoid the problem of a store between the load and the stmt's original
6439 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6442 2014-06-18 Andreas Schwab <schwab@suse.de>
6444 PR rtl-optimization/54555
6445 * postreload.c (move2add_use_add2_insn): Substitute
6446 STRICT_LOW_PART only if it is cheaper.
6448 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6450 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6451 Do not use unspec as call operand. Use memory_operand instead of
6452 memory_nox32_operand and add "m" operand constraint. Disable
6453 pattern for TARGET_X32.
6454 (*sibcall_pop_memory): Ditto.
6455 (*sibcall_value_memory): Ditto.
6456 (*sibcall_value_pop_memory): Ditto.
6457 (sibcall peepholes): Merge SImode and DImode patterns using
6458 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6459 Disable pattern for TARGET_X32. Check if eliminated register is
6460 really dead after call insn. Generate call RTX without unspec operand.
6461 (sibcall_value peepholes): Ditto.
6462 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6463 instead of memory_nox32_operand. Check if eliminated register is
6464 really dead after call insn. Generate call RTX without unspec operand.
6465 (sibcall_value_pop peepholes): Ditto.
6466 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6468 2014-06-18 Terry Guo <terry.guo@arm.com>
6471 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6474 2014-06-18 Olivier Hainque <hainque@adacore.com>
6476 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6477 memorization of the end of block source location.
6478 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6479 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6480 end source location info we have on the block entry/exit code we
6483 2014-06-18 Richard Biener <rguenther@suse.de>
6485 * common.opt (fssa-phiopt): New option.
6486 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6488 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6489 * doc/invoke.texi (-fssa-phiopt): Document.
6491 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6493 * genattrtab.c (n_bypassed): New variable.
6494 (process_bypasses): Initialise n_bypassed.
6495 Count number of bypassed reservations.
6496 (make_automaton_attrs): Allocate space for bypassed reservations
6497 rather than number of bypasses.
6499 2014-06-18 Richard Biener <rguenther@suse.de>
6501 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6502 we propagated anything.
6503 (substitute_and_fold_dom_walker::before_dom_children): Something
6504 changed if we propagated into PHI arguments.
6505 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6508 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6510 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6512 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6513 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6514 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6515 Introduces alternative way of loads group permutaions.
6516 (vect_transform_grouped_load): Try alternative way of permutations.
6518 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6520 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6521 changed in ORT_TARGET region, don't jump to do_outer.
6522 (struct gimplify_adjust_omp_clauses_data): New type.
6523 (gimplify_adjust_omp_clauses_1): Adjust for data being
6524 a struct gimplify_adjust_omp_clauses_data pointer instead
6525 of tree *. Pass pre_p as a new argument to
6526 lang_hooks.decls.omp_finish_clause hook.
6527 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6528 splay_tree_foreach to pass both list_p and pre_p.
6529 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6530 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6531 gimplify_adjust_omp_clauses callers.
6532 * langhooks.c (lhd_omp_finish_clause): New function.
6533 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6534 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6535 * langhooks.h (struct lang_hooks_for_decls): Add a new
6536 gimple_seq * argument to omp_finish_clause hook.
6537 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6538 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6539 (scan_omp_parallel, lower_omp_for): When adding
6540 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6541 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6542 * tree-nested.c (convert_nonlocal_omp_clauses,
6543 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6544 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6546 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6548 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6549 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6551 2014-06-17 Xinliang David Li <davidxl@google.com>
6553 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6554 * passes.c (pass_init_dump_file): Do not set initialize
6555 flag to false unconditionally.
6557 2014-06-17 Richard Biener <rguenther@suse.de>
6559 * genopinit.c (main): Use vec<>::qsort method.
6560 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6562 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
6564 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
6566 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
6567 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
6568 (mips_move_to_gpr_cost): Remove ST_REGS case.
6569 (mips_move_from_gpr_cost): Likewise.
6570 (mips_register_move_cost): Likewise.
6571 (mips_secondary_reload_class): Likewise.
6573 2014-06-17 Richard Biener <rguenther@suse.de>
6575 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
6576 (pass_all_optimizations): Move 3rd copy-prop pass from after
6577 fre to before ifcombine/phiopt.
6579 2014-06-17 Richard Biener <rguenther@suse.de>
6581 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
6582 and allow all blocks to be forwarders.
6584 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
6587 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
6588 variable 'size'; calculate 'size' right in the front; use
6589 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
6590 pcum->aapcs_stack_words.
6592 2014-06-17 Nick Clifton <nickc@redhat.com>
6594 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
6595 (umulhi3, mulsidi3, umulsidi3): Likewise.
6597 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
6600 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
6601 check for section name.
6603 2014-06-17 Richard Biener <rguenther@suse.de>
6605 * tree-ssa-propagate.c: Include domwalk.h.
6606 (substitute_and_fold): Outline main worker into a domwalker ...
6607 (substitute_and_fold_dom_walker::before_dom_children): ... here.
6608 Schedule stmts we can fully propagate for removal. Remove
6610 (substitute_and_fold): Apply a dominator walk to perform
6611 substitution. Process stmts scheduled for removal here.
6613 2014-06-17 Richard Biener <rguenther@suse.de>
6615 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
6618 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6620 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
6621 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
6622 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6623 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
6624 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
6626 (get_fpscr) : Likewise.
6628 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6630 PR rtl-optimization/61325
6631 * lra-constraints.c (valid_address_p): Add forward declaration.
6632 (simplify_operand_subreg): Check address validity before and after
6633 alter_reg of memory subreg.
6635 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
6637 * config/i386/i386.c (decide_alg): Correctly handle
6638 maximum size of stringop algorithm.
6640 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6642 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
6644 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6646 PR rtl-optimization/61522
6647 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
6649 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
6652 * symtab.c (symtab_node::reset_section): New method.
6653 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
6655 * cgraph.h (reset_section): Declare.
6656 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
6657 do not consider comdat locals.
6658 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
6660 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
6661 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
6662 reset sections of symbols dragged out of the comdats.
6663 (function_and_variable_visibility): Reset sections of
6666 2014-06-16 Richard Biener <rguenther@suse.de>
6668 PR tree-optimization/61482
6669 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
6670 [-INF(OVF), +INF(OVF)] range.
6672 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6674 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
6675 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
6676 handling 32-bit multiplication.
6678 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
6681 * lra-lives.c (process_bb_lives): Skip creating copy during
6682 insn scan when src/dest has constrained to same regno.
6684 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
6686 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
6687 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
6689 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6691 * asan.c (check_func): New function.
6692 (maybe_create_ssa_name): Likewise.
6693 (build_check_stmt_with_calls): Likewise.
6694 (use_calls_p): Likewise.
6695 (report_error_func): Change interface.
6696 (build_check_stmt): Allow non-integer lengths; add support
6698 (asan_instrument): Likewise.
6699 (instrument_mem_region_access): Moved code to build_check_stmt.
6700 (instrument_derefs): Likewise.
6701 (instrument_strlen_call): Likewise.
6702 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
6703 * doc/invoke.texi: Describe new parameter.
6704 * params.def: Define new parameter.
6705 * params.h: Likewise.
6706 * sanitizer.def: Describe new builtins.
6708 2014-06-16 Richard Biener <rguenther@suse.de>
6710 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6711 Make all defs available at the end.
6712 (eliminate): If we remove a PHI node schedule cfg-cleanup.
6714 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6717 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
6719 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
6722 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
6723 initialization. Replace remaining use of uid.
6725 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
6727 * c-family/c-common.c (handle_tls_model_attribute): Use
6729 * c-family/c-common.c (handle_tls_model_attribute): Use
6731 * cgraph.h (struct varpool_node): Add tls_model.
6732 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
6733 * tree.h (DECL_TLS_MODEL): Update.
6734 (DECL_THREAD_LOCAL_P): Check that variable is static.
6735 (decl_tls_model): Declare.
6736 (set_decl_tls_model): Declare.
6737 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
6738 set symbol prorperties.
6739 (get_emutls_init_templ_addr): Cleanup.
6740 (new_emutls_decl): Update.
6741 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
6742 (lto_input_varpool_node): Likewise.
6743 * lto-streamer-out.c (hash_tree): Likewise.
6744 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6745 not stream DECL_TLS_MODEL.
6746 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
6747 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
6749 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
6751 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
6753 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
6755 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
6756 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
6758 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
6759 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
6760 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
6761 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
6762 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
6763 (df_get_artificial_defs, df_get_artificial_uses)
6764 (df_single_def, df_single_use): Update accordingly.
6765 (df_refs_chain_dump): Take the first element in a linked list as
6766 parameter, rather than a pointer to an array of pointers.
6767 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
6768 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
6769 (df_chain_create_bb_process_use): Likewise.
6770 (df_md_bb_local_compute_process_def): Likewise.
6771 * fwprop.c (process_defs, process_uses): Likewise.
6772 (register_active_defs, update_uses): Likewise.
6773 (forward_propagate_asm): Update for new df_ref linking.
6774 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
6775 (df_null_ref_rec, df_null_mw_rec): Likewise.
6776 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
6778 (df_scan_free_bb_info): Remove check for null artificial_defs.
6779 (df_install_ref_incremental): Adjust for new df_ref linking.
6780 Use a single-element insertion rather than a full sort.
6781 (df_ref_chain_delete_du_chain): Take the first element
6782 in a linked list as parameter, rather than a pointer to an array of
6784 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
6785 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
6786 (df_insn_info_delete): Remove check for null defs and call to
6787 df_scan_free_mws_vec.
6788 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
6789 null rather than df_null_*_rec.
6790 (df_insn_rescan_debug_internal): Likewise, and update null
6791 checks in the same way. Remove check for null defs.
6792 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
6793 Move a single element rather doing a full sort.
6794 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
6796 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
6797 Initialize df_ref and df_mw_hardreg lists to null rather than
6799 (df_ref_compare): Take df_refs as parameter, transferring the
6801 (df_ref_ptr_compare): ...this new function.
6802 (df_sort_and_compress_refs): Update accordingly.
6803 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
6805 (df_mw_ptr_compare): ...this new function.
6806 (df_sort_and_compress_mws): Update accordingly.
6807 (df_install_refs, df_install_mws): Return a linked list rather than
6808 an array of pointers.
6809 (df_refs_add_to_chains): Assert that old lists are empty rather
6811 (df_insn_refs_verify): Don't handle null defs speciailly.
6812 * web.c (union_match_dups): Update for new df_ref linking.
6814 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
6816 * df.h (df_ref_create, df_ref_remove): Delete.
6817 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
6818 (df_ref_remove): Likewise.
6820 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
6822 * df.h (df_single_def, df_single_use): New functions.
6823 * ira.c (find_moveable_pseudos): Use them.
6825 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
6827 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
6828 * df-problems.c (df_note_bb_compute): Use it.
6829 * regstat.c (regstat_bb_compute_ri): Likewise.
6831 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
6833 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
6834 * cse.c (cse_extended_basic_block): Use them.
6835 * dce.c (mark_artificial_use): Likewise.
6836 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
6837 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
6838 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
6839 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
6840 (df_simulate_initialize_backwards): Likewise.
6841 (df_simulate_finalize_backwards): Likewise.
6842 (df_simulate_initialize_forwards): Likewise.
6843 (df_md_simulate_artificial_defs_at_top): Likewise.
6844 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
6845 * regrename.c (init_rename_info): Likewise.
6846 * regstat.c (regstat_bb_compute_ri): Likewise.
6847 (regstat_bb_compute_calls_crossed): Likewise.
6849 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
6851 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
6852 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
6853 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
6854 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
6855 * combine.c (create_log_links): Likewise.
6856 * compare-elim.c (find_flags_uses_in_insn): Likewise.
6857 (try_eliminate_compare): Likewise.
6858 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
6859 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
6860 (remove_reg_equal_equiv_notes_for_defs): Likewise.
6861 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
6862 (word_dce_process_block, dce_process_block): Likewise.
6863 * ddg.c (def_has_ccmode_p): Likewise.
6864 * df-core.c (df_bb_regno_first_def_find): Likewise.
6865 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
6866 * df-problems.c (df_rd_simulate_one_insn): Likewise.
6867 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
6868 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
6869 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
6870 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
6871 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
6872 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
6873 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
6874 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
6875 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
6876 * fwprop.c (local_ref_killed_between_p): Likewise.
6877 (all_uses_available_at, free_load_extend): Likewise.
6878 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
6879 * hw-doloop.c (scan_loop): Likewise.
6880 * ifcvt.c (dead_or_predicable): Likewise.
6881 * init-regs.c (initialize_uninitialized_regs): Likewise.
6882 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
6883 (process_bb_node_lives): Likewise.
6884 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
6885 (find_moveable_pseudos): Likewise.
6886 * loop-invariant.c (check_dependencies, record_uses): Likewise.
6887 * recog.c (peep2_find_free_register): Likewise.
6888 * ree.c (get_defs): Likewise.
6889 * regstat.c (regstat_bb_compute_ri): Likewise.
6890 (regstat_bb_compute_calls_crossed): Likewise.
6891 * sched-deps.c (find_inc, find_mem): Likewise.
6892 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
6893 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
6894 * shrink-wrap.c (requires_stack_frame_p): Likewise.
6895 (prepare_shrink_wrap): Likewise.
6896 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
6897 * web.c (union_defs, pass_web::execute): Likewise.
6898 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
6899 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
6901 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
6903 * lra-assign.c (assign_by_spills): Add code to assign vector regs
6904 to inheritance pseudos.
6905 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
6907 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
6910 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
6911 (BU_MISC_2): Rename to ...
6912 (BU_LDBL128_2): ... this.
6913 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
6914 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
6915 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
6917 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
6918 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
6919 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
6920 (unpacktf_1): Likewise.
6921 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
6922 (__builtin_longdouble_dw1): Likewise.
6923 * doc/sourcebuild.texi (longdouble128): Document.
6925 2014-06-13 Jeff Law <law@redhat.com>
6927 PR rtl-optimization/61094
6928 PR rtl-optimization/61446
6929 * ree.c (combine_reaching_defs): Get the mode for the copy from
6930 the extension insn rather than the defining insn.
6932 2014-06-13 Dehao Chen <dehao@google.com>
6934 * dwarf2out.c (add_linkage_name): Emit more linkage name.
6936 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
6938 * doc/install.texi (--enable-linker-plugin-configure-flags)
6939 (--enable-linker-plugin-flags): Document new flags.
6941 2014-06-13 Martin Jambor <mjambor@suse.cz>
6944 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
6945 cache_token if returning early.
6947 2014-06-13 Nick Clifton <nickc@redhat.com>
6949 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
6950 requested alignment is active.
6951 (LABEL_ALIGN): Likewise.
6952 (LOOP_ALIGN): Likewise.
6954 2014-06-13 Richard Biener <rguenther@suse.de>
6956 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6957 Rewrite to propagate the VN result into all uses where
6958 possible and to remove stmts becoming dead because of that.
6959 (eliminate): Generalize stmt removal handling, remove in
6960 reverse dominator order to support proper debug stmt
6961 generation. Update stmts before removing stmts.
6962 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
6964 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6966 PR tree-optimization/61375
6967 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
6968 symbolic number cannot be represented in an uint64_t.
6969 (find_bswap_or_nop_1): Likewise.
6971 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
6973 * symtab.c (symtab_node::reset_section): New method.
6974 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
6976 * cgraph.h (reset_section): Declare.
6977 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
6978 do not consider comdat locals.
6979 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
6981 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
6982 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
6983 reset sections of symbols dragged out of the comdats.
6984 (function_and_variable_visibility): Reset sections of
6987 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
6989 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
6990 to use symtab and decl_binds_to_current_def_p
6991 * tree-vectorizer.c (increase_alignment): Increase alignment
6992 of alias target, too.
6994 2014-06-12 Jakub Jelinek <jakub@redhat.com>
6997 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
6998 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
6999 if outer combined construct is distribute.
7000 (gimplify_omp_for): For OMP_DISTRIBUTE set
7001 gimplify_omp_ctxp->distribute.
7002 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7003 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7004 mapping into decl map.
7006 2014-06-12 Jason Merrill <jason@redhat.com>
7008 * common.opt (fabi-version): Change default to 0.
7010 2014-06-12 Jason Merrill <jason@redhat.com>
7012 * toplev.c (process_options): Reject -fabi-version=1.
7014 2014-06-12 Jeff Law <law@redhat.com>
7016 PR tree-optimization/61009
7017 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7018 value when we stop processing a block due to problematic PHIs.
7020 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7022 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7023 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7024 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7025 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7026 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7027 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7028 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7029 are not in the spec.
7031 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7034 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7035 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7038 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7040 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7042 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7045 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7046 loading from address spaces.
7048 2014-06-12 Martin Liska <mliska@suse.cz>
7051 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7052 statement is reachable.
7054 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7056 * symtab.c (section_hash): New hash.
7057 (symtab_unregister_node): Clear section before freeing.
7058 (hash_section_hash_entry): New haser.
7059 (eq_sections): New function.
7060 (symtab_node::set_section_for_node): New method.
7061 (set_section_1): Update.
7062 (symtab_node::set_section): Take string instead of tree as parameter.
7063 (symtab_resolve_alias): Update.
7064 * cgraph.h (section_hash_entry_d): New structure.
7065 (section_hash_entry): New typedef.
7066 (cgraph_node): Change comdat_group_ to x_comdat_group,
7067 change section_ to x_section and turn into section_hash_entry;
7068 update accestors; put set_section_for_node offline.
7069 * tree.c (decl_section_name): Turn into string.
7070 (set_decl_section_name): Change parameter to be string.
7071 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7072 * sdbout.c (sdbout_one_type): Update.
7073 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7074 * varasm.c (IN_NAMED_SECTION, get_named_section,
7075 resolve_unique_section, hot_function_section, get_named_text_section,
7076 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7077 make_decl_rtl, default_unique_section): Update.
7078 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7079 (c6x_elf_unique_section): Update.
7080 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7081 * config/pa/pa.c (pa_function_section): Update.
7082 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7083 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7084 * config/arc/arc.c (arc_in_small_data_p): Update.
7085 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7086 * config/mcore/mcore.c (mcore_unique_section): Update.
7087 * config/mips/mips.c (mips16_build_function_stub): Update.
7088 (mips16_build_call_stub): Update.
7089 (mips_function_rodata_section): Update.
7090 (mips_in_small_data_p): Update.
7091 * config/score/score.c (score_in_small_data_p): Update.
7092 * config/rx/rx.c (rx_in_small_data): Update.
7093 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7094 (rs6000_xcoff_asm_named_section): Update.
7095 (rs6000_xcoff_unique_section): Update.
7096 * config/frv/frv.c (frv_string_begins_with): Update.
7097 (frv_in_small_data_p): Update.
7098 * config/v850/v850.c (v850_encode_data_area): Update.
7099 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7100 (bfin_handle_l1_data_attribute): Update.
7101 (bfin_handle_l2_attribute): Update.
7102 * config/mep/mep.c (mep_unique_section): Update.
7103 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7105 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7106 (h8300_handle_tiny_data_attribute): Update.
7107 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7108 (m32r_in_small_data_p): Update.
7109 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7110 * config/i386/i386.c (ix86_in_large_data_p): Update.
7111 * config/i386/winnt.c (i386_pe_unique_section): Update.
7112 * config/darwin.c (darwin_function_section): Update.
7113 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7114 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7115 (new_emutls_decl): Update.
7116 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7117 input_varpool_node): Update.
7118 (ead_string_cst): Turn to ...
7119 (read_string): ... this one.
7120 * dwarf2out.c (secname_for_decl): Update.
7121 * asan.c (asan_protect_global): Update.
7123 2014-06-11 DJ Delorie <dj@redhat.com>
7125 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7127 * config/rx/rx.c (rx_option_override): Likewise.
7128 (rx_align_for_label): Likewise.
7130 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7132 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7134 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7137 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7139 * common.md: New file.
7140 * doc/md.texi: Update description of generic, machine-independent
7142 * config/s390/constraints.md (e): Delete.
7143 * Makefile.in (md_file): Include common.md.
7144 * config/m32c/t-m32c (md_file): Likewise.
7145 * genpreds.c (general_mem): New array.
7146 (generic_constraint_letters): Remove constraints now defined by
7148 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7149 Allow the first character to be '<' or '>' as well.
7150 * genoutput.c (general_mem): New array.
7151 (indep_constraints): Remove constraints now defined by common.md.
7152 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7153 Remove special handling of 'm'.
7154 * ira-costs.c (record_reg_classes): Remove special handling of
7155 constraints now defined by common.md.
7156 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7157 * ira-lives.c (single_reg_class): Likewise.
7158 (ira_implicitly_set_insn_hard_regs): Likewise.
7159 * lra-constraints.c (reg_class_from_constraints): Likewise.
7160 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7161 * postreload.c (reload_cse_simplify_operands): Likewise.
7162 * reload.c (push_secondary_reload, scratch_reload_class)
7163 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7164 * reload1.c (maybe_fix_stack_asms): Likewise.
7165 * targhooks.c (default_secondary_reload): Likewise.
7166 * stmt.c (parse_output_constraint): Likewise.
7167 * recog.c (preprocess_constraints): Likewise.
7168 (constrain_operands, peep2_find_free_register): Likewise.
7169 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7170 must be handled specially.
7172 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7174 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7175 * genpreds.c (have_const_dbl_constraints): Delete.
7176 (add_constraint): Don't set it.
7177 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7178 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7179 constraints using the lookup_constraint logic.
7180 * ira-lives.c (single_reg_class): Likewise.
7181 * ira.c (ira_setup_alts): Likewise.
7182 * lra-constraints.c (process_alt_operands): Likewise.
7183 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7184 * reload.c (find_reloads): Likewise.
7186 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7188 * genpreds.c (const_int_start, const_int_end): New variables.
7189 (choose_enum_order): Output CONST_INT constraints before memory
7191 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7193 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7194 * ira.c (ira_setup_alts): Likewise.
7195 * lra-constraints.c (process_alt_operands): Likewise.
7196 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7197 * reload.c (find_reloads): Likewise.
7199 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7201 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7202 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7203 * recog.c (preprocess_constraints): Update accordingly.
7205 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7207 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7208 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7209 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7210 * genpreds.c (print_type_tree): New function.
7211 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7212 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7213 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7214 Write out enum constraint_type and get_constraint_type.
7215 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7216 constraint_num rather than a constraint string.
7217 (satisfies_address_constraint_p): Likewise.
7218 (reg_class_from_constraints): Avoid old constraint macros.
7219 (process_alt_operands, process_address_1): Likewise.
7220 (curr_insn_transform): Likewise.
7221 * ira-costs.c (record_reg_classes): Likewise.
7222 (record_operand_costs): Likewise.
7223 * ira-lives.c (single_reg_class): Likewise.
7224 (ira_implicitly_set_insn_hard_regs): Likewise.
7225 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7226 * postreload.c (reload_cse_simplify_operands): Likewise.
7227 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7228 (constrain_operands, peep2_find_free_register): Likewise.
7229 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7230 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7231 * reload1.c (maybe_fix_stack_asms): Likewise.
7232 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7233 * targhooks.c (default_secondary_reload): Likewise.
7234 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7235 to EXTRA_CONSTRAINT_STR.
7236 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7238 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7240 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7241 (write_constraint_satisfied_p_array): ...this new function.
7242 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7244 (write_insn_preds_c): Update accordingly.
7246 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7248 * genpreds.c (write_lookup_constraint): Rename to...
7249 (write_lookup_constraint_1): ...this.
7250 (write_lookup_constraint_array): New function.
7251 (write_tm_preds_h): Define lookup_constraint as an inline function
7252 that uses write_lookup_constraint_array where possible.
7253 (write_insn_preds_c): Update for the changes above.
7255 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7257 * doc/md.texi (regclass_for_constraint): Rename to...
7258 (reg_class_for_constraint): ...this.
7259 * genpreds.c (num_constraints, enum_order, register_start)
7260 (register_end, satisfied_start, memory_start, memory_end)
7261 (address_start, address_end): New variables.
7262 (add_constraint): Count the number of constraints.
7263 (choose_enum_order): New function.
7264 (write_enum_constraint_num): Iterate over enum_order.
7265 (write_regclass_for_constraint): Rename to...
7266 (write_reg_class_for_constraint_1): ...this and update output
7268 (write_constraint_satisfied_p): Rename to...
7269 (write_constraint_satisfied_p_1): ...this and update output
7270 accordingly. Do nothing if all extra constraints are register
7272 (write_insn_extra_memory_constraint): Delete.
7273 (write_insn_extra_address_constraint): Delete.
7274 (write_range_function): New function.
7275 (write_tm_preds_h): Define constraint_satisfied_p and
7276 reg_class_for_constraint as inline functions that do a range check
7277 before calling the out-of-line function. Use write_range_function
7278 to implement insn_extra_{register,memory,address}_constraint,
7279 the first of which is new.
7280 (write_insn_preds_c): Update after above changes to write_* functions.
7281 (main): Call choose_enum_order.
7283 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7285 PR tree-optimization/61306
7286 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7287 expression instead of its size.
7288 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7289 false to prevent optimization when the result is unpredictable due to
7290 arithmetic right shift of signed type with highest byte is set.
7291 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7292 (init_symbolic_number): Likewise.
7293 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7294 when the result is unpredictable due to sign extension.
7296 2014-06-11 Terry Guo <terry.guo@arm.com>
7298 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7299 (*thumb1_addsi3): Ditto.
7300 (*thumb_subdi3): Ditto.
7301 (thumb1_subsi3_insn): Ditto.
7302 (*thumb_mulsi3): Ditto.
7303 (*thumb_mulsi3_v6): Ditto.
7304 (*thumb1_andsi3_insn): Ditto.
7305 (thumb1_bicsi3): Ditto.
7306 (*thumb1_iorsi3_insn): Ditto.
7307 (*thumb1_xorsi3_insn): Ditto.
7308 (*thumb1_ashlsi3): Ditto.
7309 (*thumb1_ashrsi3): Ditto.
7310 (*thumb1_lshrsi3): Ditto.
7311 (*thumb1_rotrsi3): Ditto.
7312 (*thumb1_negdi2): Ditto.
7313 (*thumb1_negsi2): Ditto.
7314 (*thumb1_abssi2): Ditto.
7315 (*thumb1_neg_abssi2): Ditto.
7316 (*thumb1_one_cmplsi2): Ditto.
7317 (*thumb1_zero_extendhisi2): Ditto.
7318 (*thumb1_zero_extendqisi2): Ditto.
7319 (*thumb1_zero_extendqisi2_v6): Ditto.
7320 (thumb1_extendhisi2): Ditto.
7321 (thumb1_extendqisi2): Ditto.
7322 (*thumb1_movdi_insn): Ditto.
7323 (*thumb1_movsi_insn): Ditto.
7324 (*thumb1_movhi_insn): Ditto.
7325 (thumb_movhi_clobber): Ditto.
7326 (*thumb1_movqi_insn): Ditto.
7327 (*thumb1_movhf): Ditto.
7328 (*thumb1_movsf_insn): Ditto.
7329 (*thumb_movdf_insn): Ditto.
7332 (cbranchqi4): Ditto.
7333 (cbranchsi4_insn): Ditto.
7334 (cbranchsi4_scratch): Ditto.
7335 (*negated_cbranchsi4): Ditto.
7336 (*tbit_cbranch): Ditto.
7337 (*tlobits_cbranch): Ditto.
7338 (*tstsi3_cbranch): Ditto.
7339 (*cbranchne_decr1): Ditto.
7340 (*addsi3_cbranch): Ditto.
7341 (*addsi3_cbranch_scratch): Ditto.
7342 (*thumb_cmpdi_zero): Ditto.
7343 (cstoresi_eq0_thumb1): Ditto.
7344 (cstoresi_ne0_thumb1): Ditto.
7345 (*cstoresi_eq0_thumb1_insn): Ditto.
7346 (*cstoresi_ne0_thumb1_insn): Ditto.
7347 (cstoresi_nltu_thumb1): Ditto.
7348 (cstoresi_ltu_thumb1): Ditto.
7349 (thumb1_addsi3_addgeu): Ditto.
7350 (*thumb_jump): Ditto.
7351 (*call_reg_thumb1_v5): Ditto.
7352 (*call_reg_thumb1): Ditto.
7353 (*call_value_reg_thumb1_v5): Ditto.
7354 (*call_value_reg_thumb1): Ditto.
7355 (*call_insn): Ditto.
7356 (*call_value_insn): Ditto.
7357 (thumb1_casesi_internal_pic): Ditto.
7358 (thumb1_casesi_dispatch): Ditto.
7359 (*thumb1_indirect_jump): Ditto.
7360 (prologue_thumb1_interwork): Ditto.
7361 (*epilogue_insns): Ditto.
7362 (consttable_1): Ditto.
7363 (consttable_2): Ditto.
7365 (*thumb1_tablejump): Ditto.
7366 (thumb_eh_return): Ditto.
7367 (define_peephole2): Two of them are thumb1 only and got moved into
7369 (define_split): Six of them are thumb1 only and got moved into new
7371 * config/arm/thumb1.md: New file comprised of above thumb1 only
7374 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7376 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7377 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7379 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7380 (aarch64_crc_builtin_datum): New struct.
7381 (aarch64_crc_builtin_data): New.
7382 (aarch64_init_crc32_builtins): New function.
7383 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7384 (aarch64_crc32_expand_builtin): New.
7385 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7386 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7387 __ARM_FEATURE_CRC32 when appropriate.
7388 (TARGET_CRC32): Define.
7389 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7390 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7391 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7392 (aarch64_<crc_variant>): New pattern.
7393 * config/aarch64/arm_acle.h: New file.
7394 * config/aarch64/iterators.md (CRC): New int iterator.
7395 (crc_variant, crc_mode): New int attributes.
7396 * doc/aarch64-acle-intrinsics.texi: New file.
7397 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7398 Include aarch64-acle-intrinsics.texi.
7400 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7402 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7403 check for stores group of length 3.
7404 (vect_permute_store_chain): New permutations for stores group of
7406 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7407 of vec_perm_shuffle for the new permutations.
7409 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7411 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7412 table rewriting temporarily on targets not supporting ONE_ONLY.
7414 2014-06-11 Richard Biener <rguenther@suse.de>
7418 2014-06-04 Richard Biener <rguenther@suse.de>
7420 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7421 TREE_PUBLIC and DECL_EXTERNAL decls.
7423 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7425 * varasm.c (set_implicit_section): New function.
7426 (resolve_unique_section): Use it to set implicit section
7428 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7429 (default_function_section): Likewise.
7430 (decl_binds_to_current_def_p): Constify argument.
7431 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7432 * asan.c (asan_protect_global): Use
7433 symtab_get_node (decl)->implicit_section.
7434 * symtab.c (dump_symtab_base): Dump implicit sections.
7435 (verify_symtab_base): Verify sanity of sectoins and comdats.
7436 (symtab_resolve_alias): Alias share the section of its target.
7437 (set_section_1): New function.
7438 (symtab_node::set_section): Move here, recurse to aliases.
7439 (verify_symtab): Check for duplicated symtab lists.
7440 * tree-core.h (implicit_section_name_p): Remove.
7441 * tree-vect-data-refs.c: Include varasm.h.
7442 (vect_can_force_dr_alignment_p): Fix conditional on when
7443 decl bints to current definition; use
7444 symtab_get_node (decl)->implicit_section.
7445 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7446 * cgraph.h (struct symtab_node): Add implicit_section.
7447 (set_section): Rename to ...
7448 (set_section_for_node): ... this one.
7449 (set_section): Declare.
7450 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7451 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7452 input_overwrite_node, input_varpool_node): Stream implicit_section.
7453 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7454 removal; it will fail in LTO.
7456 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7458 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7459 Change second alternative type to f_mcr.
7460 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7461 and 12th alternatives' types to f_mcr and f_mrc.
7462 (*movdi_aarch64): Same for 12th and 13th alternatives.
7463 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7464 (aarch64_movtilow_tilow): Change type to fmov.
7466 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7468 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7469 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7471 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7473 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7475 (aarch64_sqrdmulh_lane<mode>): Likewise.
7476 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7477 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7478 (aarch64_sqdmulh_laneq<mode>): New expander.
7479 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7480 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7481 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7482 (aarch64_sqdmulh_lane<mode>): New expander.
7483 (aarch64_sqrdmulh_lane<mode>): Likewise.
7484 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7485 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7486 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7487 (aarch64_sqdmlal_laneq<mode>): Likewise.
7488 (aarch64_sqdmlsl_lane<mode>): Likewise.
7489 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7490 (aarch64_sqdmlal2_lane<mode>): Likewise.
7491 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7492 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7493 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7494 (aarch64_sqdmull_lane<mode>): Likewise.
7495 (aarch64_sqdmull_laneq<mode>): Likewise.
7496 (aarch64_sqdmull2_lane<mode>): Likewise.
7497 (aarch64_sqdmull2_laneq<mode>): Likewise.
7499 2014-06-10 Richard Biener <rguenther@suse.de>
7501 PR tree-optimization/61438
7502 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7503 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7504 insertion of IVs if running PRE.
7505 (eliminate): Adjust.
7506 (pass_pre::execute): Likewise.
7507 (pass_fre::execute): Likewise.
7509 2014-06-10 Richard Biener <rguenther@suse.de>
7512 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7513 Do not use the main variant for the type comparison.
7514 (ncr_compar): Likewise.
7515 (nonoverlapping_component_refs_p): Likewise.
7517 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7519 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7520 REG_CFA_RESTORE mode.
7522 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7524 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7525 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7526 expand_vec_perm_pblendv.
7528 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7530 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7532 Simplify description of __crc32d and __crc32cd intrinsics.
7533 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7536 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7539 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7540 * config.in: Regenerate.
7541 * configure: Likewise.
7543 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7545 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7547 (intersect_static_var_sets): Remove.
7548 (propagate): Do not prune local statics.
7550 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7553 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7554 Set lastprivate_firstprivate even if omp_private_outer_ref
7555 langhook returns true.
7556 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7557 langhook, call unshare_expr on new_var and call
7558 build_outer_var_ref to get the last argument.
7560 2014-06-10 Marek Polacek <polacek@redhat.com>
7563 * doc/extend.texi: Add cindex for transparent_union.
7565 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7567 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
7568 init_symbolic_number ().
7570 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
7573 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
7574 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7575 (verify_rtl_sharing): Likewise.
7577 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
7580 * tree.c (build_qualified_type): Use a canonical type for
7583 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7585 * config/arm/arm-modes.def: Remove XFmode.
7587 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
7590 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
7591 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7592 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
7593 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
7594 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
7595 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
7596 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
7597 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
7598 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
7600 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
7602 * tree-core.h (tree_decl_with_vis): Remove section_name.
7604 2014-06-09 Kito Cheng <kito@0xlab.org>
7606 * ira.c (ira): Don't call init_caller_save if LRA enabled
7607 since LRA use its own infrastructure to handle that.
7609 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7611 * symtab.c (dump_symtab_base): Update dumping.
7612 (symtab_make_decl_local): Clear only DECL_COMDAT.
7613 * tree-vect-data-refs.c (Check that variable is static before
7614 tampering with sections.
7615 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
7616 (cgraph_create_virtual_clone): Likewise.
7617 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
7618 (decl_section_name, set_decl_section_name): New accessors.
7619 (find_decls_types_r): Do not walk section name
7620 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
7621 (decl_comdat_group, decl_comdat_group_id): Constify.
7622 (decl_section_name, set_decl_section_name): Update.
7623 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
7624 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
7625 (cgraph_make_node_local_1): Clear section and comdat group.
7626 * cgraph.h (set_comdat_group): Sanity check.
7627 (get_section, set_section): New.
7628 * ipa-comdats.c (ipa_comdats): Use get_section.
7629 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
7630 * lto-streamer-out.c: Do not follow section names.
7631 * c-family/c-common.c (handle_section_attribute): Update.
7632 * lto-cgraph.c (lto_output_node): Output section.
7633 (lto_output_varpool_node): Likewise.
7634 (read_comdat_group): Rename to ...
7635 (read_identifier): ... this one.
7636 (read_string_cst): New function.
7637 (input_node, input_varpool_node): Input section names.
7638 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7639 (new_emutls_decl): Update.
7640 (secname_for_decl): Check section names only of static vars.
7641 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
7642 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
7643 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
7644 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
7645 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
7646 * config/mcore/mcore.c (mcore_unique_section): Likewise.
7647 * config/mips/mips.c (mips16_build_function_stub): Likewise.
7648 * config/v850/v850.c (v850_insert_attributes): Likewise.
7649 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
7651 (h8300_handle_tiny_data_attribute): Likewise.
7652 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
7653 (bfin_handle_l2_attribute): Likewise.
7655 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7657 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
7658 remove static initializer.
7660 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7662 * varasm.c (use_blocks_for_decl_p): Check symbol table
7663 instead of alias attribute.
7664 (place_block_symbol): Recurse on aliases.
7666 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7668 * ipa-visibility.c: Include varasm.h
7669 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
7671 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7673 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
7676 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
7678 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
7679 from test_insn into GGC space escape via SET_SRC.
7681 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
7683 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
7684 call statement, if any.
7685 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
7686 statements, if any. Tidy up.
7688 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7691 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
7692 iterators, VSX_D that handles 64-bit types, and VSX_LE that
7693 handles swapping the two 64-bit double words on little endian
7694 systems. Include V1TImode and optionally TImode in VSX_LE so that
7695 these types are properly swapped. Change all of the insns and
7696 splits that do the 64-bit swaps to use VSX_LE.
7697 (vsx_le_perm_load_<mode>): Likewise.
7698 (vsx_le_perm_store_<mode>): Likewise.
7699 (splitters for little endian memory operations): Likewise.
7700 (vsx_xxpermdi2_le_<mode>): Likewise.
7701 (vsx_lxvd2x2_le_<mode>): Likewise.
7702 (vsx_stxvd2x2_le_<mode>): Likewise.
7704 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
7707 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
7708 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
7709 and corresponding splitters. Zero extend general register
7710 or memory input operand to XMM temporary. Enable for
7711 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
7712 (floatunssi<mode>2): Update expander predicate.
7714 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
7716 PR rtl-optimization/61325
7717 * lra-constraints.c (process_address_1): Check scale equal to one
7718 to prevent transformation: base + scale * index => base + new_reg.
7720 2014-06-06 Richard Biener <rguenther@suse.de>
7722 PR tree-optimization/59299
7723 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
7725 (nearest_common_dominator_of_uses): Likewise.
7726 (statement_sink_location): Adjust. Support sinking loads.
7728 2014-06-06 Martin Jambor <mjambor@suse.cz>
7730 * ipa-prop.c (get_place_in_agg_contents_list): New function.
7731 (build_agg_jump_func_from_list): Likewise.
7732 (determine_known_aggregate_parts): Renamed to
7733 determine_locally_known_aggregate_parts. Moved some functionality
7734 to the two functions above, removed bound checks.
7736 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
7738 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
7739 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
7740 (aarch64_progress_pointer): Likewise.
7741 (aarch64_copy_one_part_and_move_pointers): Likewise.
7742 (aarch64_expand_movmen): Likewise.
7743 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
7744 * config/aarch64/aarch64.md (movmem<mode>): New.
7746 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
7748 * targhooks.c (default_add_stmt_cost): Call target specific
7749 hook instead of default one.
7751 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
7753 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
7754 endianness instead of host endianness.
7755 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
7758 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
7761 * function.c (instantiate_decls): Process the saved static chain.
7762 (expand_function_start): If not optimizing, save the static chain
7764 * tree-nested.c (convert_all_function_calls): Always create the static
7765 chain for nested functions if not optimizing.
7767 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
7769 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
7771 2014-06-06 Richard Biener <rguenther@suse.de>
7773 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
7774 (construct_init_block): Likewise.
7775 (construct_exit_block): Likewise.
7776 (pass_expand::execute): Likewise.
7777 * graphite.c (graphite_transforms): Replace check for current_loops
7778 with a check for > 1 loops.
7779 (pass_graphite_transforms::execute): Adjust.
7780 * ipa-split.c (split_function): Remove check for current_loops.
7781 * omp-low.c (expand_parallel_call): Likewise.
7782 (expand_omp_for_init_counts): Likewise.
7783 (extract_omp_for_update_vars): Likewise.
7784 (expand_omp_for_generic): Likewise.
7785 (expand_omp_sections): Likewise.
7786 (expand_omp_target): Likewise.
7787 * tracer.c (tail_duplicate): Likewise.
7788 (pass_tracer::execute): Likewise.
7789 * trans-mem.c (expand_transaction): Likewise.
7790 * tree-complex.c (expand_complex_div_wide): Likewise.
7791 * tree-eh.c (lower_resx): Likewise.
7792 (cleanup_empty_eh_merge_phis): Likewise.
7793 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
7794 current_loops with a check for > 1 loops.
7795 (pass_predcom::execute): Adjust.
7796 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
7797 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
7798 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
7799 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
7800 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7801 * tree-switch-conversion.c (process_switch): Likewise.
7802 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
7803 * tree-vrp.c (vrp_visit_phi_node): Likewise.
7804 (execute_vrp): Likewise.
7805 * ubsan.c (ubsan_expand_null_ifn): Likewise.
7807 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
7809 * rtl.h (insn_location): Declare.
7810 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
7811 with UNKNOWN_LOCATION.
7812 * emit-rtl.c (insn_location): New function.
7813 * final.c (notice_source_line): Check that the instruction has a
7814 location before retrieving it and use insn_location.
7815 * modulo-sched.c (loop_single_full_bb_p): Likewise.
7816 * print-rtl.c (print_rtx): Likewise.
7818 2014-06-06 Richard Biener <rguenther@suse.de>
7820 * passes.def: Move 2nd VRP pass before phi-only-cprop.
7822 2014-06-06 Christian Bruel <christian.bruel@st.com>
7824 PR tree-optimization/43934
7825 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
7828 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
7830 * ira-lives.c (single_reg_class): Add missing break. Explicitly
7831 return NO_REGS for extra address and memory constraints. Handle
7832 operands that match (or are equivalent to something that matches)
7833 extra constant constraints. Ignore other non-register operands.
7835 2014-06-06 Alan Modra <amodra@gmail.com>
7838 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
7839 * doc/tm.texi: Regenerate.
7840 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
7841 Use throughout in place of REG_PARM_STACK_SPACE.
7842 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
7843 "incoming" param. Pass to rs6000_function_parms_need_stack.
7844 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
7845 prototype_p when incoming. Use function decl when incoming
7846 to handle K&R style functions.
7847 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
7848 (INCOMING_REG_PARM_STACK_SPACE): Define.
7850 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7853 * cfgexpand.c (expand_debug_expr): Use address space of nested
7854 TREE_TYPE for ADDR_EXPR and MEM_REF.
7856 2014-06-05 Jeff Law <law@redhat.com>
7858 PR tree-optimization/61289
7859 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
7860 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
7861 looking for those which match LHS. All callers changed.
7862 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
7863 parameters and code which manipulated them. All callers changed.
7864 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
7865 and DST_MAP parameters. Simplify invalidation code by just calling
7866 invalidate_equivalences. All callers changed.
7867 (thread_across_edge): Simplify now that we don't need to maintain
7868 the map of equivalences to invalidate.
7870 2014-06-05 Kai Tietz <ktietz@redhat.com>
7871 Richard Henderson <rth@redhat.com>
7874 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
7875 checking for !TARGET_X32.
7876 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
7877 (sibcall_intern): New define_insn, plus required peepholes.
7878 (sibcall_pop_intern): Likewise.
7879 (sibcall_value_intern): Likewise.
7880 (sibcall_value_pop_intern): Likewise.
7882 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
7884 * tree-inline.c (tree_function_versioning): Check DF info existence
7885 before accessing it.
7887 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7889 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
7891 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
7892 aarch64_frame hard_fp_offset and frame_size.
7893 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
7894 frame_size; remove original_frame_size.
7895 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
7896 (aarch64_initial_elimination_offset): Remove frame_size and
7897 offset. Use aarch64_frame frame_size.
7899 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7900 Jiong Wang <jiong.wang@arm.com>
7901 Renlin <renlin.li@arm.com>
7903 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
7904 initialization of R30 offset. Update offset. Iterate core
7905 regisers upto X30. Remove X29, X30 specific code.
7907 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7908 Jiong Wang <jiong.wang@arm.com>
7910 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
7911 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
7912 (aarch64_register_saved_on_entry): Adjust test.
7914 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7916 * config/aarch64/aarch64.h (machine_function): Move
7917 saved_varargs_size from here...
7918 (aarch64_frame): ... to here.
7920 * config/aarch64/aarch64.c (aarch64_expand_prologue)
7921 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
7922 (aarch64_initial_elimination_offset)
7923 (aarch64_setup_incoming_varargs): Adjust location of
7926 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7928 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
7931 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
7932 Prachi Godbole <Prachi.Godbole@imgtec.com>
7934 * config/mips/mips-cpus.def: Add definition for p5600. Updated
7935 mips32r5 entry to use PROCESSOR_P5600.
7936 * config/mips/mips-tables.opt: Regenerate.
7937 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
7938 * config/mips/mips.c (mips_fmadd_bypass): New function.
7939 (mips_rtx_cost_data): Add costs for p5600.
7940 (mips_issue_rate): Add support for p5600.
7941 (mips_multipass_dfa_lookahead): Likewise.
7942 * config/mips/mips.h (TUNE_P5600): New define.
7943 (TUNE_MACC_CHAINS): Add TUNE_P5600.
7944 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
7945 * config/mips/mips.md: Include p5600.md.
7946 (processor): Add p5600.
7947 * config/mips/p5600.md: New file.
7949 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
7951 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
7952 * config/i386/predicates.md (palignr_operand): New.
7953 Indicates if permutation is suitable for palignr instruction.
7955 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
7957 PR tree-optimization/61319
7958 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
7959 stmt belongs to loop.
7961 2014-06-05 Richard Biener <rguenther@suse.de>
7963 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
7964 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
7965 (lookup_tmp_var): Adjust.
7966 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
7968 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7970 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
7972 2014-06-05 Marek Polacek <polacek@redhat.com>
7975 * doc/invoke.texi: Document -Wlogical-not-parentheses.
7977 2014-06-04 Tom de Vries <tom@codesourcery.com>
7979 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
7982 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
7984 PR tree-optimization/61385
7985 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
7987 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
7989 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
7990 changed to use fatal_error.
7991 (main): Ensure lto_wrapper_cleanup is run atexit.
7993 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
7995 * lra-constraints.c (valid_address_p): Move earlier in file.
7996 (address_eliminator): New structure.
7997 (satisfies_memory_constraint_p): New function.
7998 (satisfies_address_constraint_p): Likewise.
7999 (process_alt_operands, process_address, curr_insn_transform): Use them.
8001 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8003 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8005 (target_lra_int, default_target_lra_int, this_target_lra_int)
8006 (op_alt_data): Delete.
8007 * lra.h (lra_init): Delete.
8008 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8009 (init_insn_code_data_once): Remove op_alt_data handling.
8010 (finish_insn_code_data_once): Likewise.
8011 (init_op_alt_data): Delete.
8012 (get_static_insn_data): Initialize operand_alternative to null.
8013 (free_insn_recog_data): Cast operand_alternative before freeing it.
8014 (setup_operand_alternative): Take the operand_alternative as
8015 parameter and assume it isn't already cached in the static
8017 (lra_set_insn_recog_data): Update accordingly.
8019 * ira.c (ira_init): Don't call lra_init.
8020 * target-globals.h (this_target_lra_int): Declare.
8021 (target_globals): Remove lra_int.
8022 (restore_target_globals): Update accordingly.
8023 * target-globals.c: Don't include lra-int.h.
8024 (default_target_globals, save_target_globals): Remove lra_int.
8026 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8028 * recog.h (operand_alternative): Convert reg_class, reject,
8029 matched and matches into bitfields.
8030 (preprocess_constraints): New overload.
8031 (preprocess_insn_constraints): New function.
8032 (preprocess_constraints): Take the insn as parameter.
8033 (recog_op_alt): Change into a pointer.
8034 (target_recog): Add x_op_alt.
8035 * recog.c (asm_op_alt): New variable.
8036 (recog_op_alt): Change into a pointer.
8037 (preprocess_constraints): New overload, replacing the old function
8038 definition with one that doesn't use global state.
8039 (preprocess_insn_constraints): New function.
8040 (preprocess_constraints): Use them. Take the insn as parameter.
8041 Use asm_op_alt for asms.
8042 (recog_init): Free existing x_op_alt entries.
8043 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8045 (make_early_clobber_and_input_conflicts): Likewise.
8046 (process_bb_node_lives): Pass the insn to process_constraints.
8047 * reg-stack.c (check_asm_stack_operands): Likewise.
8048 (subst_asm_stack_regs): Likewise.
8049 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8050 * regrename.c (build_def_use): Likewise.
8051 * sched-deps.c (sched_analyze_insn): Likewise.
8052 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8053 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8054 (note_invalid_constants): Likewise.
8055 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8056 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8059 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8061 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8062 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8064 (make_early_clobber_and_input_conflicts): Likewise.
8065 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8067 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8069 * recog.h (alternative_class): New function.
8070 (which_op_alt): Return a const recog_op_alt.
8071 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8072 (subst_asm_stack_regs): Likewise.
8073 * config/arm/arm.c (note_invalid_constants): Likewise.
8074 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8075 the operand_alternative; use alternative class instead.
8076 * sel-sched.c (get_reg_class): Likewise.
8077 * regrename.c (build_def_use): Likewise.
8078 (hide_operands, restore_operands, record_out_operands): Update type
8081 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8083 * recog.h (recog_op_alt): Convert to a flat array.
8084 (which_op_alt): New function.
8085 * recog.c (recog_op_alt): Convert to a flat array.
8086 (preprocess_constraints): Update accordingly, grouping all
8087 operands of the same alternative together, rather than the
8089 * ira-lives.c (check_and_make_def_conflict): Likewise.
8090 (make_early_clobber_and_input_conflicts): Likewise.
8091 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8092 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8093 (subst_asm_stack_regs): Likewise.
8094 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8095 * regrename.c (hide_operands, record_out_operands): Likewise.
8096 (build_def_use): Likewise.
8097 * sel-sched.c (get_reg_class): Likewise.
8098 * config/arm/arm.c (note_invalid_constants): Likewise.
8100 2014-06-04 Jason Merrill <jason@redhat.com>
8104 * gimplify.c (gimplify_arg): Non-static.
8105 * gimplify.h: Declare it.
8107 2014-06-04 Richard Biener <rguenther@suse.de>
8109 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8110 TREE_PUBLIC and DECL_EXTERNAL decls.
8112 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8114 * regcprop.c (copyprop_hardreg_forward_1): Account for
8115 HARD_REGNO_CALL_PART_CLOBBERED.
8117 2014-06-04 Richard Biener <rguenther@suse.de>
8119 * configure.ac: Check whether the underlying type of int64_t
8120 is long or long long.
8121 * configure: Regenerate.
8122 * config.in: Likewise.
8123 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8124 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8126 2014-06-04 Richard Biener <rguenther@suse.de>
8128 PR tree-optimization/60098
8129 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8131 (dse_optimize_stmt): Simplify, now that we found a kill
8134 2014-06-04 Richard Biener <rguenther@suse.de>
8136 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8137 of accesses with non-invariant address.
8139 2014-06-04 Martin Liska <mliska@suse.cz>
8141 * cgraph.h (cgraph_make_wrapper): New function introduced.
8142 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8143 * ipa-inline.h (inline_analyze_function): The function is global.
8144 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8146 2014-06-04 Martin Liska <mliska@suse.cz>
8148 * tree.h (private_lookup_attribute_starting): New function.
8149 (lookup_attribute_starting): Likewise.
8150 * tree.c (private_lookup_attribute_starting): Likewise.
8152 2014-06-04 Martin Liska <mliska@suse.cz>
8154 * cgraph.h (expand_thunk): New argument added.
8155 (address_taken_from_non_vtable_p): New global function.
8156 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8157 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8158 * cgraphunit.c (analyze_function): Likewise.
8159 (assemble_thunks_and_aliases): Argument added to call.
8160 (expand_thunk): New argument forces to produce GIMPLE thunk.
8162 2014-06-04 Martin Liska <mliska@suse.cz>
8164 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8165 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8166 * profile.c (branch_prob): Likewise.
8168 2014-06-04 Martin Jambor <mjambor@suse.cz>
8171 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8172 handler for switch on an ipa_ref_use enum.
8173 * ipa-reference.c (analyze_function): Likewise.
8175 2014-06-04 Kai Tietz <ktietz@redhat.com>
8177 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8178 from old call-instruction.
8180 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8182 * config/aarch64/aarch64.c (aarch64_classify_address)
8183 (aarch64_legitimize_reload_address): Support full addressing modes
8185 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8186 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8188 2014-06-03 Andrew Pinski <apinski@cavium.com>
8190 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8193 2014-06-03 Andrew Pinski <apinski@cavium.com>
8195 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8196 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8198 2014-06-03 Kai Tietz <ktietz@redhat.com>
8200 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8203 2014-06-03 Dehao Chen <dehao@google.com>
8205 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8208 2014-06-03 Marek Polacek <polacek@redhat.com>
8211 * doc/invoke.texi: Document -Wswitch-bool.
8212 * function.c (stack_protect_epilogue): Cast controlling expression of
8214 * gengtype.c (walk_type): Generate switch expression with its
8215 controlling expression cast to int.
8217 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8219 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8221 * config/avr/avr-tables.opt: Regenerate.
8222 * config/avr/t-multilib: Regenerate.
8223 * doc/avr-mmcu.texi: Regenerate.
8225 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8226 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8228 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8229 (ata6617c, ata664251): Add new avr35 devices.
8230 (ata6612c): Add new avr4 device.
8231 (ata6613c, ata6614q): Add new avr5 devices.
8232 * config/avr/avr-tables.opt: Regenerate.
8233 * config/avr/t-multilib: Regenerate.
8234 * doc/avr-mmcu.texi: Regenerate.
8236 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8238 * gcc/config/aarch64/aarch64-builtins.c
8239 (aarch64_types_binop_ssu_qualifiers): New static data.
8240 (TYPES_BINOP_SSU): Define.
8241 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8242 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8243 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8244 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8245 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8246 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8247 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8248 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8249 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8250 suffix to builtin function name, remove cast.
8251 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8252 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8253 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8255 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8257 * gcc/config/aarch64/aarch64-builtins.c
8258 (aarch64_types_binop_uus_qualifiers,
8259 aarch64_types_shift_to_unsigned_qualifiers,
8260 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8261 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8262 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8263 sqshlu_n, uqshl_n): Update qualifiers.
8264 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8265 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8266 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8267 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8268 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8269 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8270 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8271 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8272 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8273 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8274 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8275 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8276 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8277 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8278 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8279 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8280 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8281 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8282 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8283 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8284 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8285 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8286 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8287 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8288 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8289 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8290 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8292 2014-06-03 Teresa Johnson <tejohnson@google.com>
8294 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8296 2014-06-02 Jason Merrill <jason@redhat.com>
8299 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8301 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8303 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8306 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8308 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8310 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8311 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8312 * config/aarch64/iterators.md (REVERSE): New iterator.
8313 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8314 (rev_op): New int_attribute.
8315 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8316 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8317 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8318 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8319 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8320 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8321 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8322 Replace temporary __asm__ with __builtin_shuffle.
8324 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8326 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8328 * config/mips/mips-tables.opt: Regenerate.
8329 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8330 to use mips_isa_rev rather than ISA_MIPS32R2.
8331 * config/mips/mips.h (ISA_MIPS32R3): New define.
8332 (ISA_MIPS32R5): New define.
8333 (ISA_MIPS64R3): New define.
8334 (ISA_MIPS64R5): New define.
8335 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8336 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8337 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8339 (MIPS_ISA_SYNCI_SPEC): Likewise.
8340 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8341 (LINK_SPEC): Added mips32r3 and mips32r5.
8342 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8343 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8344 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8345 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8346 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8347 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8348 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8350 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8352 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8354 * config/mips/mips.opt (mxpa): New option.
8355 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8358 2014-06-03 Martin Jambor <mjambor@suse.cz>
8361 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8364 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8366 PR tree-optimization/61328
8367 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8368 initialization from find_bswap_or_nop_1.
8369 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8370 in source_expr2 before using the size value the function sets. Also
8371 make use of init_symbolic_number () in both the old place and
8372 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8373 doing recursion in the GIMPLE_BINARY_RHS case.
8375 2014-06-03 Richard Biener <rguenther@suse.de>
8377 PR tree-optimization/61383
8378 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8381 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8383 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8384 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8385 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8386 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8388 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8389 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8390 * system.h: ...here and make it unconditional.
8391 * target.def (conditional_register_usage): Mention
8392 define_register_constraint instead of old-style constraint macros.
8393 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8394 * doc/tm.texi: Regenerate.
8395 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8396 protected by !USE_MD_CONSTRAINTS.
8397 * config/frv/frv.md: Remove quote from old version of documentation.
8398 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8399 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8400 CONST_DOUBLE_OK_FOR_LETTER.
8401 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8403 2014-06-02 Andrew Pinski <apinski@cavium.com>
8405 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8406 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8407 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8408 file whose name depends on -mabi= and -mbig-endian.
8409 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8410 Handle LP64 better and handle ilp32 too.
8411 (MULTILIB_OPTIONS): Delete.
8412 (MULTILIB_DIRNAMES): Delete.
8414 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8416 * expr.h: Remove prototypes of functions defined in builtins.c.
8417 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8418 Remove prototypes of functions defined in builtins.c.
8419 * builtins.h: Update prototype list to include all exported functions.
8420 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8421 no_c99_libc_has_function): Move to targhooks.c
8422 (build_string_literal, build_call_expr_loc_array,
8423 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8425 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8426 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8427 no_c99_libc_has_function): Relocate from builtins.c.
8428 * tree.c: Include builtins.h.
8429 (build_call_expr_loc_array, build_call_expr_loc_vec,
8430 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8432 * fold-const.h (fold_fma): Move prototype to builtins.h.
8433 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8434 * asan.c: Include builtins.h.
8435 * cfgexpand.c: Likewise.
8436 * convert.c: Likewise.
8437 * emit-rtl.c: Likewise.
8438 * except.c: Likewise.
8440 * fold-const.c: Likewise.
8441 * gimple-fold.c: Likewise.
8442 * gimple-ssa-strength-reduction.c: Likewise.
8443 * gimplify.c: Likewise.
8444 * ipa-inline.c: Likewise.
8445 * ipa-prop.c: Likewise.
8446 * lto-streamer-out.c: Likewise.
8448 * tree-inline.c: Likewise.
8449 * tree-object-size.c: Likewise.
8450 * tree-sra.c: Likewise.
8451 * tree-ssa-ccp.c: Likewise.
8452 * tree-ssa-forwprop.c: Likewise.
8453 * tree-ssa-loop-ivcanon.c: Likewise.
8454 * tree-ssa-loop-ivopts.c: Likewise.
8455 * tree-ssa-math-opts.c: Likewise.
8456 * tree-ssa-reassoc.c: Likewise.
8457 * tree-ssa-threadedge.c: Likewise.
8458 * tree-streamer-in.c: Likewise.
8459 * tree-vect-data-refs.c: Likewise.
8460 * tree-vect-patterns.c: Likewise.
8461 * tree-vect-stmts.c: Likewise.
8462 * config/aarch64/aarch64.c: Likewise.
8463 * config/alpha/alpha.c: Likewise.
8464 * config/arc/arc.c: Likewise.
8465 * config/arm/arm.c: Likewise.
8466 * config/avr/avr.c: Likewise.
8467 * config/bfin/bfin.c: Likewise.
8468 * config/c6x/c6x.c: Likewise.
8469 * config/cr16/cr16.c: Likewise.
8470 * config/cris/cris.c: Likewise.
8471 * config/epiphany/epiphany.c: Likewise.
8472 * config/fr30/fr30.c: Likewise.
8473 * config/frv/frv.c: Likewise.
8474 * config/h8300/h8300.c: Likewise.
8475 * config/i386/i386.c: Likewise.
8476 * config/i386/winnt.c: Likewise.
8477 * config/ia64/ia64.c: Likewise.
8478 * config/iq2000/iq2000.c: Likewise.
8479 * config/lm32/lm32.c: Likewise.
8480 * config/m32c/m32c.c: Likewise.
8481 * config/m32r/m32r.c: Likewise.
8482 * config/m68k/m68k.c: Likewise.
8483 * config/mcore/mcore.c: Likewise.
8484 * config/mep/mep.c: Likewise.
8485 * config/microblaze/microblaze.c: Likewise.
8486 * config/mips/mips.c: Likewise.
8487 * config/mmix/mmix.c: Likewise.
8488 * config/mn10300/mn10300.c: Likewise.
8489 * config/moxie/moxie.c: Likewise.
8490 * config/msp430/msp430.c: Likewise.
8491 * config/nds32/nds32.c: Likewise.
8492 * config/pa/pa.c: Likewise.
8493 * config/pdp11/pdp11.c: Likewise.
8494 * config/picochip/picochip.c: Likewise.
8495 * config/rl78/rl78.c: Likewise.
8496 * config/rs6000/rs6000.c: Likewise.
8497 * config/rx/rx.c: Likewise.
8498 * config/s390/s390.c: Likewise.
8499 * config/score/score.c: Likewise.
8500 * config/sh/sh.c: Likewise.
8501 * config/sparc/sparc.c: Likewise.
8502 * config/spu/spu.c: Likewise.
8503 * config/stormy16/stormy16.c: Likewise.
8504 * config/tilegx/tilegx.c: Likewise.
8505 * config/tilepro/tilepro.c: Likewise.
8506 * config/v850/v850.c: Likewise.
8507 * config/vax/vax.c: Likewise.
8508 * config/xtensa/xtensa.c: Likewise.
8510 2014-06-02 Jeff Law <law@redhat.com>
8512 PR rtl-optimization/61094
8513 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8514 was marked as do_no_reextend. If a copy is needed to eliminate
8515 an extension, then mark it as do_not_reextend.
8517 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8519 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8521 2014-06-02 Richard Henderson <rth@redhat.com>
8524 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8525 addresses inside asms. Use output_operand_lossage instead of
8528 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8531 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8532 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8534 2014-06-02 Tom de Vries <tom@codesourcery.com>
8536 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8537 case that x has VOIDmode.
8539 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8541 * varasm.c (copy_constant): Delete function.
8542 (build_constant_desc): Don't call it.
8544 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8547 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8548 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8549 with immediate_operand.
8551 2014-06-02 Andreas Schwab <schwab@suse.de>
8553 * config/ia64/ia64.c
8554 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8555 pending_data_specs first.
8557 2014-06-02 Richard Biener <rguenther@suse.de>
8559 PR tree-optimization/61378
8560 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8563 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
8565 * config/i386/constraints.md (Bw): Rename from 'w'.
8566 (Bz): Rename from 'z'.
8567 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
8569 2014-06-01 Kai Tietz <ktietz@redhat.com>
8572 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
8573 * config/i386/i386.md (sibcall_insn_operand): Use Bs
8574 instead of m constraint.
8576 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
8578 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
8579 a separate alternative where the scratch operand 2 is marked as
8582 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
8584 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8585 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
8586 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
8587 and __builtins_arm_get_fpscr.
8588 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8589 __builtins_arm_get_fpscr.
8590 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
8591 __builtins_arm_ldfpscr.
8592 (arm_atomic_assign_expand_fenv): New function.
8593 * config/arm/vfp.md (set_fpscr): New pattern.
8594 (get_fpscr) : Likewise.
8595 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
8597 * doc/extend.texi (AARCH64 Built-in Functions) : Document
8598 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
8600 2014-05-30 Jakub Jelinek <jakub@redhat.com>
8602 * asan.c (report_error_func): Add SLOW_P argument, use
8603 BUILT_IN_ASAN_*_N if set.
8604 (build_check_stmt): Likewise.
8605 (instrument_derefs): If T has insufficient alignment,
8606 force same handling as for odd sizes.
8608 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
8609 BUILT_IN_ASAN_REPORT_STORE_N): New.
8610 * asan.c (struct asan_mem_ref): Change access_size type to
8612 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
8613 update_mem_ref_hash_table): Likewise.
8614 (asan_mem_ref_hasher::hash): Hash in a HWI.
8615 (report_error_func): Change size_in_bytes argument to HWI.
8616 Use *_N builtins if size_in_bytes is larger than 16 or not power of
8618 (build_shadow_mem_access): New function.
8619 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
8620 Handle size_in_bytes not power of two or larger than 16.
8621 (instrument_derefs): Don't give up if size_in_bytes is not
8622 power of two or is larger than 16.
8624 2014-05-30 Kai Tietz <ktietz@redhat.com>
8627 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
8628 for sibling-tail-calls.
8629 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
8631 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
8632 (sibcall_insn_operand): Add check for sibcall_memory_operand.
8634 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8636 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
8637 * config/avr/avr-tables.opt: Regenerate.
8638 * config/avr/t-multilib: Regenerate.
8639 * doc/avr-mmcu.texi: Regenerate.
8641 2014-05-30 Ian Lance Taylor <iant@google.com>
8643 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
8646 2014-05-30 Tom de Vries <tom@codesourcery.com>
8648 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8651 2014-05-30 Tom de Vries <tom@codesourcery.com>
8653 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8654 * lra.c (initialize_lra_reg_info_element): Add init of
8655 actual_call_used_reg_set field.
8656 (lra): Call lra_create_live_ranges before lra_inheritance for
8658 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
8660 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
8661 instead of call_used_reg_set for -fuse-caller-save.
8662 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
8664 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8666 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
8668 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
8670 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
8672 * ira.c (ira_get_dup_out_num): Check for output operands at
8673 the start of the loop. Handle cases where an included alternative
8674 follows an excluded one.
8676 2014-05-29 Mike Stump <mikestump@comcast.net>
8679 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
8680 post ld passes when lto is used.
8682 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
8684 PR rtl-optimization/61325
8685 * lra-constraints.c (process_address): Rename to process_address_1.
8686 (process_address): New function.
8688 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
8690 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
8691 TYPES_BINOPV): New static data.
8692 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
8694 * config/aarch64/aarch64-simd.md (aarch64_ext,
8695 aarch64_im_lane_boundsi): New patterns.
8696 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
8698 (aarch64_evpc_ext): New function.
8700 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
8702 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
8703 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
8704 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
8705 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
8706 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
8708 2014-05-29 Tom de Vries <tom@codesourcery.com>
8710 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
8712 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
8713 Richard Sandiford <rdsandiford@googlemail.com>
8715 * arm/iterators.md (shiftable_ops): New code iterator.
8716 (t2_binop0, arith_shift_insn): New code attributes.
8717 * arm/predicates.md (shift_nomul_operator): New predicate.
8718 * arm/arm.md (insn_enabled): Delete.
8719 (enabled): Remove insn_enabled test.
8720 (*arith_shiftsi): Delete. Replace with ...
8721 (*<arith_shift_insn>_multsi): ... new pattern.
8722 (*<arith_shift_insn>_shiftsi): ... new pattern.
8723 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
8725 2014-05-29 Radovan Obradovic <robradovic@mips.com>
8726 Tom de Vries <tom@codesourcery.com>
8728 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
8729 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
8731 (mips_split_call): Use POST_CALL_TMP_REG.
8732 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
8734 2014-05-29 Tom de Vries <tom@codesourcery.com>
8736 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
8737 with #ifdef STACK_REGS.
8739 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
8741 * varasm.c (get_variable_section): Walk aliases.
8742 (place_block_symbol): Walk aliases.
8744 2014-05-28 Tom de Vries <tom@codesourcery.com>
8747 2014-05-28 Tom de Vries <tom@codesourcery.com>
8749 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8750 * lra.c (initialize_lra_reg_info_element): Add init of
8751 actual_call_used_reg_set field.
8752 (lra): Call lra_create_live_ranges before lra_inheritance for
8754 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
8756 * lra-constraints.c (need_for_call_save_p): Use
8757 actual_call_used_reg_set instead of call_used_reg_set for
8759 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
8761 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
8763 * doc/md.texi: Document that the % constraint character must
8764 be at the beginning of the string.
8765 * genoutput.c (validate_insn_alternatives): Check that '=',
8766 '+' and '%' only appear at the beginning of a constraint.
8767 * ira.c (commutative_constraint_p): Delete.
8768 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
8769 at the start of the string.
8770 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
8772 * config/arm/neon.md (bicdi3_neon): Likewise.
8773 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
8774 (slt_si, sltu_si): Likewise.
8775 * config/vax/vax.md (sbcdi3): Likewise.
8776 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
8777 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
8778 (mul64): Move '%' to beginning of constraint.
8779 * config/arm/arm.md (*xordi3_insn): Likewise.
8780 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
8783 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
8785 * doc/md.texi: Document the restrictions on the "enabled" attribute.
8787 2014-05-28 Jason Merrill <jason@redhat.com>
8790 * cgraph.h (symtab_node::get_comdat_group_id): New.
8791 * cgraphunit.c (analyze_functions): Call it.
8792 * symtab.c (dump_symtab_node): Likewise.
8793 * tree.c (decl_comdat_group_id): New.
8794 * tree.h: Declare it.
8795 * lto-streamer-out.c (write_symbol): Use it.
8796 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
8798 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8800 PR bootstrap/PR61146
8801 * wide-int.cc: Do not include longlong.h when compiling with clang.
8803 2014-05-28 Richard Biener <rguenther@suse.de>
8805 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
8806 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
8807 (vrp_visit_assignment_or_call): Print less vertical space.
8808 (vrp_visit_stmt): Likewise.
8809 (vrp_visit_phi_node): Likewise. For a PHI argument with
8810 VR_VARYING range consider recording it as copy.
8812 2014-05-28 Richard Biener <rguenther@suse.de>
8815 2014-05-28 Richard Biener <rguenther@suse.de>
8817 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8819 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8821 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
8822 sufficiently aligned and an offset is used at the same time.
8823 (expand_expr_real_1): Likewise.
8825 2014-05-28 Richard Biener <rguenther@suse.de>
8828 * fold-const.c (fold_comparison): When folding
8829 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
8830 the sign of the remaining constant operand stays the same.
8832 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
8834 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
8835 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
8836 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
8838 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
8839 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
8840 (m32bit-doubles) Likewise.
8841 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
8842 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
8845 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8847 * configure.ac ($gcc_cv_ld_clearcap): New test.
8848 * configure: Regenerate.
8849 * config.in: Regenerate.
8850 * config/sol2.opt (mclear-hwcap): New option.
8851 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
8852 * config/sol2-clearcap.map: Moved here from
8853 testsuite/gcc.target/i386/clearcap.map.
8854 * config/sol2-clearcapv2.map: Move here from
8855 gcc.target/i386/clearcapv2.map.
8856 * config/t-sol2 (install): Depend on install-clearcap-map.
8857 (install-clearcap-map): New target.
8858 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
8861 2014-05-28 Richard Biener <rguenther@suse.de>
8863 * hwint.h (*_HALF_WIDE_INT*): Move to ...
8864 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
8865 ... here and remove the rest.
8866 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8868 2014-05-28 Richard Biener <rguenther@suse.de>
8870 PR tree-optimization/61335
8871 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
8872 new range fails, drop to varying.
8874 2014-05-28 Olivier Hainque <hainque@adacore.com>
8876 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
8877 (CPP_SPEC): Add entry for -mcpu=8548.
8878 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
8879 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
8881 2014-05-28 Tom de Vries <tom@codesourcery.com>
8883 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8884 * lra.c (initialize_lra_reg_info_element): Add init of
8885 actual_call_used_reg_set field.
8886 (lra): Call lra_create_live_ranges before lra_inheritance for
8888 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
8890 * lra-constraints.c (need_for_call_save_p): Use
8891 actual_call_used_reg_set instead of call_used_reg_set for
8893 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
8895 2014-05-28 Radovan Obradovic <robradovic@mips.com>
8896 Tom de Vries <tom@codesourcery.com>
8898 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
8900 (@item -fuse-caller-save): New item.
8902 2014-05-28 Radovan Obradovic <robradovic@mips.com>
8903 Tom de Vries <tom@codesourcery.com>
8905 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
8906 OPT_fuse_caller_save.
8908 2014-05-28 Radovan Obradovic <robradovic@mips.com>
8909 Tom de Vries <tom@codesourcery.com>
8911 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
8912 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
8913 get_call_reg_set_usage.
8914 * resource.c (mark_set_resources, mark_target_live_regs): Use
8915 get_call_reg_set_usage.
8916 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
8918 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
8919 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
8920 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8921 * ira-build.c (ira_create_allocno): Init
8922 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8923 (create_cap_allocno, propagate_allocno_info)
8924 (propagate_some_info_from_allocno)
8925 (copy_info_to_removed_store_destinations): Handle
8926 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8927 * ira-costs.c (ira_tune_allocno_costs): Use
8928 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
8930 2014-05-28 Radovan Obradovic <robradovic@mips.com>
8931 Tom de Vries <tom@codesourcery.com>
8933 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
8934 and function_used_regs_valid fields.
8935 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
8936 find_all_hard_reg_sets.
8937 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
8938 (get_call_reg_set_usage): New function.
8939 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
8940 * regs.h (get_call_reg_set_usage): Declare.
8942 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
8945 * config/dbx.h (License): Add Runtime Library Exception.
8946 * config/newlib-stdint.h (License): Same.
8947 * config/rtems.h (License): Same
8948 * config/initfini-array.h (License): Same
8949 * config/v850/v850.h (License): Same.
8950 * config/v850/v850-opts.h (License): Same
8951 * config/v850/rtems.h (License): Same.
8953 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
8956 * doc/extend.texi (Local Labels): Note that label differences are
8957 not supported for AVR.
8959 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
8960 Olivier Hainque <hainque@adacore.com>
8962 * rtl.h (set_for_reg_notes): Declare.
8963 * emit-rtl.c (set_for_reg_notes): New function.
8964 (set_unique_reg_note): Use it.
8965 * optabs.c (add_equal_note): Likewise
8967 2014-05-27 Andrew Pinski <apinski@cavium.com>
8969 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
8970 Use <w> for the register in assembly template.
8971 (stack_protect_test): Use the mode of operands[0] for the result.
8972 (stack_protect_test_<mode>): Use <w> for the register
8973 in assembly template.
8975 2014-05-27 DJ Delorie <dj@redhat.com>
8977 * config/rx/rx.c (add_vector_labels): New.
8978 (rx_output_function_prologue): Call it.
8979 (rx_handle_func_attribute): Don't require empty arguments.
8980 (rx_handle_vector_attribute): New.
8981 (rx_attribute_table): Add "vector" attribute.
8982 * doc/extend.texi (interrupt, vector): Document new/changed
8983 RX-specific attributes.
8985 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
8987 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
8989 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
8990 predicate to detect a negative quotient.
8992 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
8994 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
8995 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
8996 Add X - Y CMP 0 to X CMP Y transformation.
8997 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
8999 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9001 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9004 2014-05-27 Steve Ellcey <sellcey@mips.com>
9006 * config/mips/mips.c: Add include of cgraph.h.
9008 2014-05-27 Richard Biener <rguenther@suse.de>
9010 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9012 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9015 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9016 * config/arm/arm-cores.def (License): Same.
9017 * config/arm/arm-opts.h (License): Same.
9018 * config/arm/aout.h (License): Same.
9019 * config/arm/bpabi.h (License): Same.
9020 * config/arm/elf.h (License): Same.
9021 * config/arm/linux-elf.h (License): Same.
9022 * config/arm/linux-gas.h (License): Same.
9023 * config/arm/netbsd-elf.h (License): Same.
9024 * config/arm/uclinux-eabi.h (License): Same.
9025 * config/arm/uclinux-elf.h (License): Same.
9026 * config/arm/vxworks.h (License): Same.
9028 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9030 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9031 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9032 (arm_init_neon_builtins): Handle NEON_BSWAP.
9033 Define required type nodes.
9034 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9035 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9036 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9037 * config/arm/iterators.md (VDQHSD): New mode iterator.
9039 2014-05-27 Richard Biener <rguenther@suse.de>
9041 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9042 Try using literal operands when comparing value-ranges failed.
9044 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9046 * ira.c (commutative_operand): Adjust for change to recog_data.
9047 [Missing from previous commit.]
9049 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9051 * system.h (TEST_BIT): New macro.
9052 * recog.h (alternative_mask): New type.
9053 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9054 (recog_data_d): Replace alternative_enabled_p array with
9055 enabled_alternatives.
9056 (target_recog): New structure.
9057 (default_target_recog, this_target_recog): Declare.
9058 (get_enabled_alternatives, recog_init): Likewise.
9059 * recog.c (default_target_recog, this_target_recog): New variables.
9060 (get_enabled_alternatives): New function.
9061 (extract_insn): Use it.
9062 (recog_init): New function.
9063 (preprocess_constraints, constrain_operands): Adjust for change to
9065 * postreload.c (reload_cse_simplify_operands): Likewise.
9066 * reload.c (find_reloads): Likewise.
9067 * ira-costs.c (record_reg_classes): Likewise.
9068 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9069 all alternatives after a disabled one would be skipped.
9070 (ira_implicitly_set_insn_hard_regs): Likewise.
9071 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9072 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9073 with enabled_alternatives.
9074 * lra.c (free_insn_recog_data): Update accordingly.
9075 (lra_update_insn_recog_data): Likewise.
9076 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9077 * lra-constraints.c (process_alt_operands): Likewise. Handle
9078 only_alternative as part of the enabled mask.
9079 * target-globals.h (this_target_recog): Declare.
9080 (target_globals): Add a recog field.
9081 (restore_target_globals): Restore this_target_recog.
9082 * target-globals.c: Include recog.h.
9083 (default_target_globals): Initialize recog field.
9084 (save_target_globals): Likewise.
9085 * reginfo.c (reinit_regs): Call recog_init.
9086 * toplev.c (backend_init_target): Likewise.
9088 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9090 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9091 rather than any named insn's code.
9093 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9096 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9097 * config/arm/arm-cores.def (License): Same.
9099 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9101 * tree.h (decl_comdat_group): Declare.
9102 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9103 * tree.c (decl_comdat_group): Here.
9105 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9107 PR rtl-optimization/61222
9108 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9109 the shift, truncate the PLUS operand to the result mode.
9111 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9114 * config/i386/i386.c (ix86_rtx_costs)
9115 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9118 2014-05-26 Martin Jambor <mjambor@suse.cz>
9120 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9123 2014-05-26 Richard Biener <rguenther@suse.de>
9125 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9126 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9127 Provide specializations.
9128 (wi::int_traits <HOST_WIDE_INT>,
9129 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9131 2014-05-26 Alan Modra <amodra@gmail.com>
9134 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9135 params and return a bool. Remove dead code. Update comment.
9136 Assert we have a const_int source. Remove bogus code from
9137 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9138 handling of constants > 2G and reg_equal note, from..
9139 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9140 return value. Update comment. If we can, use a new pseudo
9141 for intermediate calculations.
9142 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9144 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9145 call to rs6000_emit_set_const in splitter.
9146 (movdi_internal64+2, +3): Likewise.
9148 2014-05-26 Richard Biener <rguenther@suse.de>
9150 * system.h: Define __STDC_FORMAT_MACROS before
9151 including inttypes.h.
9152 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9153 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9154 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9155 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9156 HOST_WIDEST_INT_C): Remove.
9157 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9158 if C99 inttypes.h is not available.
9159 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9160 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9161 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9162 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9163 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9164 (struct output_info): Likewise.
9165 (print_statistics): Adjust.
9166 (dump_bitmap_statistics): Likewise.
9167 * bt-load.c (migrate_btr_defs): Print with PRId64.
9168 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9169 (MAX_SAFE_MULTIPLIER): Adjust.
9170 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9171 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9172 dump_cgraph_node): Likewise.
9173 * final.c (dump_basic_block_info): Likewise.
9174 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9175 * gcov.c (format_gcov): Likewise.
9176 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9178 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9179 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9180 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9181 Use PRId64 for dumping.
9182 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9183 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9184 (add_allocno_hard_regs): Adjust.
9185 * loop-doloop.c (doloop_modify): Print using PRId64.
9186 * loop-iv.c (inverse): Compute in uint64_t.
9187 (determine_max_iter, iv_number_of_iterations): Likewise.
9188 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9190 * lto-streamer-out.c (write_symbol): Use uint64_t.
9191 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9192 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9193 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9194 * modulo-sched.c (const_iteration_count): Use int64_t.
9195 (sms_schedule): Dump using PRId64.
9196 * predict.c (dump_prediction): Likewise.
9197 * pretty-print.h (pp_widest_integer): Remove.
9198 * profile.c (get_working_sets, is_edge_inconsistent,
9199 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9200 * tree-pretty-print.c (pp_double_int): Remove case handling
9201 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9202 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9204 (pass_optimize_bswap::execute): Remove restriction on hosts.
9205 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9206 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9207 * tree.c (widest_int_cst_value): Remove.
9208 * tree.h (widest_int_cst_value): Likewise.
9209 * value-prof.c (dump_histogram_value): Print using PRId64.
9210 * gengtype.c (main): Also inject int64_t.
9211 * ggc-page.c (struct max_alignment): Use int64_t.
9212 * alloc-pool.c (struct allocation_object_def): Likewise.
9213 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9215 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9216 * doc/tm.texi: Regenerated.
9217 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9218 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9219 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9220 mmix_output_register_setting): Use [u]int64_t in prototypes.
9221 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9222 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9223 mmix_output_octa, mmix_output_shifted_value): Adjust.
9224 (mmix_intval): Adjust. Remove unreachable case.
9225 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9227 2014-05-26 Richard Biener <rguenther@suse.de>
9229 * configure.ac: Drop __int64 type check. Insist that we
9230 found uint64_t and int64_t.
9231 * hwint.h (HOST_BITS_PER___INT64): Remove.
9232 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9233 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9234 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9235 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9236 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9237 for dst_q_src_df_rms_cdt.
9238 * configure: Regenerate.
9239 * config.in: Likewise.
9241 2014-05-26 Michael Tautschnig <mt@debian.org>
9244 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9245 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9247 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9249 PR rtl-optimization/61278
9250 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9252 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9254 PR rtl-optimization/61220
9255 Part of PR rtl-optimization/61225
9256 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9257 insn; skip split_edge for a block with only one successor.
9259 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9261 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9264 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9266 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9267 (update_vtable_references): New function.
9268 (function_and_variable_visibility): Rewrite also vtable initializers.
9269 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9271 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9273 * ggc.h (ggc_grow): New function.
9274 * ggc-none.c (ggc_grow): New function.
9275 * ggc-page.c (ggc_grow): Likewise.
9277 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9279 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9280 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9281 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9282 varpool_externally_visible_p, can_replace_by_local_alias,
9283 update_visibility_by_resolution_info, function_and_variable_visibility,
9284 pass_data_ipa_function_and_variable_visibility,
9285 make_pass_ipa_function_and_variable_visibility,
9286 whole_program_function_and_variable_visibility,
9287 pass_data_ipa_whole_program_visibility,
9288 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9289 * cgraph.h (cgraph_local_node_p): Declare.
9290 * ipa-visibility.c: New file.
9291 * Makefile.in (OBJS): Add ipa-visiblity.o
9293 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9295 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9296 that var decl is available.
9298 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9300 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9301 symtab_node pointer.
9302 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9303 (find_decls_types_r): Do not walk COMDAT_GROUP.
9304 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9305 * varasm.c (make_decl_one_only): Use set_comdat_group;
9306 create node if needed.
9307 * ipa-inline-transform.c (save_inline_function_body): Update
9308 way we decl->symtab mapping.
9309 * symtab.c (symtab_hash, hash_node, eq_node
9310 symtab_insert_node_to_hashtable): Remove.
9311 (symtab_register_node): Update.
9312 (symtab_unregister_node): Update.
9313 (symtab_get_node): Reimplement as inline function.
9314 (symtab_add_to_same_comdat_group): Update.
9315 (symtab_dissolve_same_comdat_group_list): Update.
9316 (dump_symtab_base): Update.
9317 (verify_symtab_base): Update.
9318 (symtab_make_decl_local): Update.
9319 (fixup_same_cpp_alias_visibility): Update.
9320 (symtab_nonoverwritable_alias): Update.
9321 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9322 * ipa.c (update_visibility_by_resolution_info): UPdate.
9323 * bb-reorder.c: Include cgraph.h
9324 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9326 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9327 * cgraph.c (cgraph_get_create_node): Update.
9328 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9330 (symtab_get_node): Make inline.
9331 (symtab_insert_node_to_hashtable): Remove.
9332 (symtab_can_be_discarded): Update.
9333 (decl_comdat_group): New function.
9334 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9336 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9338 (read_comdat_group): New function.
9339 (input_node, input_varpool_node): Use it.
9340 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9342 * mips.c (mips_start_unique_function): Likewise.
9343 (ix86_code_end): Likewise.
9344 (rs6000_code_end): Likweise.
9345 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9347 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9349 * gengtype-state.c (fatal_reading_state): Bring offline.
9350 * optabs.c (widening_optab_handler): Bring offline.
9351 * optabs.h (widening_optab_handler): Likewise.
9352 * final.c (get_attr_length_1): Likewise.
9354 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9356 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9358 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9360 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9361 (ppc440-compare): Include shift with dot.
9362 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9363 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9365 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9367 (e6500_sfx2): Include it.
9368 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9369 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9370 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9371 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9372 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9373 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9374 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9375 *lshiftrt_internal1le, *lshiftrt_internal1be,
9376 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9377 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9378 *rotldi3_internal10le, *rotldi3_internal10be,
9379 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9380 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9381 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9382 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9383 define_insns): Use type "shift" in the appropriate alternatives.
9385 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9387 * config/rs6000/rs6000.md (type): Add "logical". Delete
9389 (dot): Adjust comment.
9390 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9391 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9392 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9393 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9394 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9395 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9396 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9397 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9399 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9400 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9401 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9402 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9403 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9404 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9405 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9406 * config/rs6000/8540.md (ppc8540_su): Adjust.
9407 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9408 cell-cmp-microcoded): Adjust.
9409 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9410 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9411 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9412 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9413 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9414 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9415 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9416 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9417 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9419 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9420 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9421 Adjust. Adjust comment.
9422 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9423 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9425 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9427 * config/rs6000/rs6000.md (type): Add "add".
9428 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9429 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9430 define_insns): Use it.
9431 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9433 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9434 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9435 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9436 * config/rs6000/601.md (ppc601-integer): Adjust.
9437 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9438 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9439 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9440 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9441 * config/rs6000/8540.md (ppc8540_su): Adjust.
9442 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9443 cell-cmp-microcoded): Adjust.
9444 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9445 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9446 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9447 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9448 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9449 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9450 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9451 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9452 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9454 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9455 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9456 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9457 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9459 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9461 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9462 "delayed_compare", "var_delayed_compare".
9463 (var_shift): New attribute.
9464 (cell_micro): Adjust.
9465 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9466 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9467 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9468 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9469 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9470 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9471 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9472 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9473 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9474 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9475 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9476 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9477 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9478 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9479 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9480 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9481 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9482 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9483 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9484 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9485 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9486 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9487 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9488 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9489 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9491 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9492 * config/rs6000/440.md (ppc440-integer): Adjust.
9493 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9494 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9495 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9496 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9497 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9498 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9499 * config/rs6000/8540.md (ppc8540_su): Adjust.
9500 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9501 cell-cmp-microcoded): Adjust.
9502 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9503 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9504 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9505 e500mc64_delayed): Adjust.
9506 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9507 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9508 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9509 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9510 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9511 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9512 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9513 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9514 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9516 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9517 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9519 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9521 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9522 (bits): New mode_attr.
9523 (idiv_ldiv): Delete mode_attr.
9524 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9525 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9526 rs6000_adjust_priority, is_nonpipeline_insn,
9527 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9529 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9530 * config/rs6000/440.md (ppc440-idiv): Adjust.
9531 * config/rs6000/476.md (ppc476-idiv): Adjust.
9532 * config/rs6000/601.md (ppc601-idiv): Adjust.
9533 * config/rs6000/603.md (ppc603-idiv): Adjust.
9534 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9535 ppc620-ldiv): Adjust.
9536 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9537 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9538 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9539 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9540 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9541 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9542 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9543 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9544 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9545 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9546 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9547 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9548 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9549 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9550 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9551 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9552 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9553 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9555 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9557 * config/rs6000/rs6000.md (type): Delete "insert_word",
9558 "insert_dword". Add "insert".
9559 (size): Update comment.
9560 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9561 insn_must_be_first_in_group): Adjust.
9562 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9563 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9564 *insvsi_internal6, insvdi_internal): Adjust.
9566 * config/rs6000/40x.md (ppc403-integer): Adjust.
9567 * config/rs6000/440.md (ppc440-integer): Adjust.
9568 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
9569 * config/rs6000/601.md (ppc601-integer): Adjust.
9570 * config/rs6000/603.md (ppc603-integer): Adjust.
9571 * config/rs6000/6xx.md (ppc604-integer): Adjust.
9572 * config/rs6000/7450.md (ppc7450-integer): Adjust.
9573 * config/rs6000/7xx.md (ppc750-integer): Adjust.
9574 * config/rs6000/8540.md (ppc8540_su): Adjust.
9575 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
9576 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
9577 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9578 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
9579 * config/rs6000/e5500.md (e5500_sfx): Adjust.
9580 * config/rs6000/e6500.md (e6500_sfx): Adjust.
9581 * config/rs6000/mpc.md (mpccore-integer): Adjust.
9582 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
9583 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
9584 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
9585 * config/rs6000/power7.md (power7-integer): Adjust.
9586 * config/rs6000/power8.md (power8-1cyc): Adjust.
9587 * config/rs6000/rs64.md (rs64a-integer): Adjust.
9588 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9590 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9592 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
9593 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
9594 (size): New attribute.
9595 (dot): New attribute.
9596 (cell_micro): Adjust.
9597 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
9598 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
9599 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
9600 umuldi3_highpart): Adjust.
9601 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9602 rs6000_adjust_priority, is_nonpipeline_insn,
9603 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9605 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
9606 ppc405-imul3): Adjust.
9607 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
9608 * config/rs6000/476.md (ppc476-imul): Adjust.
9609 * config/rs6000/601.md (ppc601-imul): Adjust.
9610 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
9611 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
9612 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
9613 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
9614 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
9616 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
9617 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
9618 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
9620 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
9621 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
9622 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
9623 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
9624 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
9625 * config/rs6000/mpc.md (mpccore-imul): Adjust.
9626 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
9627 power4-lmul, power4-imul, power4-imul3): Adjust.
9628 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
9629 power5-lmul, power5-imul, power5-imul3): Adjust.
9630 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
9631 power6-lmul, power6-imul, power6-imul3): Adjust.
9632 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
9633 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
9635 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
9636 rs64a-lmul): Adjust.
9637 * config/rs6000/titan.md (titan_imul): Adjust.
9639 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9641 * config/rs6000/rs6000.md (type): Add new value "halfmul".
9642 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
9643 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
9644 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
9645 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
9646 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
9647 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
9648 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
9649 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
9650 * config/rs6000/titan.md: Delete nonsensical comment.
9651 (titan_imul): Add type imul3.
9652 (titan_mulhw): Remove type imul3; add type halfmul.
9654 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9656 * config/rs6000/rs6000.md (type): Reorder, reformat.
9658 2014-05-23 Martin Jambor <mjambor@suse.cz>
9660 PR tree-optimization/53787
9661 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
9662 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
9663 analysis_done, update all uses.
9664 * ipa-prop.c: Include domwalk.h
9665 (param_analysis_info): Removed.
9666 (param_aa_status): New type.
9667 (ipa_bb_info): Likewise.
9668 (func_body_info): Likewise.
9669 (ipa_get_bb_info): New function.
9670 (aa_overwalked): Likewise.
9671 (find_dominating_aa_status): Likewise.
9672 (parm_bb_aa_status_for_bb): Likewise.
9673 (parm_preserved_before_stmt_p): Changed to use new param AA info.
9674 (load_from_unmodified_param): Accept func_body_info as a parameter
9675 instead of parms_ainfo.
9676 (parm_ref_data_preserved_p): Changed to use new param AA info.
9677 (parm_ref_data_pass_through_p): Likewise.
9678 (ipa_load_from_parm_agg_1): Likewise. Update callers.
9679 (compute_complex_assign_jump_func): Changed to use new param AA info.
9680 (compute_complex_ancestor_jump_func): Likewise.
9681 (ipa_compute_jump_functions_for_edge): Likewise.
9682 (ipa_compute_jump_functions): Removed.
9683 (ipa_compute_jump_functions_for_bb): New function.
9684 (ipa_analyze_indirect_call_uses): Likewise, moved variable
9686 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
9687 and info, moved variable declarations down.
9688 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
9690 (ipa_analyze_stmt_uses): Likewise.
9691 (ipa_analyze_params_uses): Removed.
9692 (ipa_analyze_params_uses_in_bb): New function.
9693 (ipa_analyze_controlled_uses): Likewise.
9694 (free_ipa_bb_info): Likewise.
9695 (analysis_dom_walker): New class.
9696 (ipa_analyze_node): Handle node-specific forbidden analysis,
9697 initialize and free func_body_info, use dominator walker.
9698 (ipcp_modif_dom_walker): New class.
9699 (ipcp_transform_function): Create and free func_body_info, use
9700 ipcp_modif_dom_walker, moved a lot of functionality there.
9702 2014-05-23 Marek Polacek <polacek@redhat.com>
9703 Jakub Jelinek <jakub@redhat.com>
9705 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
9706 * gcc.c (sanitize_spec_function): Likewise.
9707 * convert.c (convert_to_integer): Include "ubsan.h". Add
9708 floating-point to integer instrumentation.
9709 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
9710 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
9711 SANITIZE_NONDEFAULT.
9712 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
9713 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
9714 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
9715 * ubsan.c: Include "realmpfr.h" and "dfp.h".
9716 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
9717 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
9718 float/double/long double.
9719 (ubsan_instrument_float_cast): New function.
9720 * ubsan.h (ubsan_instrument_float_cast): Declare.
9722 2014-05-23 Jiong Wang <jiong.wang@arm.com>
9724 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
9726 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
9727 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
9728 Adjust for tailcalling through registers.
9729 * config/aarch64/aarch64.h (enum reg_class): New caller save
9731 (REG_CLASS_NAMES): Likewise.
9732 (REG_CLASS_CONTENTS): Likewise.
9733 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
9734 Allow tailcalling without decls.
9736 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
9738 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
9739 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
9741 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
9742 gsi, and variables v_* to v*.
9744 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
9746 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
9748 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
9750 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
9751 * omp-low.c: Update accordingly.
9753 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
9754 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
9755 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
9756 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
9757 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
9758 GF_OMP_TARGET_KIND_UPDATE.
9760 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
9761 Explicitly enumerate the expected region types.
9763 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
9766 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
9767 documentation; the old documentation didn't clearly state the
9768 constraints on the contents of the pointed-to storage.
9770 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9772 Fix bootstrap error on ia64
9773 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
9774 Return default value.
9776 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
9778 PR tree-optimization/54733
9779 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
9781 (find_bswap_or_nop_load): New.
9782 (find_bswap_1): Renamed to ...
9783 (find_bswap_or_nop_1): This. Also add support for memory source.
9784 (find_bswap): Renamed to ...
9785 (find_bswap_or_nop): This. Also add support for memory source and
9786 detection of bitwise operations equivalent to load in target
9788 (execute_optimize_bswap): Likewise. Also move its leading comment back
9789 in place and split statement transformation into ...
9790 (bswap_replace): This.
9792 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
9794 PR rtl-optimization/61215
9795 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
9796 simplify_gen_subreg until final substitution.
9798 2014-05-23 Alan Modra <amodra@gmail.com>
9801 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
9802 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
9803 Use "Y" constraint rather than "m".
9805 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
9807 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
9809 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
9810 New function declaration.
9811 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
9812 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
9813 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
9814 (aarch64_init_builtins) : Initialize builtins
9815 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
9816 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
9817 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
9818 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
9819 and __builtins_aarch64_set_fpsr.
9820 (aarch64_atomic_assign_expand_fenv): New function.
9821 * config/aarch64/aarch64.md (set_fpcr): New pattern.
9822 (get_fpcr) : Likewise.
9823 (set_fpsr) : Likewise.
9824 (get_fpsr) : Likewise.
9825 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
9826 and UNSPECV_SET_FPSR.
9827 * doc/extend.texi (AARCH64 Built-in Functions) : Document
9828 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
9829 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
9831 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
9833 PR rtl-optimization/60969
9834 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
9835 constraints. Set up mem cost for NO_REGS case.
9837 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
9839 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
9841 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
9843 * config/darwin.c: Include "lto-section-names.h".
9844 (LTO_SEGMENT_NAME): Don't define.
9845 * config/i386/winnt.c: Include "lto-section-names.h".
9846 * lto-streamer.c: Include "lto-section-names.h".
9847 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
9848 * lto-wrapper.c: Include "lto-section-names.h".
9849 (LTO_SECTION_NAME_PREFIX): Don't define.
9850 * lto-section-names.h: New file.
9851 * cgraphunit.c: Include "lto-section-names.h".
9853 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
9855 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
9857 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
9860 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
9862 2014-05-22 Nick Clifton <nickc@redhat.com>
9864 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
9866 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
9868 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
9869 -> (T)A transformation to integer types.
9871 2014-05-22 Teresa Johnson <tejohnson@google.com>
9873 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
9874 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
9875 (gcov_rewrite): Use gcov_nonruntime_assert.
9877 (gcov_write_words): Ditto.
9878 (gcov_write_length): Ditto.
9879 (gcov_read_words): Use gcov_nonruntime_assert, and remove
9880 gcc_assert from IN_LIBGCOV code.
9881 (gcov_read_summary): Use gcov_error to flag profile corruption.
9882 (gcov_sync): Use gcov_nonruntime_assert.
9883 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
9884 (gcov_histo_index): Use gcov_nonruntime_assert.
9885 (static void gcov_histogram_merge): Ditto.
9886 (compute_working_sets): Ditto.
9887 * gcov-io.h (gcov_nonruntime_assert): Define.
9888 (gcov_error): Define for !IN_LIBGCOV
9890 2014-05-22 Richard Biener <rguenther@suse.de>
9892 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9893 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
9894 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
9895 and deallocation site.
9896 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9897 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
9898 passing through the incoming points-to set.
9899 (handle_lhs_call): Use flags argument instead of recomputing it.
9900 (find_func_aliases_for_call): Call handle_lhs_call with proper
9903 2014-05-22 Jakub Jelinek <jakub@redhat.com>
9905 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
9906 all padding bits in REAL_VALUE_TYPE are cleared.
9908 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9910 Cleanup and improve multipass_dfa_lookahead_guard
9911 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
9912 (core2i7_first_cycle_multipass_begin,)
9913 (core2i7_first_cycle_multipass_issue,)
9914 (core2i7_first_cycle_multipass_backtrack): Update signature.
9915 * config/ia64/ia64.c
9916 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
9917 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
9918 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
9920 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
9921 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
9923 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
9925 * doc/tm.texi: Regenerate.
9927 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
9928 * haifa-sched.c (ready_try): Make signed to allow negative values.
9929 (rebug_ready_list_1): Update.
9930 (choose_ready): Simplify.
9931 (sched_extend_ready_list): Update.
9933 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9935 Remove IA64 speculation tweaking flags
9936 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
9937 speculation tuning flags.
9938 (msched-prefer-non-data-spec-insns,)
9939 (msched-prefer-non-control-spec-insns): Obsolete options.
9940 * haifa-sched.c (choose_ready): Remove handling of
9941 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
9942 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
9943 and PREFER_NON_DATA_SPEC.
9944 * sel-sched.c (process_spec_exprs): Remove handling of
9945 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
9947 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9949 Improve scheduling debug output
9950 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
9951 (advance_one_cycle): Update.
9952 (schedule_insn, queue_to_ready): Add debug printouts.
9953 (debug_ready_list_1): New static function.
9954 (debug_ready_list): Update.
9955 (max_issue): Add debug printouts.
9956 (dump_insn_stream): New static function.
9957 (schedule_block): Use it. Also better indent printouts.
9959 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9961 Fix sched_insn debug counter
9962 * haifa-sched.c (schedule_insn): Update.
9963 (struct haifa_saved_data): Add nonscheduled_insns_begin.
9964 (save_backtrack_point, restore_backtrack_point): Update.
9965 (first_nonscheduled_insn): New static function.
9966 (queue_to_ready, choose_ready): Use it.
9967 (schedule_block): Init nonscheduled_insns_begin.
9968 (sched_emit_insn): Update.
9971 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
9973 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
9975 (aarch64_secondary_reload) : LikeWise.
9976 (aarch64_class_max_nregs) : Remove CORE_REGS.
9977 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
9978 (REG_CLASS_NAMES) : Likewise.
9979 (REG_CLASS_CONTENTS) : LikeWise.
9980 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
9982 2014-05-21 Guozhi Wei <carrot@google.com>
9985 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
9987 (vqdmulhq_n_s16): Likewise.
9989 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9991 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
9993 2014-05-21 Marek Polacek <polacek@redhat.com>
9996 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
9998 2014-05-21 Martin Jambor <mjambor@suse.cz>
10000 * doc/invoke.texi (Optimize Options): Document parameters
10001 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10002 ipa-cp-array-index-hint-bonus.
10004 2014-05-21 Mark Wielaard <mjw@redhat.com>
10007 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10008 version >= 3 or not strict DWARF.
10009 * langhooks.h (struct lang_hooks_for_types): Add
10010 enum_underlying_base_type.
10011 * langhooks.c (lhd_enum_underlying_base_type): New function.
10012 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10013 enum_underlying_base_type.
10014 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10015 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10016 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10018 2014-05-21 Richard Biener <rguenther@suse.de>
10020 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10022 2014-05-21 John Marino <gnugcc@marino.st>
10024 * config.gcc (*-*-dragonfly*): New target.
10025 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10026 * configure: Regenerate.
10027 * config/dragonfly-stdint.h: New.
10028 * config/dragonfly.h: New.
10029 * config/dragonfly.opt: New.
10030 * config/i386/dragonfly.h: New.
10031 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10033 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10035 * tree.def (VOID_CST): New.
10036 * tree-core.h (TI_VOID): New.
10037 * tree.h (void_node): New.
10038 * tree.c (tree_node_structure_for_code, tree_code_size)
10039 (iterative_hash_expr): Handle VOID_CST.
10040 (build_common_tree_nodes): Initialize void_node.
10042 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10044 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10046 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10048 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10051 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10052 flag_reorder_blocks_and_partition.
10053 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10055 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10058 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10060 (*addc_r_t): Add new insn_and_split.
10062 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10064 PR middle-end/61252
10065 * omp-low.c (handle_simd_reference): New function.
10066 (lower_rec_input_clauses): Use it. Defer adding reference
10067 initialization even for reduction without placeholder if in simd,
10068 handle it properly later on.
10070 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10072 PR tree-optimization/60899
10073 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10074 assume all static symbols will have definition wile parsing and
10075 check the do have definition later in compilation; check that
10076 variable referring symbol will be output before concluding that
10077 reference is safe; be conservative for referring local statics;
10078 be more precise about when comdat is output in other partition.
10080 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10083 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10085 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10086 (ipa_inline): Loop inline_to_all_callers until no more aliases
10089 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10091 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10092 set writeonly flag only for vars actually written to.
10094 2014-05-20 Dehao Chen <dehao@google.com>
10096 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10097 and callee count to get clone count.
10098 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10099 count in copy_body.
10101 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10103 PR rtl-optimization/61243
10104 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10106 2014-05-20 Xinliang David Li <davidxl@google.com>
10108 * cgraphunit.c (walk_polymorphic_call_targets): Add
10109 dbgcnt and fopt-info support.
10110 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10111 * ipa-devirt.c (ipa_devirt): Ditto.
10112 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10113 * ipa.c (walk_polymorphic_call_targets): Ditto.
10114 * gimple-fold.c (fold_gimple_assign): Ditto.
10115 (gimple_fold_call): Ditto.
10116 * dbgcnt.def: New counter.
10118 2014-05-20 DJ Delorie <dj@redhat.com>
10120 * config/msp430/msp430.md (split): Don't allow subregs when
10121 splitting SImode adds.
10122 (andneghi): Fix subtraction logic.
10123 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10125 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10127 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10129 * except.c (switch_to_exception_section, resolve_unique_section,
10130 get_named_text_section, default_function_rodata_section,
10131 align_variable, get_block_for_decl, default_section_type_flags):
10132 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10133 * symtab.c (symtab_add_to_same_comdat_group,
10134 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10135 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10137 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10138 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10139 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10140 (c6x_function_in_section_p): Likewise.
10141 * config/darwin.c (machopic_select_section): Likewise.
10142 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10143 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10144 * config/mep/mep.c (mep_select_section): LIkewise.
10145 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10147 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10149 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10150 EH region of calls to pure functions that can throw an exception.
10151 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10152 (copy_reference_ops_from_call): Also copy the EH region of the call if
10153 it can throw an exception.
10155 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10157 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10158 nested VEC_SELECTs that are inverses of each other.
10160 2014-05-20 Richard Biener <rguenther@suse.de>
10162 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10163 (extract_and_process_scc_for_name): not here.
10164 (cond_dom_walker::before_dom_children): Only process
10165 stmts that end the BB in interesting ways.
10166 (run_scc_vn): Mark param uses as visited.
10168 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10170 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10173 2014-05-20 Nick Clifton <nickc@redhat.com>
10175 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10176 (msp430_gimplify_va_arg_expr): New function.
10177 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10179 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10180 operand 0 in order to prevent confusion about the number of
10181 registers involved.
10183 2014-05-20 Richard Biener <rguenther@suse.de>
10185 PR tree-optimization/61221
10186 * tree-ssa-pre.c (el_to_update): Remove.
10187 (eliminate_dom_walker::before_dom_children): Handle released
10188 VDEFs by value-numbering them to the associated VUSE. Update
10189 stmt immediately for substituted call address.
10190 (eliminate): Remove delayed stmt updating code.
10191 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10192 possibly late re-numbered vuses.
10193 (vn_reference_lookup_2): Adjust.
10194 (vn_reference_lookup_pieces): Likewise.
10195 (vn_reference_lookup): Likewise.
10197 2014-05-20 Richard Biener <rguenther@suse.de>
10199 * config.gcc: Remove need_64bit_hwint.
10200 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10201 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10203 * config.in: Regenerate.
10204 * configure: Likewise.
10206 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10208 * doc/extend.texi: Create Label Attributes section,
10209 move all label attributes into it and reference it.
10211 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10213 * arm.c (thumb1_reorg): When scanning backwards skip anything
10214 that's not a proper insn.
10216 2014-05-19 Richard Biener <rguenther@suse.de>
10218 PR tree-optimization/61221
10219 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10220 Do nothing for unreachable blocks.
10221 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10222 Improve unreachability detection.
10224 2014-05-19 Richard Biener <rguenther@suse.de>
10226 PR tree-optimization/61209
10227 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10229 2014-05-19 Nick Clifton <nickc@redhat.com>
10231 * except.c (init_eh): Fix computation of builtin setjmp buffer
10232 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10234 2014-05-19 Richard Biener <rguenther@suse.de>
10236 PR tree-optimization/61184
10237 * tree-vrp.c (is_negative_overflow_infinity): Use
10238 TREE_OVERFLOW_P and do that check first.
10239 (is_positive_overflow_infinity): Likewise.
10240 (is_overflow_infinity): Likewise.
10241 (vrp_operand_equal_p): Properly treat operands with
10242 differing overflow as not equal.
10244 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10246 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10247 shift simplification where it was intended.
10249 2014-05-19 Christian Bruel <christian.bruel@st.com>
10252 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10254 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10257 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10260 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10262 * reg-notes.def (CROSSING_JUMP): Likewise.
10263 * rtl.h (rtx_def): Update comment for jump flag.
10264 (CROSSING_JUMP_P): Define.
10265 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10266 of a REG_CROSSING_JUMP note.
10267 * cfghooks.c (tidy_fallthru_edges): Likewise.
10268 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10269 * emit-rtl.c (try_split): Likewise.
10270 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10271 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10272 * jump.c (redirect_jump_2): Likewise.
10273 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10274 (relax_delay_slots): Likewise.
10275 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10276 (bbit_di): Likewise.
10277 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10278 * config/sh/sh.md (jump_compact): Likewise.
10279 * bb-reorder.c (rotate_loop): Likewise.
10280 (pass_duplicate_computed_gotos::execute): Likewise.
10281 (add_reg_crossing_jump_notes): Rename to...
10282 (update_crossing_jump_flags): ...this.
10283 (pass_partition_blocks::execute): Update accordingly.
10285 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10287 * tree.h: Remove extraneous template <>.
10289 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10291 * ipa.c (symtab_remove_unreachable_nodes): Remove
10292 symbol from comdat group if its body was eliminated.
10293 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10294 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10295 (symtab_unregister_node): ... this one.
10296 (verify_symtab_base): More strict checking of comdats.
10297 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10299 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10301 * tree-pass.h (make_pass_ipa_comdats): New pass.
10302 * timevar.def (TV_IPA_COMDATS): New timevar.
10303 * passes.def (pass_ipa_comdats): Add.
10304 * Makefile.in (OBJS): Add ipa-comdats.o
10305 * ipa-comdats.c: New file.
10307 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10309 * ipa.c (update_visibility_by_resolution_info): New function.
10310 (function_and_variable_visibility): Use it.
10312 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10314 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10316 (FOR_EACH_DEFINED_SYMBOL): New macro.
10317 (varpool_first_static_initializer, varpool_next_static_initializer,
10318 varpool_first_defined_variable, varpool_next_defined_variable):
10320 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10322 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10324 * ggc-page.c (ggc_handle_finalizers): Add comment.
10326 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10328 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10329 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10330 (ggc_internal_cleared_alloc): Likewise.
10331 * ggc-page.c (finalizer): New class.
10332 (vec_finalizer): Likewise.
10333 (globals::finalizers): New member.
10334 (globals::vec_finalizers): Likewise.
10335 (ggc_internal_alloc): Record the finalizer if any for the block being
10337 (ggc_handle_finalizers): New function.
10338 (ggc_collect): Call ggc_handle_finalizers.
10339 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10341 (ggc_internal_cleared_alloc): Likewise.
10342 (finalize): New function.
10343 (need_finalization_p): Likewise.
10344 (ggc_alloc): Install the type's destructor as the finalizer if it
10345 might do something.
10346 (ggc_cleared_alloc): Likewise.
10347 (ggc_vec_alloc): Likewise.
10348 (ggc_cleared_vec_alloc): Likewise.
10350 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10352 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10354 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10356 * alias.c (record_alias_subset): Adjust.
10357 * bitmap.c (bitmap_element_allocate): Likewise.
10358 (bitmap_gc_alloc_stat): Likewise.
10359 * cfg.c (init_flow): Likewise.
10360 (alloc_block): Likewise.
10361 (unchecked_make_edge): Likewise.
10362 * cfgloop.c (alloc_loop): Likewise.
10363 (flow_loops_find): Likewise.
10364 (rescan_loop_exit): Likewise.
10365 * cfgrtl.c (init_rtl_bb_info): Likewise.
10366 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10367 (cgraph_allocate_node): Likewise.
10368 (cgraph_create_edge_1): Likewise.
10369 (cgraph_allocate_init_indirect_info): Likewise.
10370 * cgraphclones.c (cgraph_clone_edge): Likewise.
10371 * cgraphunit.c (add_asm_node): Likewise.
10372 (init_lowered_empty_function): Likewise.
10373 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10374 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10375 (alpha_use_linkage): Likewise.
10376 * config/arc/arc.c (arc_init_machine_status): Likewise.
10377 * config/arm/arm.c (arm_init_machine_status): Likewise.
10378 * config/avr/avr.c (avr_init_machine_status): Likewise.
10379 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10380 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10381 * config/cris/cris.c (cris_init_machine_status): Likewise.
10382 * config/darwin.c (machopic_indirection_name): Likewise.
10383 (darwin_build_constant_cfstring): Likewise.
10384 (darwin_enter_string_into_cfstring_table): Likewise.
10385 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10386 * config/frv/frv.c (frv_init_machine_status): Likewise.
10387 * config/i386/i386.c (get_dllimport_decl): Likewise.
10388 (ix86_init_machine_status): Likewise.
10389 (assign_386_stack_local): Likewise.
10390 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10391 (i386_pe_maybe_record_exported_symbol): Likewise.
10392 (i386_pe_record_stub): Likewise.
10393 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10394 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10395 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10396 (m32c_note_pragma_address): Likewise.
10397 * config/mep/mep.c (mep_init_machine_status): Likewise.
10398 (mep_note_pragma_flag): Likewise.
10399 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10400 (mips16_local_alias): Likewise.
10401 (mips_init_machine_status): Likewise.
10402 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10403 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10404 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10405 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10406 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10407 * config/pa/pa.c (pa_init_machine_status): Likewise.
10408 (pa_get_deferred_plabel): Likewise.
10409 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10410 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10411 (rs6000_init_machine_status): Likewise.
10412 (output_toc): Likewise.
10413 * config/s390/s390.c (s390_init_machine_status): Likewise.
10414 * config/score/score.c (score_output_external): Likewise.
10415 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10416 * config/spu/spu.c (spu_init_machine_status): Likewise.
10417 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10418 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10419 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10420 * coverage.c (coverage_end_function): Likewise.
10421 * dbxout.c (dbxout_init): Likewise.
10422 * doc/gty.texi: Don't mention variable_size attribute.
10423 * dwarf2cfi.c (new_cfi): Adjust.
10424 (new_cfi_row): Likewise.
10425 (copy_cfi_row): Likewise.
10426 (create_cie_data): Likewise.
10427 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10428 (new_loc_descr): Likewise.
10429 (find_AT_string_in_table): Likewise.
10430 (add_addr_table_entry): Likewise.
10431 (new_die): Likewise.
10432 (add_var_loc_to_decl): Likewise.
10433 (clone_die): Likewise.
10434 (clone_as_declaration): Likewise.
10435 (break_out_comdat_types): Likewise.
10436 (new_loc_list): Likewise.
10437 (add_loc_descr_to_each): Likewise.
10438 (add_location_or_const_value_attribute): Likewise.
10439 (add_linkage_name): Likewise.
10440 (lookup_filename): Likewise.
10441 (dwarf2out_var_location): Likewise.
10442 (new_line_info_table): Likewise.
10443 (dwarf2out_init): Likewise.
10444 (mem_loc_descriptor): Likewise.
10445 (loc_descriptor): Likewise.
10446 (add_const_value_attribute): Likewise.
10447 (tree_add_const_value_attribute): Likewise.
10448 (comp_dir_string): Likewise.
10449 (dwarf2out_vms_debug_main_pointer): Likewise.
10450 (string_cst_pool_decl): Likewise.
10451 * emit-rtl.c (set_mem_attrs): Likewise.
10452 (get_reg_attrs): Likewise.
10453 (start_sequence): Likewise.
10454 (init_emit): Likewise.
10455 (init_emit_regs): Likewise.
10456 * except.c (init_eh_for_function): Likewise.
10457 (gen_eh_region): Likewise.
10458 (gen_eh_region_catch): Likewise.
10459 (gen_eh_landing_pad): Likewise.
10460 (add_call_site): Likewise.
10461 * function.c (add_frame_space): Likewise.
10462 (insert_temp_slot_address): Likewise.
10463 (assign_stack_temp_for_type): Likewise.
10464 (get_hard_reg_initial_val): Likewise.
10465 (allocate_struct_function): Likewise.
10466 (prepare_function_start): Likewise.
10467 (types_used_by_var_decl_insert): Likewise.
10468 * gengtype.c (variable_size_p): Remove function.
10469 (enum alloc_quantity): Remove enum.
10470 (write_typed_alloc_def): Remove function.
10471 (write_typed_struct_alloc_def): Likewise.
10472 (write_typed_typedef_alloc_def): Likewise.
10473 (write_typed_alloc_defns): Likewise.
10475 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10476 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10477 * ggc.h (ggc_alloc): new function.
10478 (ggc_cleared_alloc): Likewise.
10479 (ggc_vec_alloc): Template on type of vector element, and remove
10480 element size argument.
10481 (ggc_cleared_vec_alloc): Likewise.
10482 * gimple.c (gimple_build_omp_for): Adjust.
10483 (gimple_copy): Likewise.
10484 * ipa-cp.c (get_replacement_map): Likewise.
10485 (find_aggregate_values_for_callers_subset): Likewise.
10486 (known_aggs_to_agg_replacement_list): Likewise.
10487 * ipa-devirt.c (get_odr_type): Likewise.
10488 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10489 (read_agg_replacement_chain): Likewise.
10490 * loop-iv.c (get_simple_loop_desc): Likewise.
10491 * lto-cgraph.c (input_node_opt_summary): Likewise.
10492 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10493 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10494 (input_eh_region): Likewise.
10495 (input_eh_lp): Likewise.
10496 (input_cfg): Likewise.
10497 * optabs.c (set_optab_libfunc): Likewise.
10498 (init_tree_optimization_optabs): Likewise.
10499 (set_conv_libfunc): Likewise.
10500 * passes.c (do_per_function_toporder): Likewise.
10501 * rtl.h: Don't use variable_size gty attribute.
10502 * sese.c (if_region_set_false_region): Adjust.
10503 * stringpool.c (gt_pch_save_stringpool): Likewise.
10504 * target-globals.c (save_target_globals): Likewise.
10505 * toplev.c (general_init): Likewise.
10506 * trans-mem.c (record_tm_replacement): Likewise.
10507 (split_bb_make_tm_edge): Likewise.
10508 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10509 * tree-data-ref.h (lambda_vector_new): Likewise.
10510 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10511 * tree-iterator.c (tsi_link_before): Likewise.
10512 (tsi_link_after): Likewise.
10513 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10514 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10515 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10516 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10517 * tree-ssa.c (init_tree_ssa): Adjust.
10518 * tree-ssanames.c (set_range_info): Likewise.
10519 (get_ptr_info): Likewise.
10520 (duplicate_ssa_name_ptr_info): Likewise.
10521 (duplicate_ssa_name_range_info): Likewise.
10522 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10523 (unpack_ts_fixed_cst_value_fields): Likewise.
10524 * tree.c (build_fixed): Likewise.
10525 (build_real): Likewise.
10526 (build_string): Likewise.
10527 (decl_priority_info): Likewise.
10528 (decl_debug_expr_insert): Likewise.
10529 (decl_value_expr_insert): Likewise.
10530 (decl_debug_args_insert): Likewise.
10531 (type_hash_add): Likewise.
10532 (build_omp_clause): Likewise.
10533 * ubsan.c (decl_for_type_insert): Likewise.
10534 * varasm.c (get_unnamed_section): Likewise.
10535 (get_noswitch_section): Likewise.
10536 (get_section): Likewise.
10537 (get_block_for_section): Likewise.
10538 (create_block_symbol): Likewise.
10539 (build_constant_desc): Likewise.
10540 (create_constant_pool): Likewise.
10541 (force_const_mem): Likewise.
10542 (record_tm_clone_pair): Likewise.
10543 * varpool.c (varpool_create_empty_node): Likewise.
10545 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10547 * dwarf2out.c (tree_add_const_value_attribute): Call
10548 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10549 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10550 instead of ggc_internal_<x>alloc_stat.
10551 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10552 (ggc_realloc): Likewise.
10553 * ggc-none.c (ggc_internal_alloc): Likewise.
10554 (ggc_internal_cleared_alloc): Likewise.
10555 * ggc-page.c: Likewise.
10556 * ggc.h (ggc_internal_alloc_stat): Likewise.
10557 (ggc_internal_alloc): Remove macro.
10558 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10559 (ggc_internal_cleared_alloc): Remove macro.
10560 (GGC_RESIZEVEC): Adjust.
10561 (ggc_resizevar): Remove macro.
10562 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
10563 (ggc_internal_cleared_vec_alloc_stat): Likewise.
10564 (ggc_internal_vec_cleared_alloc): Remove macro.
10565 (ggc_alloc_atomic_stat): Drop _stat suffix.
10566 (ggc_alloc_atomic): Remove macro.
10567 (ggc_alloc_cleared_atomic): Remove macro.
10568 (ggc_alloc_string_stat): Drop _stat suffix.
10569 (ggc_alloc_string): Remove macro.
10570 (ggc_alloc_rtx_def_stat): Adjust.
10571 (ggc_alloc_tree_node_stat): Likewise.
10572 (ggc_alloc_cleared_tree_node_stat): Likewise.
10573 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
10574 (ggc_alloc_cleared_simd_clone_stat): Likewise.
10575 * gimple.c (gimple_build_omp_for): Likewise.
10576 (gimple_copy): Likewise.
10577 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
10578 * toplev.c (realloc_for_line_map): Adjust.
10579 * tree-data-ref.h (lambda_vector_new): Likewise.
10580 * tree-phinodes.c (allocate_phi_node): Likewise.
10581 * tree.c (grow_tree_vec_stat): Likewise.
10582 * vec.h (va_gc::reserve): Adjust.
10584 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
10586 * config/microblaze/microblaze.c (break_handler): New Declaration.
10587 (microblaze_break_function_p,microblaze_is_break_handler): New.
10588 (compute_frame_size): Use microblaze_break_function_p.
10589 Add the test of break_handler.
10590 (microblaze_function_prologue) : Add the test of variable
10591 break_handler. Check the fnname by BREAK_HANDLER_NAME.
10592 (microblaze_function_epilogue) : Add the test of break_handler.
10593 (microblaze_globalize_label) : Add the test of break_handler.
10594 Check the name by BREAK_HANDLER_NAME.
10596 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
10598 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
10599 microblaze_is_break_handler test.
10600 (call_internal1,call_value_intern): Use microblaze_break_function_p.
10601 Use SYMBOL_REF_DECL.
10603 * config/microblaze/microblaze-protos.h
10604 (microblaze_break_function_p,microblaze_is_break_handler):
10607 * doc/extend.texi (MicroBlaze break_handler Functions): Document
10608 new MicroBlaze break_handler functions.
10610 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10612 * doc/extend.texi (Size of an asm): Move node text according
10613 to its @menu entry position.
10615 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
10617 PR tree-optimization/61140
10618 PR tree-optimization/61150
10619 PR tree-optimization/61197
10620 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
10622 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10624 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
10626 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
10628 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
10629 __SIZEOF_INT128__ is defined.
10631 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10633 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
10634 (rs6000_delegitimize_address): Use it.
10636 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10638 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
10639 inplace argument. Store the new address in the original MEM when true.
10640 * emit-rtl.c (change_address_1): Likewise.
10641 (adjust_address_1, adjust_automodify_address_1, offset_address):
10642 Update accordingly.
10643 * rtl.h (plus_constant): Add an inplace argument.
10644 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
10645 when true. Avoid generating (plus X (const_int 0)).
10646 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
10647 in-place. Pass true to plus_constant.
10648 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
10650 2014-05-16 Dehao Chen <dehao@google.com>
10652 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
10654 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10657 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
10659 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
10661 2014-05-16 Dehao Chen <dehao@google.com>
10663 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
10664 optimize_function_for_size_p.
10665 * regs.h (REG_FREQ_FROM_BB): Likewise.
10667 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10670 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
10671 negt_reg_operand cases.
10672 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
10674 * config/sh/predicates.md (cbranch_treg_value): Simplify.
10676 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10678 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
10681 2014-05-16 David Malcolm <dmalcolm@redhat.com>
10684 2014-04-29 David Malcolm <dmalcolm@redhat.com>
10686 * tree-cfg.c (dump_function_to_file): Dump the return type of
10687 functions, in a line to itself before the function body, mimicking
10688 the layout of a C function.
10690 2014-05-16 Dehao Chen <dehao@google.com>
10692 * cfghooks.c (make_forwarder_block): Use direct computation to
10693 get fall-through edge's count and frequency.
10695 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
10697 * config/arc/arc.c (arc_init): Fix typo in error message.
10698 * config/i386/i386.c (ix86_expand_builtin): Likewise.
10699 (split_stack_prologue_scratch_regno): Likewise.
10700 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
10701 word from error message.
10703 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10705 * ira-costs.c: Fix typo in comment.
10707 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
10709 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
10711 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
10713 * varpool.c (dump_varpool_node): Dump write-only flag.
10714 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
10716 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
10717 write-only variables.
10718 * ipa.c (process_references): New function.
10719 (set_readonly_bit): New function.
10720 (set_writeonly_bit): New function.
10721 (clear_addressable_bit): New function.
10722 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
10723 fix handling of aliases.
10724 * cgraph.h (struct varpool_node): Add writeonly flag.
10726 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
10728 PR rtl-optimization/60969
10729 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
10730 Calculate costs for this case.
10732 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
10734 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
10735 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
10737 2014-05-16 Richard Biener <rguenther@suse.de>
10739 PR tree-optimization/61194
10740 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
10741 bool patterns ending in a COND_EXPR.
10743 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10745 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
10747 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10749 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
10750 where we were unable to cost an RTX.
10752 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10754 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
10757 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10758 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10760 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
10762 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10763 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10765 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
10766 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
10768 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10769 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10771 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
10774 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10775 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10777 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
10780 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10781 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10783 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
10784 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
10786 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10787 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10789 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
10790 rotates and shifts.
10792 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10793 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10795 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
10796 ZERO_EXTEND and SIGN_EXTEND better.
10798 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10799 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10801 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
10802 logical operations.
10804 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10805 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10807 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
10808 costs when costing loads and stores to memory.
10810 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10811 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
10813 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
10816 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10818 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
10820 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10821 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10823 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
10825 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
10827 (aarch64_rtx_mult_cost): New.
10828 (aarch64_rtx_costs): Use it, refactor as appropriate.
10830 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10831 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
10833 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
10834 emit instructions, return number of instructions which would
10836 (aarch64_add_constant): Update call to aarch64_build_constant.
10837 (aarch64_output_mi_thunk): Likewise.
10838 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
10841 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10843 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
10844 (TARGET_RTX_COSTS): Call it.
10846 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10848 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
10849 (cortexa57_vector_cost): Likewise.
10850 (cortexa57_tunings): Use them.
10852 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10854 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
10855 (cpu_addrcost_table): Use it.
10856 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
10857 (aarch64_address_cost): Rewrite using aarch64_classify_address,
10860 2014-05-16 Richard Biener <rguenther@suse.de>
10862 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
10863 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
10864 (visit_phi): Ignore edges marked as not executable.
10865 (class cond_dom_walker): New.
10866 (cond_dom_walker::before_dom_children): Value-number
10867 control statements and mark successor edges as not
10868 executable if possible.
10869 (run_scc_vn): First walk all control statements in
10870 dominator order, marking edges as not executable.
10871 * tree-inline.c (copy_edges_for_bb): Be not confused
10872 about random edge flags.
10874 2014-05-16 Richard Biener <rguenther@suse.de>
10876 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
10878 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
10881 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
10882 (__TM_simple_begin): Use it.
10883 (__TM_begin): Likewise.
10885 2014-05-15 Martin Jambor <mjambor@suse.cz>
10888 * ipa-prop.c (update_indirect_edges_after_inlining): Check
10889 type_preserved flag when the indirect edge is polymorphic.
10891 2014-05-15 Martin Jambor <mjambor@suse.cz>
10893 PR tree-optimization/61090
10894 * tree-sra.c (sra_modify_expr): Pass the current gsi to
10895 build_ref_for_model.
10897 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10899 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
10900 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
10902 2014-05-15 Jakub Jelinek <jakub@redhat.com>
10904 PR tree-optimization/61158
10905 * fold-const.c (fold_binary_loc): If X is zero-extended and
10906 shiftc >= prec, make sure zerobits is all ones instead of
10907 invoking undefined behavior.
10909 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10911 * regcprop.h: New file.
10912 * regcprop.c (skip_debug_insn_p): New decl.
10913 (replace_oldest_value_reg): Check skip_debug_insn_p.
10914 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
10915 * shrink-wrap.c: Include regcprop.h.
10916 (prepare_shrink_wrap): Call
10917 copyprop_hardreg_forward_bb_without_debug_insn.
10919 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10921 * shrink-wrap.h: Update comment.
10922 * shrink-wrap.c: Update comment.
10923 (next_block_for_reg): Rename to live_edge_for_reg.
10924 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
10925 (move_insn_for_shrink_wrap): Split live_edge.
10926 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
10928 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
10930 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
10932 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
10933 * config/sparc/sparc.md (fptype_ut699): New attribute.
10934 (in_branch_delay): Return false if -mfix-ut699 is specified and
10935 fptype_ut699 is set to single.
10936 (truncdfsf2): Add fptype_ut699 attribute.
10937 (fix_truncdfsi2): Likewise.
10938 (floatsisf2): Change fptype attribute.
10939 (fix_truncsfsi2): Likewise.
10940 (negtf2_notv9): Delete.
10941 (negtf2_v9): Likewise.
10942 (negtf2_hq): New instruction.
10943 (negtf2): New instruction and splitter.
10944 (negdf2_notv9): Rewrite.
10945 (abstf2_notv9): Delete.
10946 (abstf2_hq_v9): Likewise.
10947 (abstf2_v9): Likewise.
10948 (abstf2_hq): New instruction.
10949 (abstf2): New instruction and splitter.
10950 (absdf2_notv9): Rewrite.
10952 2014-05-14 Cary Coutant <ccoutant@google.com>
10955 * opts.c (common_handle_option): Don't special-case "-g".
10956 (set_debug_level): Default to at least level 2 with "-g".
10958 2014-05-14 DJ Delorie <dj@redhat.com>
10960 * config/msp430/msp430.c (msp430_builtin): Add
10961 MSP430_BUILTIN_DELAY_CYCLES.
10962 (msp430_init_builtins): Register void __delay_cycles(long long).
10963 (msp430_builtin_decl): Add it.
10964 (cg_magic_constant): New.
10965 (msp430_expand_delay_cycles): New.
10966 (msp430_expand_builtin): Call it.
10967 (msp430_print_operand_raw): Change integer printing from "int" to
10969 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
10970 (delay_cycles_start): New.
10971 (delay_cycles_end): New.
10972 (delay_cycles_32): New.
10973 (delay_cycles_32x): New.
10974 (delay_cycles_16): New.
10975 (delay_cycles_16x): New.
10976 (delay_cycles_2): New.
10977 (delay_cycles_1): New.
10978 * doc/extend.texi: Document __delay_cycles().
10980 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
10982 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
10983 length attribute computation.
10985 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
10988 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
10990 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
10993 * config/sparc/sparc.md: Fix types of low and high in DI constant
10994 splitter. Use gen_int_mode in some other splitters.
10996 2014-05-14 Martin Jambor <mjambor@suse.cz>
10999 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11001 2014-05-14 James Norris <jnorris@codesourcery.com>
11003 * omp-low.c (expand_parallel_call): Remove shadow variable.
11004 (expand_omp_taskreg): Likewise.
11006 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11008 * common/config/i386/i386-common.c
11009 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11010 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11011 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11012 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11013 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11014 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11015 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11016 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11017 xsavecintrin.h, xsavesintrin.h.
11018 (x86_64-*-*): Ditto.
11019 * config/i386/clflushoptintrin.h: New.
11020 * config/i386/xsavecintrin.h: Ditto.
11021 * config/i386/xsavesintrin.h: Ditto.
11022 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11023 (bit_XSAVES): Ditto.
11024 (bit_XSAVES): Ditto.
11025 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11026 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11028 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11029 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11030 OPTION_MASK_ISA_XSAVES.
11031 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11032 -mxsavec, -mxsaves.
11033 (PTA_CLFLUSHOPT) Define.
11034 (PTA_XSAVEC): Ditto.
11035 (PTA_XSAVES): Ditto.
11036 (ix86_option_override_internal): Handle new options.
11037 (ix86_valid_target_attribute_inner_p): Ditto.
11038 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11039 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11040 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11041 (bdesc_special_args): Add __builtin_ia32_xsaves,
11042 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11043 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11044 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11045 (ix86_expand_builtin): Handle new builtins.
11046 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11047 (TARGET_CLFLUSHOPT_P): Ditto.
11048 (TARGET_XSAVEC): Ditto.
11049 (TARGET_XSAVEC_P): Ditto.
11050 (TARGET_XSAVES): Ditto.
11051 (TARGET_XSAVES_P): Ditto.
11052 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11053 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11054 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11056 (ANY_XRSTOR64): Ditto.
11058 (xrstor): Change into <xrstor>.
11059 (xrstor_rex64): Change into <xrstor>_rex64.
11060 (xrstor64): Change into <xrstor>64
11062 * config/i386/i386.opt (mclflushopt): New.
11065 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11067 * doc/invoke.texi: Document new options.
11069 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11071 PR rtl-optimization/60866
11072 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11073 Default it to -1. Pass it down to init_simplejump_data.
11074 (init_simplejump_data): New parameter old_seqno. Pass it down
11075 to get_seqno_for_a_jump.
11076 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11077 initializing new jump seqno as a last resort. Add comment.
11078 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11079 jump and pass it down to sel_init_new_insn.
11080 (sel_redirect_edge_and_branch_force): Likewise.
11082 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11084 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11085 shifted values to avoid build warning.
11087 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11089 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11090 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11091 (cfg_layout_merge_blocks): Likewise.
11092 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11094 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11096 PR rtl-optimization/60901
11097 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11098 bb predecessor belongs to the same scheduling region. Adjust comment.
11100 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11102 * doc/sourcebuild.texi: (dfp_hw): Document.
11103 (p8vector_hw): Likewise.
11104 (powerpc_eabi_ok): Likewise.
11105 (powerpc_elfv2): Likewise.
11106 (powerpc_htm_ok): Likewise.
11107 (ppc_recip_hw): Likewise.
11108 (vsx_hw): Likewise.
11110 2014-05-13 Cary Coutant <ccoutant@google.com>
11112 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11114 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11116 * gengtype-parse.c (require3): Eliminate in favor of...
11118 (require_template_declaration): Update to support optional single *
11121 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11122 (create_user_defined_type): Handle a single level of explicit
11123 pointerness within template arguments.
11124 (struct write_types_data): Add field "kind".
11125 (filter_type_name): Handle "*" character.
11126 (write_user_func_for_structure_ptr): Require a write_types_data
11127 rather than just a prefix string, so that we can look up the kind
11128 of the wtd and use it as an index into wrote_user_func_for_ptr,
11129 ensuring that such functions are written at most once. Support
11130 subclasses by invoking the marking function of the ultimate base class.
11131 (write_user_func_for_structure_body): Require a write_types_data
11132 rather than just a prefix string, so that we can pass this to
11133 write_user_func_for_structure_ptr.
11134 (write_func_for_structure): Likewise.
11135 (ggc_wtd): Add initializer of new "kind" field.
11136 (pch_wtd): Likewise.
11138 * gengtype.h (enum write_types_kinds): New.
11139 (struct type): Add field wrote_user_func_for_ptr to the "s"
11142 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11144 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11145 instead of const_binop.
11146 (fold_binary_loc): Likewise.
11148 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11150 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11151 calculation to match get_ref_base_and_extent.
11153 2014-05-13 Catherine Moore <clm@codesourcery.com>
11154 Sandra Loosemore <sandra@codesourcery.com>
11156 * configure.ac: Fix assembly for explicit JALR relocation check.
11157 * configure: Regenerate.
11159 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11161 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11162 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11163 Remove associated type declarations and initialisations.
11164 (arm_expand_neon_builtin): Likewise.
11165 (neon_emit_pair_result_insn): Delete.
11166 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11167 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11168 (neon_vzip<mode>): Likewise.
11169 (neon_vuzp<mode>): Likewise.
11171 2014-05-13 Richard Biener <rguenther@suse.de>
11174 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11175 it needs revisiting whether the call still may be tail-called.
11177 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11179 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11180 * rtl.h (block_symbol): Reduce number of fields to 2.
11181 (rtx_def): Add u2.symbol_ref_flags.
11182 (SYMBOL_REF_FLAGS): Use it.
11183 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11184 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11185 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11186 Lower index of SYMBOL_REF_DATA.
11187 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11188 Print SYMBOL_REF_FLAGS at the same time.
11189 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11191 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11193 * rtl.def (VAR_LOCATION): Remove "i" field.
11194 * rtl.h (rtx_def): Add u2.var_location_status.
11195 (PAT_VAR_LOCATION_STATUS): Use it.
11196 (gen_rtx_VAR_LOCATION): Declare.
11197 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11198 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11199 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11201 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11203 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11204 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11206 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11208 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11209 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11210 * rtl.h (rtx_def): Add insn_uid to u2 field.
11211 (RTX_FLAG_CHECK8): Delete in favor of...
11212 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11213 (INSN_DELETED_P): Update accordingly.
11214 (INSN_UID): Use u2.insn_uid.
11215 (INSN_CHAIN_CODE_P): Define.
11216 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11217 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11218 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11219 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11220 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11221 indices accordingly.
11222 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11223 Update indices for insn-chain rtxes.
11224 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11225 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11226 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11227 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11228 * combine.c (try_combine): Likewise.
11229 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11231 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11233 * rtl.def (REG): Remove middle field.
11234 * rtl.h (rtx_def): Add orignal_regno to u2.
11235 (ORIGINAL_REGNO): Use it instead of field 1.
11236 (REG_ATTRS): Lower field index accordingly.
11237 * gengtype.c (adjust_field_rtx_def): Remove handling of
11238 ORIGINAL_REGNO. Move REG_ATTRS index down.
11239 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11240 code that prints the REGNO.
11242 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11244 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11247 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11249 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11251 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11253 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11254 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11256 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11258 * config/aarch64/aarch64-protos.h
11259 (aarch64_hard_regno_caller_save_mode): New prototype.
11260 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11262 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11264 2014-05-13 Christian Bruel <christian.bruel@st.com>
11266 * target.def (mode_switching): New hook vector.
11267 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11268 (mode_exit, modepriority_to_mode): Likewise.
11269 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11270 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11271 * target.h: Include tm.h and hard-reg-set.h.
11272 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11273 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11274 * doc/tm.texi Regenerate.
11275 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11276 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11277 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11278 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11279 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11280 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11281 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11282 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11283 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11284 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11285 (ix86_emit_mode_set): Hookify.
11286 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11288 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11289 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11290 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11291 (epiphany_mode_priority_to_mode): Remove declaration.
11292 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11293 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11294 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11296 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11297 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11298 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11300 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11303 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11304 is const0_rtx, return immediately. Don't test count == 0 when
11307 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11309 * Makefile.in: add shrink-wrap.o.
11310 * config/i386/i386.c: include "shrink-wrap.h"
11311 * function.c: Likewise.
11312 (requires_stack_frame_p, next_block_for_reg,
11313 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11314 dup_block_and_redirect): Move to shrink-wrap.c
11315 (thread_prologue_and_epilogue_insns): Extract three code segments
11316 as functions in shrink-wrap.c
11317 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11319 * shrink-wrap.c: New file.
11320 * shrink-wrap.h: New file.
11322 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11324 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11325 reference to Solaris.
11327 2014-05-12 Mike Stump <mikestump@comcast.net>
11330 * genattrtab.c (filename): Add.
11331 (convert_set_attr_alternative): Improve error message.
11332 (check_defs): Restore read_md_filename for error messages.
11333 (gen_insn): Save filename.
11335 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11337 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11338 -fno-local-ivars and -fivar-visibility.
11339 * c-family/c.opt: Make -Wshadow also implicitly enable
11342 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11344 * doc/tm.texi: Remove reference to deleted macro.
11345 * doc/tm.texi.in: Likewise.
11347 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11350 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11353 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11356 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11357 * config/arm/aout.h (License): Same.
11358 * config/arm/bpabi.h (License): Same.
11359 * config/arm/elf.h (License): Same.
11360 * config/arm/linux-elf.h (License): Same.
11361 * config/arm/linux-gas.h (License): Same.
11362 * config/arm/netbsd-elf.h (License): Same.
11363 * config/arm/uclinux-eabi.h (License): Same.
11364 * config/arm/uclinux-elf.h (License): Same.
11365 * config/arm/vxworks.h (License): Same.
11367 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11369 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11370 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11371 number of operands to 3.
11372 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11373 * tree-nested.c (convert_nonlocal_omp_clauses,
11374 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11375 * gimplify.c (gimplify_scan_omp_clauses): Handle
11376 OMP_CLAUSE_LINEAR_STMT.
11377 * omp-low.c (lower_rec_input_clauses): Fix typo.
11378 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11379 cast between Fortran boolean_type_node and C _Bool if
11382 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11384 PR tree-optimization/61136
11385 * wide-int.h (multiple_of_p): Define a version that doesn't return
11387 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11388 integer_zerop/const_binop pair.
11389 (multiple_of_p): Likewise, converting both operands to widest_int
11392 2014-05-09 Teresa Johnson <tejohnson@google.com>
11394 * cgraphunit.c (analyze_functions): Use correct dump file.
11396 2014-05-09 Florian Weimer <fweimer@redhat.com>
11398 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11400 (stack_protect_return_slot_p): New function.
11401 (expand_used_vars): Call stack_protect_decl_p and
11402 stack_protect_return_slot_p for -fstack-protector-strong.
11404 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11405 Andrew Haley <aph@redhat.com>
11406 Richard Sandiford <rdsandiford@googlemail.com>
11408 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11411 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11413 PR middle-end/61111
11414 * fold-const.c (fold_binary_loc): Changed width of mask.
11416 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11418 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11419 unsigned int initializers for regno_in, regno_out.
11421 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11424 * config/avr/avr.md (cc): Add new attribute set_vzn.
11425 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11426 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11427 with INC, DEC or NEG.
11428 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11429 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11430 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11432 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11435 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11437 * wide-int.cc (UTItype): Define.
11438 (UDWtype): Define for appropriate W_TYPE_SIZE.
11440 2014-05-09 Richard Biener <rguenther@suse.de>
11442 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11443 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11444 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11445 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11446 ssa_propagate): Adjust.
11448 2014-05-08 Jeff Law <law@redhat.com>
11450 PR tree-optimization/61009
11451 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11452 tri-state rather than a boolean. When a block is too big to
11453 thread through, inform caller via negative return value.
11454 (thread_across_edge): If a block was too big for normal threading,
11455 then it's too big for a joiner too, so remove temporary equivalences
11456 and return immediately.
11458 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11459 Matthias Klose <doko@ubuntu.com>
11462 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11464 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11467 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11469 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11472 * config/alpha/alpha.c: Include gimple-iterator.h.
11473 (alpha_gimple_fold_builtin): New function. Move
11474 ALPHA_BUILTIN_UMULH folding from ...
11475 (alpha_fold_builtin): ... here.
11476 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11478 2014-05-08 Wei Mi <wmi@google.com>
11481 * config/i386/i386.c (ix86_compute_frame_layout): Update
11482 preferred_stack_boundary for call, expanded from tls descriptor.
11483 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11484 to depend on SP register.
11485 (*tls_local_dynamic_base_32_gnu): Ditto.
11486 (*tls_local_dynamic_32_once): Ditto.
11487 (tls_global_dynamic_64_<mode>): Set
11488 ix86_tls_descriptor_calls_expanded_in_cfun.
11489 (tls_local_dynamic_base_64_<mode>): Ditto.
11490 (tls_global_dynamic_32): Set
11491 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11492 to depend on SP register.
11493 (tls_local_dynamic_base_32): Ditto.
11495 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11497 * config/arm/arm_neon.h: Update comment.
11498 * config/arm/neon-docgen.ml: Delete.
11499 * config/arm/neon-gen.ml: Delete.
11500 * doc/arm-neon-intrinsics.texi: Update comment.
11502 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11504 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11506 (vand, vorr, veor, vorn, vbic): Remove.
11507 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11509 (neon_vsub_unspec): Likewise.
11510 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11512 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11514 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11515 (vadd_s16): Likewise.
11516 (vadd_s32): Likewise.
11517 (vadd_f32): Likewise.
11518 (vadd_u8): Likewise.
11519 (vadd_u16): Likewise.
11520 (vadd_u32): Likewise.
11521 (vadd_s64): Likewise.
11522 (vadd_u64): Likewise.
11523 (vaddq_s8): Likewise.
11524 (vaddq_s16): Likewise.
11525 (vaddq_s32): Likewise.
11526 (vaddq_s64): Likewise.
11527 (vaddq_f32): Likewise.
11528 (vaddq_u8): Likewise.
11529 (vaddq_u16): Likewise.
11530 (vaddq_u32): Likewise.
11531 (vaddq_u64): Likewise.
11532 (vmul_s8): Likewise.
11533 (vmul_s16): Likewise.
11534 (vmul_s32): Likewise.
11535 (vmul_f32): Likewise.
11536 (vmul_u8): Likewise.
11537 (vmul_u16): Likewise.
11538 (vmul_u32): Likewise.
11539 (vmul_p8): Likewise.
11540 (vmulq_s8): Likewise.
11541 (vmulq_s16): Likewise.
11542 (vmulq_s32): Likewise.
11543 (vmulq_f32): Likewise.
11544 (vmulq_u8): Likewise.
11545 (vmulq_u16): Likewise.
11546 (vmulq_u32): Likewise.
11547 (vsub_s8): Likewise.
11548 (vsub_s16): Likewise.
11549 (vsub_s32): Likewise.
11550 (vsub_f32): Likewise.
11551 (vsub_u8): Likewise.
11552 (vsub_u16): Likewise.
11553 (vsub_u32): Likewise.
11554 (vsub_s64): Likewise.
11555 (vsub_u64): Likewise.
11556 (vsubq_s8): Likewise.
11557 (vsubq_s16): Likewise.
11558 (vsubq_s32): Likewise.
11559 (vsubq_s64): Likewise.
11560 (vsubq_f32): Likewise.
11561 (vsubq_u8): Likewise.
11562 (vsubq_u16): Likewise.
11563 (vsubq_u32): Likewise.
11564 (vsubq_u64): Likewise.
11565 (vand_s8): Likewise.
11566 (vand_s16): Likewise.
11567 (vand_s32): Likewise.
11568 (vand_u8): Likewise.
11569 (vand_u16): Likewise.
11570 (vand_u32): Likewise.
11571 (vand_s64): Likewise.
11572 (vand_u64): Likewise.
11573 (vandq_s8): Likewise.
11574 (vandq_s16): Likewise.
11575 (vandq_s32): Likewise.
11576 (vandq_s64): Likewise.
11577 (vandq_u8): Likewise.
11578 (vandq_u16): Likewise.
11579 (vandq_u32): Likewise.
11580 (vandq_u64): Likewise.
11581 (vorr_s8): Likewise.
11582 (vorr_s16): Likewise.
11583 (vorr_s32): Likewise.
11584 (vorr_u8): Likewise.
11585 (vorr_u16): Likewise.
11586 (vorr_u32): Likewise.
11587 (vorr_s64): Likewise.
11588 (vorr_u64): Likewise.
11589 (vorrq_s8): Likewise.
11590 (vorrq_s16): Likewise.
11591 (vorrq_s32): Likewise.
11592 (vorrq_s64): Likewise.
11593 (vorrq_u8): Likewise.
11594 (vorrq_u16): Likewise.
11595 (vorrq_u32): Likewise.
11596 (vorrq_u64): Likewise.
11597 (veor_s8): Likewise.
11598 (veor_s16): Likewise.
11599 (veor_s32): Likewise.
11600 (veor_u8): Likewise.
11601 (veor_u16): Likewise.
11602 (veor_u32): Likewise.
11603 (veor_s64): Likewise.
11604 (veor_u64): Likewise.
11605 (veorq_s8): Likewise.
11606 (veorq_s16): Likewise.
11607 (veorq_s32): Likewise.
11608 (veorq_s64): Likewise.
11609 (veorq_u8): Likewise.
11610 (veorq_u16): Likewise.
11611 (veorq_u32): Likewise.
11612 (veorq_u64): Likewise.
11613 (vbic_s8): Likewise.
11614 (vbic_s16): Likewise.
11615 (vbic_s32): Likewise.
11616 (vbic_u8): Likewise.
11617 (vbic_u16): Likewise.
11618 (vbic_u32): Likewise.
11619 (vbic_s64): Likewise.
11620 (vbic_u64): Likewise.
11621 (vbicq_s8): Likewise.
11622 (vbicq_s16): Likewise.
11623 (vbicq_s32): Likewise.
11624 (vbicq_s64): Likewise.
11625 (vbicq_u8): Likewise.
11626 (vbicq_u16): Likewise.
11627 (vbicq_u32): Likewise.
11628 (vbicq_u64): Likewise.
11629 (vorn_s8): Likewise.
11630 (vorn_s16): Likewise.
11631 (vorn_s32): Likewise.
11632 (vorn_u8): Likewise.
11633 (vorn_u16): Likewise.
11634 (vorn_u32): Likewise.
11635 (vorn_s64): Likewise.
11636 (vorn_u64): Likewise.
11637 (vornq_s8): Likewise.
11638 (vornq_s16): Likewise.
11639 (vornq_s32): Likewise.
11640 (vornq_s64): Likewise.
11641 (vornq_u8): Likewise.
11642 (vornq_u16): Likewise.
11643 (vornq_u32): Likewise.
11644 (vornq_u64): Likewise.
11646 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11648 * wide-int.cc (UTItype): Define.
11649 (UDWtype): Define for appropriate W_TYPE_SIZE.
11651 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
11653 PR tree-optimization/59100
11654 * tree-ssa-phiopt.c: Include tree-inline.h.
11655 (neutral_element_p, absorbing_element_p): New functions.
11656 (value_replacement): Handle conditional binary operations with a
11657 neutral or absorbing element.
11659 2014-05-08 Richard Biener <rguenther@suse.de>
11661 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
11662 folding the expression.
11663 (valueize_expr): Remove.
11664 (visit_reference_op_load): Do not valueize the result of
11666 (simplify_binary_expression): Likewise.
11667 (simplify_unary_expression): Likewise.
11669 2014-05-08 Richard Biener <rguenther@suse.de>
11671 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
11672 looking at TYPE_ARG_TYPES.
11674 2014-05-08 Richard Biener <rguenther@suse.de>
11676 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11677 pointer propagation special-case.
11679 2014-05-08 Bin Cheng <bin.cheng@arm.com>
11681 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
11682 core part of address expressions.
11684 2014-05-08 Alan Modra <amodra@gmail.com>
11687 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
11688 loads and stores when -mno-strict-align at any alignment.
11689 (expand_block_clear): Similarly. Also correct calculation of
11692 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
11694 PR middle-end/39246
11695 * tree-complex.c (expand_complex_move): Keep line info when expanding
11697 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
11698 of complex expression. Use new argument to display correct location
11699 for values coming from phi statement.
11700 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
11701 (warn_uninitialized_phi): Pass location of phi argument to
11703 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
11704 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
11706 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11708 * config/rs6000/predicates.md (indexed_address_mem): New.
11709 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
11710 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
11711 fpstore_ux, fpstore_u.
11712 (sign_extend, indexed, update): New.
11713 (cell_micro): Adjust.
11714 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
11715 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
11716 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
11717 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
11718 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
11719 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
11720 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
11721 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
11722 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
11723 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
11724 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
11725 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
11726 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
11727 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
11728 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
11730 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
11731 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
11732 *vsx_extract_<mode>_store): Adjust.
11733 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
11734 is_cracked_insn, insn_must_be_first_in_group,
11735 insn_must_be_last_in_group): Adjust.
11737 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
11739 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
11740 ppc440-fpstore): Adjust.
11741 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
11742 ppc476-fpstore): Adjust.
11743 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
11744 ppc601-fpstore): Adjust.
11745 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
11747 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
11749 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
11750 ppc7450-fpstore): Adjust.
11751 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
11752 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
11753 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
11755 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
11756 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
11757 cell-fpstore, cell-fpstore-update): Adjust.
11758 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
11759 ppce300c3_store, ppce300c3_fpstore): Adjust.
11760 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
11761 e500mc_fpstore): Adjust.
11762 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
11763 e500mc64_store, e500mc64_fpstore): Adjust.
11764 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
11765 e5500_fpstore): Adjust.
11766 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
11767 e6500_fpstore): Adjust.
11768 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
11770 * config/rs6000/power4.md (power4-load, power4-load-ext,
11771 power4-load-ext-update, power4-load-ext-update-indexed,
11772 power4-load-update-indexed, power4-load-update, power4-fpload,
11773 power4-fpload-update, power4-store, power4-store-update,
11774 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
11776 * config/rs6000/power5.md (power5-load, power5-load-ext,
11777 power5-load-ext-update, power5-load-ext-update-indexed,
11778 power5-load-update-indexed, power5-load-update, power5-fpload,
11779 power5-fpload-update, power5-store, power5-store-update,
11780 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
11782 * config/rs6000/power6.md (power6-load, power6-load-ext,
11783 power6-load-update, power6-load-update-indexed,
11784 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
11785 power6-fpload-update, power6-store, power6-store-update,
11786 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
11788 * config/rs6000/power7.md (power7-load, power7-load-ext,
11789 power7-load-update, power7-load-update-indexed,
11790 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
11791 power7-fpload-update, power7-store, power7-store-update,
11792 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
11794 * config/rs6000/power8.md (power8-load, power8-load-update,
11795 power8-load-ext, power8-load-ext-update, power8-fpload,
11796 power8-fpload-update, power8-store, power8-store-update-indexed,
11797 power8-fpstore, power8-fpstore-update): Adjust.
11798 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
11800 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
11801 titan_lsu_store, titan_lsu_fpstore): Adjust.
11802 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
11804 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
11807 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
11808 unrolled byte insns. Emit address increments after move insns.
11810 2014-05-07 David Malcolm <dmalcolm@redhat.com>
11812 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
11813 const_gimple, rather than a gimple.
11814 (gimple_call_builtin_p): Likewise, for the three variants.
11816 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
11817 (gimple_call_builtin_p): Likewise, for the three variants.
11819 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
11821 PR tree-optimization/61095
11822 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
11824 2014-05-07 Richard Biener <rguenther@suse.de>
11826 PR tree-optimization/61034
11827 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
11828 (maybe_skip_until): Use translate to take into account
11829 lattices when trying to do disambiguations.
11830 (get_continuation_for_phi_1): Likewise.
11831 (get_continuation_for_phi): Adjust for added translate arguments.
11832 (walk_non_aliased_vuses): Likewise.
11833 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
11834 (walk_non_aliased_vuses): Likewise.
11835 (call_may_clobber_ref_p_1): Declare.
11836 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
11837 calls. Stop early if we are only supposed to disambiguate.
11838 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
11840 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
11842 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
11843 Emit an error when the function has arguments.
11845 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
11847 * cfgloop.h (unswitch_loops): Remove.
11848 * doc/passes.texi: Remove references to loop-unswitch.c
11849 * timevar.def (TV_LOOP_UNSWITCH): Remove.
11851 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
11853 * tree-vect-data-refs.c (vect_grouped_load_supported): New
11854 check for loads group of length 3.
11855 (vect_permute_load_chain): New permutations for loads group of
11857 * tree-vect-stmts.c (vect_model_load_cost): Change cost
11858 of vec_perm_shuffle for the new permutations.
11860 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
11862 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
11863 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
11864 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
11865 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
11866 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
11867 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
11868 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
11869 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
11871 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
11873 * loop-unswitch.c: Delete.
11875 2014-05-07 Richard Biener <rguenther@suse.de>
11877 * config.gcc: Always set need_64bit_hwint to yes.
11879 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
11881 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
11882 of using optimize_size.
11884 2014-05-06 Mike Stump <mikestump@comcast.net>
11886 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
11888 2014-05-06 Joseph Myers <joseph@codesourcery.com>
11890 * config/i386/sse.md (*mov<mode>_internal)
11891 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
11892 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
11893 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
11894 (*<code><mode>3, *andnot<mode>3<mask_name>)
11895 (<mask_codefor><code><mode>3<mask_name>): Only consider
11896 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
11898 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
11901 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
11903 * lra-constraints.c (valid_address_p): Move earlier in file.
11904 Add a constraint argument to the address_info version.
11905 (satisfies_memory_constraint_p): New function.
11906 (satisfies_address_constraint_p): Likewise.
11907 (process_alt_operands, curr_insn_transform): Use them.
11908 (process_address): Pass the constraint to valid_address_p when
11909 checking address operands.
11911 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
11913 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
11914 to their respective blocks. Fix inadvertent use of "node".
11916 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
11918 * emit-rtl.c (init_derived_machine_modes): New functionm, split
11920 (init_emit_once): ...here.
11921 * rtl.h (init_derived_machine_modes): Declare.
11922 * toplev.c (do_compile): Call it even if no_backend.
11924 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
11925 Mike Stump <mikestump@comcast.net>
11926 Richard Sandiford <rdsandiford@googlemail.com>
11927 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11929 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
11930 (rtx_equal_for_memref_p): Update comment.
11931 (adjust_offset_for_component_ref): Use wide-int interfaces.
11932 * builtins.c (get_object_alignment_2): Likewise.
11933 (c_readstr): Likewise.
11934 (target_char_cast): Add comment.
11935 (determine_block_size): Use wide-int interfaces.
11936 (expand_builtin_signbit): Likewise.
11937 (fold_builtin_int_roundingfn): Likewise.
11938 (fold_builtin_bitop): Likewise.
11939 (fold_builtin_bswap): Likewise.
11940 (fold_builtin_logarithm): Use signop.
11941 (fold_builtin_pow): Likewise.
11942 (fold_builtin_memory_op): Use wide-int interfaces.
11943 (fold_builtin_object_size): Likewise.
11944 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
11945 nb_iterations_estimate.
11946 (record_niter_bound): Use wide-int interfaces.
11947 (get_estimated_loop_iterations_int): Likewise.
11948 (get_estimated_loop_iterations): Likewise.
11949 (get_max_loop_iterations): Likewise.
11950 * cfgloop.h: Include wide-int.h.
11951 (struct nb_iter_bound): Change bound to widest_int.
11952 (struct loop): Change nb_iterations_upper_bound and
11953 nb_iterations_estimate to widest_int.
11954 (record_niter_bound): Switch to use widest_int.
11955 (get_estimated_loop_iterations): Likewise.
11956 (get_max_loop_iterations): Likewise.
11957 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
11958 update for wide-int.
11959 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
11960 * combine.c (try_combine): Likewise.
11961 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
11962 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
11964 (aarch64_float_const_representable_p): Likewise.
11965 * config/arc/arc.c: Include wide-int.h.
11966 (arc_can_use_doloop_p): Use wide-int interfaces.
11967 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
11968 (vfp3_const_double_index): Likewise.
11969 * config/avr/avr.c (avr_out_round): Likewise.
11970 (avr_fold_builtin): Likewise.
11971 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
11972 (bfin_can_use_doloop_p): Likewise.
11973 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
11974 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
11975 * config/i386/i386.c: Include wide-int.h.
11976 (ix86_data_alignment): Use wide-int interfaces.
11977 (ix86_local_alignment): Likewise.
11978 (ix86_emit_swsqrtsf): Update real_from_integer.
11979 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
11980 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
11981 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
11982 (zero_constant): Likewise.
11983 (input_operand): Likewise.
11984 (splat_input_operand): Likewise.
11985 (non_logical_cint_operand): Change const_double to const_wide_int.
11986 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
11987 (easy_altivec_constant): Remove comment.
11988 (paired_expand_vector_init): Use CONSTANT_P.
11989 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
11990 (rs6000_emit_move): Update checks.
11991 (rs6000_aggregate_candidate): Use wide-int interfaces.
11992 (rs6000_expand_ternop_builtin): Likewise.
11993 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
11994 (rs6000_assemble_integer): Likewise.
11995 (rs6000_hash_constant): Likewise.
11996 (output_toc): Likewise.
11997 (rs6000_rtx_costs): Likewise.
11998 (rs6000_emit_swrsqrt); Update call to real_from_integer.
11999 * config/rs6000/rs6000-c.c: Include wide-int.h.
12000 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12001 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12002 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12003 Handle CONST_WIDE_INT.
12004 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12005 Use tree_fits_uhwi_p.
12006 * config/sparc/sparc.c: Include wide-int.h.
12007 (sparc_fold_builtin): Use wide-int interfaces.
12008 * config/vax/vax.c: Include wide-int.h.
12009 (vax_float_literal): Use real_from_integer.
12010 * coretypes.h (struct hwivec_def): New.
12012 (const_hwivec): New.
12013 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12014 (equiv_constant): Handle CONST_WIDE_INT.
12015 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12016 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12017 * dbxout.c (stabstr_U): Use wide-int interfaces.
12018 (dbxout_type): Update to use cst_fits_shwi_p.
12019 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12020 (TARGET_SUPPORTS_WIDE_INT): Add default.
12021 * dfp.c: Include wide-int.h.
12022 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12023 decimal_real_to_integer.
12024 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12025 decimal_real_to_integer.
12026 * doc/generic.texi (Constant expressions): Update for wide_int.
12027 * doc/rtl.texi (const_double): Likewise.
12028 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12029 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12030 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12031 (REAL_VALUE_FROM_INT): Remove.
12032 (TARGET_SUPPORTS_WIDE_INT): New.
12033 * doc/tm.texi: Regenerate.
12034 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12035 * double-int.h: Include wide-int.h.
12036 (struct wi::int_traits): New.
12037 * dwarf2out.c (get_full_len): New.
12038 (dw_val_equal_p): Add case dw_val_class_wide_int.
12039 (size_of_loc_descr): Likewise.
12040 (output_loc_operands): Likewise.
12041 (insert_double): Remove.
12042 (insert_wide_int): New.
12043 (add_AT_wide): New.
12044 (print_die): Add case dw_val_class_wide_int.
12045 (attr_checksum): Likewise.
12046 (attr_checksum_ordered): Likewise.
12047 (same_dw_val_p): Likewise.
12048 (size_of_die): Likewise.
12049 (value_format): Likewise.
12050 (output_die): Likewise.
12051 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12053 (clz_loc_descriptor): Use wide-int interfaces.
12054 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12055 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12056 (round_up_to_align): Use wide-int interfaces.
12057 (field_byte_offset): Likewise.
12058 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12059 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12060 CONST_DOUBLE handling. Use wide-int interfaces.
12061 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12062 (gen_enumeration_type_die): Use add_AT_wide.
12063 (hash_loc_operands): Add case dw_val_class_wide_int.
12064 (compare_loc_operands): Likewise.
12065 * dwarf2out.h: Include wide-int.h.
12066 (wide_int_ptr): New.
12067 (enum dw_val_class): Add dw_val_class_wide_int.
12068 (struct dw_val_struct): Add val_wide.
12069 * emit-rtl.c (const_wide_int_htab): New.
12070 (const_wide_int_htab_hash): New.
12071 (const_wide_int_htab_eq): New.
12072 (lookup_const_wide_int): New.
12073 (const_double_htab_hash): Use wide-int interfaces.
12074 (const_double_htab_eq): Likewise.
12075 (rtx_to_double_int): Conditionally compile for wide-int.
12076 (immed_double_int_const): Rename to immed_wide_int_const and
12077 update for wide-int.
12078 (immed_double_const): Conditionally compile for wide-int.
12079 (init_emit_once): Use wide-int interfaces.
12080 * explow.c (plus_constant): Likewise.
12081 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12082 (lshift_value): Use wide-int interfaces.
12083 (expand_mult): Likewise.
12084 (choose_multiplier): Likewise.
12085 (expand_smod_pow2): Likewise.
12086 (make_tree): Likewise.
12087 * expr.c (convert_modes): Consolidate handling of constants.
12088 Use wide-int interfaces.
12089 (emit_group_load_1): Add note.
12090 (store_expr): Update comment.
12091 (get_inner_reference): Use wide-int interfaces.
12092 (expand_constructor): Update comment.
12093 (expand_expr_real_2): Use wide-int interfaces.
12094 (expand_expr_real_1): Likewise.
12095 (reduce_to_bit_field_precision): Likewise.
12096 (const_vector_from_tree): Likewise.
12097 * final.c: Include wide-int-print.h.
12098 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12099 * fixed-value.c: Include wide-int.h.
12100 (fixed_from_string): Use wide-int interfaces.
12101 (fixed_to_decimal): Likewise.
12102 (fixed_convert_from_real): Likewise.
12103 (real_convert_from_fixed): Likewise.
12104 * fold-const.h (mem_ref_offset): Return an offset_int.
12105 (div_if_zero_remainder): Remove code parameter.
12106 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12107 Use wide-int interfaces.
12108 (may_negate_without_overflow_p): Use wide-int interfaces.
12109 (negate_expr_p): Likewise.
12110 (fold_negate_expr): Likewise.
12111 (int_const_binop_1): Likewise.
12112 (const_binop): Likewise.
12113 (fold_convert_const_int_from_int): Likewise.
12114 (fold_convert_const_int_from_real): Likewise.
12115 (fold_convert_const_int_from_fixed): Likewise.
12116 (fold_convert_const_fixed_from_int): Likewise.
12117 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12118 (sign_bit_p): Use wide-int interfaces.
12119 (make_range_step): Likewise.
12120 (build_range_check): Likewise. Pass an integer of the correct type
12121 instead of using integer_one_node.
12122 (range_predecessor): Pass an integer of the correct type instead
12123 of using integer_one_node.
12124 (range_successor): Likewise.
12125 (merge_ranges): Likewise.
12126 (unextend): Use wide-int interfaces.
12127 (extract_muldiv_1): Likewise.
12128 (fold_div_compare): Likewise.
12129 (fold_single_bit_test): Likewise.
12130 (fold_sign_changed_comparison): Likewise.
12131 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12132 (fold_plusminus_mult_expr): Use wide-int interfaces.
12133 (native_encode_int): Likewise.
12134 (native_interpret_int): Likewise.
12135 (fold_unary_loc): Likewise.
12136 (pointer_may_wrap_p): Likewise.
12137 (size_low_cst): Likewise.
12138 (mask_with_tz): Likewise.
12139 (fold_binary_loc): Likewise.
12140 (fold_ternary_loc): Likewise.
12141 (multiple_of_p): Likewise.
12142 (tree_call_nonnegative_warnv_p): Update calls to
12143 tree_int_cst_min_precision and real_from_integer.
12144 (fold_negate_const): Use wide-int interfaces.
12145 (fold_abs_const): Likewise.
12146 (fold_relational_const): Use tree_int_cst_lt.
12147 (round_up_loc): Use wide-int interfaces.
12148 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12149 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12150 * gengtype.c: Remove include of double-int.h.
12151 (do_typedef): Use wide-int interfaces.
12152 (open_base_files): Add wide-int.h.
12153 (main): Add offset_int and widest_int typedefs.
12154 * gengtype-lex.l: Handle "^".
12155 (CXX_KEYWORD): Add "static".
12156 * gengtype-parse.c (require3): New.
12157 (require_template_declaration): Handle constant template arguments
12158 and nested templates.
12159 * gengtype-state.c: Don't include "double-int.h".
12160 * genpreds.c (write_one_predicate_function): Update comment.
12161 (write_tm_constrs_h): Add check for hval and lval use in
12163 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12164 (add_to_sequence): Likewise.
12165 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12166 and const_double_operand.
12167 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12169 * gimple-fold.c (get_base_constructor): Likewise.
12170 (fold_array_ctor_reference): Likewise.
12171 (fold_nonarray_ctor_reference): Likewise.
12172 (fold_const_aggregate_ref_1): Likewise.
12173 (gimple_val_nonnegative_real_p): Likewise.
12174 (gimple_fold_indirect_ref): Likewise.
12175 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12176 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12177 (struct slsr_cand_d): Change index to be widest_int.
12178 (struct incr_info_d): Change incr to be widest_int.
12179 (alloc_cand_and_find_basis): Use wide-int interfaces.
12180 (slsr_process_phi): Likewise.
12181 (backtrace_base_for_ref): Likewise. Return a widest_int.
12182 (restructure_reference): Take a widest_int instead of a double_int.
12183 (slsr_process_ref): Use wide-int interfaces.
12184 (create_mul_ssa_cand): Likewise.
12185 (create_mul_imm_cand): Likewise.
12186 (create_add_ssa_cand): Likewise.
12187 (create_add_imm_cand): Take a widest_int instead of a double_int.
12188 (slsr_process_add): Use wide-int interfaces.
12189 (slsr_process_cast): Likewise.
12190 (slsr_process_copy): Likewise.
12191 (dump_candidate): Likewise.
12192 (dump_incr_vec): Likewise.
12193 (replace_ref): Likewise.
12194 (cand_increment): Likewise. Return a widest_int.
12195 (cand_abs_increment): Likewise.
12196 (replace_mult_candidate): Take a widest_int instead of a double_int.
12197 (replace_unconditional_candidate): Use wide-int interfaces.
12198 (incr_vec_index): Take a widest_int instead of a double_int.
12199 (create_add_on_incoming_edge): Likewise.
12200 (create_phi_basis): Use wide-int interfaces.
12201 (replace_conditional_candidate): Likewise.
12202 (record_increment): Take a widest_int instead of a double_int.
12203 (record_phi_increments): Use wide-int interfaces.
12204 (phi_incr_cost): Take a widest_int instead of a double_int.
12205 (lowest_cost_path): Likewise.
12206 (total_savings): Likewise.
12207 (analyze_increments): Use wide-int interfaces.
12208 (ncd_with_phi): Take a widest_int instead of a double_int.
12209 (ncd_of_cand_and_phis): Likewise.
12210 (nearest_common_dominator_for_cands): Likewise.
12211 (insert_initializers): Use wide-int interfaces.
12212 (all_phi_incrs_profitable): Likewise.
12213 (replace_one_candidate): Likewise.
12214 (replace_profitable_candidates): Likewise.
12215 * godump.c: Include wide-int-print.h.
12216 (go_output_typedef): Use wide-int interfaces.
12217 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12218 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12219 (build_loop_iteration_domains): Likewise.
12220 * hooks.h: Include wide-int.h rather than double-int.h.
12221 (hook_bool_dint_dint_uint_bool_true): Delete.
12222 (hook_bool_wint_wint_uint_bool_true): Declare.
12223 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12224 (hook_bool_wint_wint_uint_bool_true): New.
12225 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12227 (ubsan_expand_si_overflow_mul_check): Likewise.
12228 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12229 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12230 (get_ancestor_addr_info): Likewise.
12231 (ipa_modify_call_arguments): Likewise.
12232 * loop-doloop.c (doloop_modify): Likewise.
12233 (doloop_optimize): Likewise.
12234 * loop-iv.c (iv_number_of_iterations): Likewise.
12235 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12236 (unroll_loop_constant_iterations): Likewise.
12237 (decide_unroll_runtime_iterations): Likewise.
12238 (unroll_loop_runtime_iterations): Likewise.
12239 (decide_peel_simple): Likewise.
12240 (decide_unroll_stupid): Likewise.
12241 * lto-streamer-in.c (streamer_read_wi): Add.
12242 (input_cfg): Use wide-int interfaces.
12243 (lto_input_tree_1): Likewise.
12244 * lto-streamer-out.c (streamer_write_wi): Add.
12245 (hash_tree): Use wide-int interfaces.
12246 (output_cfg): Likewise.
12247 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12248 (GTFILES): Add wide-int.h and signop.h.
12249 (TAGS): Look for .cc files too.
12250 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12251 * optabs.c (expand_subword_shift): Likewise.
12252 (expand_doubleword_shift): Likewise.
12253 (expand_absneg_bit): Likewise.
12254 (expand_copysign_absneg): Likewise.
12255 (expand_copysign_bit): Likewise.
12256 * postreload.c (reload_cse_simplify_set): Likewise.
12257 * predict.c (predict_iv_comparison): Likewise.
12258 * pretty-print.h: Include wide-int-print.h.
12260 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12261 * print-tree.c: Include wide-int-print.h.
12262 (print_node_brief): Use wide-int interfaces.
12263 (print_node): Likewise.
12264 * read-rtl.c (validate_const_wide_int): New.
12265 (read_rtx_code): Add CONST_WIDE_INT case.
12266 * real.c: Include wide-int.h.
12267 (real_to_integer2): Delete.
12268 (real_to_integer): New function, returning a wide_int.
12269 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12270 (ten_to_ptwo): Update call to real_from_integer.
12271 (real_digit): Likewise.
12272 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12273 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12274 (REAL_VALUE_TO_INT): Delete.
12275 (real_to_integer): Declare a wide-int form.
12276 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12277 * recog.c (const_int_operand): Improve comment.
12278 (const_scalar_int_operand): New.
12279 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12280 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12281 (split_double): Likewise.
12282 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12283 (rtx_size): Likewise.
12284 (rtx_alloc_stat_v): New.
12285 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12286 (cwi_output_hex): New.
12287 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12288 (cwi_check_failed_bounds): New.
12289 * rtl.def (CONST_WIDE_INT): New.
12290 * rtl.h: Include <utility> and wide-int.h.
12291 (struct hwivec_def): New.
12292 (CWI_GET_NUM_ELEM): New.
12293 (CWI_PUT_NUM_ELEM): New.
12294 (struct rtx_def): Add num_elem and hwiv.
12295 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12296 (CASE_CONST_UNIQUE): Likewise.
12297 (CASE_CONST_ANY): Likewise.
12298 (CONST_SCALAR_INT_P): Likewise.
12299 (CONST_WIDE_INT_P): New.
12301 (HWIVEC_CHECK): New.
12302 (cwi_check_failed_bounds): New.
12304 (HWIVEC_CHECK): New.
12305 (CONST_WIDE_INT_VEC) New.
12306 (CONST_WIDE_INT_NUNITS) New.
12307 (CONST_WIDE_INT_ELT) New.
12308 (rtx_mode_t): New type.
12309 (wi::int_traits <rtx_mode_t>): New.
12311 (wi::min_value): New.
12312 (wi::max_value): New.
12314 (const_wide_int_alloc): New.
12315 (immed_wide_int_const): New.
12316 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12317 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12318 * signop.h: New file.
12319 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12320 (simplify_const_unary_operation): Use wide-int interfaces.
12321 (simplify_binary_operation_1): Likewise.
12322 (simplify_const_binary_operation): Likewise.
12323 (simplify_const_relational_operation): Likewise.
12324 (simplify_immed_subreg): Likewise.
12325 * stmt.c (expand_case): Likewise.
12326 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12327 signop rather than a bool.
12328 * stor-layout.c (layout_type): Use wide-int interfaces.
12329 (initialize_sizetypes): Update calls to
12330 set_min_and_max_values_for_integral_type.
12331 (set_min_and_max_values_for_integral_type): Take a signop rather
12332 than a bool. Use wide-int interfaces.
12333 (fixup_signed_type): Update accordingly. Remove
12334 HOST_BITS_PER_DOUBLE_INT limit.
12335 (fixup_unsigned_type): Likewise.
12336 * system.h (STATIC_CONSTANT_P): New.
12337 (STATIC_ASSERT): New.
12338 * target.def (can_use_doloop_p): Take widest_ints rather than
12340 * target.h: Include wide-int.h rather than double-int.h.
12341 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12343 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12344 rather than INT_CST_LT_UNSIGNED.
12345 (can_use_doloop_if_innermost): Take widest_ints rather than
12347 * tree-affine.c: Include wide-int-print.h.
12348 (double_int_ext_for_comb): Delete.
12349 (wide_int_ext_for_comb): New.
12350 (aff_combination_zero): Use wide-int interfaces.
12351 (aff_combination_const): Take a widest_int instead of a double_int.
12352 (aff_combination_elt): Use wide-int interfaces.
12353 (aff_combination_scale): Take a widest_int instead of a double_int.
12354 (aff_combination_add_elt): Likewise.
12355 (aff_combination_add_cst): Likewise.
12356 (aff_combination_add): Use wide-int interfaces.
12357 (aff_combination_convert): Likewise.
12358 (tree_to_aff_combination): Likewise.
12359 (add_elt_to_tree): Take a widest_int instead of a double_int.
12360 (aff_combination_to_tree): Use wide-int interfaces.
12361 (aff_combination_remove_elt): Likewise.
12362 (aff_combination_add_product): Take a widest_int instead of
12364 (aff_combination_mult): Use wide-int interfaces.
12365 (aff_combination_expand): Likewise.
12366 (double_int_constant_multiple_p): Delete.
12367 (wide_int_constant_multiple_p): New.
12368 (aff_combination_constant_multiple_p): Take a widest_int pointer
12369 instead of a double_int pointer.
12370 (print_aff): Use wide-int interfaces.
12371 (get_inner_reference_aff): Take a widest_int pointer
12372 instead of a double_int pointer.
12373 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12374 * tree-affine.h: Include wide-int.h.
12375 (struct aff_comb_elt): Change type of coef to widest_int.
12376 (struct affine_tree_combination): Change type of offset to widest_int.
12377 (double_int_ext_for_comb): Delete.
12378 (wide_int_ext_for_comb): New.
12379 (aff_combination_const): Use widest_int instead of double_int.
12380 (aff_combination_scale): Likewise.
12381 (aff_combination_add_elt): Likewise.
12382 (aff_combination_constant_multiple_p): Likewise.
12383 (get_inner_reference_aff): Likewise.
12384 (aff_comb_cannot_overlap_p): Likewise.
12385 (aff_combination_zero_p): Use wide-int interfaces.
12386 * tree.c: Include tree.h.
12387 (init_ttree): Use make_int_cst.
12388 (tree_code_size): Removed code for INTEGER_CST case.
12389 (tree_size): Add INTEGER_CST case.
12390 (make_node_stat): Update comment.
12391 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12392 (build_int_cst_type): Use wide-int interfaces.
12393 (double_int_to_tree): Likewise.
12394 (double_int_fits_to_tree_p): Delete.
12395 (force_fit_type_double): Delete.
12396 (force_fit_type): New.
12397 (int_cst_hash_hash): Use wide-int interfaces.
12398 (int_cst_hash_eq): Likewise.
12399 (build_int_cst_wide): Delete.
12400 (wide_int_to_tree): New.
12401 (cache_integer_cst): Use wide-int interfaces.
12402 (build_low_bits_mask): Likewise.
12403 (cst_and_fits_in_hwi): Likewise.
12404 (real_value_from_int_cst): Likewise.
12405 (make_int_cst_stat): New.
12406 (integer_zerop): Use wide_int interfaces.
12407 (integer_onep): Likewise.
12408 (integer_all_onesp): Likewise.
12409 (integer_pow2p): Likewise.
12410 (integer_nonzerop): Likewise.
12411 (tree_log2): Likewise.
12412 (tree_floor_log2): Likewise.
12413 (tree_ctz): Likewise.
12414 (int_size_in_bytes): Likewise.
12415 (mem_ref_offset): Return an offset_int rather than a double_int.
12416 (build_type_attribute_qual_variant): Use wide_int interfaces.
12417 (type_hash_eq): Likewise
12418 (tree_int_cst_equal): Likewise.
12419 (tree_int_cst_lt): Delete.
12420 (tree_int_cst_compare): Likewise.
12421 (tree_fits_shwi_p): Use wide_int interfaces.
12422 (tree_fits_uhwi_p): Likewise.
12423 (tree_int_cst_sign_bit): Likewise.
12424 (tree_int_cst_sgn): Likewise.
12425 (tree_int_cst_min_precision): Take a signop rather than a bool.
12426 (simple_cst_equal): Use wide_int interfaces.
12427 (compare_tree_int): Likewise.
12428 (iterative_hash_expr): Likewise.
12429 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12431 (get_type_static_bounds): Use wide_int interfaces.
12432 (tree_int_cst_elt_check_failed): New.
12433 (build_common_tree_nodes): Reordered to set prec before filling in
12435 (int_cst_value): Check cst_and_fits_in_hwi.
12436 (widest_int_cst_value): Use wide_int interfaces.
12437 (upper_bound_in_type): Likewise.
12438 (lower_bound_in_type): Likewise.
12439 (num_ending_zeros): Likewise.
12440 (drop_tree_overflow): Likewise.
12441 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12442 (gen_conditions_for_pow_cst_base): Likewise.
12443 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12444 (group_case_labels_stmt): Use wide-int interfaces.
12445 (verify_gimple_assign_binary): Likewise.
12446 (print_loop): Likewise.
12447 * tree-chrec.c (tree_fold_binomial): Likewise.
12448 * tree-core.h (struct tree_base): Add int_length.
12449 (struct tree_int_cst): Change rep of value.
12450 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12451 (dr_may_alias_p): Likewise.
12452 (max_stmt_executions_tree): Likewise.
12453 * tree.def (INTEGER_CST): Update comment.
12454 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12455 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12456 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12457 (dequeue_and_dump): Use wide-int interfaces.
12458 * tree.h: Include wide-int.h.
12459 (NULL_TREE): Moved to earlier loc in file.
12460 (TREE_INT_CST_ELT_CHECK): New.
12461 (tree_int_cst_elt_check_failed): New.
12463 (TREE_INT_CST): Delete.
12464 (TREE_INT_CST_LOW): Use wide-int interfaces.
12465 (TREE_INT_CST_HIGH): Delete.
12466 (TREE_INT_CST_NUNITS): New.
12467 (TREE_INT_CST_EXT_NUNITS): Likewise.
12468 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12469 (TREE_INT_CST_ELT): Likewise.
12470 (INT_CST_LT): Delete.
12471 (tree_int_cst_elt_check): New (two forms).
12472 (type_code_size): Update comment.
12473 (make_int_cst_stat, make_int_cst): New.
12474 (tree_to_double_int): Delete.
12475 (double_int_fits_to_tree_p): Delete.
12476 (force_fit_type_double): Delete.
12477 (build_int_cstu): Replace with out-of-line function.
12478 (build_int_cst_wide): Delete.
12479 (tree_int_cst_lt): Define inline.
12480 (tree_int_cst_le): New.
12481 (tree_int_cst_compare): Define inline.
12482 (tree_int_cst_min_precision): Take a signop rather than a bool.
12483 (wi::int_traits <const_tree>): New.
12484 (wi::int_traits <tree>): New.
12485 (wi::extended_tree): New.
12486 (wi::int_traits <wi::extended_tree>): New.
12487 (wi::to_widest): New.
12488 (wi::to_offset): New.
12489 (wi::fits_to_tree_p): New.
12490 (wi::min_value): New.
12491 (wi::max_value): New.
12492 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12493 (copy_tree_body_r): Likewise.
12494 * tree-object-size.c (compute_object_offset): Likewise.
12495 (addr_object_size): Likewise.
12496 * tree-predcom.c: Include wide-int-print.h.
12497 (struct dref_d): Change type of offset to widest_int.
12498 (dump_dref): Call wide-int printer.
12499 (aff_combination_dr_offset): Use wide-int interfaces.
12500 (determine_offset): Take a widest_int pointer rather than a
12501 double_int pointer.
12502 (split_data_refs_to_components): Use wide-int interfaces.
12503 (suitable_component_p): Likewise.
12504 (order_drefs): Likewise.
12505 (add_ref_to_chain): Likewise.
12506 (valid_initializer_p): Likewise.
12507 (determine_roots_comp): Likewise.
12508 * tree-pretty-print.c: Include wide-int-print.h.
12509 (dump_generic_node): Use wide-int interfaces.
12510 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12511 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12512 (move_fixed_address_to_symbol): Likewise.
12513 (move_hint_to_base): Likewise.
12514 (move_pointer_to_base): Likewise.
12515 (move_variant_to_index): Likewise.
12516 (most_expensive_mult_to_index): Likewise.
12517 (addr_to_parts): Likewise.
12518 (copy_ref_info): Likewise.
12519 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12520 (indirect_refs_may_alias_p): Likewise.
12521 (stmt_kills_ref_p_1): Likewise.
12522 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12523 * tree-ssa-ccp.c: Update comment at top of file. Include
12525 (struct prop_value_d): Change type of mask to widest_int.
12526 (extend_mask): New function.
12527 (dump_lattice_value): Use wide-int interfaces.
12528 (get_default_value): Likewise.
12529 (set_constant_value): Likewise.
12530 (set_value_varying): Likewise.
12531 (valid_lattice_transition): Likewise.
12532 (set_lattice_value): Likewise.
12533 (value_to_double_int): Delete.
12534 (value_to_wide_int): New.
12535 (get_value_from_alignment): Use wide-int interfaces.
12536 (get_value_for_expr): Likewise.
12537 (do_dbg_cnt): Likewise.
12538 (ccp_finalize): Likewise.
12539 (ccp_lattice_meet): Likewise.
12540 (bit_value_unop_1): Use widest_ints rather than double_ints.
12541 (bit_value_binop_1): Likewise.
12542 (bit_value_unop): Use wide-int interfaces.
12543 (bit_value_binop): Likewise.
12544 (bit_value_assume_aligned): Likewise.
12545 (evaluate_stmt): Likewise.
12546 (ccp_fold_stmt): Likewise.
12547 (visit_cond_stmt): Likewise.
12548 (ccp_visit_stmt): Likewise.
12549 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12550 (constant_pointer_difference): Likewise.
12551 (associate_pointerplus): Likewise.
12552 (combine_conversions): Likewise.
12553 * tree-ssa-loop.h: Include wide-int.h.
12554 (struct tree_niter_desc): Change type of max to widest_int.
12555 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12556 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12557 (remove_redundant_iv_tests): Likewise.
12558 (canonicalize_loop_induction_variables): Likewise.
12559 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12560 (constant_multiple_of): Take a widest_int pointer instead of
12561 a double_int pointer.
12562 (get_computation_aff): Use wide-int interfaces.
12563 (ptr_difference_cost): Likewise.
12564 (difference_cost): Likewise.
12565 (get_loop_invariant_expr_id): Likewise.
12566 (get_computation_cost_at): Likewise.
12567 (iv_elimination_compare_lt): Likewise.
12568 (may_eliminate_iv): Likewise.
12569 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
12570 instead of double_int.
12571 (max_loop_iterations): Likewise.
12572 (max_stmt_executions): Likewise.
12573 (estimated_stmt_executions): Likewise.
12574 * tree-ssa-loop-niter.c: Include wide-int-print.h.
12575 (split_to_var_and_offset): Use wide-int interfaces.
12576 (determine_value_range): Likewise.
12577 (bound_difference_of_offsetted_base): Likewise.
12578 (bounds_add): Take a widest_int instead of a double_int.
12579 (number_of_iterations_ne_max): Use wide-int interfaces.
12580 (number_of_iterations_ne): Likewise.
12581 (number_of_iterations_lt_to_ne): Likewise.
12582 (assert_loop_rolls_lt): Likewise.
12583 (number_of_iterations_lt): Likewise.
12584 (number_of_iterations_le): Likewise.
12585 (number_of_iterations_cond): Likewise.
12586 (number_of_iterations_exit): Likewise.
12587 (finite_loop_p): Likewise.
12588 (derive_constant_upper_bound_assign): Likewise.
12589 (derive_constant_upper_bound): Return a widest_int.
12590 (derive_constant_upper_bound_ops): Likewise.
12591 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
12592 (record_estimate): Take a widest_int rather than a double_int.
12593 (record_nonwrapping_iv): Use wide-int interfaces.
12594 (double_int_cmp): Delete.
12595 (wide_int_cmp): New.
12596 (bound_index): Take a widest_int rather than a double_int.
12597 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
12598 (maybe_lower_iteration_bound): Likewise.
12599 (estimate_numbers_of_iterations_loop): Likewise.
12600 (estimated_loop_iterations): Take a widest_int pointer than than
12601 a double_int pointer.
12602 (estimated_loop_iterations_int): Use wide-int interfaces.
12603 (max_loop_iterations): Take a widest_int pointer than than
12604 a double_int pointer.
12605 (max_loop_iterations_int): Use wide-int interfaces.
12606 (max_stmt_executions): Take a widest_int pointer than than
12607 a double_int pointer.
12608 (estimated_stmt_executions): Likewise.
12609 (n_of_executions_at_most): Use wide-int interfaces.
12610 (scev_probably_wraps_p): Likewise.
12611 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
12612 to real_to_integer.
12613 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
12615 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
12616 double_ints. Adjust for trailing_wide_ints <3> representation.
12617 (set_nonzero_bits): Likewise.
12618 (get_range_info): Return wide_ints rather than double_ints.
12619 Adjust for trailing_wide_ints <3> representation.
12620 (get_nonzero_bits): Likewise.
12621 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
12623 * tree-ssanames.h (struct range_info_def): Replace min, max and
12624 nonzero_bits with a trailing_wide_ints <3>.
12625 (set_range_info): Use wide_int_refs rather than double_ints.
12626 (set_nonzero_bits): Likewise.
12627 (get_range_info): Return wide_ints rather than double_ints.
12628 (get_nonzero_bits): Likewise.
12629 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
12630 * tree-ssa-pre.c (phi_translate_1): Likewise.
12631 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
12632 (acceptable_pow_call): Likewise.
12633 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
12635 (vn_reference_fold_indirect): Likewise.
12636 (vn_reference_maybe_forwprop_address): Likewise.
12637 (valueize_refs_1): Likewise.
12638 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
12639 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
12640 tree_int_cst_lt and tree_int_cst_le.
12641 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
12643 (streamer_alloc_tree): Likewise.
12644 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
12645 (streamer_write_tree_header): Likewise.
12646 (streamer_write_integer_cst): Likewise.
12647 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12648 (build_constructors): Likewise.
12649 (array_value_type): Likewise.
12650 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
12651 (vect_check_gather): Likewise.
12652 * tree-vect-generic.c (build_replicated_const): Likewise.
12653 (expand_vector_divmod): Likewise.
12654 * tree-vect-loop.c (vect_transform_loop): Likewise.
12655 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
12656 (vect_do_peeling_for_alignment): Likewise.
12657 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
12658 * tree-vrp.c: Include wide-int.h.
12659 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
12660 (extract_range_from_assert): Use wide-int interfaces.
12661 (vrp_int_const_binop): Likewise.
12662 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
12663 double_int pointers.
12664 (ranges_from_anti_range): Use wide-int interfaces.
12665 (quad_int_cmp): Delete.
12666 (quad_int_pair_sort): Likewise.
12667 (extract_range_from_binary_expr_1): Use wide-int interfaces.
12668 (extract_range_from_unary_expr_1): Likewise.
12669 (adjust_range_with_scev): Likewise.
12670 (masked_increment): Take and return wide_ints rather than double_ints.
12671 (register_edge_assert_for_2): Use wide-int interfaces.
12672 (check_array_ref): Likewise.
12673 (search_for_addr_array): Likewise.
12674 (maybe_set_nonzero_bits): Likewise.
12675 (union_ranges): Pass an integer of the correct type instead of
12676 using integer_one_node.
12677 (intersect_ranges): Likewise.
12678 (simplify_truth_ops_using_ranges): Likewise.
12679 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
12680 (range_fits_type_p): Likewise.
12681 (simplify_cond_using_ranges): Likewise. Take a signop rather than
12683 (simplify_conversion_using_ranges): Use wide-int interfaces.
12684 (simplify_float_conversion_using_ranges): Likewise.
12685 (vrp_finalize): Likewise.
12686 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
12687 (gimple_stringops_transform): Likewise.
12688 * varasm.c (decode_addr_const): Likewise.
12689 (const_hash_1): Likewise.
12690 (const_rtx_hash_1): Likewise
12691 (output_constant): Likewise.
12692 (array_size_for_constructor): Likewise.
12693 (output_constructor_regular_field): Likewise.
12694 (output_constructor_bitfield): Likewise.
12695 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
12696 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
12698 * gencheck.c: Define BITS_PER_UNIT.
12699 * wide-int.cc: New.
12701 * wide-int-print.cc: New.
12702 * wide-int-print.h: New.
12704 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12706 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
12708 2014-05-06 Richard Biener <rguenther@suse.de>
12710 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
12711 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
12712 (TODO_verify_all): Adjust.
12713 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
12714 TODO_verify_stmts and TODO_verify_rtl_sharing.
12715 * bb-reorder.c: Likewise.
12716 * cfgexpand.c: Likewise.
12717 * cprop.c: Likewise.
12719 * function.c: Likewise.
12720 * fwprop.c: Likewise.
12721 * gcse.c: Likewise.
12722 * gimple-ssa-isolate-paths.c: Likewise.
12723 * gimple-ssa-strength-reduction.c: Likewise.
12724 * ipa-split.c: Likewise.
12725 * loop-init.c: Likewise.
12726 * loop-unroll.c: Likewise.
12727 * lower-subreg.c: Likewise.
12728 * modulo-sched.c: Likewise.
12729 * postreload-gcse.c: Likewise.
12730 * predict.c: Likewise.
12731 * recog.c: Likewise.
12732 * sched-rgn.c: Likewise.
12733 * store-motion.c: Likewise.
12734 * tracer.c: Likewise.
12735 * trans-mem.c: Likewise.
12736 * tree-call-cdce.c: Likewise.
12737 * tree-cfg.c: Likewise.
12738 * tree-cfgcleanup.c: Likewise.
12739 * tree-complex.c: Likewise.
12740 * tree-eh.c: Likewise.
12741 * tree-emutls.c: Likewise.
12742 * tree-if-conv.c: Likewise.
12743 * tree-into-ssa.c: Likewise.
12744 * tree-loop-distribution.c: Likewise.
12745 * tree-object-size.c: Likewise.
12746 * tree-parloops.c: Likewise.
12747 * tree-pass.h: Likewise.
12748 * tree-sra.c: Likewise.
12749 * tree-ssa-ccp.c: Likewise.
12750 * tree-ssa-copy.c: Likewise.
12751 * tree-ssa-copyrename.c: Likewise.
12752 * tree-ssa-dce.c: Likewise.
12753 * tree-ssa-dom.c: Likewise.
12754 * tree-ssa-dse.c: Likewise.
12755 * tree-ssa-forwprop.c: Likewise.
12756 * tree-ssa-ifcombine.c: Likewise.
12757 * tree-ssa-loop-ch.c: Likewise.
12758 * tree-ssa-loop-ivcanon.c: Likewise.
12759 * tree-ssa-loop.c: Likewise.
12760 * tree-ssa-math-opts.c: Likewise.
12761 * tree-ssa-phiopt.c: Likewise.
12762 * tree-ssa-phiprop.c: Likewise.
12763 * tree-ssa-pre.c: Likewise.
12764 * tree-ssa-reassoc.c: Likewise.
12765 * tree-ssa-sink.c: Likewise.
12766 * tree-ssa-strlen.c: Likewise.
12767 * tree-ssa-tail-merge.c: Likewise.
12768 * tree-ssa-uncprop.c: Likewise.
12769 * tree-switch-conversion.c: Likewise.
12770 * tree-tailcall.c: Likewise.
12771 * tree-vect-generic.c: Likewise.
12772 * tree-vectorizer.c: Likewise.
12773 * tree-vrp.c: Likewise.
12774 * tsan.c: Likewise.
12775 * var-tracking.c: Likewise.
12776 * bt-load.c: Likewise.
12777 * cfgcleanup.c: Likewise.
12778 * combine-stack-adj.c: Likewise.
12779 * combine.c: Likewise.
12780 * compare-elim.c: Likewise.
12781 * config/epiphany/resolve-sw-modes.c: Likewise.
12782 * config/i386/i386.c: Likewise.
12783 * config/mips/mips.c: Likewise.
12784 * config/s390/s390.c: Likewise.
12785 * config/sh/sh_treg_combine.cc: Likewise.
12786 * config/sparc/sparc.c: Likewise.
12789 * final.c: Likewise.
12790 * ifcvt.c: Likewise.
12791 * mode-switching.c: Likewise.
12792 * passes.c: Likewise.
12793 * postreload.c: Likewise.
12795 * reg-stack.c: Likewise.
12796 * regcprop.c: Likewise.
12797 * regrename.c: Likewise.
12800 2014-05-06 Richard Biener <rguenther@suse.de>
12802 PR middle-end/61070
12803 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
12804 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
12806 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
12809 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
12811 2014-05-05 Radovan Obradovic <robradovic@mips.com>
12812 Tom de Vries <tom@codesourcery.com>
12814 * target.def (call_fusage_contains_non_callee_clobbers): New
12816 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
12818 (@node Miscellaneous Register Hooks): New node.
12819 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
12820 * doc/tm.texi: Regenerate.
12822 2014-05-05 Marek Polacek <polacek@redhat.com>
12825 * opts.c (common_handle_option): Call error_at instead of warning_at.
12827 2014-05-05 Richard Biener <rguenther@suse.de>
12829 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
12830 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
12831 under the TODO_verify_il umbrella.
12833 2014-05-05 Richard Biener <rguenther@suse.de>
12835 * passes.c (execute_function_todo): Move TODO_verify_flow under
12836 the TODO_verify_ul umbrella.
12838 2014-05-05 Richard Biener <rguenther@suse.de>
12840 PR middle-end/61010
12841 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
12842 X & CST away from a CST that is the mask of a mode.
12844 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12846 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
12847 int argument to enum machine_mode.
12848 (picochip_class_max_nregs): Ditto.
12849 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
12850 (picochip_class_max_nregs): Ditto.
12852 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12854 * target.def: Add new target hook.
12855 * doc/tm.texi: Regenerate.
12856 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
12857 * targhooks.c (default_keep_leaf_when_profiled): New function.
12859 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
12860 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
12862 2014-05-05 Bin Cheng <bin.cheng@arm.com>
12864 PR tree-optimization/60363
12865 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
12866 (copy_phi_args): New parameters. Call get_value_locus_in_path.
12867 (update_destination_phis): New parameter.
12868 (create_edge_and_update_destination_phis): Ditto.
12869 (ssa_fix_duplicate_block_edges): Pass new arguments.
12870 (thread_single_edge): Ditto.
12872 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
12874 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
12875 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
12876 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
12877 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
12878 Use RS6000_BTM_HARD_FLOAT.
12879 (BU_MISC_2): Likewise.
12880 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12881 RS6000_BTM_HARD_FLOAT.
12882 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
12883 is explicitly used.
12884 (rs6000_invalid_builtin): Add hard floating builtin support.
12885 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
12886 hard float builtins.
12887 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
12889 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
12891 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
12892 Add missing function* argument.
12894 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12896 * lra-constraints.c (valid_address_p): Move earlier in file.
12897 Add a constraint argument to the address_info version.
12898 (satisfies_memory_constraint_p): New function.
12899 (satisfies_address_constraint_p): Likewise.
12900 (process_alt_operands, curr_insn_transform): Use them.
12901 (process_address): Pass the constraint to valid_address_p when
12902 checking address operands.
12904 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12906 * config/mips/mips.c (mips_isa_rev): New variable.
12907 (mips_set_architecture): Set it.
12908 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
12910 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
12911 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
12912 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
12913 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
12914 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
12915 conditions in terms of mips_isa_rev.
12916 (mips_isa_rev): Declare.
12918 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
12920 * config/sh/sh-mem.cc: Use tabs instead of spaces.
12921 (prob_unlikely, prob_likely): Make variables const.
12923 2014-05-03 Denis Chertykov <chertykov@gmail.com>
12925 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
12927 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
12929 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
12931 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
12933 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
12934 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
12935 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
12937 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
12938 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
12940 Replace usage of ROUND_REG with sh_round_reg.
12941 Use CEIL instead of ROUND_ADVANCE.
12943 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
12946 * config/sh/sh.c: Include stdlib headers before everything else.
12948 2014-05-02 Jakub Jelinek <jakub@redhat.com>
12950 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
12951 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
12952 (gimplify_adjust_omp_clauses): Simd region is never
12953 directly nested in combined parallel. Instead, for linear
12954 with copyin/copyout, if in combined for simd loop, make decl
12955 firstprivate/lastprivate on OMP_FOR.
12956 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
12957 expand_omp_for_static_chunk): When setting endvar, also set
12958 fd->loop.v to the same value.
12960 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12962 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
12964 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
12966 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
12969 2014-05-02 Marek Polacek <polacek@redhat.com>
12971 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
12973 2014-05-02 Kito Cheng <kito@0xlab.org>
12975 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
12976 to a C expression marco.
12977 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
12978 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
12979 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
12980 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
12981 HONOR_REG_ALLOC_ORDER.
12982 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
12984 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12986 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
12988 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12990 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
12992 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
12994 * tree-if-conv.c (is_cond_scalar_reduction): New function.
12995 (convert_scalar_cond_reduction): Likewise.
12996 (predicate_scalar_phi): Add recognition and transformation
12997 of simple conditioanl reduction to be vectorizable.
12999 2014-05-01 Marek Polacek <polacek@redhat.com>
13002 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13004 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13006 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13007 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13008 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13009 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13010 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13011 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13012 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13013 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13015 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13017 * config/arc/arc.opt (mlra): Move comment above option name
13018 to avoid mis-parsing as language options.
13020 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13022 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13023 * config/sol2.h: ... here.
13024 * config/sol2-10.h: Remove.
13026 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13027 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13028 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13029 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13030 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13031 * config/sol2.h: ... here.
13032 (SECTION_NAME_FORMAT): Don't redefine.
13033 (STARTFILE_ARCH32_SPEC): Rename to ...
13034 (STARTFILE_ARCH_SPEC): ... this.
13035 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13036 * config/sparc/sol2.h: ... here.
13037 (SECTION_NAME_FORMAT): Don't undef.
13038 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13039 (SUBTARGET_EXTRA_SPECS): Remove.
13040 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13042 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13043 (MD_STARTFILE_PREFIX): Remove.
13044 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13045 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13046 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13047 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13048 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13049 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13050 * config/i386/sol2.h: ... here.
13051 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13052 * config/i386/sol2-bi.h: Remove.
13053 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13054 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13056 * config/i386/t-sol2-64: Rename to ...
13057 * config/i386/t-sol2: ... this.
13058 * config/sparc/t-sol2-64: Rename to ...
13059 * config/sparc/t-sol2: ... this.
13061 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13062 sol2_tm_file_head, sol2_tm_file_tail.
13063 Include ${cpu_type}/sol2.h before sol2.h.
13065 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13066 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13067 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13068 Reflect i386/t-sol2-64 renaming.
13069 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13070 Reflect sparc/t-sol2-64 renaming.
13072 2014-04-30 Richard Biener <rguenther@suse.de>
13074 * passes.c (execute_function_todo): Move TODO_verify_stmts
13075 and TODO_verify_ssa under the TODO_verify_il umbrella.
13076 * tree-ssa.h (verify_ssa): Adjust prototype.
13077 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13078 we should verify SSA operands.
13079 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13080 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13081 whether we should verify whether not throwing stmts have EH info.
13082 * graphite-scop-detection.c (create_sese_edges): Adjust.
13083 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13084 * tree-eh.c (lower_try_finally_switch): Do not add the
13085 default case label twice.
13087 2014-04-30 Marek Polacek <polacek@redhat.com>
13089 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13090 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13091 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13092 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13094 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13096 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13097 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13098 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13099 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13100 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13101 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13102 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13103 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13105 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13107 * tree-cfg.c (dump_function_to_file): Dump the return type of
13108 functions, in a line to itself before the function body, mimicking
13109 the layout of a C function.
13111 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13113 PR tree-optimization/60971
13114 * tree-tailcall.c (process_assignment): Reject conversions which
13117 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13119 * calls.c (initialize_argument_information): Always treat
13120 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13121 (expand_call): Likewise.
13122 (emit_library_call_calue_1): Likewise.
13123 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13124 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13127 2014-04-29 Nick Clifton <nickc@redhat.com>
13129 * config/msp430/msp430.md (umulsidi): Fix typo.
13130 (mulhisi3): Enable even inside interrupt handlers.
13131 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13132 bigger return address pushed in large mode.
13134 2014-04-29 Nick Clifton <nickc@redhat.com>
13136 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13137 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13139 * config/m32r/m32r.c (init_reg_tables): Likewise.
13140 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13141 enum to hold the modes.
13143 2014-04-29 Richard Biener <rguenther@suse.de>
13145 * dominance.c (free_dominance_info): Add overload with
13146 function parameter.
13147 (dom_info_state): Likewise.
13148 (dom_info_available_p): Likewise.
13149 * basic-block.h (free_dominance_info, dom_info_state,
13150 dom_info_available_p): Declare overloads.
13151 * passes.c (execute_function_todo): Verify that verifiers
13152 don't change dominator info state. Drop dominator info
13153 for IPA pass invocations.
13154 * cgraph.c (release_function_body): Restore asserts that
13155 dominator information is released.
13157 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13159 * doc/invoke.texi: Fix typo.
13160 * tree-vrp.c: Fix typos.
13161 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13163 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13165 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13167 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13169 * config/aarch64/aarch64-builtins.c
13170 (aarch64_types_storestruct_lane_qualifiers): New.
13171 (TYPES_STORESTRUCT_LANE): Likewise.
13172 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13173 (st3_lane): Likewise.
13174 (st4_lane): Likewise.
13175 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13176 (vec_store_lanesci_lane<mode>): Likewise.
13177 (vec_store_lanesxi_lane<mode>): Likewise.
13178 (aarch64_st2_lane<VQ:mode>): Likewise.
13179 (aarch64_st3_lane<VQ:mode>): Likewise.
13180 (aarch64_st4_lane<VQ:mode>): Likewise.
13181 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13182 * config/aarch64/arm_neon.h
13183 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13184 use new macro arguments.
13185 (__ST3_LANE_FUNC): Likewise.
13186 (__ST4_LANE_FUNC): Likewise.
13187 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13188 (V_THREE_ELEM): Likewise.
13189 (V_FOUR_ELEM): Likewise.
13191 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13193 * doc/gimple.texi: Replace the description of the now-defunct
13194 union gimple_statement_d with a diagram showing the
13195 gimple_statement_base class hierarchy and its relationships to
13196 the GSS_ and GIMPLE_ enums.
13198 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13200 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13201 * config/aarch64/aarch64.c
13202 (aarch64_cannot_change_mode_class): Weaken conditions.
13203 (aarch64_modes_tieable_p): New.
13204 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13206 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13208 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13209 (loadsync_<mode>): Change mode.
13210 (load_quadpti, store_quadpti): New.
13211 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13212 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13214 2014-04-28 Martin Jambor <mjambor@suse.cz>
13216 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13217 same alias type as the original statement.
13218 (subreplacement_assignment_data): New type.
13219 (handle_unscalarized_data_in_subtree): New type of parameter,
13220 generate new memory accesses with same alias type as the original
13222 (load_assign_lhs_subreplacements): Likewise.
13223 (sra_modify_constructor_assign): Generate new memory accesses with
13224 same alias type as the original statement.
13226 2014-04-28 Richard Biener <rguenther@suse.de>
13228 * tree-pass.h (TODO_verify_il): Define.
13229 (TODO_verify_all): Complete properly.
13230 * passes.c (execute_function_todo): Move existing loop-closed
13231 SSA verification under TODO_verify_il.
13232 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13233 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13234 Fix tree sharing issue.
13236 2014-04-28 Richard Biener <rguenther@suse.de>
13238 PR middle-end/60092
13239 * builtins.def (DEF_C11_BUILTIN): Add.
13240 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13241 * coretypes.h (enum function_class): Add function_c11_misc.
13242 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13243 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13244 (call_may_clobber_ref_p_1): Likewise.
13245 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13246 (mark_all_reaching_defs_necessary_1): Likewise.
13247 (propagate_necessity): Likewise.
13248 (eliminate_unnecessary_stmts): Likewise.
13249 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13251 2014-04-28 Richard Biener <rguenther@suse.de>
13253 * tree-vrp.c (vrp_var_may_overflow): Remove.
13254 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13255 with overflow immediately bump to one before that value and
13256 let iteration figure out overflow status.
13258 2014-04-28 Richard Biener <rguenther@suse.de>
13260 * configure.ac: Do valgrind header checks unconditionally.
13261 Add --enable-valgrind-annotations.
13262 * system.h: Guard valgrind header inclusion with
13263 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13264 * alloc-pool.c (pool_alloc, pool_free): Use
13265 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13266 to guard possibly dead code.
13267 * config.in: Regenerated.
13268 * configure: Likewise.
13270 2014-04-28 Jeff Law <law@redhat.com>
13272 PR tree-optimization/60902
13273 * tree-ssa-threadedge.c
13274 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13275 over real defs when invalidating outputs from statements that do not
13276 produce useful outputs for threading.
13278 2014-04-28 Richard Biener <rguenther@suse.de>
13280 PR tree-optimization/60979
13281 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13282 SCOPs that end in a block with a successor with abnormal
13285 2014-04-28 Richard Biener <rguenther@suse.de>
13287 * tree-pass.h (execute_pass_list): Adjust prototype.
13288 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13289 (do_per_function): Change callback signature, push all actual
13290 work to the callbals.
13291 (do_per_function_toporder): Likewise.
13292 (execute_function_dump): Adjust.
13293 (execute_function_todo): Likewise.
13294 (clear_last_verified): Likewise.
13295 (verify_curr_properties): Likewise.
13296 (update_properties_after_pass): Likewise.
13297 (execute_pass_list_1): Split out from ...
13298 (execute_pass_list): ... here. Adjust.
13299 (execute_ipa_pass_list): Likewise.
13300 * cgraphunit.c (cgraph_add_new_function): Adjust.
13301 (analyze_function): Likewise.
13302 (expand_function): Likewise.
13303 * cgraph.c (release_function_body): Free dominance info
13304 here instead of asserting it was magically freed elsewhere.
13306 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13308 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13309 * configure: Regenerate.
13310 * config/sparc/sparc.opt (muser-mode): New option.
13311 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13313 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13314 * doc/invoke.texi (SPARC options): Document -muser-mode.
13316 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13318 * cselib.c (find_slot_memmode): Delete.
13319 (cselib_hasher): Change compare_type to a struct.
13320 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13322 (preserve_constants_and_equivs): Adjust for new compare_type.
13323 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13324 (wrap_constant): Delete.
13325 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13327 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13329 * doc/install.texi (Building with profile feedback): Remove
13332 2014-04-26 Tom de Vries <tom@codesourcery.com>
13334 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13337 2014-04-25 Cary Coutant <ccoutant@google.com>
13340 * dwarf2out.c (should_move_die_to_comdat): A type definition
13341 can contain a subprogram definition, but don't move it to a
13343 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13344 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13346 (clone_tree_hash): Rename to...
13347 (clone_tree_partial): ...this; change callers. Copy
13348 DW_TAG_subprogram DIEs as declarations.
13349 (copy_decls_walk): Don't copy children of a declaration into a
13352 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13355 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13358 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13360 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13361 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13363 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13366 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13368 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13370 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13372 PR tree-optimization/60930
13373 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13374 creating a multiply candidate by folding two constant
13375 multiplicands when the result overflows.
13377 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13379 PR tree-optimization/60960
13380 * tree-vect-generic.c (expand_vector_operation): Only call
13381 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13383 2014-04-25 Tom de Vries <tom@codesourcery.com>
13385 * expr.c (clobber_reg_mode): New function.
13386 * expr.h (clobber_reg): New function.
13388 2014-04-25 Tom de Vries <tom@codesourcery.com>
13390 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13393 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13394 Tom de Vries <tom@codesourcery.com>
13396 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13398 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13399 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13400 new argument to find_all_hard_reg_sets call.
13402 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13404 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13405 Use HOST_WIDE_INT_C for mask literal.
13406 (aarch_rev16_shleft_mask_imm_p): Likewise.
13408 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13411 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13413 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13415 PR preprocessor/56540
13416 * config/i386/i386-c.c (ix86_target_macros): Define
13417 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13419 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13421 * configure.ac (tga_func): Remove.
13422 (LIB_TLS_SPEC): Remove.
13423 * configure: Regenerate.
13424 * config.in: Regenerate.
13425 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13427 2014-04-25 Richard Biener <rguenther@suse.de>
13430 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13431 call stmt use/clobber sets during stmt walk instead of
13432 walking the possibly incomplete set of caller edges.
13434 2014-04-25 Richard Biener <rguenther@suse.de>
13437 * passes.c (apply_ipa_transforms): Inline into only caller ...
13438 (execute_one_pass): ... here. Properly bring in function
13439 bodies for nodes we want to apply IPA transforms to.
13441 2014-04-24 Cong Hou <congh@google.com>
13443 PR tree-optimization/60896
13444 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13445 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13446 (vect_mark_pattern_stmts): Set the def type of all statements in
13447 PATTERN_DEF_SEQ as vect_internal_def.
13449 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13451 * doc/extend.texi (PowerPC Built-in Functions): Document new
13452 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13453 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13455 * config/rs6000/predicates.md (const_0_to_3_operand): New
13456 predicate to match 0..3 integer constants.
13458 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13459 to support adding miscellaneous builtin functions.
13460 (BU_DFP_MISC_2): Likewise.
13461 (BU_P7_MISC_1): Likewise.
13462 (BU_P7_MISC_2): Likewise.
13463 (BU_P8V_MISC_3): Likewise.
13464 (BU_MISC_1): Likewise.
13465 (BU_MISC_2): Likewise.
13466 (DIVWE): Add extended divide builtin functions.
13467 (DIVWEO): Likewise.
13468 (DIVWEU): Likewise.
13469 (DIVWEUO): Likewise.
13471 (DIVDEO): Likewise.
13472 (DIVDEU): Likewise.
13473 (DIVDEUO): Likewise.
13474 (DXEX): Add decimal floating-point builtin functions.
13476 (DDEDPD): Likewise.
13477 (DDEDPDQ): Likewise.
13478 (DENBCD): Likewise.
13479 (DENBCDQ): Likewise.
13483 (DSCLIQ): Likewise.
13485 (DSCRIQ): Likewise.
13486 (CDTBCD): Add new BCD builtin functions.
13487 (CBCDTD): Likewise.
13488 (ADDG6S): Likewise.
13489 (BCDADD): Likewise.
13490 (BCDADD_LT): Likewise.
13491 (BCDADD_EQ): Likewise.
13492 (BCDADD_GT): Likewise.
13493 (BCDADD_OV): Likewise.
13494 (BCDSUB): Likewise.
13495 (BCDSUB_LT): Likewise.
13496 (BCDSUB_EQ): Likewise.
13497 (BCDSUB_GT): Likewise.
13498 (BCDSUB_OV): Likewise.
13499 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13500 (UNPACK_TD): Likewise.
13501 (PACK_TF): Likewise.
13502 (UNPACK_TF): Likewise.
13503 (UNPACK_TF_0): Likewise.
13504 (UNPACK_TF_1): Likewise.
13505 (PACK_V1TI): Likewise.
13506 (UNPACK_V1TI): Likewise.
13508 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13509 support for decimal floating point builtin functions.
13510 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13511 functions that take constant arguments.
13512 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13513 (rs6000_init_builtins): Setup long double, _Decimal64, and
13514 _Decimal128 types for new builtin functions.
13515 (builtin_function_type): Set the unsigned flags appropriately for
13516 the new builtin functions.
13517 (rs6000_opt_masks): Add support for decimal floating point builtin
13520 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13521 floating point builtin functions.
13522 (RS6000_BTM_COMMON): Likewise.
13523 (RS6000_BTI_long_double): Likewise.
13524 (RS6000_BTI_dfloat64): Likewise.
13525 (RS6000_BTI_dfloat128): Likewise.
13526 (long_double_type_internal_node): Likewise.
13527 (dfloat64_type_internal_node): Likewise.
13528 (dfloat128_type_internal_node): Likewise.
13530 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13531 2.07 bcd arithmetic instructions.
13532 (UNSPEC_BCDSUB): Likewise.
13533 (UNSPEC_BCD_OVERFLOW): Likewise.
13534 (UNSPEC_BCD_ADD_SUB): Likewise.
13535 (bcd_add_sub): Likewise.
13536 (BCD_TEST): Likewise.
13537 (bcd<bcd_add_sub>): Likewise.
13538 (bcd<bcd_add_sub>_test): Likewise.
13539 (bcd<bcd_add_sub>_test2): Likewise.
13540 (bcd<bcd_add_sub>_<code>): Likewise.
13541 (peephole2 for combined bcd ops): Likewise.
13543 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13544 decimal floating point builtin functions.
13545 (UNSPEC_DENBCD): Likewise.
13546 (UNSPEC_DXEX): Likewise.
13547 (UNSPEC_DIEX): Likewise.
13548 (UNSPEC_DSCLI): Likewise.
13549 (UNSPEC_DSCRI): Likewise.
13550 (D64_D128): Likewise.
13551 (dfp_suffix): Likewise.
13552 (dfp_ddedpd_<mode>): Likewise.
13553 (dfp_denbcd_<mode>): Likewise.
13554 (dfp_dxex_<mode>): Likewise.
13555 (dfp_diex_<mode>): Likewise.
13556 (dfp_dscli_<mode>): Likewise.
13557 (dfp_dscri_<mode>): Likewise.
13559 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13561 (UNSPEC_CDTBCD): Likewise.
13562 (UNSPEC_CBCDTD): Likewise.
13563 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
13564 (UNSPEC_DIVEO): Likewise.
13565 (UNSPEC_DIVEU): Likewise.
13566 (UNSPEC_DIVEUO): Likewise.
13567 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
13568 pack/unpack 128-bit types.
13569 (UNSPEC_PACK_128BIT): Likewise.
13570 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
13571 (udiv<mode>3): Use idiv_ldiv mode attribute.
13572 (div<mode>3): Likewise.
13573 (addg6s): Add new BCD builtin functions.
13574 (cdtbcd): Likewise.
13575 (cbcdtd): Likewise.
13576 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
13577 (div_extend): Likewise.
13578 (div<div_extend>_<mode>"): Likewise.
13579 (FP128_64): Add support for new builtin functions to pack/unpack
13581 (unpack<mode>): Likewise.
13582 (unpacktf_0): Likewise.
13583 (unpacktf_1): Likewise.
13584 (unpack<mode>_dm): Likewise.
13585 (unpack<mode>_nodm): Likewise.
13586 (pack<mode>): Likewise.
13587 (unpackv1ti): Likewise.
13588 (packv1ti): Likewise.
13590 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
13592 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
13595 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13597 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
13598 * gimplify.c (omp_is_private): Change last argument's type to int.
13599 Only diagnose lastprivate if the simd argument is 1, only diagnose
13600 linear if the simd argument is 2.
13601 (gimplify_omp_for): Adjust omp_is_private callers. When adding
13602 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
13603 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
13604 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
13605 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
13606 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13607 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
13608 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13609 * tree-nested.c (convert_nonlocal_omp_clauses,
13610 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
13612 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
13615 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
13618 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
13620 * flag-types.h (enum ivar_visibility): Add.
13622 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
13624 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
13625 function * argument.
13627 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
13629 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
13631 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13632 Tom de Vries <tom@codesourcery.com>
13634 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
13635 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
13637 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
13638 * emit-rtl.c (try_split): Same.
13640 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13641 Tom de Vries <tom@codesourcery.com>
13643 * common.opt (fuse-caller-save): New option.
13645 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
13647 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
13648 elements for big-endian.
13650 2014-04-24 Richard Biener <rguenther@suse.de>
13652 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
13653 during TER and instead use the sepops interface for expanding
13654 non-GIMPLE_SINGLE_RHS.
13656 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13658 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
13659 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
13661 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13663 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
13664 assembler 64-bit option.
13665 * configure: Regenerate.
13667 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13669 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
13670 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
13671 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
13672 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
13673 (TARGET_CRYPTO): Take TARGET_SIMD into account.
13675 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13677 * config/aarch64/aarch64-builtins.c
13678 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
13679 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
13680 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
13681 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
13683 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
13684 (Vrevsuff): New mode attribute.
13686 2014-04-24 Terry Guo <terry.guo@arm.com>
13688 * config/arm/arm.h (machine_function): Define variable
13689 after_arm_reorg here.
13690 * config/arm/arm.c (after_arm_reorg): Remove the definition.
13691 (arm_split_constant): Update the way to access variable
13693 (arm_reorg): Ditto.
13694 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
13696 2014-04-23 Tom de Vries <tom@codesourcery.com>
13698 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
13700 2014-04-23 David Malcolm <dmalcolm@redhat.com>
13702 * is-a.h: Update comments to reflect the following changes to the
13703 "pointerness" of the API, making the template parameter match the
13704 return type, allowing use of is-a.h with typedefs of pointers.
13705 (is_a_helper::cast): Return a T rather then a pointer to a T, so
13706 that the return type matches the parameter to the is_a_helper.
13708 (dyn_cast): Likewise.
13710 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
13711 pointer from the is-a.h API.
13713 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
13714 (is_a_helper <cgraph_node *>::test): ...this, matching change to
13716 (is_a_helper <varpool_node>::test): Likewise, convert to...
13717 (is_a_helper <varpool_node *>::test): ...this.
13719 (varpool_first_variable): Update for removal of implicit pointer
13720 from the is-a.h API.
13721 (varpool_next_variable): Likewise.
13722 (varpool_first_static_initializer): Likewise.
13723 (varpool_next_static_initializer): Likewise.
13724 (varpool_first_defined_variable): Likewise.
13725 (varpool_next_defined_variable): Likewise.
13726 (cgraph_first_defined_function): Likewise.
13727 (cgraph_next_defined_function): Likewise.
13728 (cgraph_first_function): Likewise.
13729 (cgraph_next_function): Likewise.
13730 (cgraph_first_function_with_gimple_body): Likewise.
13731 (cgraph_next_function_with_gimple_body): Likewise.
13732 (cgraph_alias_target): Likewise.
13733 (varpool_alias_target): Likewise.
13734 (cgraph_function_or_thunk_node): Likewise.
13735 (varpool_variable_node): Likewise.
13736 (symtab_real_symbol_p): Likewise.
13737 * cgraphunit.c (referred_to_p): Likewise.
13738 (analyze_functions): Likewise.
13739 (handle_alias_pairs): Likewise.
13740 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
13741 * gimple-ssa.h (gimple_vuse_op): Likewise.
13742 (gimple_vdef_op): Likewise.
13743 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
13744 * gimple.c (gimple_build_asm_1): Likewise.
13745 (gimple_build_try): Likewise.
13746 (gimple_build_resx): Likewise.
13747 (gimple_build_eh_dispatch): Likewise.
13748 (gimple_build_omp_for): Likewise.
13749 (gimple_omp_for_set_clauses): Likewise.
13751 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
13752 (is_a_helper <gimple_statement_asm *>::test): ...this.
13753 (is_a_helper <gimple_statement_bind>::test): Convert to...
13754 (is_a_helper <gimple_statement_bind *>::test): ...this.
13755 (is_a_helper <gimple_statement_call>::test): Convert to...
13756 (is_a_helper <gimple_statement_call *>::test): ...this.
13757 (is_a_helper <gimple_statement_catch>::test): Convert to...
13758 (is_a_helper <gimple_statement_catch *>::test): ...this.
13759 (is_a_helper <gimple_statement_resx>::test): Convert to...
13760 (is_a_helper <gimple_statement_resx *>::test): ...this.
13761 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
13762 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
13763 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
13764 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
13765 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
13766 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
13767 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
13768 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
13769 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
13770 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
13771 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
13772 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
13773 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
13774 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
13775 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
13776 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
13777 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
13778 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
13779 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
13780 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
13781 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
13782 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
13783 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
13784 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
13785 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
13786 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
13787 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
13788 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
13789 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
13790 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
13791 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
13792 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
13793 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
13794 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
13795 (is_a_helper <gimple_statement_phi>::test): Convert to...
13796 (is_a_helper <gimple_statement_phi *>::test): ...this.
13797 (is_a_helper <gimple_statement_transaction>::test): Convert to...
13798 (is_a_helper <gimple_statement_transaction *>::test): ...this.
13799 (is_a_helper <gimple_statement_try>::test): Convert to...
13800 (is_a_helper <gimple_statement_try *>::test): ...this.
13801 (is_a_helper <gimple_statement_wce>::test): Convert to...
13802 (is_a_helper <gimple_statement_wce *>::test): ...this.
13803 (is_a_helper <const gimple_statement_asm>::test): Convert to...
13804 (is_a_helper <const gimple_statement_asm *>::test): ...this.
13805 (is_a_helper <const gimple_statement_bind>::test): Convert to...
13806 (is_a_helper <const gimple_statement_bind *>::test): ...this.
13807 (is_a_helper <const gimple_statement_call>::test): Convert to...
13808 (is_a_helper <const gimple_statement_call *>::test): ...this.
13809 (is_a_helper <const gimple_statement_catch>::test): Convert to...
13810 (is_a_helper <const gimple_statement_catch *>::test): ...this.
13811 (is_a_helper <const gimple_statement_resx>::test): Convert to...
13812 (is_a_helper <const gimple_statement_resx *>::test): ...this.
13813 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
13814 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
13815 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
13816 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
13817 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
13819 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
13821 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
13823 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
13825 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
13826 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
13827 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
13829 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
13830 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
13832 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
13833 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
13834 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
13835 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
13836 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
13837 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
13839 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
13840 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
13841 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
13842 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
13844 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
13845 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
13846 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
13847 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
13848 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
13849 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
13850 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
13851 (is_a_helper <const gimple_statement_phi>::test): Convert to...
13852 (is_a_helper <const gimple_statement_phi *>::test): ...this.
13853 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
13854 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
13855 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
13856 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
13857 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
13858 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
13859 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
13861 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
13863 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
13864 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
13866 (gimple_use_ops): Update for removal of implicit pointer from the
13868 (gimple_set_use_ops): Likewise.
13869 (gimple_vuse): Likewise.
13870 (gimple_vdef): Likewise.
13871 (gimple_vuse_ptr): Likewise.
13872 (gimple_vdef_ptr): Likewise.
13873 (gimple_set_vuse): Likewise.
13874 (gimple_set_vdef): Likewise.
13875 (gimple_omp_return_set_lhs): Likewise.
13876 (gimple_omp_return_lhs): Likewise.
13877 (gimple_omp_return_lhs_ptr): Likewise.
13878 (gimple_call_fntype): Likewise.
13879 (gimple_call_set_fntype): Likewise.
13880 (gimple_call_set_internal_fn): Likewise.
13881 (gimple_call_use_set): Likewise.
13882 (gimple_call_clobber_set): Likewise.
13883 (gimple_bind_vars): Likewise.
13884 (gimple_bind_set_vars): Likewise.
13885 (gimple_bind_body_ptr): Likewise.
13886 (gimple_bind_set_body): Likewise.
13887 (gimple_bind_add_stmt): Likewise.
13888 (gimple_bind_block): Likewise.
13889 (gimple_bind_set_block): Likewise.
13890 (gimple_asm_ninputs): Likewise.
13891 (gimple_asm_noutputs): Likewise.
13892 (gimple_asm_nclobbers): Likewise.
13893 (gimple_asm_nlabels): Likewise.
13894 (gimple_asm_input_op): Likewise.
13895 (gimple_asm_input_op_ptr): Likewise.
13896 (gimple_asm_output_op): Likewise.
13897 (gimple_asm_output_op_ptr): Likewise.
13898 (gimple_asm_set_output_op): Likewise.
13899 (gimple_asm_clobber_op): Likewise.
13900 (gimple_asm_set_clobber_op): Likewise.
13901 (gimple_asm_label_op): Likewise.
13902 (gimple_asm_set_label_op): Likewise.
13903 (gimple_asm_string): Likewise.
13904 (gimple_catch_types): Likewise.
13905 (gimple_catch_types_ptr): Likewise.
13906 (gimple_catch_handler_ptr): Likewise.
13907 (gimple_catch_set_types): Likewise.
13908 (gimple_catch_set_handler): Likewise.
13909 (gimple_eh_filter_types): Likewise.
13910 (gimple_eh_filter_types_ptr): Likewise.
13911 (gimple_eh_filter_failure_ptr): Likewise.
13912 (gimple_eh_filter_set_types): Likewise.
13913 (gimple_eh_filter_set_failure): Likewise.
13914 (gimple_eh_must_not_throw_fndecl): Likewise.
13915 (gimple_eh_must_not_throw_set_fndecl): Likewise.
13916 (gimple_eh_else_n_body_ptr): Likewise.
13917 (gimple_eh_else_e_body_ptr): Likewise.
13918 (gimple_eh_else_set_n_body): Likewise.
13919 (gimple_eh_else_set_e_body): Likewise.
13920 (gimple_try_eval_ptr): Likewise.
13921 (gimple_try_cleanup_ptr): Likewise.
13922 (gimple_try_set_eval): Likewise.
13923 (gimple_try_set_cleanup): Likewise.
13924 (gimple_wce_cleanup_ptr): Likewise.
13925 (gimple_wce_set_cleanup): Likewise.
13926 (gimple_phi_capacity): Likewise.
13927 (gimple_phi_num_args): Likewise.
13928 (gimple_phi_result): Likewise.
13929 (gimple_phi_result_ptr): Likewise.
13930 (gimple_phi_set_result): Likewise.
13931 (gimple_phi_arg): Likewise.
13932 (gimple_phi_set_arg): Likewise.
13933 (gimple_resx_region): Likewise.
13934 (gimple_resx_set_region): Likewise.
13935 (gimple_eh_dispatch_region): Likewise.
13936 (gimple_eh_dispatch_set_region): Likewise.
13937 (gimple_omp_critical_name): Likewise.
13938 (gimple_omp_critical_name_ptr): Likewise.
13939 (gimple_omp_critical_set_name): Likewise.
13940 (gimple_omp_for_clauses): Likewise.
13941 (gimple_omp_for_clauses_ptr): Likewise.
13942 (gimple_omp_for_set_clauses): Likewise.
13943 (gimple_omp_for_collapse): Likewise.
13944 (gimple_omp_for_index): Likewise.
13945 (gimple_omp_for_index_ptr): Likewise.
13946 (gimple_omp_for_set_index): Likewise.
13947 (gimple_omp_for_initial): Likewise.
13948 (gimple_omp_for_initial_ptr): Likewise.
13949 (gimple_omp_for_set_initial): Likewise.
13950 (gimple_omp_for_final): Likewise.
13951 (gimple_omp_for_final_ptr): Likewise.
13952 (gimple_omp_for_set_final): Likewise.
13953 (gimple_omp_for_incr): Likewise.
13954 (gimple_omp_for_incr_ptr): Likewise.
13955 (gimple_omp_for_set_incr): Likewise.
13956 (gimple_omp_for_pre_body_ptr): Likewise.
13957 (gimple_omp_for_set_pre_body): Likewise.
13958 (gimple_omp_parallel_clauses): Likewise.
13959 (gimple_omp_parallel_clauses_ptr): Likewise.
13960 (gimple_omp_parallel_set_clauses): Likewise.
13961 (gimple_omp_parallel_child_fn): Likewise.
13962 (gimple_omp_parallel_child_fn_ptr): Likewise.
13963 (gimple_omp_parallel_set_child_fn): Likewise.
13964 (gimple_omp_parallel_data_arg): Likewise.
13965 (gimple_omp_parallel_data_arg_ptr): Likewise.
13966 (gimple_omp_parallel_set_data_arg): Likewise.
13967 (gimple_omp_task_clauses): Likewise.
13968 (gimple_omp_task_clauses_ptr): Likewise.
13969 (gimple_omp_task_set_clauses): Likewise.
13970 (gimple_omp_task_child_fn): Likewise.
13971 (gimple_omp_task_child_fn_ptr): Likewise.
13972 (gimple_omp_task_set_child_fn): Likewise.
13973 (gimple_omp_task_data_arg): Likewise.
13974 (gimple_omp_task_data_arg_ptr): Likewise.
13975 (gimple_omp_task_set_data_arg): Likewise.
13976 (gimple_omp_taskreg_clauses): Likewise.
13977 (gimple_omp_taskreg_clauses_ptr): Likewise.
13978 (gimple_omp_taskreg_set_clauses): Likewise.
13979 (gimple_omp_taskreg_child_fn): Likewise.
13980 (gimple_omp_taskreg_child_fn_ptr): Likewise.
13981 (gimple_omp_taskreg_set_child_fn): Likewise.
13982 (gimple_omp_taskreg_data_arg): Likewise.
13983 (gimple_omp_taskreg_data_arg_ptr): Likewise.
13984 (gimple_omp_taskreg_set_data_arg): Likewise.
13985 (gimple_omp_task_copy_fn): Likewise.
13986 (gimple_omp_task_copy_fn_ptr): Likewise.
13987 (gimple_omp_task_set_copy_fn): Likewise.
13988 (gimple_omp_task_arg_size): Likewise.
13989 (gimple_omp_task_arg_size_ptr): Likewise.
13990 (gimple_omp_task_set_arg_size): Likewise.
13991 (gimple_omp_task_arg_align): Likewise.
13992 (gimple_omp_task_arg_align_ptr): Likewise.
13993 (gimple_omp_task_set_arg_align): Likewise.
13994 (gimple_omp_single_clauses): Likewise.
13995 (gimple_omp_single_clauses_ptr): Likewise.
13996 (gimple_omp_single_set_clauses): Likewise.
13997 (gimple_omp_target_clauses): Likewise.
13998 (gimple_omp_target_clauses_ptr): Likewise.
13999 (gimple_omp_target_set_clauses): Likewise.
14000 (gimple_omp_target_child_fn): Likewise.
14001 (gimple_omp_target_child_fn_ptr): Likewise.
14002 (gimple_omp_target_set_child_fn): Likewise.
14003 (gimple_omp_target_data_arg): Likewise.
14004 (gimple_omp_target_data_arg_ptr): Likewise.
14005 (gimple_omp_target_set_data_arg): Likewise.
14006 (gimple_omp_teams_clauses): Likewise.
14007 (gimple_omp_teams_clauses_ptr): Likewise.
14008 (gimple_omp_teams_set_clauses): Likewise.
14009 (gimple_omp_sections_clauses): Likewise.
14010 (gimple_omp_sections_clauses_ptr): Likewise.
14011 (gimple_omp_sections_set_clauses): Likewise.
14012 (gimple_omp_sections_control): Likewise.
14013 (gimple_omp_sections_control_ptr): Likewise.
14014 (gimple_omp_sections_set_control): Likewise.
14015 (gimple_omp_for_set_cond): Likewise.
14016 (gimple_omp_for_cond): Likewise.
14017 (gimple_omp_atomic_store_set_val): Likewise.
14018 (gimple_omp_atomic_store_val): Likewise.
14019 (gimple_omp_atomic_store_val_ptr): Likewise.
14020 (gimple_omp_atomic_load_set_lhs): Likewise.
14021 (gimple_omp_atomic_load_lhs): Likewise.
14022 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14023 (gimple_omp_atomic_load_set_rhs): Likewise.
14024 (gimple_omp_atomic_load_rhs): Likewise.
14025 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14026 (gimple_omp_continue_control_def): Likewise.
14027 (gimple_omp_continue_control_def_ptr): Likewise.
14028 (gimple_omp_continue_set_control_def): Likewise.
14029 (gimple_omp_continue_control_use): Likewise.
14030 (gimple_omp_continue_control_use_ptr): Likewise.
14031 (gimple_omp_continue_set_control_use): Likewise.
14032 (gimple_transaction_body_ptr): Likewise.
14033 (gimple_transaction_label): Likewise.
14034 (gimple_transaction_label_ptr): Likewise.
14035 (gimple_transaction_set_body): Likewise.
14036 (gimple_transaction_set_label): Likewise.
14038 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14039 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14040 * ipa-ref.c (ipa_record_reference): Likewise.
14041 * ipa-reference.c (analyze_function): Likewise.
14042 (ipa_reference_write_optimization_summary): Likewise.
14043 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14044 (address_taken_from_non_vtable_p): Likewise.
14045 (comdat_can_be_unshared_p_1): Likewise.
14046 * lto-cgraph.c (lto_output_ref): Likewise.
14047 (add_references): Likewise.
14048 (compute_ltrans_boundary): Likewise.
14049 (output_symtab): Likewise.
14050 (input_ref): Likewise.
14051 (input_cgraph_1): Likewise.
14052 (output_cgraph_opt_summary): Likewise.
14053 * lto-streamer-out.c (lto_output): Likewise.
14054 (output_symbol_p): Likewise.
14055 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14056 (lsei_start_function_in_partition): Likewise.
14057 (lsei_next_variable_in_partition): Likewise.
14058 (lsei_start_variable_in_partition): Likewise.
14059 * symtab.c (insert_to_assembler_name_hash): Likewise.
14060 (unlink_from_assembler_name_hash): Likewise.
14061 (symtab_unregister_node): Likewise.
14062 (symtab_remove_node): Likewise.
14063 (dump_symtab_node): Likewise.
14064 (verify_symtab_base): Likewise.
14065 (verify_symtab_node): Likewise.
14066 (symtab_make_decl_local): Likewise.
14067 (symtab_alias_ultimate_target): Likewise.
14068 (symtab_resolve_alias): Likewise.
14069 (symtab_get_symbol_partitioning_class): Likewise.
14070 * tree-phinodes.c (allocate_phi_node): Likewise.
14071 (reserve_phi_args_for_new_edge): Likewise.
14072 (remove_phi_args): Likewise.
14073 * varpool.c (varpool_node_for_asm): Likewise.
14074 (varpool_remove_unreferenced_decls): Likewise.
14076 2014-04-23 Jeff Law <law@redhat.com>
14078 PR tree-optimization/60902
14079 * tree-ssa-threadedge.c
14080 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14081 invalidate outputs from statements that do not produce useful
14082 outputs for threading.
14084 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14086 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14087 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14088 machine descriptions for Stack Smashing Protector.
14090 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14092 * aarch64.md (<optab>_rol<mode>3): New pattern.
14093 (<optab>_rolsi3_uxtw): Likewise.
14094 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14096 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14098 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14099 (arm_cortex_a12_tune): Likewise.
14101 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14103 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14105 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14107 * config/arm/arm.md (arm_rev16si2): New pattern.
14108 (arm_rev16si2_alt): Likewise.
14109 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14111 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14113 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14114 (rev16<mode>2_alt): Likewise.
14115 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14116 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14117 (aarch_rev16_shleft_mask_imm_p): Likewise.
14118 (aarch_rev16_p_1): Likewise.
14119 (aarch_rev16_p): Likewise.
14120 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14121 (aarch_rev16_shright_mask_imm_p): Likewise.
14122 (aarch_rev16_shleft_mask_imm_p): Likewise.
14124 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14126 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14127 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14129 (cortex_a53_extra_costs): Likewise.
14130 (cortex_a57_extra_costs): Likewise.
14131 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14132 (cortexa7_extra_costs): Likewise.
14133 (cortexa8_extra_costs): Likewise.
14134 (cortexa12_extra_costs): Likewise.
14135 (cortexa15_extra_costs): Likewise.
14136 (v7m_extra_costs): Likewise.
14137 (arm_new_rtx_costs): Handle BSWAP.
14139 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14141 * config/arm/arm.c (cortexa8_extra_costs): New table.
14142 (arm_cortex_a8_tune): New tuning struct.
14143 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14145 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14147 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14149 2014-04-23 Richard Biener <rguenther@suse.de>
14151 * Makefile.in (OBJS): Remove loop-unswitch.o.
14152 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14153 * passes.def (pass_rtl_unswitch): Likewise.
14154 * loop-init.c (gate_rtl_unswitch): Likewise.
14155 (rtl_unswitch): Likewise.
14156 (pass_data_rtl_unswitch): Likewise.
14157 (pass_rtl_unswitch): Likewise.
14158 (make_pass_rtl_unswitch): Likewise.
14159 * rtl.h (reversed_condition): Likewise.
14160 (compare_and_jump_seq): Likewise.
14161 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14163 * loop-unroll.c (compare_and_jump_seq): Likewise.
14165 2014-04-23 Richard Biener <rguenther@suse.de>
14167 PR tree-optimization/60903
14168 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14169 commented code block.
14170 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14171 loop flags to newly created BBs and edges.
14173 2014-04-23 Nick Clifton <nickc@redhat.com>
14175 * config/msp430/msp430.c (msp430_handle_option): Move function
14177 (msp430_option_override): Simplify mcu and mcpu option handling.
14178 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14179 support for -mhwmult command line option.
14180 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14181 -mhwmult command line option.
14182 (msp430_hwmult_enabled): Delete.
14183 (msp43o_output_labelref): Add support for -mhwmult command line option.
14184 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14185 (umulsidi3): Likewise.
14186 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14187 (mcpu, mlarge, msmall): Likewise.
14188 (mhwmult): New option.
14189 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14191 (msp430_is_f5_mcu): Remove prototype.
14192 (msp430_use_f5_series_hwmult): Add prototype.
14193 * config/msp430/msp430-opts.h: New file.
14194 * common/config/msp430: New directory.
14195 * common/config/msp430/msp430-common.c: New file.
14196 * config.gcc (msp430): Remove target_has_targetm_common.
14197 * doc/invoke.texi: Document -mhwmult command line option.
14199 2014-04-23 Nick Clifton <nickc@redhat.com>
14201 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14202 default-manifest.o if it can be found in the search path.
14203 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14205 2014-04-23 Terry Guo <terry.guo@arm.com>
14207 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14209 2014-04-23 Richard Biener <rguenther@suse.de>
14211 PR middle-end/60895
14212 * tree-inline.c (declare_return_variable): Use mark_addressable.
14214 2014-04-23 Richard Biener <rguenther@suse.de>
14216 PR middle-end/60891
14217 * loop-init.c (loop_optimizer_init): Make sure to apply
14218 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14220 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14223 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14225 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14226 if flag_sanitize_undefined_trap_on_error.
14227 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14228 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14229 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14230 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14231 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14232 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14233 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14234 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14235 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14236 * ubsan.c (ubsan_instrument_unreachable): Return
14237 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14238 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14239 if flag_sanitize_undefined_trap_on_error and
14240 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14241 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14242 instrument_bool_enum_load): Emit __builtin_trap () if
14243 flag_sanitize_undefined_trap_on_error and
14244 __builtin_handle_*_abort () if !flag_sanitize_recover.
14245 * doc/invoke.texi (-fsanitize-recover,
14246 -fsanitize-undefined-trap-on-error): Document.
14248 2014-04-22 Christian Bruel <christian.bruel@st.com>
14250 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14251 Force immediates to SImode.
14253 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14255 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14256 (lroundsfsi2): New.
14257 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14258 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14259 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14260 (nios2_fpu_insn): Add entry for round.
14261 (N2FPU_NO_ERRNO_P): Define.
14262 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14264 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14266 2014-04-22 Richard Henderson <rth@redhat.com>
14268 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14269 (add<GPI>3_compare0): Remove leading * from name.
14270 (add<GPI>3_carryin): Likewise.
14271 (sub<GPI>3_compare0): Likewise.
14272 (sub<GPI>3_carryin): Likewise.
14273 (<su_optab>mulditi3): New expander.
14274 (multi3): New expander.
14275 (madd<GPI>): Remove leading * from name.
14277 2014-04-22 Martin Jambor <mjambor@suse.cz>
14279 * cgraphclones.c (cgraph_function_versioning): Copy
14280 ipa_transforms_to_apply instead of asserting it is empty.
14282 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14285 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14286 on count_exp to get mode.
14288 2014-04-22 Andrew Pinski <apinski@cavium.com>
14290 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14291 Handle TLS for ILP32.
14292 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14293 (tlsie_small_<mode>): this and handle PTR.
14294 (tlsie_small_sidi): New pattern.
14295 (tlsle_small): Change to an expand to handle ILP32.
14296 (tlsle_small_<mode>): New pattern.
14297 (tlsdesc_small): Rename to ...
14298 (tlsdesc_small_<mode>): this and handle PTR.
14300 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14302 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14304 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14306 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14307 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14308 (aarch64_types_signed_poly_qualifiers): Likewise.
14309 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14310 (aarch64_types_poly_signed_qualifiers): Likewise.
14311 (TYPES_REINTERP_SS): Type macro added.
14312 (TYPES_REINTERP_SU): Likewise.
14313 (TYPES_REINTERP_SP): Likewise.
14314 (TYPES_REINTERP_US): Likewise.
14315 (TYPES_REINTERP_PS): Likewise.
14316 (aarch64_fold_builtin): New expression folding added.
14317 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14318 Declarations removed.
14319 (REINTERP_SS): Declarations added.
14320 (REINTERP_US): Likewise.
14321 (REINTERP_PS): Likewise.
14322 (REINTERP_SU): Likewise.
14323 (REINTERP_SP): Likewise.
14324 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14325 (vreinterpretq_p8_f64): Likewise.
14326 (vreinterpret_p16_f64): Likewise.
14327 (vreinterpretq_p16_f64): Likewise.
14328 (vreinterpret_f32_f64): Likewise.
14329 (vreinterpretq_f32_f64): Likewise.
14330 (vreinterpret_f64_f32): Likewise.
14331 (vreinterpret_f64_p8): Likewise.
14332 (vreinterpret_f64_p16): Likewise.
14333 (vreinterpret_f64_s8): Likewise.
14334 (vreinterpret_f64_s16): Likewise.
14335 (vreinterpret_f64_s32): Likewise.
14336 (vreinterpret_f64_s64): Likewise.
14337 (vreinterpret_f64_u8): Likewise.
14338 (vreinterpret_f64_u16): Likewise.
14339 (vreinterpret_f64_u32): Likewise.
14340 (vreinterpret_f64_u64): Likewise.
14341 (vreinterpretq_f64_f32): Likewise.
14342 (vreinterpretq_f64_p8): Likewise.
14343 (vreinterpretq_f64_p16): Likewise.
14344 (vreinterpretq_f64_s8): Likewise.
14345 (vreinterpretq_f64_s16): Likewise.
14346 (vreinterpretq_f64_s32): Likewise.
14347 (vreinterpretq_f64_s64): Likewise.
14348 (vreinterpretq_f64_u8): Likewise.
14349 (vreinterpretq_f64_u16): Likewise.
14350 (vreinterpretq_f64_u32): Likewise.
14351 (vreinterpretq_f64_u64): Likewise.
14352 (vreinterpret_s64_f64): Likewise.
14353 (vreinterpretq_s64_f64): Likewise.
14354 (vreinterpret_u64_f64): Likewise.
14355 (vreinterpretq_u64_f64): Likewise.
14356 (vreinterpret_s8_f64): Likewise.
14357 (vreinterpretq_s8_f64): Likewise.
14358 (vreinterpret_s16_f64): Likewise.
14359 (vreinterpretq_s16_f64): Likewise.
14360 (vreinterpret_s32_f64): Likewise.
14361 (vreinterpretq_s32_f64): Likewise.
14362 (vreinterpret_u8_f64): Likewise.
14363 (vreinterpretq_u8_f64): Likewise.
14364 (vreinterpret_u16_f64): Likewise.
14365 (vreinterpretq_u16_f64): Likewise.
14366 (vreinterpret_u32_f64): Likewise.
14367 (vreinterpretq_u32_f64): Likewise.
14369 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14371 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14372 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14373 (vreinterpret_p8_s8): Likewise.
14374 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14375 (vreinterpret_p8_s16): Likewise.
14376 (vreinterpret_p8_s32): Likewise.
14377 (vreinterpret_p8_s64): Likewise.
14378 (vreinterpret_p8_f32): Likewise.
14379 (vreinterpret_p8_u8): Likewise.
14380 (vreinterpret_p8_u16): Likewise.
14381 (vreinterpret_p8_u32): Likewise.
14382 (vreinterpret_p8_u64): Likewise.
14383 (vreinterpret_p8_p16): Likewise.
14384 (vreinterpretq_p8_s8): Likewise.
14385 (vreinterpretq_p8_s16): Likewise.
14386 (vreinterpretq_p8_s32): Likewise.
14387 (vreinterpretq_p8_s64): Likewise.
14388 (vreinterpretq_p8_f32): Likewise.
14389 (vreinterpretq_p8_u8): Likewise.
14390 (vreinterpretq_p8_u16): Likewise.
14391 (vreinterpretq_p8_u32): Likewise.
14392 (vreinterpretq_p8_u64): Likewise.
14393 (vreinterpretq_p8_p16): Likewise.
14394 (vreinterpret_p16_s8): Likewise.
14395 (vreinterpret_p16_s16): Likewise.
14396 (vreinterpret_p16_s32): Likewise.
14397 (vreinterpret_p16_s64): Likewise.
14398 (vreinterpret_p16_f32): Likewise.
14399 (vreinterpret_p16_u8): Likewise.
14400 (vreinterpret_p16_u16): Likewise.
14401 (vreinterpret_p16_u32): Likewise.
14402 (vreinterpret_p16_u64): Likewise.
14403 (vreinterpret_p16_p8): Likewise.
14404 (vreinterpretq_p16_s8): Likewise.
14405 (vreinterpretq_p16_s16): Likewise.
14406 (vreinterpretq_p16_s32): Likewise.
14407 (vreinterpretq_p16_s64): Likewise.
14408 (vreinterpretq_p16_f32): Likewise.
14409 (vreinterpretq_p16_u8): Likewise.
14410 (vreinterpretq_p16_u16): Likewise.
14411 (vreinterpretq_p16_u32): Likewise.
14412 (vreinterpretq_p16_u64): Likewise.
14413 (vreinterpretq_p16_p8): Likewise.
14414 (vreinterpret_f32_s8): Likewise.
14415 (vreinterpret_f32_s16): Likewise.
14416 (vreinterpret_f32_s32): Likewise.
14417 (vreinterpret_f32_s64): Likewise.
14418 (vreinterpret_f32_u8): Likewise.
14419 (vreinterpret_f32_u16): Likewise.
14420 (vreinterpret_f32_u32): Likewise.
14421 (vreinterpret_f32_u64): Likewise.
14422 (vreinterpret_f32_p8): Likewise.
14423 (vreinterpret_f32_p16): Likewise.
14424 (vreinterpretq_f32_s8): Likewise.
14425 (vreinterpretq_f32_s16): Likewise.
14426 (vreinterpretq_f32_s32): Likewise.
14427 (vreinterpretq_f32_s64): Likewise.
14428 (vreinterpretq_f32_u8): Likewise.
14429 (vreinterpretq_f32_u16): Likewise.
14430 (vreinterpretq_f32_u32): Likewise.
14431 (vreinterpretq_f32_u64): Likewise.
14432 (vreinterpretq_f32_p8): Likewise.
14433 (vreinterpretq_f32_p16): Likewise.
14434 (vreinterpret_s64_s8): Likewise.
14435 (vreinterpret_s64_s16): Likewise.
14436 (vreinterpret_s64_s32): Likewise.
14437 (vreinterpret_s64_f32): Likewise.
14438 (vreinterpret_s64_u8): Likewise.
14439 (vreinterpret_s64_u16): Likewise.
14440 (vreinterpret_s64_u32): Likewise.
14441 (vreinterpret_s64_u64): Likewise.
14442 (vreinterpret_s64_p8): Likewise.
14443 (vreinterpret_s64_p16): Likewise.
14444 (vreinterpretq_s64_s8): Likewise.
14445 (vreinterpretq_s64_s16): Likewise.
14446 (vreinterpretq_s64_s32): Likewise.
14447 (vreinterpretq_s64_f32): Likewise.
14448 (vreinterpretq_s64_u8): Likewise.
14449 (vreinterpretq_s64_u16): Likewise.
14450 (vreinterpretq_s64_u32): Likewise.
14451 (vreinterpretq_s64_u64): Likewise.
14452 (vreinterpretq_s64_p8): Likewise.
14453 (vreinterpretq_s64_p16): Likewise.
14454 (vreinterpret_u64_s8): Likewise.
14455 (vreinterpret_u64_s16): Likewise.
14456 (vreinterpret_u64_s32): Likewise.
14457 (vreinterpret_u64_s64): Likewise.
14458 (vreinterpret_u64_f32): Likewise.
14459 (vreinterpret_u64_u8): Likewise.
14460 (vreinterpret_u64_u16): Likewise.
14461 (vreinterpret_u64_u32): Likewise.
14462 (vreinterpret_u64_p8): Likewise.
14463 (vreinterpret_u64_p16): Likewise.
14464 (vreinterpretq_u64_s8): Likewise.
14465 (vreinterpretq_u64_s16): Likewise.
14466 (vreinterpretq_u64_s32): Likewise.
14467 (vreinterpretq_u64_s64): Likewise.
14468 (vreinterpretq_u64_f32): Likewise.
14469 (vreinterpretq_u64_u8): Likewise.
14470 (vreinterpretq_u64_u16): Likewise.
14471 (vreinterpretq_u64_u32): Likewise.
14472 (vreinterpretq_u64_p8): Likewise.
14473 (vreinterpretq_u64_p16): Likewise.
14474 (vreinterpret_s8_s16): Likewise.
14475 (vreinterpret_s8_s32): Likewise.
14476 (vreinterpret_s8_s64): Likewise.
14477 (vreinterpret_s8_f32): Likewise.
14478 (vreinterpret_s8_u8): Likewise.
14479 (vreinterpret_s8_u16): Likewise.
14480 (vreinterpret_s8_u32): Likewise.
14481 (vreinterpret_s8_u64): Likewise.
14482 (vreinterpret_s8_p8): Likewise.
14483 (vreinterpret_s8_p16): Likewise.
14484 (vreinterpretq_s8_s16): Likewise.
14485 (vreinterpretq_s8_s32): Likewise.
14486 (vreinterpretq_s8_s64): Likewise.
14487 (vreinterpretq_s8_f32): Likewise.
14488 (vreinterpretq_s8_u8): Likewise.
14489 (vreinterpretq_s8_u16): Likewise.
14490 (vreinterpretq_s8_u32): Likewise.
14491 (vreinterpretq_s8_u64): Likewise.
14492 (vreinterpretq_s8_p8): Likewise.
14493 (vreinterpretq_s8_p16): Likewise.
14494 (vreinterpret_s16_s8): Likewise.
14495 (vreinterpret_s16_s32): Likewise.
14496 (vreinterpret_s16_s64): Likewise.
14497 (vreinterpret_s16_f32): Likewise.
14498 (vreinterpret_s16_u8): Likewise.
14499 (vreinterpret_s16_u16): Likewise.
14500 (vreinterpret_s16_u32): Likewise.
14501 (vreinterpret_s16_u64): Likewise.
14502 (vreinterpret_s16_p8): Likewise.
14503 (vreinterpret_s16_p16): Likewise.
14504 (vreinterpretq_s16_s8): Likewise.
14505 (vreinterpretq_s16_s32): Likewise.
14506 (vreinterpretq_s16_s64): Likewise.
14507 (vreinterpretq_s16_f32): Likewise.
14508 (vreinterpretq_s16_u8): Likewise.
14509 (vreinterpretq_s16_u16): Likewise.
14510 (vreinterpretq_s16_u32): Likewise.
14511 (vreinterpretq_s16_u64): Likewise.
14512 (vreinterpretq_s16_p8): Likewise.
14513 (vreinterpretq_s16_p16): Likewise.
14514 (vreinterpret_s32_s8): Likewise.
14515 (vreinterpret_s32_s16): Likewise.
14516 (vreinterpret_s32_s64): Likewise.
14517 (vreinterpret_s32_f32): Likewise.
14518 (vreinterpret_s32_u8): Likewise.
14519 (vreinterpret_s32_u16): Likewise.
14520 (vreinterpret_s32_u32): Likewise.
14521 (vreinterpret_s32_u64): Likewise.
14522 (vreinterpret_s32_p8): Likewise.
14523 (vreinterpret_s32_p16): Likewise.
14524 (vreinterpretq_s32_s8): Likewise.
14525 (vreinterpretq_s32_s16): Likewise.
14526 (vreinterpretq_s32_s64): Likewise.
14527 (vreinterpretq_s32_f32): Likewise.
14528 (vreinterpretq_s32_u8): Likewise.
14529 (vreinterpretq_s32_u16): Likewise.
14530 (vreinterpretq_s32_u32): Likewise.
14531 (vreinterpretq_s32_u64): Likewise.
14532 (vreinterpretq_s32_p8): Likewise.
14533 (vreinterpretq_s32_p16): Likewise.
14534 (vreinterpret_u8_s8): Likewise.
14535 (vreinterpret_u8_s16): Likewise.
14536 (vreinterpret_u8_s32): Likewise.
14537 (vreinterpret_u8_s64): Likewise.
14538 (vreinterpret_u8_f32): Likewise.
14539 (vreinterpret_u8_u16): Likewise.
14540 (vreinterpret_u8_u32): Likewise.
14541 (vreinterpret_u8_u64): Likewise.
14542 (vreinterpret_u8_p8): Likewise.
14543 (vreinterpret_u8_p16): Likewise.
14544 (vreinterpretq_u8_s8): Likewise.
14545 (vreinterpretq_u8_s16): Likewise.
14546 (vreinterpretq_u8_s32): Likewise.
14547 (vreinterpretq_u8_s64): Likewise.
14548 (vreinterpretq_u8_f32): Likewise.
14549 (vreinterpretq_u8_u16): Likewise.
14550 (vreinterpretq_u8_u32): Likewise.
14551 (vreinterpretq_u8_u64): Likewise.
14552 (vreinterpretq_u8_p8): Likewise.
14553 (vreinterpretq_u8_p16): Likewise.
14554 (vreinterpret_u16_s8): Likewise.
14555 (vreinterpret_u16_s16): Likewise.
14556 (vreinterpret_u16_s32): Likewise.
14557 (vreinterpret_u16_s64): Likewise.
14558 (vreinterpret_u16_f32): Likewise.
14559 (vreinterpret_u16_u8): Likewise.
14560 (vreinterpret_u16_u32): Likewise.
14561 (vreinterpret_u16_u64): Likewise.
14562 (vreinterpret_u16_p8): Likewise.
14563 (vreinterpret_u16_p16): Likewise.
14564 (vreinterpretq_u16_s8): Likewise.
14565 (vreinterpretq_u16_s16): Likewise.
14566 (vreinterpretq_u16_s32): Likewise.
14567 (vreinterpretq_u16_s64): Likewise.
14568 (vreinterpretq_u16_f32): Likewise.
14569 (vreinterpretq_u16_u8): Likewise.
14570 (vreinterpretq_u16_u32): Likewise.
14571 (vreinterpretq_u16_u64): Likewise.
14572 (vreinterpretq_u16_p8): Likewise.
14573 (vreinterpretq_u16_p16): Likewise.
14574 (vreinterpret_u32_s8): Likewise.
14575 (vreinterpret_u32_s16): Likewise.
14576 (vreinterpret_u32_s32): Likewise.
14577 (vreinterpret_u32_s64): Likewise.
14578 (vreinterpret_u32_f32): Likewise.
14579 (vreinterpret_u32_u8): Likewise.
14580 (vreinterpret_u32_u16): Likewise.
14581 (vreinterpret_u32_u64): Likewise.
14582 (vreinterpret_u32_p8): Likewise.
14583 (vreinterpret_u32_p16): Likewise.
14584 (vreinterpretq_u32_s8): Likewise.
14585 (vreinterpretq_u32_s16): Likewise.
14586 (vreinterpretq_u32_s32): Likewise.
14587 (vreinterpretq_u32_s64): Likewise.
14588 (vreinterpretq_u32_f32): Likewise.
14589 (vreinterpretq_u32_u8): Likewise.
14590 (vreinterpretq_u32_u16): Likewise.
14591 (vreinterpretq_u32_u64): Likewise.
14592 (vreinterpretq_u32_p8): Likewise.
14593 (vreinterpretq_u32_p16): Likewise.
14595 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14597 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
14599 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
14601 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
14602 (vqnegd_s64): Likewise.
14603 (vqabs_s64): Likewise.
14604 (vqabsd_s64): Likewise.
14606 2014-04-22 Richard Henderson <rth@redhat.com>
14608 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
14609 computation to the top of the loop.
14611 2014-04-22 Renlin <renlin.li@arm.com>
14612 Jiong Wang <jiong.wang@arm.com>
14614 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
14615 * config/aarch64/aarch64.c (aarch64_layout_frame)
14616 (aarch64_initial_elimination_offset): Likewise.
14618 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
14620 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
14623 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
14625 * machmode.h (bitwise_mode_for_mode): Declare.
14626 * stor-layout.h (bitwise_type_for_mode): Likewise.
14627 * stor-layout.c (bitwise_mode_for_mode): New function.
14628 (bitwise_type_for_mode): Likewise.
14629 * builtins.c (fold_builtin_memory_op): Use it instead of
14630 int_mode_for_mode and build_nonstandard_integer_type.
14632 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14634 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
14635 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
14636 (*-*-solaris2*): Simplify.
14637 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
14638 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
14639 *-*-solaris2.9* handling.
14641 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
14643 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
14644 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
14645 handling, simplify.
14646 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
14647 * configure: Regenerate.
14649 * config/i386/sol2-9.h: Remove.
14651 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
14652 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
14653 Remove Solaris 9 references.
14655 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
14657 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
14658 (floatuns<GPI:mode><GPF:mode>2): Remove.
14659 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
14660 and floatuns conversions.
14661 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
14662 and floatuns conversions.
14663 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
14664 (w1,w2): New mode attributes for inequal width conversions.
14666 2014-04-22 Renlin Li <Renlin.Li@arm.com>
14668 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
14669 the output asm format.
14671 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
14673 * config/aarch64/aarch64-simd.md
14674 (aarch64_cm<optab>di): Always split.
14675 (*aarch64_cm<optab>di): New.
14676 (aarch64_cmtstdi): Always split.
14677 (*aarch64_cmtstdi): New.
14679 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14681 PR tree-optimization/60823
14682 * omp-low.c (ipa_simd_modify_function_body): Go through
14683 all SSA_NAMEs and for those refering to vector arguments
14684 which are going to be replaced adjust SSA_NAME_VAR and,
14685 if it is a default definition, change it into a non-default
14686 definition assigned at the beginning of function from new_decl.
14687 (ipa_simd_modify_stmt_ops): Rewritten.
14688 * tree-dfa.c (set_ssa_default_def): When removing default def,
14689 check for NULL loc instead of NULL *loc.
14691 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14693 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
14694 restrictions on core registers for DImode values in Thumb2.
14696 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14698 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
14699 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
14701 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14703 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
14704 (*iordi_notzesidi_di): Likewise.
14705 (*iordi_notsesidi_di): Likewise.
14707 2014-04-22 Ian Bolton <ian.bolton@arm.com>
14709 * config/arm/arm-protos.h (tune_params): New struct members.
14710 * config/arm/arm.c: Initialise tune_params per processor.
14711 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
14712 for speed, based on new tune_params.
14714 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14716 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
14717 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
14718 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
14719 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
14720 * config/aarch64/arm_neon.h (vrnd_f64): Added.
14721 (vrnda_f64): Likewise.
14722 (vrndi_f64): Likewise.
14723 (vrndm_f64): Likewise.
14724 (vrndn_f64): Likewise.
14725 (vrndp_f64): Likewise.
14726 (vrndx_f64): Likewise.
14728 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14730 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
14731 GET_MODE_SIZE argument is enum machine_mode.
14733 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14736 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
14737 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
14739 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
14741 PR middle-end/60281
14742 * asan.c (asan_emit_stack_protection): Force the base to align to
14743 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
14744 appropriate bits if STRICT_ALIGNMENT.
14745 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
14747 (expand_used_vars): Leave a space in the stack frame for alignment
14748 if STRICT_ALIGNMENT.
14750 2014-04-21 David Malcolm <dmalcolm@redhat.com>
14752 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
14754 (gimple_store_p): Likewise.
14755 (gimple_assign_load_p): Likewise.
14756 (gimple_assign_cast_p): Likewise.
14757 (gimple_clobber_p): Likewise.
14759 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
14760 rather than a gimple.
14761 (gimple_assign_cast_p): Likewise.
14763 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14766 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
14767 If mode is DDmode and TARGET_E500_DOUBLE allow move.
14769 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
14770 more debug information for E500 if -mdebug=reg.
14772 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
14775 * config/i386/i386.c (ix86_expand_builtin)
14776 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
14777 register for target RTX.
14778 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
14780 2014-04-18 Cong Hou <congh@google.com>
14782 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
14783 the widen-mult pattern by handling two operands with different sizes,
14784 and operands whose size is smaller than half of the result type.
14786 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
14788 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
14789 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
14790 (do_estimate_edge_time): Compute it.
14791 * ipa-inline.c (want_inline_small_function_p): Bypass
14792 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
14794 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
14796 * ipa-inline.c (spec_rem): New static variable.
14797 (dump_overall_stats): New function.
14798 (dump_inline_stats): New function.
14800 2014-04-18 Richard Henderson <rth@redhat.com>
14802 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
14803 to GET_MODE_SIZE, not a reg_class_t.
14805 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14807 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
14808 (vsx_xxmrglw_<mode>): Likewise.
14810 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
14813 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
14814 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
14815 (rs6000_init_hard_regno_mode_ok): Likewise.
14817 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
14819 * ipa-inline.c (inline_small_functions): Account only non-cold
14821 * doc/invoke.texi (inline-unit-growth): Update documentation.
14823 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
14825 * config/rs6000/rs6000.md (addti3, subti3): New.
14827 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
14830 * config/i386/i386.c (ix86_expand_clear): Remove outdated
14831 comment. Check optimize_insn_for_size_p instead of
14832 optimize_insn_for_speed_p.
14834 2014-04-17 Martin Jambor <mjambor@suse.cz>
14836 * gimple-iterator.c (gsi_start_edge): New function.
14837 * gimple-iterator.h (gsi_start_edge): Declare.
14838 * tree-sra.c (single_non_eh_succ): New function.
14839 (disqualify_ops_if_throwing_stmt): Renamed to
14840 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
14841 having one non-EH successor BB.
14842 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
14843 generate loads into replacements.
14844 (sra_modify_assign): Likewise and and also use the simple path for
14846 (sra_modify_function_body): Commit statements on edges.
14848 2014-04-17 Richard Biener <rguenther@suse.de>
14850 PR middle-end/60849
14851 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
14852 comparison results and add clarifying comment.
14854 2014-04-17 Jakub Jelinek <jakub@redhat.com>
14856 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
14857 (blank_mode): Initialize it.
14858 (emit_mode_size_inline, emit_mode_nunits_inline,
14859 emit_mode_inner_inline): New functions.
14860 (emit_insn_modes_h): Call them and surround their output with
14861 #if GCC_VERSION >= 4001 ... #endif.
14862 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
14863 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
14864 mode_* arrays if the argument is __builtin_constant_p.
14865 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
14866 is enum machine_mode.
14868 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
14870 * passes.c (opt_pass::execute): Adjust.
14871 (pass_manager::execute_pass_mode_switching): Likewise.
14872 (early_local_passes::execute): Likewise.
14873 (execute_one_pass): Pass cfun to the pass's execute method.
14874 * tree-pass.h (opt_pass::execute): Add function * argument.
14875 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
14876 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
14877 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
14878 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
14879 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
14880 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
14881 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
14882 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
14883 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
14884 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
14885 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
14886 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
14887 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
14888 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
14889 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
14890 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
14891 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
14892 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
14893 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
14894 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14895 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14896 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
14897 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
14898 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14899 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14900 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
14901 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
14902 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
14903 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
14906 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
14908 * passes.c (opt_pass::gate): Take function * argument.
14909 (gate_all_early_local_passes): Merge into
14910 (early_local_passes::gate): this.
14911 (gate_all_early_optimizations): Merge into
14912 (all_early_optimizations::gate): this.
14913 (gate_all_optimizations): Mege into
14914 (all_optimizations::gate): this.
14915 (gate_all_optimizations_g): Merge into
14916 (all_optimizations_g::gate): this.
14917 (gate_rest_of_compilation): Mege into
14918 (rest_of_compilation::gate): this.
14919 (gate_postreload): Merge into
14920 (postreload::gate): this.
14921 (dump_one_pass): Pass cfun to the pass's gate method.
14922 (execute_ipa_summary_passes): Likewise.
14923 (execute_one_pass): Likewise.
14924 (ipa_write_summaries_2): Likewise.
14925 (ipa_write_optimization_summaries_1): Likewise.
14926 (ipa_read_summaries_1): Likewise.
14927 (ipa_read_optimization_summaries_1): Likewise.
14928 (execute_ipa_stmt_fixups): Likewise.
14929 * tree-pass.h (opt_pass::gate): Add function * argument.
14930 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
14931 combine-stack-adj.c, combine.c, compare-elim.c,
14932 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
14933 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
14934 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
14935 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
14936 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
14937 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
14938 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
14939 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
14940 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
14941 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
14942 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
14943 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
14944 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
14945 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
14946 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14947 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14948 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14949 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
14950 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
14951 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14952 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14953 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
14954 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
14955 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
14956 var-tracking.c, vtable-verify.c, web.c: Adjust.
14958 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
14960 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
14961 * configure: Regenerate.
14963 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
14965 * passes.c (dump_one_pass): don't check pass->has_gate.
14966 (execute_ipa_summary_passes): Likewise.
14967 (execute_one_pass): Likewise.
14968 (ipa_write_summaries_2): Likewise.
14969 (ipa_write_optimization_summaries_1): Likewise.
14970 (ipa_read_optimization_summaries_1): Likewise.
14971 (execute_ipa_stmt_fixups): Likewise.
14972 * tree-pass.h (pass_data::has_gate): Remove.
14973 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
14974 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
14975 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
14976 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
14977 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
14978 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
14979 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
14980 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
14981 gimple-low.c, gimple-ssa-isolate-paths.c,
14982 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
14983 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
14984 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
14985 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
14986 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
14987 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
14988 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
14989 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
14990 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
14991 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
14992 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
14993 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14994 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14995 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14996 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
14997 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
14998 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14999 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15000 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15001 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15002 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15003 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15006 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15008 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15010 * passes.c (pass_manager::register_dump_files_1): Merge into
15011 (pass_manager::register_dump_files): this, and remove its handling of
15012 properties since the pass always has the properties anyway.
15013 (pass_manager::pass_manager): Adjust.
15015 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15017 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15018 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15019 dealing with properties.
15020 (pass_manager::register_dump_files): Adjust.
15022 2014-03-20 Mark Wielaard <mjw@redhat.com>
15024 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15025 then represent the bound as normal constant value.
15027 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15030 Forward port from 4.8 branch
15031 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15033 * config/i386/bmiintrin.h (_blsi_u32): New.
15034 (_blsi_u64): Ditto.
15035 (_blsr_u32): Ditto.
15036 (_blsr_u64): Ditto.
15037 (_blsmsk_u32): Ditto.
15038 (_blsmsk_u64): Ditto.
15039 (_tzcnt_u32): Ditto.
15040 (_tzcnt_u64): Ditto.
15042 2014-04-17 Kito Cheng <kito@0xlab.org>
15044 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15046 2014-04-17 Richard Biener <rguenther@suse.de>
15048 PR middle-end/60849
15049 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15050 boolean results for comparisons.
15052 2014-04-17 Richard Biener <rguenther@suse.de>
15054 PR tree-optimization/60836
15055 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15056 initial PHI args to be gimple values.
15058 2014-04-17 Richard Biener <rguenther@suse.de>
15060 PR tree-optimization/60841
15061 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15062 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15063 of stmts to SLP build.
15064 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15065 (vect_analyze_slp): Likewise.
15066 (vect_analyze_slp_instance): Likewise.
15067 (vect_build_slp_tree): Limit overall SLP tree growth.
15068 * tree-vectorizer.h (vect_analyze_data_refs,
15069 vect_analyze_slp): Adjust prototypes.
15071 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15073 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15076 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15078 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15079 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15080 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15081 for TARGET_SLOW_PSHUFB
15083 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15085 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15086 * config/i386/i386.c (intel_cost): Ditto.
15088 2014-04-17 Joey Ye <joey.ye@arm.com>
15090 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15092 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15094 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15095 with -fuse-profile.
15097 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15099 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15100 (type_all_derivations_known_p): New predicate.
15101 (type_all_ctors_visible_p): New predicate.
15102 (type_possibly_instantiated_p): New predicate.
15103 (get_odr_type): Compute all_derivations_known.
15104 (dump_odr_type): Dump the flag.
15105 (maybe_record_type): Cleanup.
15106 (record_target_from_binfo): Add bases_to_consider array;
15107 record bases for types w/o instances and skip CXX destructor.
15108 (possible_polymorphic_call_targets_1): Add bases_to_consider
15109 and consider_construction parameters; check if type may have instance.
15110 (get_polymorphic_call_info): Set maybe_in_construction to true
15111 when we know nothing.
15112 (record_targets_from_bases): Skip CXX destructors; they are
15113 never called for types in construction.
15114 (possible_polymorphic_call_targets): Do not record target when
15115 type may not have instance.
15117 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15120 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15121 external aliases alive, too.
15123 2014-04-16 Andrew Pinski <apinski@cavium.com>
15125 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15128 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15130 * final.c (compute_alignments): Do not apply loop alignment to a block
15131 falling through to the exit.
15133 2014-04-16 Catherine Moore <clm@codesourcery.com>
15135 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15136 Adjust constraints for microMIPS store patterns.
15138 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15140 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15142 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15144 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15145 (append_use): Run at -O0.
15146 (append_vdef): Likewise.
15147 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15148 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15150 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15152 PR tree-optimization/60844
15153 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15154 (propagate_op_to_single_use, remove_visited_stmt_chain,
15155 linearize_expr, repropagate_negates, reassociate_bb): Use it
15156 instead of gsi_remove.
15158 2014-04-16 Martin Jambor <mjambor@suse.cz>
15160 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15161 ipa_transforms_to_apply.
15162 (cgraph_function_versioning): Assert that old_node has empty
15163 ipa_transforms_to_apply.
15164 * trans-mem.c (ipa_tm_create_version): Likewise.
15165 * tree-inline.c (tree_function_versioning): Do not duplicate
15166 ipa_transforms_to_apply.
15168 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15171 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15173 Pass necessary as flags on 64-bit Solaris/x86.
15174 Use lowercase relocs for x86_64-*-*.
15175 * configure: Regenerate.
15177 2014-04-15 Jan Hubicka <jh@suse.cz>
15179 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15180 (maybe_record_node, likely_target_p): Use it.
15182 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15185 Revert following patch
15187 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15190 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15191 software floating point or no floating point registers, do not
15192 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15193 in GPRs that occurs after we tested for GPRs that would never be
15196 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15197 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15198 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15199 specifically allow DDmode, since that does not use the SPE SIMD
15202 2014-03-21 Mark Wielaard <mjw@redhat.com>
15204 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15205 as unsigned or int depending on type and value used.
15207 2014-04-15 Richard Biener <rguenther@suse.de>
15209 PR rtl-optimization/56965
15210 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15211 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15213 * alias.c (true_dependence_1): Do not call
15214 nonoverlapping_component_refs_p.
15215 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15216 nonoverlapping_component_refs_p.
15217 (indirect_refs_may_alias_p): Likewise.
15219 2014-04-15 Teresa Johnson <tejohnson@google.com>
15221 * cfg.c (dump_bb_info): Fix flags check.
15222 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15224 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15226 PR rtl-optimization/60663
15227 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15230 2014-04-15 Richard Biener <rguenther@suse.de>
15232 * lto-streamer.h (LTO_major_version): Bump to 4.
15234 2014-04-15 Richard Biener <rguenther@suse.de>
15236 * common.opt (lto_partition_model): New enum.
15237 (flto-partition=): Merge separate options with a single with argument,
15238 add -flto-partition=one support.
15239 * flag-types.h (enum lto_partition_model): Declare.
15240 * opts.c (finish_options): Remove duplicate -flto-partition=
15242 * lto-wrapper.c (run_gcc): Adjust.
15244 2014-04-15 Richard Biener <rguenther@suse.de>
15246 * alias.c (ncr_compar): New function.
15247 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15249 2014-04-15 Richard Biener <rguenther@suse.de>
15251 * alias.c (record_component_aliases): Do not walk BINFOs.
15253 2014-04-15 Richard Biener <rguenther@suse.de>
15255 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15256 Add struct function argument and adjust.
15257 (find_func_aliases_for_call): Likewise.
15258 (find_func_aliases): Likewise.
15259 (find_func_clobbers): Likewise.
15260 (intra_create_variable_infos): Likewise.
15261 (compute_points_to_sets): Likewise.
15262 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15264 2014-04-15 Richard Biener <rguenther@suse.de>
15266 * tree.c (iterative_hash_expr): Use enum tree_code_class
15267 to store TREE_CODE_CLASS.
15268 (tree_block): Likewise.
15269 (tree_set_block): Likewise.
15270 * tree.h (fold_build_pointer_plus_loc): Use
15271 convert_to_ptrofftype_loc.
15273 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15276 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15279 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15281 * cfgloop.h (struct loop): Move force_vectorize down.
15282 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15283 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15284 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15285 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15286 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15287 * tree-core.h (enum annot_expr_kind): Add new kind values.
15288 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15289 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15291 * tree.def (ANNOTATE_EXPR): Tweak comment.
15293 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15295 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15298 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15300 * tree.h (TYPE_IDENTIFIER): Declare.
15301 * tree.c (subrange_type_for_debug_p): Use it.
15302 * godump.c (go_format_type): Likewise.
15303 * dwarf2out.c (is_cxx_auto, modified_type_die,
15304 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15305 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15307 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15310 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15312 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15314 * config/i386/i386.c (examine_argument): Return bool. Return true if
15315 parameter should be passed in memory.
15316 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15317 (construct_container): Update calls to examine_argument.
15318 (function_arg_advance_64): Ditto.
15319 (return_in_memory_32): Merge with ix86_return_in_memory.
15320 (return_in_memory_64): Ditto.
15321 (return_in_memory_ms_64): Ditto.
15323 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15325 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15326 * coverage.c (coverage_compute_profile_id): Handle externally visible
15329 2014-04-14 Martin Jambor <mjambor@suse.cz>
15331 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15332 DECL_DISREGARD_INLINE_LIMITS functions.
15334 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15337 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15339 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15342 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15343 optimize_insn_for_speed_p instead of
15344 optimize_function_for_speed_p.
15346 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15348 * doc/invoke.texi (free): Document AArch64.
15350 2014-04-14 Richard Biener <rguenther@suse.de>
15352 PR tree-optimization/60042
15353 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15354 (insert_into_preds_of_block): Do not prevent PHI insertion
15355 for REFERENCE exprs here ...
15356 (eliminate_dom_walker::before_dom_children): ... but prevent
15357 their use here under similar conditions when applied to the
15358 IL after PRE optimizations.
15360 2014-04-14 Richard Biener <rguenther@suse.de>
15362 * passes.def: Move early points-to after early SRA.
15364 2014-04-14 Richard Biener <rguenther@suse.de>
15366 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15367 check for which sign-changes we allow when forwarding
15368 a converted value into a switch.
15370 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15372 * stor-layout.c (place_field): Finalize non-constant offset for the
15375 2014-04-14 Richard Biener <rguenther@suse.de>
15377 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15379 (expand_switch_using_bit_tests_p): Likewise.
15380 (process_switch): Compute and pass on speed_p based on the
15382 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15383 optimize_bb_for_speed_p.
15385 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15387 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15388 * function.h (struct function): Rename has_force_vect_loops into
15389 has_force_vectorize_loops.
15390 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15391 (input_struct_function_base): Likewise.
15392 * lto-streamer-out.c (output_cfg): Likewise.
15393 (output_struct_function_base): Likewise.
15394 * omp-low.c (expand_omp_simd): Likewise.
15395 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15396 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15397 (version_loop_for_if_conversion): Likewise.
15398 (tree_if_conversion): Likewise.
15399 (main_tree_if_conversion): Likewise.
15400 (gate_tree_if_conversion): Likewise.
15401 * tree-inline.c (copy_loops): Likewise.
15402 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15403 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15404 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15405 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15406 * tree-vectorizer.c (vectorize_loops): Likewise.
15407 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15409 2014-04-14 Richard Biener <rguenther@suse.de>
15412 * lto-streamer-out.c (wrap_refs): New function.
15413 (lto_output): Wrap symbol references in global initializes in
15414 type-preserving MEM_REFs.
15416 2014-04-14 Christian Bruel <christian.bruel@st.com>
15418 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15420 2014-04-14 Christian Bruel <christian.bruel@st.com>
15422 * config/sh/sh.md (setmemqi): New expand pattern.
15423 * config/sh/sh.h (CLEAR_RATIO): Define.
15424 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15425 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15427 2014-04-14 Richard Biener <rguenther@suse.de>
15429 PR middle-end/55022
15430 * fold-const.c (negate_expr_p): Don't negate directional rounding
15432 (fold_negate_expr): Likewise.
15434 2014-04-14 Richard Biener <rguenther@suse.de>
15436 PR tree-optimization/59817
15437 PR tree-optimization/60453
15438 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15439 recursion to catch all CHRECs in the scalar evolution and restrict
15440 the predicate for the remains appropriately.
15442 2014-04-12 Catherine Moore <clm@codesourcery.com>
15444 * config/mips/constraints.md: Add new register constraint "kb".
15445 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15446 (*movhi_internal): Likewise.
15447 (*movqi_internal): Likewise.
15448 * config/mips/mips.h (M16_STORE_REGS): New register class.
15449 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15450 (REG_CLASS_CONTENTS): Likewise.
15451 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15453 2014-04-11 Tobias Burnus <burnus@net-b.de>
15456 * doc/invoke.texi (-Wformat-signedness): Document it.
15457 (Wformat=2): Mention that this enables -Wformat-signedness.
15459 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15461 * common/config/epiphany/epiphany-common.c
15462 (epiphany_option_optimization_table): Enable section anchors by
15463 default at -O1 or higher.
15464 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15465 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15466 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15467 carries no extra cost.
15468 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15469 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15470 * config/epiphany/predicates.md (memclob_operand): New predicate.
15471 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15472 Use memclob_operand predicate and X constraint for operand 3.
15474 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15476 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15477 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15480 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15482 PR rtl-optimization/60651
15483 * mode-switching.c (optimize_mode_switching): Make sure to emit
15484 sets of a lower numbered entity before sets of a higher numbered
15485 entity to a mode of the same or lower priority.
15486 When creating a seginfo for a basic block that starts with a code
15487 label, move the insertion point past the code label.
15488 (new_seginfo): Document and enforce requirement that
15489 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15490 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15491 * doc/tm.texi: Regenerate.
15493 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15496 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15498 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15500 * BASE-VER: Set to 4.10.0.
15502 2014-04-11 Tobias Burnus <burnus@net-b.de>
15505 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15506 * doc/gcc.texi (Service): Update description in the @menu
15507 * doc/invoke.texi (Option Summary): Remove misplaced and
15510 2014-04-11 Steve Ellcey <sellcey@mips.com>
15511 Jakub Jelinek <jakub@redhat.com>
15513 PR middle-end/60556
15514 * expr.c (convert_move): Use emit_store_flag_force instead of
15515 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15518 2014-04-11 Richard Biener <rguenther@suse.de>
15520 PR middle-end/60797
15521 * varasm.c (assemble_alias): Avoid endless error reporting
15522 recursion by setting TREE_ASM_WRITTEN.
15524 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15526 * config/s390/s390.md: Add a splitter for NOT rtx.
15528 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15530 PR rtl-optimization/60663
15531 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15533 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15534 Jakub Jelinek <jakub@redhat.com>
15537 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15538 flag from decl_node to node.
15540 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15543 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15544 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15545 ameliorating the cases where it can be.
15547 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15550 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15552 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15553 (loadsync_<mode>): Change mode.
15554 (load_quadpti, store_quadpti): New.
15555 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15556 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15557 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15559 2014-04-09 Cong Hou <congh@google.com>
15562 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
15565 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15567 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
15568 instead of vnor to exploit possible fusion opportunity in the
15570 (altivec_expand_vec_perm_const_le): Likewise.
15572 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15574 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15575 (loadsync_<mode>): Change mode.
15576 (load_quadpti, store_quadpti): New.
15577 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15578 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15580 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
15583 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
15584 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
15585 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
15587 2014-04-08 Richard Biener <rguenther@suse.de>
15589 PR middle-end/60706
15590 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
15591 a 64bit widest int print double-int similar to on HWI64 hosts.
15593 2014-04-08 Richard Biener <rguenther@suse.de>
15595 PR tree-optimization/60785
15596 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
15597 default defs properly.
15599 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
15601 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
15602 (Weffc++): Likewise.
15604 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
15606 * ipa-devirt.c (maybe_record_node): When node is not recorded,
15607 set completep to false rather than true.
15609 2014-04-07 Douglas B Rupp <rupp@adacore.com>
15612 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
15613 ARM_TARGET2_DWARF_FORMAT.
15615 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
15618 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
15619 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
15622 2014-04-07 Richard Biener <rguenther@suse.de>
15624 PR tree-optimization/60766
15625 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
15626 (may_eliminate_iv): Convert cand_value_at result to desired type.
15628 2014-04-07 Jason Merrill <jason@redhat.com>
15631 * common.opt (-fno-gnu-unique): Add.
15632 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
15634 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15636 * haifa-sched.c: Fix outdated function reference and minor
15637 grammar errors in introductory comment.
15639 2014-04-07 Richard Biener <rguenther@suse.de>
15641 PR middle-end/60750
15642 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
15643 for noreturn calls.
15644 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
15646 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
15649 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
15650 size accounting for thunks.
15651 (pa_asm_output_mi_thunk): Use final_start_function() and
15652 final_end_function() to output function start and end directives.
15654 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15656 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
15657 device specific ISA/ feature information. Remove short_sp and
15658 errata_skip ds. Add avr_device_specific_features enum to have device
15660 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
15661 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
15662 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
15663 updated device specific info.
15664 * config/avr/avr-mcus.def: Merge device specific details to
15665 dev_attribute field.
15666 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
15668 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
15669 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
15670 assembler if RMW isa supported by current device.
15671 * config/avr/genmultilib.awk: Update as device info structure changed.
15672 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
15674 2014-04-04 Cong Hou <congh@google.com>
15676 PR tree-optimization/60656
15677 * tree-vect-stmts.c (supportable_widening_operation):
15678 Fix a bug that elements in a vector with vect_used_by_reduction
15679 property are incorrectly reordered when the operation on it is not
15680 consistant with the one in reduction operation.
15682 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
15684 PR rtl-optimization/60155
15685 * gcse.c (record_set_data): New function.
15686 (single_set_gcse): New function.
15687 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
15688 (hoist_code): Likewise.
15689 (get_pressure_class_and_nregs): Likewise.
15691 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
15693 * explow.c (probe_stack_range): Emit a final optimization blockage.
15695 2014-04-04 Anthony Green <green@moxielogic.com>
15697 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
15700 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
15703 * lto-cgraph.c (input_overwrite_node): Check that partitioning
15704 flags are set only during streaming.
15705 * ipa.c (process_references, walk_polymorphic_call_targets,
15706 symtab_remove_unreachable_nodes): Drop bodies of always inline
15707 after early inlining.
15708 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
15710 2014-04-04 Jakub Jelinek <jakub@redhat.com>
15711 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15714 * dwarf2out.c (const_ok_for_output_1): Reject expressions
15717 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15720 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
15722 (cortex_a53_fdivd): Likewise.
15724 2014-04-04 Martin Jambor <mjambor@suse.cz>
15727 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
15728 Adjust all callers.
15729 * cgraph.c (clone_of_p): Also return true if thunks match.
15730 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
15731 cgraph_function_or_thunk_node and an obsolete comment.
15732 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
15734 (build_function_decl_skip_args): Likewise.
15735 (set_new_clone_decl_and_node_flags): New function.
15736 (duplicate_thunk_for_node): Likewise.
15737 (redirect_edge_duplicating_thunks): Likewise.
15738 (cgraph_clone_node): New parameter args_to_skip, pass it to
15739 redirect_edge_duplicating_thunks which is called instead of
15740 cgraph_redirect_edge_callee.
15741 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
15742 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
15744 2014-04-04 Jeff Law <law@redhat.com>
15747 * config/arm/predicates.md (const_int_I_operand): New predicate.
15748 (const_int_M_operand): Similarly.
15749 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
15751 (insv_t2, extv_reg, extzv_t2): Likewise.
15752 (load_multiple_with_writeback): Similarly for const_int_I_operand.
15753 (pop_multiple_with_writeback_and_return): Likewise.
15754 (vfp_pop_multiple_with_writeback): Likewise
15756 2014-04-04 Richard Biener <rguenther@suse.de>
15759 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
15760 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
15762 * gimplify.h (gimple_add_tmp_var_fn): Declare.
15763 * gimplify.c (gimple_add_tmp_var_fn): New function.
15764 * gimple-expr.h (create_tmp_reg_fn): Declare.
15765 * gimple-expr.c (create_tmp_reg_fn): New function.
15766 * gimple-low.c (record_vars_into): Don't change cfun.
15767 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
15768 code generation without cfun.
15770 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
15773 * Makefile.in (install-driver): Fix shell scripting.
15775 2014-04-03 Cong Hou <congh@google.com>
15777 PR tree-optimization/60505
15778 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
15779 threshold of number of iterations below which no vectorization
15781 * tree-vect-loop.c (new_loop_vec_info):
15782 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
15783 * tree-vect-loop.c (vect_analyze_loop_operations):
15784 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
15785 * tree-vect-loop.c (vect_transform_loop):
15786 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
15787 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
15788 of iterations of the loop and see if we should build the epilogue.
15790 2014-04-03 Richard Biener <rguenther@suse.de>
15792 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
15793 (streamer_tree_cache_create): Adjust.
15794 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
15795 to allow optional nodes array.
15796 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
15797 (streamer_tree_cache_append): Likewise.
15798 (streamer_tree_cache_create): Create nodes array optionally
15799 as specified by parameter.
15800 * lto-streamer-out.c (create_output_block): Avoid maintaining
15801 the node array in the writer cache.
15802 (DFS_write_tree): Remove assertion.
15803 (produce_asm_for_decls): Free the out decl state hash table early.
15804 * lto-streamer-in.c (lto_data_in_create): Adjust for
15805 streamer_tree_cache_create prototype change.
15807 2014-04-03 Richard Biener <rguenther@suse.de>
15809 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
15810 set TREE_CHAIN to NULL_TREE.
15812 2014-04-03 Richard Biener <rguenther@suse.de>
15814 PR tree-optimization/60740
15815 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
15816 over all GIMPLE_COND operands.
15818 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
15820 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
15821 (Weffc++): Remove Scott's numbering, merge lists and reference
15824 2014-04-03 Nick Clifton <nickc@redhat.com>
15826 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
15829 2014-04-03 Martin Jambor <mjambor@suse.cz>
15831 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
15832 mention gcc_unreachable before failing.
15833 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
15836 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
15839 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
15840 inconsistent code and instead mark the context inconsistent.
15841 (possible_polymorphic_call_targets): For inconsistent contexts
15842 return empty complete list.
15844 2014-04-02 Anthony Green <green@moxielogic.com>
15846 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
15847 (extendqisi2, extendhisi2): Define.
15848 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
15849 (WCHAR_TYPE): Change to unsigned int.
15851 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15853 PR tree-optimization/60733
15854 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
15855 insertion point for PHI candidates to be the end of the feeding
15856 block for the PHI argument.
15858 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
15860 PR rtl-optimization/60650
15861 * lra-constraints.c (process_alt_operands): Decrease reject for
15862 earlyclobber matching.
15864 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15866 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
15868 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15870 * config/spu/spu.c (pad_bb): Do not crash when the last
15871 insn is CODE_FOR_blockage.
15873 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15875 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
15876 lies outside the target mode.
15878 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15881 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15882 software floating point or no floating point registers, do not
15883 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15884 in GPRs that occurs after we tested for GPRs that would never be
15887 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15888 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15889 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15890 specifically allow DDmode, since that does not use the SPE SIMD
15893 2014-04-02 Richard Biener <rguenther@suse.de>
15895 PR middle-end/60729
15896 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
15897 MODE_INTs. Properly use negv_optab.
15898 (expand_abs): Likewise.
15900 2014-04-02 Richard Biener <rguenther@suse.de>
15903 * Makefile.in (install-driver): Guard extra installs with special
15906 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15908 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15909 Document vec_vgbbd.
15911 2014-04-01 Richard Henderson <rth@redhat.com>
15914 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
15915 alternative enabled before register allocation.
15917 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
15919 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
15920 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
15922 (nios2_large_got_address): Remove unneeded 'sym' parameter.
15923 (nios2_got_address): Update nios2_large_got_address call site.
15924 (nios2_delegitimize_address): New function.
15925 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
15926 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
15927 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
15929 2014-04-01 Martin Husemann <martin@duskware.de>
15931 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
15934 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
15936 PR rtl-optimization/60604
15937 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
15938 check from register_operand.
15939 (register_operand): Redefine in terms of general_operand.
15940 (nonmemory_operand): Use register_operand for the non-constant cases.
15942 2014-04-01 Richard Biener <rguenther@suse.de>
15944 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
15946 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
15948 * doc/invoke.texi (mapp-regs): Clarify.
15950 2014-03-31 Ulrich Drepper <drepper@gmail.com>
15952 * config/i386/avx512fintrin.h (__v32hi): Define type.
15953 (__v64qi): Likewise.
15954 (_mm512_set1_epi8): Define.
15955 (_mm512_set1_epi16): Define.
15956 (_mm512_set4_epi32): Define.
15957 (_mm512_set4_epi64): Define.
15958 (_mm512_set4_pd): Define.
15959 (_mm512_set4_ps): Define.
15960 (_mm512_setr4_epi64): Define.
15961 (_mm512_setr4_epi32): Define.
15962 (_mm512_setr4_pd): Define.
15963 (_mm512_setr4_ps): Define.
15964 (_mm512_setzero_epi32): Define.
15966 2014-03-31 Martin Jambor <mjambor@suse.cz>
15968 PR middle-end/60647
15969 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
15970 callsite_arguments_match_p. Updated all callers. Also check types of
15971 corresponding formal parameters and actual arguments.
15972 (not_all_callers_have_enough_arguments_p) Renamed to
15973 some_callers_have_mismatched_arguments_p.
15975 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
15977 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
15979 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
15982 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
15985 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
15987 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
15988 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
15990 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
15991 Use FMAMODE_NOVF512 mode iterator.
15992 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
15993 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
15994 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
15995 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
15997 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
15998 Use VF_128_256 mode iterator.
15999 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16002 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16004 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16005 static chain if needed.
16007 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16010 * lra-constraints.c (index_part_to_reg): New.
16011 (process_address): Use it.
16013 2014-03-27 Jeff Law <law@redhat.com>
16014 Jakub Jelinek <jakub@redhat.com>
16017 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16018 gen_rtx_{PLUS,MULT} to build up the address expression.
16020 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16021 creating non-canonical RTL.
16023 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16026 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16027 functions; reorganize to make cheap checks first.
16028 (inline_small_functions): Do not estimate growth when dumping;
16030 * ipa-inline.h (inline_summary): Add min_size.
16031 (growth_likely_positive): New function.
16032 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16033 (set_cond_stmt_execution_predicate): Cleanup.
16034 (estimate_edge_size_and_time): Compute min_size.
16035 (estimate_calls_size_and_time): Likewise.
16036 (estimate_node_size_and_time): Likewise.
16037 (inline_update_overall_summary): Update min_size.
16038 (do_estimate_edge_time): Likewise.
16039 (do_estimate_edge_size): Update.
16040 (do_estimate_edge_hints): Update.
16041 (growth_likely_positive): New function.
16043 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16046 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16047 also if addr has VOIDmode.
16049 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16051 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16052 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16054 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16055 instructions as well as AdvancedSIMD loads.
16057 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16059 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16060 Use crypto_aese type.
16061 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16062 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16063 crypto_aese, crypto_aesmc. Move to types.md.
16064 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16066 * config/arm/iterators.md (crypto_type): Likewise.
16068 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16070 * cgraph.c: Include expr.h and tree-dfa.h.
16071 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16074 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16077 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16078 regs from checking multi-reg pseudos.
16080 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16082 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16084 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16086 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16087 if it would clobber the stack pointer, even temporarily.
16089 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16091 * mode-switching.c: Make small adjustments to the top comment.
16093 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16095 * config/rs6000/constraints.md (wD constraint): New constraint to
16096 match the constant integer to get the top DImode/DFmode out of a
16097 vector in a VSX register.
16099 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16100 match the constant integer to get the top DImode/DFmode out of a
16101 vector in a VSX register.
16103 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16106 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16109 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16110 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16112 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16113 Optimize vec_extract of 64-bit values, where the value being
16114 extracted is in the top word, where we can use scalar
16115 instructions. Add direct move and store support. Combine the big
16116 endian/little endian vector select load support into a single insn.
16117 (vsx_extract_<mode>_internal1): Likewise.
16118 (vsx_extract_<mode>_internal2): Likewise.
16119 (vsx_extract_<mode>_load): Likewise.
16120 (vsx_extract_<mode>_store): Likewise.
16121 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16122 combined into vsx_extract_<mode>_load.
16123 (vsx_extract_<mode>_one_le): Likewise.
16125 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16126 define the top 64-bit vector element.
16128 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16131 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16132 Document vec_vbpermq builtin.
16135 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16136 enable use of xxsldwi and xxpermdi builtin functions.
16137 (vec_xxpermdi): Likewise.
16139 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16140 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16142 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16144 PR rtl-optimization/60650
16145 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16147 (find_spills_for): New.
16148 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16149 Spill all pseudos on the second iteration.
16151 2014-03-27 Marek Polacek <polacek@redhat.com>
16154 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16157 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16159 * config/s390/s390.c (s390_can_use_return_insn): Check for
16160 call-saved FPRs on 31 bit.
16162 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16164 PR middle-end/60682
16165 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16166 if they need regimplification, just drop them instead of
16167 calling gimple_regimplify_operands on them.
16169 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16172 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16173 (aarch64_frame_pointer_required): Adjust logic.
16174 (aarch64_can_eliminate): Adjust logic.
16175 (aarch64_override_options_after_change): Adjust logic.
16177 2014-03-27 Dehao Chen <dehao@google.com>
16179 * ipa-inline.c (early_inliner): Update node's inline info.
16181 2014-03-26 Dehao Chen <dehao@google.com>
16183 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16184 compiler inserted conditional jumps for NAN float check.
16186 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16188 * ubsan.h (ubsan_create_data): Change second argument's type
16189 to const location_t *.
16190 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16192 (ubsan_create_data): Change second argument to const location_t *PLOC.
16193 Create Loc field whenever PLOC is non-NULL.
16194 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16195 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16199 * real.c (real_to_integer2): Change type of low to UHWI.
16201 2014-03-26 Tobias Burnus <burnus@net-b.de>
16203 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16204 (CILK_SELF_SPECS): New define.
16205 (driver_self_specs): Use it.
16207 2014-03-26 Richard Biener <rguenther@suse.de>
16209 * tree-pretty-print.c (percent_K_format): Implement special
16210 case for LTO and its stripped down BLOCK tree.
16212 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16215 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16217 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16218 one range is range_int_cst_p, but not both, at least optimize
16219 addition/subtraction of 0 and multiplication by 0 or 1.
16220 * gimple-fold.c (gimple_fold_call): Fold
16221 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16222 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16223 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16225 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16227 PR rtl-optimization/60452
16228 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16229 <case REG>: Return 1 for invalid offsets from the frame pointer.
16231 2014-03-26 Marek Polacek <polacek@redhat.com>
16234 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16237 2014-03-26 Marek Polacek <polacek@redhat.com>
16240 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16243 2014-03-26 Marek Polacek <polacek@redhat.com>
16246 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16247 multiplication in unsigned type.
16249 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16251 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16253 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16255 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16257 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16260 * cif-code.def (UNREACHABLE) New code.
16261 * ipa-inline.c (inline_small_functions): Skip edges to
16262 __builtlin_unreachable.
16263 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16264 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16265 predicate to __bulitin_unreachable.
16266 (set_cond_stmt_execution_predicate): Fix issue when
16267 invert_tree_comparison returns ERROR_MARK.
16268 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16269 propagate to inline clones.
16270 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16272 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16273 * cgraphclones.c (cgraph_clone_node): If call destination is already
16274 ureachable, do not redirect it back.
16275 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16278 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16280 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16281 Do not modify inline clones.
16283 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16285 * config/i386/i386.md (general_sext_operand): New mode attr.
16286 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16287 don't generate (sign_extend (const_int)).
16288 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16289 operands[2]. Use We constraint instead of <i> and
16290 <general_sext_operand> predicate instead of <general_operand>.
16291 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16292 * config/i386/constraints.md (We): New constraint.
16293 * config/i386/predicates.md (x86_64_sext_operand,
16294 sext_operand): New predicates.
16296 2014-03-25 Martin Jambor <mjambor@suse.cz>
16299 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16300 inconsistent devirtualizations to __builtin_unreachable.
16302 2014-03-25 Marek Polacek <polacek@redhat.com>
16305 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16307 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16309 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16310 order of elements for big-endian.
16312 2014-03-25 Richard Biener <rguenther@suse.de>
16314 PR middle-end/60635
16315 * gimplify-me.c (gimple_regimplify_operands): Update the
16318 2014-03-25 Martin Jambor <mjambor@suse.cz>
16321 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16322 (lto_output_varpool_node): Likewise.
16323 (input_overwrite_node): Likewise.
16324 (input_varpool_node): Likewise.
16326 2014-03-25 Richard Biener <rguenther@suse.de>
16328 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16329 (run_gcc): Likewise.
16331 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16333 * combine.c (simplify_compare_const): Add MODE argument.
16334 Handle mode_width 0 as very large mode_width.
16335 (try_combine, simplify_comparison): Adjust callers.
16337 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16338 type to avoid signed integer overflow.
16339 * explow.c (plus_constant): Likewise.
16341 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16343 * doc/generic.texi: Correct typos.
16345 2014-03-24 Tobias Burnus <burnus@net-b.de>
16347 * doc/invoke.texi (-flto): Expand section about
16348 using static libraries with LTO.
16350 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16352 PR rtl-optimization/60501
16353 * optabs.def (addptr3_optab): New optab.
16354 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16355 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16356 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16358 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16360 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16362 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16364 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16367 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16368 (_mm256_undefined_ps): Define.
16369 (_mm256_undefined_pd): Define.
16370 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16371 (_mm_undefined_pd): Define.
16372 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16373 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16374 (_mm512_undefined_ps): Define.
16375 (_mm512_undefined_pd): Define.
16376 Use _mm*_undefined_*.
16377 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16379 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16381 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16382 (lshr_simd): DI mode added.
16383 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16384 (aarch64_ushr_simddi): Likewise.
16385 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16386 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16387 (vshrd_n_u64): Likewise.
16389 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16391 * Makefile.in (s-macro_list): Depend on cc1.
16393 2014-03-23 Teresa Johnson <tejohnson@google.com>
16395 * ipa-utils.c (ipa_print_order): Use specified dump file.
16397 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16399 PR rtl-optimization/60601
16400 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16402 * gcc.c (eval_spec_function): Initialize save_growing_value.
16404 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16407 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16408 code == MINUS_EXPR, never swap op0 with op1.
16410 * toplev.c (init_local_tick): Avoid signed integer multiplication
16412 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16413 shift by first operand's bitsize.
16415 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16418 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16419 redefine to 1 or 0.
16420 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16421 TARGET_ISA_64BIT_P(x).
16423 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16425 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16426 pattern for vector nor instead of subtract from splat(-1).
16427 (altivec_expand_vec_perm_const_le): Likewise.
16429 2014-03-21 Richard Henderson <rth@twiddle.net>
16432 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16433 related insns after epilogue_completed.
16435 2014-03-21 Martin Jambor <mjambor@suse.cz>
16438 * cgraph.h (symtab_node): New flag body_removed.
16439 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16440 when removing bodies.
16441 * symtab.c (dump_symtab_base): Dump body_removed flag.
16442 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16443 had their bodies removed.
16445 2014-03-21 Martin Jambor <mjambor@suse.cz>
16448 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16451 2014-03-21 Richard Biener <rguenther@suse.de>
16453 PR tree-optimization/60577
16454 * tree-core.h (struct tree_base): Document nothrow_flag use
16455 in DECL_NONALIASED.
16456 * tree.h (DECL_NONALIASED): New.
16457 (may_be_aliased): Adjust.
16458 * coverage.c (build_var): Set DECL_NONALIASED.
16460 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16462 * expr.c (expand_expr_real_1): Remove outdated comment.
16464 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16466 PR middle-end/60597
16467 * ira.c (adjust_cleared_regs): Call copy_rtx on
16468 *reg_equiv[REGNO (loc)].src_p before passing it to
16469 simplify_replace_fn_rtx.
16472 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16473 into CONST, put pic register as first operand of PLUS. Use
16474 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16476 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16478 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16480 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16482 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16483 around for store forwarding issue in the FPU on the UT699.
16484 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16485 loads and operations if -mfix-ut699 is specified.
16486 (divtf3_hq): Tweak attribute.
16487 (sqrttf2_hq): Likewise.
16489 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16491 * calls.c (store_one_arg): Remove incorrect const qualification on the
16492 type of the temporary.
16493 * cfgexpand.c (expand_return): Likewise.
16494 * expr.c (expand_constructor): Likewise.
16495 (expand_expr_real_1): Likewise.
16497 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16499 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16502 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16505 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16507 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16509 * config/arm/aarch-common-protos.h
16510 (alu_cost_table): Fix spelling of "extend".
16511 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16513 2014-03-19 Richard Biener <rguenther@suse.de>
16515 PR middle-end/60553
16516 * tree-core.h (tree_type_common): Re-order pointer members
16517 to reduce recursion depth during GC walks.
16519 2014-03-19 Marek Polacek <polacek@redhat.com>
16522 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16523 before accessing it.
16525 2014-03-19 Richard Biener <rguenther@suse.de>
16528 * lto-streamer-in.c (input_function): In WPA stage do not drop
16531 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16533 PR tree-optimization/60559
16534 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16535 with build_zero_cst assignment.
16537 2014-03-18 Kai Tietz <ktietz@redhat.com>
16539 PR rtl-optimization/56356
16540 * sdbout.c (sdbout_parms): Verify that parms'
16541 incoming argument is valid.
16542 (sdbout_reg_parms): Likewise.
16544 2014-03-18 Richard Henderson <rth@redhat.com>
16547 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16548 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16549 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16551 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16553 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16554 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16555 Italicize plugin event names in description. Explain that
16556 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16557 Remind that no GCC functions should be called after PLUGIN_FINISH.
16558 Explain what pragmas with expansion are.
16560 2014-03-18 Martin Liska <mliska@suse.cz>
16562 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
16563 gimple call statement is update.
16564 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
16565 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
16567 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16570 * ubsan.c (ubsan_instrument_unreachable): Call
16571 initialize_sanitizer_builtins.
16572 (ubsan_pass): Likewise.
16575 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
16576 varpool_finalize_decl instead of rest_of_decl_compilation.
16578 2014-03-18 Richard Biener <rguenther@suse.de>
16580 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
16581 by using bitmap_and_compl instead of bitmap_and_compl_into.
16582 (df_rd_transfer_function): Likewise.
16584 2014-03-18 Richard Biener <rguenther@suse.de>
16586 * doc/lto.texi (fresolution): Fix typo.
16588 2014-03-18 Richard Biener <rguenther@suse.de>
16590 * doc/invoke.texi (flto): Update for changes in 4.9.
16592 2014-03-18 Richard Biener <rguenther@suse.de>
16594 * doc/loop.texi: Remove section on the removed lambda framework.
16595 Update loop docs with recent changes in preserving loop structure.
16597 2014-03-18 Richard Biener <rguenther@suse.de>
16599 * doc/lto.texi (-fresolution): Document.
16601 2014-03-18 Richard Biener <rguenther@suse.de>
16603 * doc/contrib.texi: Adjust my name.
16605 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16608 * internal-fn.c: Include diagnostic-core.h.
16609 (expand_BUILTIN_EXPECT): New function.
16610 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
16611 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
16612 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
16613 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
16614 IFN_BUILTIN_EXPECT.
16615 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
16616 Revert 3 argument __builtin_expect code.
16617 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
16618 * gimple-fold.c (gimple_fold_call): Likewise.
16619 * tree.h (fold_builtin_expect): New prototype.
16620 * builtins.c (build_builtin_expect_predicate): Add predictor
16621 argument, if non-NULL, create 3 argument __builtin_expect.
16622 (fold_builtin_expect): No longer static. Add ARG2 argument,
16623 pass it through to build_builtin_expect_predicate.
16624 (fold_builtin_2): Adjust caller.
16625 (fold_builtin_3): Handle BUILT_IN_EXPECT.
16626 * internal-fn.def (BUILTIN_EXPECT): New.
16628 2014-03-18 Tobias Burnus <burnus@net-b.de>
16631 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
16632 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
16633 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
16635 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
16638 * predict.c (combine_predictions_for_bb): Fix up formatting.
16639 (expr_expected_value_1, expr_expected_value): Add predictor argument,
16640 fill what it points to if non-NULL.
16641 (tree_predict_by_opcode): Adjust caller, use the predictor.
16642 * predict.def (PRED_COMPARE_AND_SWAP): Add.
16644 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
16646 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
16647 proper constant for the store mode.
16649 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
16651 * symtab.c (change_decl_assembler_name): Fix transparent alias
16652 chain construction.
16654 2014-03-16 Renlin Li <Renlin.Li@arm.com>
16656 * config/aarch64/aarch64.c: Correct the comments about the
16657 aarch64 stack layout.
16659 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
16661 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
16662 check for GF_OMP_FOR_KIND_FOR.
16664 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
16666 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
16667 ymm and zmm register names.
16669 2014-03-17 Jakub Jelinek <jakub@redhat.com>
16672 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
16673 note creation for the 2010-08-31 changes.
16675 2014-03-17 Marek Polacek <polacek@redhat.com>
16677 PR middle-end/60534
16678 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
16679 as -fno-tree-loop-vectorize.
16680 (expand_omp_simd): Likewise.
16682 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
16684 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
16685 (eligible_for_call_delay): New prototype.
16686 * config/sparc/sparc.c (tls_call_delay): Rename into...
16687 (eligible_for_call_delay): ...this. Return false if the instruction
16688 cannot be put in the delay slot of a branch.
16689 (eligible_for_restore_insn): Simplify.
16690 (eligible_for_return_delay): Return false if the instruction cannot be
16691 put in the delay slot of a branch and simplify.
16692 (eligible_for_sibcall_delay): Return false if the instruction cannot be
16693 put in the delay slot of a branch.
16694 * config/sparc/sparc.md (fix_ut699): New attribute.
16695 (tls_call_delay): Delete.
16696 (in_call_delay): Reimplement.
16697 (eligible_for_sibcall_delay): Rename into...
16698 (in_sibcall_delay): ...this.
16699 (eligible_for_return_delay): Rename into...
16700 (in_return_delay): ...this.
16701 (in_branch_delay): Reimplement.
16702 (in_uncond_branch_delay): Delete.
16703 (in_annul_branch_delay): Delete.
16705 2014-03-14 Richard Henderson <rth@redhat.com>
16708 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
16709 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
16710 (*floathi<X87MODEF>2_i387_with_temp): Remove.
16711 (floathi splitters): Remove.
16712 (float<SWI48x>xf2): New pattern.
16713 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
16714 code that tried to handle DImode for 32-bit, but which was excluded
16715 by the pattern's condition. Drop allocation of stack temporary.
16716 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
16717 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
16718 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
16719 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
16720 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
16721 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
16722 (*float<SWI48><MODEF>2_sse_interunit): Remove.
16723 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
16724 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
16725 (*float<SWI48x><X87MODEF>2_i387): Remove.
16726 (all float _with_temp splitters): Remove.
16727 (*float<SWI48x><MODEF>2_i387): New pattern.
16728 (*float<SWI48><MODEF>2_sse): New pattern.
16729 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
16730 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
16732 2014-03-14 Jakub Jelinek <jakub@redhat.com>
16733 Marek Polacek <polacek@redhat.com>
16735 PR middle-end/60484
16736 * common.opt (dump_base_name_prefixed): New Variable.
16737 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
16738 if x_dump_base_name_prefixed is already set, set it at the end.
16740 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
16742 PR rtl-optimization/60508
16743 * lra-constraints.c (get_reload_reg): Add new parameter
16745 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
16746 Pass the new parameter values.
16748 2014-03-14 Richard Biener <rguenther@suse.de>
16750 * common.opt: Revert unintented changes from r205065.
16751 * opts.c: Likewise.
16753 2014-03-14 Richard Biener <rguenther@suse.de>
16755 PR middle-end/60518
16756 * cfghooks.c (split_block): Properly adjust all loops the
16757 block was a latch of.
16759 2014-03-14 Martin Jambor <mjambor@suse.cz>
16762 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
16765 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
16768 * config/avr/avr.c (avr_set_current_function): Pass function name
16769 through default_strip_name_encoding before sanity checking instead
16770 of skipping the first char of the assembler name.
16772 2014-03-13 Richard Henderson <rth@redhat.com>
16775 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
16776 (ix86_force_to_memory, ix86_free_from_memory): Remove.
16777 * config/i386/i386-protos.h: Likewise.
16778 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
16779 in the expander instead of a splitter.
16780 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
16781 any possibility of requiring a memory.
16782 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
16783 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
16784 (fp branch splitters): Update for ix86_split_fp_branch.
16785 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
16786 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
16787 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
16788 (*fop_<MODEF>_2_i387): Remove f/r alternative.
16789 (*fop_<MODEF>_3_i387): Likewise.
16790 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
16791 (splitters for the fop_* register patterns): Remove.
16792 (fscalexf4_i387): Rename from *fscalexf4_i387.
16793 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
16795 2014-03-13 Jakub Jelinek <jakub@redhat.com>
16797 PR tree-optimization/59779
16798 * tree-dfa.c (get_ref_base_and_extent): Use double_int
16799 type for bitsize and maxsize instead of HOST_WIDE_INT.
16801 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
16803 PR rtl-optimization/57320
16804 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
16805 the CFG after thread_prologue_and_epilogue_insns.
16807 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
16809 PR rtl-optimization/57189
16810 * lra-constraints.c (process_alt_operands): Disfavor spilling
16813 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
16815 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
16817 2014-03-13 Jakub Jelinek <jakub@redhat.com>
16819 PR tree-optimization/59025
16820 PR middle-end/60418
16821 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
16822 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
16824 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
16827 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
16828 calls of avr_out_plus_1.
16830 2014-03-13 Bin Cheng <bin.cheng@arm.com>
16832 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
16833 BB's single pred and update the father loop's latch info later.
16835 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16837 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
16841 (VEC_base): Likewise.
16842 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
16843 registers, we need to swap double words in little endian mode.
16845 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
16846 to be a container mode for 128-bit integer operations added in ISA
16847 2.07. Unlike TImode and PTImode, the preferred register set is
16848 the Altivec/VMX registers for the 128-bit operations.
16850 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
16852 (rs6000_split_128bit_ok_p): Likewise.
16854 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
16855 macros for creating ISA 2.07 normal and overloaded builtin
16856 functions with 3 arguments.
16857 (BU_P8V_OVERLOAD_3): Likewise.
16858 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
16859 for use as overloaded functions.
16860 (VPERM_1TI_UNS): Likewise.
16861 (VSEL_1TI): Likewise.
16862 (VSEL_1TI_UNS): Likewise.
16863 (ST_INTERNAL_1ti): Likewise.
16864 (LD_INTERNAL_1ti): Likewise.
16865 (XXSEL_1TI): Likewise.
16866 (XXSEL_1TI_UNS): Likewise.
16867 (VPERM_1TI): Likewise.
16868 (VPERM_1TI_UNS): Likewise.
16869 (XXPERMDI_1TI): Likewise.
16870 (SET_1TI): Likewise.
16871 (LXVD2X_V1TI): Likewise.
16872 (STXVD2X_V1TI): Likewise.
16873 (VEC_INIT_V1TI): Likewise.
16874 (VEC_SET_V1TI): Likewise.
16875 (VEC_EXT_V1TI): Likewise.
16876 (EQV_V1TI): Likewise.
16877 (NAND_V1TI): Likewise.
16878 (ORC_V1TI): Likewise.
16879 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
16880 added in ISA 2.07. Add both normal 'altivec' builtins, and the
16881 overloaded builtin.
16882 (VADDUQM): Likewise.
16883 (VSUBCUQ): Likewise.
16884 (VADDEUQM): Likewise.
16885 (VADDECUQ): Likewise.
16886 (VSUBEUQM): Likewise.
16887 (VSUBECUQ): Likewise.
16889 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
16890 __int128_t and __uint128_t types.
16891 (__uint128_type): Likewise.
16892 (altivec_categorize_keyword): Add support for vector __int128_t,
16893 vector __uint128_t, vector __int128, and vector unsigned __int128
16894 as a container type for TImode operations that need to be done in
16895 VSX/Altivec registers.
16896 (rs6000_macro_to_expand): Likewise.
16897 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
16898 to support 128-bit integer instructions vaddcuq, vadduqm,
16899 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
16900 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
16902 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
16903 for V1TImode, and set up preferences to use VSX/Altivec registers.
16904 Setup VSX reload handlers.
16905 (rs6000_debug_reg_global): Likewise.
16906 (rs6000_init_hard_regno_mode_ok): Likewise.
16907 (rs6000_preferred_simd_mode): Likewise.
16908 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
16909 (easy_altivec_constant): Likewise.
16910 (output_vec_const_move): Likewise.
16911 (rs6000_expand_vector_set): Convert V1TImode set and extract to
16913 (rs6000_expand_vector_extract): Likewise.
16914 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
16916 (rs6000_const_vec): Add support for V1TImode.
16917 (rs6000_emit_le_vsx_load): Swap double words when loading or
16918 storing TImode/V1TImode.
16919 (rs6000_emit_le_vsx_store): Likewise.
16920 (rs6000_emit_le_vsx_move): Likewise.
16921 (rs6000_emit_move): Add support for V1TImode.
16922 (altivec_expand_ld_builtin): Likewise.
16923 (altivec_expand_st_builtin): Likewise.
16924 (altivec_expand_vec_init_builtin): Likewise.
16925 (altivec_expand_builtin): Likewise.
16926 (rs6000_init_builtins): Add support for V1TImode type. Add
16927 support for ISA 2.07 128-bit integer builtins. Define type names
16928 for the VSX/Altivec vector types.
16929 (altivec_init_builtins): Add support for overloaded vector
16930 functions with V1TImode type.
16931 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
16932 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
16934 (rs6000_split_128bit_ok_p): Likewise.
16935 (rs6000_handle_altivec_attribute): Create V1TImode from vector
16936 __int128_t and vector __uint128_t.
16938 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
16939 and mode attributes.
16941 (VSX_M2): Likewise.
16946 (VS_scalar): Likewise.
16947 (VS_double): Likewise.
16948 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
16950 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
16951 we support the ISA 2.07 128-bit integer arithmetic instructions.
16952 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
16953 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
16954 and TImode types for use with the builtin functions.
16955 (V1TI_type_node): Likewise.
16956 (unsigned_V1TI_type_node): Likewise.
16957 (intTI_type_internal_node): Likewise.
16958 (uintTI_type_internal_node): Likewise.
16960 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
16961 128-bit builtin functions.
16962 (UNSPEC_VADDEUQM): Likewise.
16963 (UNSPEC_VADDECUQ): Likewise.
16964 (UNSPEC_VSUBCUQ): Likewise.
16965 (UNSPEC_VSUBEUQM): Likewise.
16966 (UNSPEC_VSUBECUQ): Likewise.
16967 (VM): Add V1TImode to vector mode iterators.
16969 (VI_unit): Likewise.
16970 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
16971 (altivec_vaddcuq): Likewise.
16972 (altivec_vsubuqm): Likewise.
16973 (altivec_vsubcuq): Likewise.
16974 (altivec_vaddeuqm): Likewise.
16975 (altivec_vaddecuq): Likewise.
16976 (altivec_vsubeuqm): Likewise.
16977 (altivec_vsubecuq): Likewise.
16979 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
16981 (BOOL_128): Likewise.
16982 (BOOL_REGS_OUTPUT): Likewise.
16983 (BOOL_REGS_OP1): Likewise.
16984 (BOOL_REGS_OP2): Likewise.
16985 (BOOL_REGS_UNARY): Likewise.
16986 (BOOL_REGS_AND_CR0): Likewise.
16988 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
16989 128-bit integer builtin support.
16990 (vec_vadduqm): Likewise.
16991 (vec_vaddecuq): Likewise.
16992 (vec_vaddeuqm): Likewise.
16993 (vec_vsubecuq): Likewise.
16994 (vec_vsubeuqm): Likewise.
16995 (vec_vsubcuq): Likewise.
16996 (vec_vsubuqm): Likewise.
16998 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16999 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17000 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17001 128-bit integer add/subtract to ISA 2.07.
17003 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17005 * config/arc/arc.c (arc_predicate_delay_insns):
17006 Fix third argument passed to conditionalize_nonjump.
17008 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17010 * config/aarch64/aarch64-builtins.c
17011 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17012 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17013 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17014 instead of __builtin_lfloor.
17015 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17017 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17019 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17020 (tree_ssa_ifcombine_bb_1): New function.
17021 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17022 is an empty forwarder block to then_bb or vice versa and then_bb
17023 and else_bb are effectively swapped.
17025 2014-03-12 Christian Bruel <christian.bruel@st.com>
17028 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17029 REG_CFA_DEF_CFA note.
17030 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17031 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17033 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17035 PR tree-optimization/60454
17036 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17038 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17040 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17041 Do not define target_cpu_default2 to generic.
17042 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17043 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17044 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17046 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17047 Marc Glisse <marc.glisse@inria.fr>
17049 PR tree-optimization/60502
17050 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17051 instead of build_low_bits_mask.
17053 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17055 PR middle-end/60482
17056 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17057 if there are multiple uses, but op doesn't live on E edge.
17058 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17059 clobber stmts before __builtin_unreachable.
17061 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17063 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17064 hard_frame_pointer_rtx.
17065 * cse.c (cse_insn): Remove volatile check.
17066 * cselib.c (cselib_process_insn): Likewise.
17067 * dse.c (scan_insn): Likewise.
17069 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17071 * config/arc/arc.c (conditionalize_nonjump): New function,
17073 (arc_ifcvt): ... this.
17074 (arc_predicate_delay_insns): Use it.
17076 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17078 * config/arc/predicates.md (extend_operand): During/after reload,
17079 allow const_int_operand.
17080 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17081 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17082 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17084 (umulsi3_highpart_i): Likewise.
17086 2014-03-11 Richard Biener <rguenther@suse.de>
17088 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17089 Add asserts to guard possible wrong-code bugs.
17091 2014-03-11 Richard Biener <rguenther@suse.de>
17093 PR tree-optimization/60429
17094 PR tree-optimization/60485
17095 * tree-ssa-structalias.c (set_union_with_increment): Properly
17096 take into account all fields that overlap the shifted vars.
17097 (do_sd_constraint): Likewise.
17098 (do_ds_constraint): Likewise.
17099 (get_constraint_for_ptr_offset): Likewise.
17101 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17103 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17104 (nios2_compute_frame_layout):
17105 Add calculation of cfun->machine->fp_save_offset.
17106 (nios2_expand_prologue): Correct setting of frame pointer register
17108 (nios2_expand_epilogue): Update recovery of stack pointer from
17109 frame pointer accordingly.
17110 (nios2_initial_elimination_offset): Update calculation of offset
17111 for eliminating to HARD_FRAME_POINTER_REGNUM.
17113 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17116 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17117 cgraph_get_create_node on VAR_DECLs.
17119 2014-03-10 Richard Biener <rguenther@suse.de>
17121 PR middle-end/60474
17122 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17124 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17126 * config/vms/vms.opt (vms_float_format): New variable.
17128 2014-03-08 Tobias Burnus <burnus@net-b.de>
17130 * doc/invoke.texi (-fcilkplus): Update implementation status.
17132 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17133 Richard Biener <rguenther@suse.de>
17135 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17136 consistently accross all TUs.
17137 (run_gcc): Enable -fshort-double automatically at link at link-time
17138 and disallow override.
17140 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17143 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17144 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17145 if they can't be used.
17147 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17149 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17150 for Solaris 11/x86 ld.
17151 * configure: Regenerate.
17153 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17155 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17156 (LIB_TLS_SPEC): Save as ld_tls_libs.
17157 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17158 (HAVE_AS_IX86_TLSLDM): New test.
17159 * configure, config.in: Regenerate.
17160 * config/i386/i386.c (legitimize_tls_address): Fall back to
17161 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17162 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17163 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17164 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17166 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17168 * common.opt (fira-loop-pressure): Mark as optimization.
17170 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17172 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17173 an OpenMP mappable type.
17175 2014-03-06 Matthias Klose <doko@ubuntu.com>
17177 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17178 MULTILIB_OSDIRNAMES is not defined.
17180 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17181 Meador Inge <meadori@codesourcery.com>
17184 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17185 (arm_legitimize_address): Call legitimize_tls_address for any
17186 arm_tls_referenced_p expression, handle constant addend. Call it
17187 before testing for !TARGET_ARM.
17188 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17190 2014-03-06 Richard Biener <rguenther@suse.de>
17192 PR middle-end/60445
17196 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17198 * tree-streamer.c (record_common_node): Assert we don't record
17199 nodes with type double.
17200 (preload_common_node): Skip type double, complex double and double
17201 pointer since it is now frontend dependent due to fshort-double option.
17203 2014-03-06 Richard Biener <rguenther@suse.de>
17205 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17206 or -fno-lto is specified and the linker has full plugin support.
17207 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17208 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17209 * lto-wrapper.c (merge_and_complain): Merge compile-time
17210 optimization levels.
17211 (run_gcc): And pass it through to the link options.
17213 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17217 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17219 * cselib.c (remove_useless_values): Skip to avoid quadratic
17220 behavior if the condition moved from...
17221 (cselib_process_insn): ... here holds.
17223 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17226 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17227 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17230 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17231 (TM_H): Add x86-tune.def.
17233 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17235 * config/aarch64/aarch64.c (generic_tunings):
17236 Use cortexa57_extra_costs.
17238 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17241 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17242 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17243 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17246 2014-03-04 Heiher <r@hev.cc>
17248 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17249 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17251 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17253 * config/i386/predicates.md (const2356_operand): Change to ...
17254 (const2367_operand): ... this.
17255 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17257 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17258 (*avx512pf_scatterpf<mode>sf): Ditto.
17259 (avx512pf_scatterpf<mode>df): Ditto.
17260 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17261 (*avx512pf_scatterpf<mode>df): Ditto.
17262 * config/i386/i386.c (ix86_expand_builtin): Update
17263 incorrect hint operand error message.
17265 2014-03-04 Richard Biener <rguenther@suse.de>
17267 * lto-section-in.c (lto_get_section_data): Fix const cast.
17269 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17271 * tree-streamer.c (record_common_node): Assert we don't record
17272 nodes with type double.
17273 (preload_common_node): Skip type double, complex double and double
17274 pointer since it is now frontend dependent due to fshort-double option.
17276 2014-03-04 Richard Biener <rguenther@suse.de>
17279 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17280 (lto_input_toplevel_asms): Likewise.
17281 * lto-section-in.c (lto_get_section_data): Instead do it here
17284 2014-03-04 Richard Biener <rguenther@suse.de>
17286 PR tree-optimization/60382
17287 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17288 dead PHIs a reduction.
17290 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17292 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17294 (_mm_prefetch): Move out of GCC target("sse") pragma.
17295 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17296 GCC target("prfchw") pragma.
17297 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17299 * config/i386/i386.c (ix86_option_override_internal): Enable
17300 -mprfchw with -mprefetchwt1.
17302 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17304 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17307 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17309 * opts.h (CL_PCH_IGNORE): Define.
17310 * targhooks.c (option_affects_pch_p):
17311 Return false for options that have CL_PCH_IGNORE set.
17312 * opt-functions.awk: Process PchIgnore.
17313 * doc/options.texi: Document PchIgnore.
17315 * config/arc/arc.opt (misize): Add PchIgnore property.
17317 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17319 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17320 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17321 constraint on constants to permit them being loaded into
17322 GENERAL_REGS or BASE_REGS.
17324 2014-03-03 Nick Clifton <nickc@redhat.com>
17326 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17327 anti-cacnonical alternatives.
17328 (negandhi3_real): New pattern.
17329 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17331 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17333 * config/avr/avr-mcus.def: Remove atxmega16x1.
17334 * config/avr/avr-tables.opt: Regenerate.
17335 * config/avr/t-multilib: Regenerate.
17336 * doc/avr-mmcu.texi: Regenerate.
17338 2014-03-03 Tobias Grosser <tobias@grosser.es>
17339 Mircea Namolaru <mircea.namolaru@inria.fr>
17341 PR tree-optimization/58028
17342 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17345 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17347 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17348 not handled by recognizers.
17350 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17352 PR middle-end/60175
17353 * function.c (expand_function_end): Don't emit
17354 clobber_return_register sequence if clobber_after is a BARRIER.
17355 * cfgexpand.c (construct_exit_block): Append instructions before
17356 return_label to prev_bb.
17358 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17360 * config/rs6000/constraints.md: Document reserved use of "wc".
17362 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17365 * ipa.c (function_and_variable_visibility): When dissolving comdat
17366 group, also set all symbols to local.
17368 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17373 2013-12-14 Jan Hubicka <jh@suse.cz>
17374 PR middle-end/58477
17375 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17377 2014-03-02 Jon Beniston <jon@beniston.com>
17383 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17384 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17385 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17386 (simple_return, *simple_return): New patterns
17387 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17388 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17390 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17392 * dwarf2out.c (gen_subprogram_die): Tidy.
17394 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17397 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17398 (*mov_t_msb_neg_negc): ... this new insn.
17400 2014-02-28 Jason Merrill <jason@redhat.com>
17403 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17406 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17409 * dwarf2out.c (decltype_auto_die): New static.
17410 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17411 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17412 (is_cxx_auto): Likewise.
17414 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17416 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17417 we are not using general regs only.
17419 2014-02-28 Richard Biener <rguenther@suse.de>
17422 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17423 previous fix and only allow to remove trivial pre-headers
17424 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17425 (remove_forwarder_block): Properly update the latch of a loop.
17427 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17430 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17431 (cselib_preserved_hash_table): New.
17432 (preserve_constants_and_equivs): Move preserved vals to it.
17433 (cselib_find_slot): Look it up first.
17434 (cselib_init): Initialize it.
17435 (cselib_finish): Release it.
17436 (dump_cselib_table): Dump it.
17438 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17441 * cselib.c (remove_useless_values): Skip to avoid quadratic
17442 behavior if the condition moved from...
17443 (cselib_process_insn): ... here holds.
17445 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17448 * var-tracking.c (vt_initialize): Apply the same condition to
17449 preserve the CFA base value.
17451 2014-02-28 Joey Ye <joey.ye@arm.com>
17454 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17455 if reload in progress or completed.
17457 2014-02-28 Tobias Burnus <burnus@net-b.de>
17459 PR middle-end/60147
17460 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17463 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17465 * doc/tm.texi.in (Condition Code Status): Update documention for
17466 relative locations of cc0-setter and cc0-user.
17468 2014-02-27 Jeff Law <law@redhat.com>
17470 PR rtl-optimization/52714
17471 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17472 into two independent simple sets, if I3 is a jump, ensure the
17473 pattern we place into I3 is a (set (pc) ...).
17475 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17476 Jeff Law <law@redhat.com>
17478 PR rtl-optimization/49847
17479 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17480 are in different blocks.
17481 * doc/tm.texi (Condition Code Status): Update documention for
17482 relative locations of cc0-setter and cc0-user.
17484 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17487 * lra.c (lra_emit_add): Check SUBREG too.
17489 2014-02-27 Andreas Schwab <schwab@suse.de>
17491 * config/m68k/m68k.c (m68k_option_override): Disable
17492 -flive-range-shrinkage for classic m68k.
17493 (m68k_override_options_after_change): Likewise.
17495 2014-02-27 Marek Polacek <polacek@redhat.com>
17497 PR middle-end/59223
17498 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17499 -Wmaybe-uninitialized.
17501 2014-02-27 Alan Modra <amodra@gmail.com>
17504 * reload1.c (emit_input_reload_insns): When reload_override_in,
17505 set old to rl->in_reg when rl->in_reg is a subreg.
17507 2014-02-26 Richard Biener <rguenther@suse.de>
17510 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17512 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17514 * common/config/i386/predicates.md (const1256_operand): Remove.
17515 (const2356_operand): New.
17516 (const_1_to_2_operand): Remove.
17517 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17518 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17519 (*avx512pf_gatherpf<mode>sf): Ditto.
17520 (avx512pf_gatherpf<mode>df): Ditto.
17521 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17522 (*avx512pf_gatherpf<mode>df): Ditto.
17523 (avx512pf_scatterpf<mode>sf): Ditto.
17524 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17525 (*avx512pf_scatterpf<mode>sf): Ditto.
17526 (avx512pf_scatterpf<mode>df): Ditto.
17527 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17528 (*avx512pf_scatterpf<mode>df): Ditto.
17529 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17531 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17533 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17534 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17535 (_mm512_mask_testn_epi64_mask): Move to ...
17536 * config/i386/avx512cdintrin.h: Here.
17537 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17538 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17539 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17540 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17541 TARGET_AVX512F from TARGET_AVX512CD.
17543 2014-02-26 Richard Biener <rguenther@suse.de>
17546 * ipa.c (walk_polymorphic_call_targets): Properly guard
17547 call to inline_update_overall_summary.
17549 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17552 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17553 and latches only if requested. Fix latch if it is removed.
17554 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17555 LOOPS_HAVE_PREHEADERS.
17557 2014-02-25 Andrew Pinski <apinski@cavium.com>
17559 * builtins.c (expand_builtin_thread_pointer): Create a new target
17560 when the target is NULL.
17562 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
17564 PR rtl-optimization/60317
17565 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17566 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17567 * lra-assigns.c: Include params.h.
17568 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
17569 other reload pseudos considerations.
17571 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17573 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
17574 to use canonical form for nor<mode>3.
17576 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17579 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
17582 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17584 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
17585 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
17586 (ix86_handle_option): Handle OPT_mprefetchwt1.
17587 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
17588 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17590 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17591 OPTION_MASK_ISA_PREFETCHWT1.
17592 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
17593 (PTA_PREFETCHWT1): New.
17594 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
17595 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
17596 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
17597 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
17598 (*prefetch_avx512pf_<mode>_: Change into ...
17599 (*prefetch_prefetchwt1_<mode>: This.
17600 * config/i386/i386.opt (mprefetchwt1): New.
17601 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
17602 (_mm_prefetch): Handle intent to write.
17603 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
17605 2014-02-25 Richard Biener <rguenther@suse.de>
17607 PR middle-end/60291
17608 * emit-rtl.c (mem_attrs_htab): Remove.
17609 (mem_attrs_htab_hash): Likewise.
17610 (mem_attrs_htab_eq): Likewise.
17611 (set_mem_attrs): Always allocate new mem-attrs when something changed.
17612 (init_emit_once): Do not allocate mem_attrs_htab.
17614 2014-02-25 Richard Biener <rguenther@suse.de>
17617 * lto-opts.c (lto_write_options): Output non-explicit conservative
17618 -fwrapv, -fno-trapv and -fno-strict-overflow.
17619 * lto-wrapper.c (merge_and_complain): Handle merging those options.
17620 (run_gcc): And pass them through.
17622 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17624 * sel-sched.c (calculate_new_fences): New parameter ptime.
17625 Calculate it as a maximum over all fence cycles.
17626 (sel_sched_region_2): Adjust the call to calculate_new_fences.
17627 Print the final schedule timing when sched_verbose.
17629 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17631 PR rtl-optimization/60292
17632 * sel-sched.c (fill_vec_av_set): Do not reset target availability
17633 bit fot the fence instruction.
17635 2014-02-24 Alangi Derick <alangiderick@gmail.com>
17637 * calls.h: Fix typo in comment.
17639 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
17641 * config/pa/pa.c (pa_output_move_double): Don't valididate when
17642 adjusting offsetable addresses.
17644 2014-02-24 Guozhi Wei <carrot@google.com>
17646 * sparseset.h (sparseset_pop): Fix the wrong index.
17648 2014-02-24 Walter Lee <walt@tilera.com>
17650 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
17651 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
17653 * common/config/tilegx/tilegx-common.c
17654 (TARGET_DEFAULT_TARGET_FLAGS): Define.
17655 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
17656 (LINK_SPEC): Ditto.
17657 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
17658 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
17659 (tilegx_gimplify_va_arg_expr): Handle big endian.
17660 (tilegx_expand_unaligned_load): Ditto.
17661 (tilegx_expand_unaligned_store): Ditto.
17662 (TARGET_RETURN_IN_MSB): New.
17663 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
17664 (TARGET_ENDIAN_DEFAULT): New.
17665 (TARGET_BIG_ENDIAN): Handle big endian.
17666 (BYTES_BIG_ENDIAN): Ditto.
17667 (WORDS_BIG_ENDIAN): Ditto.
17668 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
17669 (ENDIAN_SPEC): New.
17670 (EXTRA_SPECS): New.
17671 * config/tilegx/tilegx.md (extv): Handle big endian.
17673 (insn_st<n>): Ditto.
17674 (insn_st<n>_add<bitsuffix>): Ditto.
17675 (insn_stnt<n>): Ditto.
17676 (insn_stnt<n>_add<bitsuffix>):Ditto.
17677 (vec_interleave_highv8qi): Handle big endian.
17678 (vec_interleave_highv8qi_be): New.
17679 (vec_interleave_highv8qi_le): New.
17680 (insn_v1int_h): Handle big endian.
17681 (vec_interleave_lowv8qi): Handle big endian.
17682 (vec_interleave_lowv8qi_be): New.
17683 (vec_interleave_lowv8qi_le): New.
17684 (insn_v1int_l): Handle big endian.
17685 (vec_interleave_highv4hi): Handle big endian.
17686 (vec_interleave_highv4hi_be): New.
17687 (vec_interleave_highv4hi_le): New.
17688 (insn_v2int_h): Handle big endian.
17689 (vec_interleave_lowv4hi): Handle big endian.
17690 (vec_interleave_lowv4hi_be): New.
17691 (vec_interleave_lowv4hi_le): New.
17692 (insn_v2int_l): Handle big endian.
17693 (vec_interleave_highv2si): Handle big endian.
17694 (vec_interleave_highv2si_be): New.
17695 (vec_interleave_highv2si_le): New.
17696 (insn_v4int_h): Handle big endian.
17697 (vec_interleave_lowv2si): Handle big endian.
17698 (vec_interleave_lowv2si_be): New.
17699 (vec_interleave_lowv2si_le): New.
17700 (insn_v4int_l): Handle big endian.
17701 * config/tilegx/tilegx.opt (mbig-endian): New option.
17702 (mlittle-endian): New option.
17703 * doc/install.texi: Document tilegxbe-linux.
17704 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
17706 2014-02-24 Martin Jambor <mjambor@suse.cz>
17709 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
17710 there are no parameter descriptors.
17712 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
17714 PR rtl-optimization/60268
17715 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
17716 initialization to ...
17717 (sched_rgn_init): ... here.
17718 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
17720 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
17722 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
17725 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
17727 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
17730 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
17732 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
17733 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
17735 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
17737 * config/microblaze/predicates.md: Add cmp_op predicate.
17738 * config/microblaze/microblaze.md: Add branch_compare instruction
17739 which uses cmp_op predicate and emits cmp insn before branch.
17740 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
17741 to microblaze_expand_conditional_branch and consolidate logic.
17742 (microblaze_expand_conditional_branch): emit branch_compare
17743 insn instead of handling cmp op separate from branch insn.
17745 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17747 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
17750 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17752 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
17753 define_insn with define_expand and new define_insn
17754 *altivec_lve<VI_char>x_internal.
17755 (altivec_stve<VI_char>x): Replace define_insn with define_expand
17756 and new define_insn *altivec_stve<VI_char>x_internal.
17757 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
17759 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
17761 (altivec_expand_stvex_be): New function.
17763 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
17765 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
17766 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
17767 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
17768 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
17770 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
17773 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
17774 instead of emit_move_insn.
17776 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17778 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
17779 vspltw with vsldoi.
17780 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
17781 gen_altivec_vsumsws.
17783 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17785 * config/rs6000/altivec.md (altivec_lvxl): Rename as
17786 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
17787 (altivec_lvxl_<mode>): New define_expand incorporating
17788 -maltivec=be semantics where needed.
17789 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
17790 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
17791 semantics where needed.
17792 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
17793 (altivec_stvx_<mode>): New define_expand incorporating
17794 -maltivec=be semantics where needed.
17795 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
17796 VM2 iterator instead of V4SI.
17797 (altivec_stvxl_<mode>): New define_expand incorporating
17798 -maltivec=be semantics where needed.
17799 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
17800 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
17801 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
17802 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
17803 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
17804 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
17805 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
17806 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
17807 ALTIVEC_BUILTIN_STVXL.
17808 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
17809 (altivec_expand_stvx_be): Likewise.
17810 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
17811 (altivec_expand_lvx_be): Likewise.
17812 (altivec_expand_stvx_be): Likewise.
17813 (altivec_expand_builtin): Add cases for
17814 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
17815 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
17816 (altivec_init_builtins): Add definitions for
17817 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
17818 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
17820 2014-02-21 Catherine Moore <clm@codesourcery.com>
17822 * doc/invoke.texi (mvirt, mno-virt): Document.
17823 * config/mips/mips.opt (mvirt): New option.
17824 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
17826 2014-02-21 Richard Biener <rguenther@suse.de>
17828 PR tree-optimization/60276
17829 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
17830 (STMT_VINFO_MIN_NEG_DIST): New macro.
17831 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
17832 STMT_VINFO_MIN_NEG_DIST.
17833 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
17834 made for negative dependence distances still hold.
17836 2014-02-21 Richard Biener <rguenther@suse.de>
17838 PR middle-end/60291
17839 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
17840 DECL_INITIAL for globals not in the current function context.
17842 2014-02-21 Jakub Jelinek <jakub@redhat.com>
17844 PR tree-optimization/56490
17845 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
17846 * tree-ssa-uninit.c: Include params.h.
17847 (compute_control_dep_chain): Add num_calls argument, return false
17848 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
17849 num_calls to recursive call.
17850 (find_predicates): Change dep_chain into normal array,
17851 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
17852 variable and adjust compute_control_dep_chain caller.
17853 (find_def_preds): Likewise.
17855 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
17857 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
17858 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
17860 2014-02-21 Nick Clifton <nickc@redhat.com>
17862 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
17863 (pushhi1): Likewise.
17864 (popqi1): Add mode to pre_dec.
17865 (pophi1): Likewise.
17867 2014-02-21 Jakub Jelinek <jakub@redhat.com>
17869 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
17870 mode for mask of V8SFmode permutation.
17872 2014-02-20 Richard Henderson <rth@redhat.com>
17875 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
17876 a new pseudo for OLDVAL.
17878 2014-02-20 Jakub Jelinek <jakub@redhat.com>
17881 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
17882 gen_reg_rtx if d->testing_p.
17883 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
17884 if d->testing_p and we will certainly return true.
17885 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
17888 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
17890 * emit-rtl.c (gen_reg_rtx): Assert that
17891 crtl->emit.regno_pointer_align_length is non-zero.
17893 2014-02-20 Richard Henderson <rth@redhat.com>
17896 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
17897 on failure the store back into EXPECT.
17899 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
17900 Sandra Loosemore <sandra@codesourcery.com>
17902 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
17903 * config/nios2/nios2.c (nios2_function_profiler): Add
17904 -fPIC (flag_pic == 2) support.
17905 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
17906 (nios2_large_offset_p): New function.
17907 (nios2_unspec_reloc_p): Move up position, update to use
17908 nios2_large_offset_p.
17909 (nios2_unspec_address): Remove function.
17910 (nios2_unspec_offset): New function.
17911 (nios2_large_got_address): New function.
17912 (nios2_got_address): Add large offset support.
17913 (nios2_legitimize_tls_address): Update usage of removed and new
17915 (nios2_symbol_binds_local_p): New function.
17916 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
17917 (nios2_legitimize_address): Update to use nios2_large_offset_p.
17918 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
17919 (nios2_print_operand): Merge H/L processing, add hiadj/lo
17920 processing for (const (unspec ...)).
17921 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
17923 2014-02-20 Richard Biener <rguenther@suse.de>
17925 * tree-cfg.c (replace_uses_by): Mark altered BBs before
17926 doing the substitution.
17927 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
17929 2014-02-20 Martin Jambor <mjambor@suse.cz>
17932 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
17933 info when checking whether lattices are bottom.
17935 2014-02-20 Richard Biener <rguenther@suse.de>
17937 PR middle-end/60221
17938 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
17941 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
17944 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
17945 parameter specifying the scaling.
17946 (inline_call): Update.
17947 (want_inline_recursively): Guard division by zero.
17948 (recursive_inlining): Update.
17949 * ipa-inline.h (clone_inlined_nodes): Update.
17951 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
17954 * config/i386/i386.c (classify_argument): Pass structures of size
17955 64 bytes or less in register.
17957 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
17958 Kirill Yukhin <kirill.yukhin@intel.com>
17960 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
17961 (_mm_rcp28_round_ss): Ditto.
17962 (_mm_rsqrt28_round_sd): Ditto.
17963 (_mm_rsqrt28_round_ss): Ditto.
17964 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
17965 (_mm_rcp14_round_ss): Ditto.
17966 (_mm_rsqrt14_round_sd): Ditto.
17967 (_mm_rsqrt14_round_ss): Ditto.
17968 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
17969 the first input operand, get rid of match_dup.
17970 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
17972 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
17974 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
17975 operand as the first input operand, set type attribute.
17976 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
17977 Set type attribute.
17978 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
17979 operand as the first input operand, set type attribute.
17981 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17983 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
17986 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
17989 * config/i386/i386.c (construct_container): Remove TFmode check
17990 for X86_64_INTEGER_CLASS.
17992 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
17995 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
17996 only when -Wpsabi is enabled.
17998 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18001 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18002 passing arrays in registers are the same as for structs, so remove the
18003 special case for them.
18005 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18007 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18008 destination type, extract only the valid bits if the source type is not
18009 integral and has a different mode.
18011 2014-02-19 Richard Biener <rguenther@suse.de>
18014 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18017 2014-02-19 Richard Biener <rguenther@suse.de>
18020 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18021 (ipa_modify_call_arguments): Emit an argument load explicitely and
18022 preserve virtual SSA form there and for the replacement call.
18023 Do not update SSA form nor free dominance info.
18025 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18027 * ipa.c (function_and_variable_visibility): Also clear WEAK
18028 flag when disolving COMDAT_GROUP.
18030 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18032 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18033 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18034 not devirtualizing.
18035 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18036 do more sanity checks.
18037 (detect_type_change): Return true when giving up early.
18038 (compute_complex_assign_jump_func): Fix type parameter of
18039 ipa_set_ancestor_jf.
18040 (compute_complex_ancestor_jump_func): Likewise.
18041 (update_jump_functions_after_inlining): Fix updating of
18043 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18045 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18047 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18048 inline clones when edge disappears.
18050 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18053 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18054 Split 64-bit moves into 2 patterns. Do not allow the use of
18055 direct move for TDmode in little endian, since the decimal value
18056 has little endian bytes within a word, but the 64-bit pieces are
18057 ordered in a big endian fashion, and normal subreg's of TDmode are
18059 (mov<mode>_64bit_dm): Likewise.
18060 (movtd_64bit_nodm): Likewise.
18062 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18064 PR tree-optimization/60174
18065 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18066 statement of an SSA_NAME that occurs in an abnormal PHI node.
18068 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18071 * final.c (SEEN_BB): Remove.
18072 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18073 (final_scan_insn): Don't force_source_line on second
18074 NOTE_INSN_BASIC_BLOCK.
18076 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18079 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18080 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18081 (type_natural_mode): Warn ABI change when %zmm register is not
18082 available for AVX512F vector value passing.
18084 2014-02-18 Kai Tietz <ktietz@redhat.com>
18087 * config/i386/i386.c (ix86_expand_prologue): Use value in
18088 rax register as displacement when restoring %r10 or %rax.
18089 Fix wrong offset when restoring both registers.
18091 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18093 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18094 assertion with conditional return.
18096 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18097 Uros Bizjak <ubizjak@gmail.com>
18100 * config/i386/driver-i386.c (host_detect_local_cpu): If
18101 YMM state is not saved by the OS, also clear has_f16c. Move
18102 CPUID 0x80000001 handling before YMM state saving checking.
18104 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18106 PR rtl-optimization/58960
18107 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18108 factored out from ...
18109 (sched_init): ... here.
18110 (free_global_sched_pressure_data): New, factored out from ...
18111 (sched_finish): ... here.
18112 * sched-int.h (free_global_sched_pressure_data): Declare.
18113 * sched-rgn.c (nr_regions_initial): New static global.
18114 (haifa_find_rgns): Initialize it.
18115 (schedule_region): Disable sched-pressure for the newly
18118 2014-02-17 Richard Biener <rguenther@suse.de>
18120 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18121 release SSA defs of pattern stmts.
18123 2014-02-17 Richard Biener <rguenther@suse.de>
18125 * tree-inline.c (expand_call_inline): Release the virtual
18126 operand defined by the call we are about to inline.
18128 2014-02-17 Richard Biener <rguenther@suse.de>
18130 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18132 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18133 Ilya Tocar <ilya.tocar@intel.com>
18135 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18136 arguments order in builtin.
18137 (_mm512_permutexvar_epi64): Ditto.
18138 (_mm512_mask_permutexvar_epi64): Ditto
18139 (_mm512_maskz_permutexvar_epi32): Ditto
18140 (_mm512_permutexvar_epi32): Ditto
18141 (_mm512_mask_permutexvar_epi32): Ditto
18143 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18145 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18146 (p8_vmrgow): Likewise.
18148 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18150 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18153 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18156 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18157 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18158 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18159 using direct move instructions on ISA 2.07. Also adjust
18160 instruction length for 64-bit.
18161 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18162 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18164 2014-02-15 Alan Modra <amodra@gmail.com>
18168 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18169 find_replacement on parts of insn rtl that might be reloaded.
18171 2014-02-15 Richard Biener <rguenther@suse.de>
18173 PR tree-optimization/60183
18174 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18175 (tree_ssa_phiprop): Calculate and free post-dominators.
18177 2014-02-14 Jeff Law <law@redhat.com>
18179 PR rtl-optimization/60131
18180 * ree.c (get_extended_src_reg): New function.
18181 (combine_reaching_defs): Use it rather than assuming location of REG.
18182 (find_and_remove_re): Verify first operand of extension is
18183 a REG before adding the insns to the copy list.
18185 2014-02-14 Roland McGrath <mcgrathr@google.com>
18187 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18188 * configure: Regenerated.
18189 * config.in: Regenerated.
18190 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18191 instead of ASM_SHORT.
18193 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18194 Richard Earnshaw <rearnsha@arm.com>
18196 PR rtl-optimization/59535
18197 * lra-constraints.c (process_alt_operands): Encourage alternative
18198 when unassigned pseudo class is superset of the alternative class.
18199 (inherit_reload_reg): Don't inherit when optimizing for code size.
18200 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18201 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18202 modes not less than 4 for Thumb1.
18204 2014-02-14 Kyle McMartin <kyle@redhat.com>
18207 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18209 2014-02-14 Richard Biener <rguenther@suse.de>
18211 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18212 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18213 Do not strip INDIRECT_REFs.
18215 2014-02-14 Richard Biener <rguenther@suse.de>
18218 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18219 DECL_FUNCTION_SPECIFIC_TARGET.
18220 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18221 * tree-streamer-out.c (pack_ts_target_option): Remove.
18222 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18223 (write_ts_function_decl_tree_pointers): Do not stream
18224 DECL_FUNCTION_SPECIFIC_TARGET.
18225 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18226 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18227 (lto_input_ts_function_decl_tree_pointers): Do not stream
18228 DECL_FUNCTION_SPECIFIC_TARGET.
18230 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18232 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18233 (get_initial_def_for_induction, vectorizable_induction): Ignore
18234 debug stmts when looking for exit_phi.
18235 (vectorizable_live_operation): Fix up condition.
18237 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18239 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18240 nreverse() because it changes the content of original tree list.
18242 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18244 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18245 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18247 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18249 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18250 GNU coding standards.
18252 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18255 * dwarf2out.c (gen_subprogram_die): Don't call
18256 add_calling_convention_attribute if subr_die is old_die.
18258 2014-02-13 Sharad Singhai <singhai@google.com>
18260 * doc/optinfo.texi: Fix order of nodes.
18262 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18264 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18265 operands[2], not operands[3].
18267 2014-02-13 Richard Biener <rguenther@suse.de>
18270 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18271 mention the possibility of an in-tree build.
18272 (CLooG): Update recommended version to 0.18.1, mention the
18273 possibility of an in-tree build and clarify that the ISL
18274 bundled with CLooG does not work.
18276 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18279 * expr.c (compress_float_constant): If x is a hard register,
18280 extend into a pseudo and then move to x.
18282 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18284 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18285 caused by bad second argument to warning_at() with -mhotpatch and
18286 nested functions (e.g. with gfortran).
18288 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18290 * opts.c (option_name): Remove "enabled by default" rider.
18292 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18294 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18296 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18297 Uros Bizjak <ubizjak@gmail.com>
18300 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18301 * configure: Regenerated.
18303 2014-02-12 Richard Biener <rguenther@suse.de>
18305 * vec.c (vec_prefix::calculate_allocation): Move as
18306 inline variant to vec.h.
18307 (vec_prefix::calculate_allocation_1): New out-of-line version.
18308 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18309 (vec_prefix::m_has_auto_buf): Rename to ...
18310 (vec_prefix::m_using_auto_storage): ... this.
18311 (vec_prefix::calculate_allocation): Inline the easy cases
18312 and dispatch to calculate_allocation_1 which doesn't need the
18314 (va_heap::reserve): Use gcc_checking_assert.
18315 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18316 m_using_auto_storage.
18317 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18319 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18320 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18321 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18323 2014-02-12 Richard Biener <rguenther@suse.de>
18325 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18326 when we found a dependence.
18328 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18330 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18332 (maybe_fold_stmt): ... into this new function.
18333 * omp-low.c (lower_omp): Update comment.
18335 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18338 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18341 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18343 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18344 identifiers in comments.
18345 (cortexa53_extra_costs): Likewise.
18346 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18347 (cortexa7_extra_costs): Likewise.
18348 (cortexa12_extra_costs): Likewise.
18349 (cortexa15_extra_costs): Likewise.
18350 (v7m_extra_costs): Likewise.
18352 2014-02-12 Richard Biener <rguenther@suse.de>
18354 PR middle-end/60092
18355 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18356 of posix_memalign being successful.
18357 (lower_stmt): Restrict lowering of posix_memalign to when
18358 -ftree-bit-ccp is enabled.
18360 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18362 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18364 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18366 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18368 PR rtl-optimization/60116
18369 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18370 other_insn once the combination has been validated.
18372 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18375 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18377 * ipa-devirt.c: Include demangle.h
18378 (odr_violation_reported): New static variable.
18379 (add_type_duplicate): Update odr_violations.
18380 (maybe_record_node): Add completep parameter; update it.
18381 (record_target_from_binfo): Add COMPLETEP parameter;
18382 update it as needed.
18383 (possible_polymorphic_call_targets_1): Likewise.
18384 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18385 rename FINAL to COMPLETE.
18386 (record_targets_from_bases): Sanity check we found the binfo;
18387 fix COMPLETEP updating.
18388 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18389 parameter, fix computing of COMPLETEP.
18390 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18391 at LTO time do demangling.
18392 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18393 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18395 (gimple_get_virt_method_for_binfo): Likewise.
18396 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18397 gimple_get_virt_method_for_vtable): Update prototypes.
18399 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18402 * genautomata.c (add_presence_absence): Fix typo with
18403 {final_}presence_list.
18405 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18408 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18409 for VSX/Altivec vectors that land in GPR registers.
18411 2014-02-11 Richard Henderson <rth@redhat.com>
18412 Jakub Jelinek <jakub@redhat.com>
18415 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18416 around drhs if type conversion to lacc->type is not useless.
18418 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18420 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18422 (cortex-a57.cortex-a53): Likewise.
18423 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18425 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18427 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18430 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18432 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18433 add_options_for_arm_vfp3.
18435 2014-02-11 Jeff Law <law@redhat.com>
18437 PR middle-end/54041
18438 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18439 object with an undesirable mode.
18441 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18444 * config/i386/sol2-9.h: New file.
18445 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18446 *-*-solaris2.9*): Use it.
18448 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18450 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18451 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18453 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18455 * config/microblaze/microblaze.c: Extend mcpu version format
18457 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18459 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18461 2014-02-10 Richard Henderson <rth@redhat.com>
18464 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18465 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18466 ms-abi vs -mno-accumulate-outgoing-args.
18467 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18468 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18471 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18473 PR middle-end/60080
18474 * cfgexpand.c (expand_asm_operands): Attach source location to
18475 ASM_INPUT rtx objects.
18476 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18478 2014-02-10 Nick Clifton <nickc@redhat.com>
18480 * config/mn10300/mn10300.c (popcount): New function.
18481 (mn10300_expand_prologue): Include saved registers in stack usage
18484 2014-02-10 Jeff Law <law@redhat.com>
18486 PR middle-end/52306
18487 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18488 when changing the SET_DEST of a prior insn to avoid an input reload.
18490 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18492 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18493 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18494 -mcall-openbsd, or -mcall-linux.
18495 (CC1_ENDIAN_BIG_SPEC): Remove.
18496 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18497 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18498 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18499 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18500 and %cc1_endian_default.
18501 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18503 2014-02-10 Richard Biener <rguenther@suse.de>
18505 PR tree-optimization/60115
18506 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18507 MEM_REF handling. Properly verify that the accesses are not
18508 out of the objects bound.
18510 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18512 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18515 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18517 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18518 proper constants and fix formatting.
18519 (possible_polymorphic_call_targets): Fix formatting.
18521 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18522 Ilya Tocar <ilya.tocar@intel.com>
18524 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18525 (_mm512_loadu_epi32): Renamed into...
18526 (_mm512_loadu_si512): This.
18527 (_mm512_storeu_epi32): Renamed into...
18528 (_mm512_storeu_si512): This.
18529 (_mm512_maskz_ceil_ps): Removed.
18530 (_mm512_maskz_ceil_pd): Ditto.
18531 (_mm512_maskz_floor_ps): Ditto.
18532 (_mm512_maskz_floor_pd): Ditto.
18533 (_mm512_floor_round_ps): Ditto.
18534 (_mm512_floor_round_pd): Ditto.
18535 (_mm512_ceil_round_ps): Ditto.
18536 (_mm512_ceil_round_pd): Ditto.
18537 (_mm512_mask_floor_round_ps): Ditto.
18538 (_mm512_mask_floor_round_pd): Ditto.
18539 (_mm512_mask_ceil_round_ps): Ditto.
18540 (_mm512_mask_ceil_round_pd): Ditto.
18541 (_mm512_maskz_floor_round_ps): Ditto.
18542 (_mm512_maskz_floor_round_pd): Ditto.
18543 (_mm512_maskz_ceil_round_ps): Ditto.
18544 (_mm512_maskz_ceil_round_pd): Ditto.
18545 (_mm512_expand_pd): Ditto.
18546 (_mm512_expand_ps): Ditto.
18547 * config/i386/i386.c (ix86_builtins): Remove
18548 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18549 (bdesc_args): Ditto.
18550 * config/i386/predicates.md (const1256_operand): New.
18551 (const_1_to_2_operand): Ditto.
18552 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18553 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18554 (*avx512pf_gatherpf<mode>sf): Ditto.
18555 (avx512pf_gatherpf<mode>df): Ditto.
18556 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18557 (*avx512pf_gatherpf<mode>df): Ditto.
18558 (avx512pf_scatterpf<mode>sf): Ditto.
18559 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18560 (*avx512pf_scatterpf<mode>sf): Ditto.
18561 (avx512pf_scatterpf<mode>df): Ditto.
18562 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18563 (*avx512pf_scatterpf<mode>df): Ditto.
18564 (avx512f_expand<mode>): Removed.
18565 (<shift_insn><mode>3<mask_name>): Change predicate type.
18567 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18569 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
18570 not at the end of datarefs vector use ordered_remove to avoid
18571 reordering datarefs vector.
18574 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
18575 mark local addressable non-static vars as GOVD_PRIVATE
18576 instead of GOVD_LOCAL.
18577 * omp-low.c (lower_omp_for): Move gimple_bind_vars
18578 and BLOCK_VARS of gimple_bind_block to new_stmt rather
18581 PR middle-end/60092
18582 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
18583 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
18584 assume_aligned or alloc_align attributes.
18585 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
18586 arguments. Handle also assume_aligned and alloc_align attributes.
18587 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
18588 calls to functions with assume_aligned or alloc_align attributes.
18589 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
18591 2014-02-08 Terry Guo <terry.guo@arm.com>
18593 * doc/invoke.texi: Document ARM -march=armv7e-m.
18595 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18597 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
18598 flag on __cilkrts_rethrow builtin.
18601 * ipa-cp.c (determine_versionability): Fail at -O0
18602 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
18603 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
18606 2014-02-04 Jakub Jelinek <jakub@redhat.com>
18609 * tree-inline.c (copy_forbidden): Fail for
18610 __attribute__((optimize (0))) functions.
18612 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18614 * varpool.c: Include pointer-set.h.
18615 (varpool_remove_unreferenced_decls): Variables in other partitions
18616 will not be output; be however careful to not lose information
18617 about partitioning.
18619 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18621 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
18622 lookup in the vtable constructor.
18624 2014-02-07 Jeff Law <law@redhat.com>
18627 * config/m68k/m68k.md (ashldi_extsi): Turn into a
18628 define_insn_and_split.
18630 * ipa-inline.c (inline_small_functions): Fix typos.
18632 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18634 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
18635 (s390_can_use_return_insn): Declare.
18636 * config/s390/s390.h (EPILOGUE_USES): Define.
18637 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
18639 (s390_chunkify_start): Handle return JUMP_LABELs.
18640 (s390_early_mach): Emit a main_pool instruction on the entry edge.
18641 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
18642 (s390_can_use_return_insn): New functions.
18643 (s390_fix_long_loop_prediction): Handle conditional returns.
18644 (TARGET_SET_UP_BY_PROLOGUE): Define.
18645 * config/s390/s390.md (ANY_RETURN): New code iterator.
18646 (*creturn, *csimple_return, return, simple_return): New patterns.
18648 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18650 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
18651 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
18652 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
18653 REG_CFA_RESTORE list when deciding not to restore a register.
18655 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18657 * config/s390/s390.c: Include tree-pass.h and context.h.
18658 (s390_early_mach): New function, split out from...
18659 (s390_emit_prologue): ...here.
18660 (pass_data_s390_early_mach): New pass structure.
18661 (pass_s390_early_mach): New class.
18662 (s390_option_override): Create and register early_mach pass.
18663 Move to end of file.
18665 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18667 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
18668 to match for the exit block.
18670 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18672 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
18673 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
18674 Reject misaligned operands.
18676 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18678 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
18680 2014-02-07 Richard Biener <rguenther@suse.de>
18682 PR middle-end/60092
18683 * gimple-low.c (lower_builtin_posix_memalign): New function.
18684 (lower_stmt): Call it to lower posix_memalign in a way
18685 to make alignment info accessible.
18687 2014-02-07 Jakub Jelinek <jakub@redhat.com>
18690 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
18691 __builtin_setjmp_receiver.
18693 2014-02-07 Richard Biener <rguenther@suse.de>
18695 PR middle-end/60092
18696 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
18697 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
18698 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18699 Handle BUILT_IN_POSIX_MEMALIGN.
18700 (find_func_clobbers): Likewise.
18701 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18702 (call_may_clobber_ref_p_1): Likewise.
18704 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18707 * ipa-devirt.c (record_target_from_binfo): Remove overactive
18710 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18713 * lto-cgraph.c (lto_output_node): Use
18714 symtab_get_symbol_partitioning_class.
18715 (lto_output_varpool_node): likewise.
18716 (symtab_get_symbol_partitioning_class): Move here from
18717 lto/lto-partition.c
18718 * cgraph.h (symbol_partitioning_class): Likewise.
18719 (symtab_get_symbol_partitioning_class): Declare.
18721 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18723 * ggc.h (ggc_internal_cleared_alloc): New macro.
18724 * vec.h (vec_safe_copy): Handle memory stats.
18725 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
18726 * target-globals.c (save_target_globals): Likewise.
18728 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
18731 * expr.c (emit_move_resolve_push): Export; be bit more selective
18732 on when to clear alias set.
18733 * expr.h (emit_move_resolve_push): Declare.
18734 * function.h (struct function): Add tail_call_marked.
18735 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
18736 * config/i386/i386-protos.h (ix86_expand_push): Remove.
18737 * config/i386/i386.md (TImode move expander): De not call
18739 (FP push expanders): Preserve memory attributes.
18740 * config/i386/sse.md (push<mode>1): Remove.
18741 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
18742 (ix86_expand_push): Remove.
18743 * config/i386/mmx.md (push<mode>1): Remove.
18745 2014-02-06 Jakub Jelinek <jakub@redhat.com>
18747 PR rtl-optimization/60030
18748 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
18749 lopart with paradoxical subreg before shifting it up by hprec.
18751 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18753 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
18754 Remove extra newline at end of file.
18755 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
18756 (arm_issue_rate): Handle cortexa57.
18757 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
18758 (cortex-a57.cortex-a53): Likewise.
18760 2014-02-06 Jakub Jelinek <jakub@redhat.com>
18763 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
18764 don't record in REG_FRAME_RELATED_EXPR registers not set in that
18766 (arm_expand_prologue): Adjust all callers.
18767 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
18768 info, registers also at the lowest numbered registers side. Use
18769 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
18773 * var-tracking.c (adjust_mems): Before adding a SET to
18774 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
18776 2014-02-06 Alan Modra <amodra@gmail.com>
18779 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
18780 change SDmode to DDmode when lra_in_progress.
18782 2014-02-06 Jakub Jelinek <jakub@redhat.com>
18784 PR middle-end/59150
18785 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
18786 free_data_ref on the dr first, and before goto again also set dr
18787 to the next dr. For simd_lane_access, free old datarefs[i] before
18788 overwriting it. For get_vectype_for_scalar_type failure, don't
18789 free_data_ref if simd_lane_access.
18791 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
18794 * tree.h (opts_for_fn): New inline function.
18795 (opt_for_fn): Define.
18796 * config/i386/i386.c (ix86_function_regparm): Use
18797 opt_for_fn (decl, optimize) instead of optimize.
18799 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
18801 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
18802 for SYMBOL_REF in large memory model.
18804 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18806 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
18807 and crypto support.
18808 (cortex-a57): Likewise.
18809 (cortex-a57.cortex-a53): Likewise.
18811 2014-02-06 Yury Gribov <y.gribov@samsung.com>
18812 Kugan Vivekanandarajah <kuganv@linaro.org>
18814 * config/arm/arm.c (arm_vector_alignment_reachable): Check
18816 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
18818 2014-02-06 Richard Biener <rguenther@suse.de>
18820 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
18821 set_loop_copy and initialize_original_copy_tables.
18823 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
18825 * config/aarch64/aarch64-simd.md
18826 (aarch64_ashr_simddi): Change QI to SI.
18828 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
18829 Jakub Jelinek <jakub@redhat.com>
18831 PR middle-end/60013
18832 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
18835 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18837 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
18838 CODE_FOR_altivec_vpku[hw]um to
18839 CODE_FOR_altivec_vpku[hw]um_direct.
18840 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
18841 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
18842 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
18843 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
18845 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18847 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
18848 generation for -maltivec=be.
18849 (altivec_vsumsws): Simplify redundant test.
18851 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18853 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
18854 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
18855 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
18856 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
18857 gen_altivec_vpkuwum.
18858 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
18860 (altivec_vpks<VI_char>ss): Likewise.
18861 (altivec_vpks<VI_char>us): Likewise.
18862 (altivec_vpku<VI_char>us): Likewise.
18863 (altivec_vpku<VI_char>um): Likewise.
18864 (altivec_vpku<VI_char>um_direct): New (copy of
18865 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
18867 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
18868 target is little endian and -maltivec=be is not specified.
18869 (*altivec_vupkhs<VU_char>_direct): New (copy of
18870 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
18871 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
18872 target is little endian and -maltivec=be is not specified.
18873 (*altivec_vupkls<VU_char>_direct): New (copy of
18874 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
18875 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
18876 little endian and -maltivec=be is not specified.
18877 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
18878 little endian and -maltivec=be is not specified.
18880 2014-02-05 Richard Henderson <rth@redhat.com>
18883 * combine-stack-adj.c: Revert r206943.
18884 * sched-int.h (struct deps_desc): Add last_args_size.
18885 * sched-deps.c (init_deps): Initialize it.
18886 (sched_analyze_insn): Add OUTPUT dependencies between insns that
18887 contain REG_ARGS_SIZE notes.
18889 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
18891 * lto-cgraph.c (asm_nodes_output): Make global.
18892 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
18893 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
18894 (driver_handle_option): Handle OPT_fwpa.
18896 2014-02-05 Jakub Jelinek <jakub@redhat.com>
18899 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
18900 a comment typo and formatting issue. If odr_hash hasn't been
18901 created, return vNULL and set *completep to false.
18903 PR middle-end/57499
18904 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
18905 bb with no successors.
18907 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
18910 * doc/invoke.texi (-march): Clarify documentation for ARM.
18911 (-mtune): Likewise.
18914 2014-02-05 Richard Biener <rguenther@suse.de>
18916 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
18917 when not vectorizing because of too many alias checks.
18918 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
18919 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
18921 2014-02-05 Nick Clifton <nickc@redhat.com>
18923 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
18924 accept extended registers in any mode when compiling for the MN10300.
18926 2014-02-05 Yury Gribov <y.gribov@samsung.com>
18928 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
18929 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
18930 sanitization attributes.
18931 (can_inline_edge_p): Likewise.
18932 (sanitize_attrs_match_for_inline_p): New function.
18934 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
18936 * ipa-prop.c (detect_type_change): Shor circuit testing of
18937 type changes on THIS pointer.
18939 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
18942 * config/pa/pa.c (legitimize_tls_address): Return original address
18943 if not passed a SYMBOL_REF rtx.
18944 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
18946 (pa_emit_move_sequence): Simplify TLS source operands.
18947 (pa_legitimate_constant_p): Reject all TLS constants.
18948 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
18949 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
18951 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
18953 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
18954 groups when we know they are controlled by LTO.
18955 * varasm.c (default_binds_local_p_1): If object is in other partition,
18956 it will be resolved locally.
18958 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
18960 * config/host-linux.c (linux_gt_pch_use_address): Don't
18961 use SSIZE_MAX because it is not always defined.
18963 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
18966 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
18967 threshold for pseudo splitting.
18968 (update_ebb_live_info): Process call argument hard registers and
18969 hard registers from insn definition too.
18970 (max_small_class_regs_num): New constant.
18971 (inherit_in_ebb): Update live hard regs through EBBs. Update
18972 reloads_num only for small register classes. Don't split for
18975 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
18978 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
18981 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
18983 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
18984 visibility is safe.
18986 2014-02-04 Marek Polacek <polacek@redhat.com>
18988 * gdbinit.in (pel): Define.
18990 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
18992 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
18995 2014-02-04 Richard Biener <rguenther@suse.de>
18998 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
18999 in function context local.
19000 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19001 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19002 similar to LTO_imported_decl_ref.
19004 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19006 PR tree-optimization/60002
19007 * cgraphclones.c (build_function_decl_skip_args): Clear
19008 DECL_LANG_SPECIFIC.
19010 PR tree-optimization/60023
19011 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19012 false to gsi_replace.
19013 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19014 has been in some EH region and vec_stmt could throw, add
19015 vec_stmt into the same EH region.
19016 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19017 has no lhs, ignore it.
19018 * internal-fn.c (expand_MASK_LOAD): Likewise.
19021 * tree-inline.c (copy_forbidden): Fail for
19022 __attribute__((optimize (0))) functions.
19025 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19026 is set, copy one less argument.
19027 (expand_simd_clones): Don't subtract clone_info->inbranch
19028 from simd_clone_struct_alloc argument.
19030 PR rtl-optimization/57915
19031 * recog.c (simplify_while_replacing): If all unary/binary/relational
19032 operation arguments are constant, attempt to simplify those.
19034 PR middle-end/59261
19035 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19036 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19038 2014-02-04 Richard Biener <rguenther@suse.de>
19040 PR tree-optimization/60012
19041 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19042 TBAA disambiguation to all DDRs.
19044 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19047 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19048 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19050 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19053 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19055 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19057 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19058 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19060 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19063 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19064 to figure out targets of polymorphic calls with known decl.
19065 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19066 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19067 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19068 (get_polymorphic_call_info): ... here.
19069 (get_polymorphic_call_info_from_invariant): New function.
19071 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19073 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19074 lookup via vtable pointer; check for type consistency
19075 and turn inconsitent facts into UNREACHABLE.
19076 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19077 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19078 type inconsistent querries; return UNREACHABLE instead.
19080 2014-02-03 Richard Henderson <rth@twiddle.net>
19083 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19084 already processed this node.
19085 (normalize_one_pred_1): Pass along mark_set.
19086 (normalize_one_pred): Create and destroy a pointer_set_t.
19087 (normalize_one_pred_chain): Likewise.
19089 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19091 PR gcov-profile/58602
19092 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19094 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19097 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19098 -fno-devirtualize; try to devirtualize by the knowledge of
19099 virtual table pointer given by aggregate propagation.
19100 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19101 (ipa_print_node_jump_functions): Dump also offset that
19102 is relevant for polymorphic calls.
19103 (determine_known_aggregate_parts): Add arg_type parameter; use it
19104 instead of determining the type from pointer type.
19105 (ipa_compute_jump_functions_for_edge): Update call of
19106 determine_known_aggregate_parts.
19107 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19108 (gimple_get_virt_method_for_binfo): ... here; simplify using
19109 vtable_pointer_value_to_vtable.
19110 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19111 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19112 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19113 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19115 (vtable_pointer_value_to_binfo): ... here.
19116 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19118 2014-02-03 Teresa Johnson <tejohnson@google.com>
19120 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19121 redef of outer loop index variable.
19123 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19127 * doc/extend.texi (Function Attributes): Typo.
19129 2014-02-03 Cong Hou <congh@google.com>
19131 PR tree-optimization/60000
19132 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19133 if the vectorized statement is a store. A store statement can only
19134 appear at the end of pattern statements.
19136 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19138 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19139 (ix86_option_override_internal): Default long double to 64-bit for
19140 32-bit Bionic and to 128-bit for 64-bit Bionic.
19142 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19143 TARGET_LONG_DOUBLE_128 is true.
19144 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19146 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19147 (mlong-double-64): Negate -mlong-double-128.
19148 (mlong-double-128): New option.
19150 * config/i386/i386-c.c (ix86_target_macros): Define
19151 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19153 * doc/invoke.texi: Document -mlong-double-128.
19155 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19157 PR rtl-optimization/60024
19158 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19160 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19162 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19164 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19166 PR rtl-optimization/57662
19167 * sel-sched.c (code_motion_path_driver): Do not mark already not
19168 existing blocks in the visiting bitmap.
19170 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19172 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19173 on the insn being emitted.
19175 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19176 Will Deacon <will.deacon@arm.com>
19178 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19180 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19182 * config/arm/arm-tables.opt: Regenerate.
19184 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19186 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19187 for vector types other than V16QImode.
19188 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19189 define_expand, and call altivec_expand_vec_perm_le when producing
19190 code with little endian element order.
19191 (*altivec_vperm_<mode>_internal): New insn having previous
19192 behavior of altivec_vperm_<mode>.
19193 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19194 altivec_expand_vec_perm_le when producing code with little endian
19196 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19197 behavior of altivec_vperm_<mode>_uns.
19199 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19201 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19202 (altivec_vsumsws): Add handling for -maltivec=be with a little
19204 (altivec_vsumsws_direct): New.
19205 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19206 gen_altivec_vsumsws.
19208 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19210 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19211 vtable_pointer_value_to_binfo): New functions.
19212 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19213 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19215 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19217 * config/nios2/nios2.md (load_got_register): Initialize GOT
19218 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19219 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19221 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19223 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19224 preserverd by passthrough, do not propagate the type.
19226 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19228 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19229 (mips_atomic_assign_expand_fenv): New function.
19230 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19232 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19234 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19235 (__builtin_mips_set_fcsr): Likewise.
19236 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19237 MIPS_USI_FTYPE_VOID.
19238 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19239 (mips16_expand_set_fcsr): Likewise.
19240 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19241 (mips16_set_fcsr_stub): Likewise.
19242 (mips16_get_fcsr_one_only_stub): New class.
19243 (mips16_set_fcsr_one_only_stub): Likewise.
19244 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19245 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19246 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19247 (hard_float): New availability predicate.
19248 (mips_builtins): Add get_fcsr and set_fcsr.
19249 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19250 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19251 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19252 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19253 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19256 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19258 * config/mips/mips.c (mips_one_only_stub): New class.
19259 (mips_need_mips16_rdhwr_p): Replace with...
19260 (mips16_rdhwr_stub): ...this new variable.
19261 (mips16_stub_call_address): New function.
19262 (mips16_rdhwr_one_only_stub): New class.
19263 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19264 (mips_output_mips16_rdhwr): Delete.
19265 (mips_finish_stub): New function.
19266 (mips_code_end): Use it to handle rdhwr stubs.
19268 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19271 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19272 when calculating size of integer atomic types.
19274 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19276 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19278 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19280 PR tree-optimization/60003
19281 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19282 * profile.c (branch_prob): Use gimple_call_builtin_p
19283 to check for BUILT_IN_SETJMP_RECEIVER.
19284 * tree-inline.c (copy_bb): Call notice_special_calls.
19286 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19289 * lra-constraints.c (process_alt_operands): Update reload_sum only
19292 2014-01-31 Richard Henderson <rth@redhat.com>
19294 PR middle-end/60004
19295 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19296 until after else_eh is processed.
19298 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19300 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19301 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19302 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19303 in smmintrin.h, remove them.
19304 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19305 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19306 * config/i386/i386.md (ROUND_SAE): Fix value.
19307 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19308 (const48_operand): New.
19309 * config/i386/subst.md (round), (round_expand): Use
19310 const_4_or_8_to_11_operand.
19311 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19313 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19315 * config/i386/constraints.md (Yk): Swap meaning with k.
19316 * config/i386/i386.md (movhi_internal): Change Yk to k.
19317 (movqi_internal): Ditto.
19318 (*k<logic><mode>): Ditto.
19321 (kandn<mode>): Ditto.
19322 (*<code>hi_1): Ditto.
19323 (*<code>qi_1): Ditto.
19324 (kxnor<mode>): Ditto.
19325 (kortestzhi): Ditto.
19326 (kortestchi): Ditto.
19328 (*one_cmplhi2_1): Ditto.
19329 (*one_cmplqi2_1): Ditto.
19330 * config/i386/sse.md (): Change k to Yk.
19331 (avx512f_load<mode>_mask): Ditto.
19332 (avx512f_blendm<mode>): Ditto.
19333 (avx512f_store<mode>_mask): Ditto.
19334 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19335 (avx512f_storedqu<mode>_mask): Ditto.
19336 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19338 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19339 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19340 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19341 (avx512f_maskcmp<mode>3): Ditto.
19342 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19343 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19344 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19345 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19346 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19347 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19348 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19349 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19350 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19351 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19352 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19353 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19354 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19355 (vec_extract_lo_<mode>_maskm): Ditto.
19356 (vec_extract_hi_<mode>_maskm): Ditto.
19357 (avx512f_vternlog<mode>_mask): Ditto.
19358 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19359 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19360 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19361 (avx512f_<code>v8div16qi2_mask): Ditto.
19362 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19363 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19364 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19365 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19366 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19367 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19368 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19369 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19370 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19371 (avx512cd_maskb_vec_dupv8di): Ditto.
19372 (avx512cd_maskw_vec_dupv16si): Ditto.
19373 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19374 (avx512f_vpermi2var<mode>3_mask): Ditto.
19375 (avx512f_vpermi2var<mode>3_mask): Ditto.
19376 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19377 (*avx512f_gathersi<mode>): Ditto.
19378 (*avx512f_gathersi<mode>_2): Ditto.
19379 (*avx512f_gatherdi<mode>): Ditto.
19380 (*avx512f_gatherdi<mode>_2): Ditto.
19381 (*avx512f_scattersi<mode>): Ditto.
19382 (*avx512f_scatterdi<mode>): Ditto.
19383 (avx512f_compress<mode>_mask): Ditto.
19384 (avx512f_compressstore<mode>_mask): Ditto.
19385 (avx512f_expand<mode>_mask): Ditto.
19386 * config/i386/subst.md (mask): Change k to Yk.
19387 (mask_scalar_merge): Ditto.
19390 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19392 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19394 2014-01-31 Richard Biener <rguenther@suse.de>
19396 PR middle-end/59990
19397 * builtins.c (fold_builtin_memory_op): Make sure to not
19398 use a floating-point mode or a boolean or enumeral type for
19399 the copy operation.
19401 2014-01-30 DJ Delorie <dj@redhat.com>
19403 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19404 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19405 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19406 whenever main() has an epilogue.
19408 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19410 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19411 unused variable "field".
19412 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19413 (vsx_mergeh_<mode>): Likewise.
19414 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19415 (altivec_vmrghh): Likewise.
19416 (altivec_vmrghw): Likewise.
19417 (altivec_vmrglb): Likewise.
19418 (altivec_vmrglh): Likewise.
19419 (altivec_vmrglw): Likewise.
19420 (altivec_vspltb): Add missing uses.
19421 (altivec_vsplth): Likewise.
19422 (altivec_vspltw): Likewise.
19423 (altivec_vspltsf): Likewise.
19425 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19428 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19429 frame related instructions.
19431 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19433 PR rtl-optimization/59959
19434 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19435 any reload of register whose subreg is invalid.
19437 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19439 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19440 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19441 Add missing return type - void.
19443 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19445 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19446 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19447 remove element index adjustment for endian (now handled in vsx.md
19449 (altivec_expand_vec_perm_const): Use
19450 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19451 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19452 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19453 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19454 define_expand and a new define_insn *altivec_vspltb_internal;
19455 adjust for -maltivec=be on a little endian target.
19456 (altivec_vspltb_direct): New.
19457 (altivec_vsplth): Divide into a define_expand and a new
19458 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19459 little endian target.
19460 (altivec_vsplth_direct): New.
19461 (altivec_vspltw): Divide into a define_expand and a new
19462 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19463 little endian target.
19464 (altivec_vspltw_direct): New.
19465 (altivec_vspltsf): Divide into a define_expand and a new
19466 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19467 a little endian target.
19469 2014-01-30 Richard Biener <rguenther@suse.de>
19471 PR tree-optimization/59993
19472 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19473 can propagate form the earlier stmt and avoid the transform
19474 when the intermediate result is needed.
19476 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19478 * README.Portability: Fix typo.
19480 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19482 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19483 comparison_operator with ordered_comparison_operator.
19485 2014-01-30 Nick Clifton <nickc@redhat.com>
19487 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19488 Rename to mn10300_store_multiple_regs.
19489 * config/mn10300/mn10300.c: Likewise.
19490 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19491 store_multiple_regs.
19492 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19493 Call mn10300_store_multiple_regs.
19495 2014-01-30 Nick Clifton <nickc@redhat.com>
19496 DJ Delorie <dj@redhat.com>
19498 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19499 %fp 2 to keep registers after it properly word-aligned.
19500 (rl78_alloc_physical_registers_umul): Handle the case where both
19501 input operands are the same.
19503 2014-01-30 Richard Biener <rguenther@suse.de>
19505 PR tree-optimization/59903
19506 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19509 2014-01-30 Jason Merrill <jason@redhat.com>
19512 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19515 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19517 2014-01-30 Richard Biener <rguenther@suse.de>
19519 PR tree-optimization/59951
19520 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19522 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19525 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19526 SFmode to DFmode case.
19528 2014-01-29 DJ Delorie <dj@redhat.com>
19530 * config/msp430/msp430.opt (-minrt): New.
19531 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19533 (ENDFILE_SPEC): Likewise.
19535 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19537 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19538 (estimate_function_body_sizes): Use it.
19540 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19543 * dwarf2out.c (is_cxx_auto): New.
19544 (is_base_type): Use it.
19545 (gen_type_die_with_usage): Likewise.
19547 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19549 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19550 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19551 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19552 -maltivec=be with LE targets.
19553 (vsx_mergeh_<mode>): Likewise.
19554 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19555 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19556 (altivec_vmrghb): Replace with define_expand and new
19557 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19558 (altivec_vmrghb_direct): New define_insn.
19559 (altivec_vmrghh): Replace with define_expand and new
19560 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19561 (altivec_vmrghh_direct): New define_insn.
19562 (altivec_vmrghw): Replace with define_expand and new
19563 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
19564 (altivec_vmrghw_direct): New define_insn.
19565 (*altivec_vmrghsf): Adjust for endianness.
19566 (altivec_vmrglb): Replace with define_expand and new
19567 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
19568 (altivec_vmrglb_direct): New define_insn.
19569 (altivec_vmrglh): Replace with define_expand and new
19570 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
19571 (altivec_vmrglh_direct): New define_insn.
19572 (altivec_vmrglw): Replace with define_expand and new
19573 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
19574 (altivec_vmrglw_direct): New define_insn.
19575 (*altivec_vmrglsf): Adjust for endianness.
19576 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19577 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19578 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19579 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19580 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19581 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19582 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19583 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19585 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
19587 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
19588 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
19591 2014-01-29 Richard Biener <rguenther@suse.de>
19593 PR tree-optimization/58742
19594 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
19595 associate_pointerplus_align.
19596 (associate_pointerplus_diff): New function.
19597 (associate_pointerplus): Likewise. Call associate_pointerplus_align
19598 and associate_pointerplus_diff.
19600 2014-01-29 Richard Biener <rguenther@suse.de>
19602 * lto-streamer.h (LTO_major_version): Bump to 3.
19603 (LTO_minor_version): Reset to 0.
19605 2014-01-29 Renlin Li <Renlin.Li@arm.com>
19607 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
19608 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
19609 (arm_file_start): Generate correct asm header for armv7ve.
19610 * config/arm/bpabi.h: Add multilib support for armv7ve.
19611 * config/arm/driver-arm.c: Change the architectures of cortex-a7
19612 and cortex-a15 to armv7ve.
19613 * config/arm/t-aprofile: Add multilib support for armv7ve.
19614 * doc/invoke.texi: Document -march=armv7ve.
19616 2014-01-29 Richard Biener <rguenther@suse.de>
19618 PR tree-optimization/58742
19619 * tree-ssa-forwprop.c (associate_plusminus): Return true
19620 if we changed sth, defer EH cleanup to ...
19621 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
19622 (simplify_mult): New function.
19624 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19626 PR middle-end/59917
19627 PR tree-optimization/59920
19628 * tree.c (build_common_builtin_nodes): Remove
19629 __builtin_setjmp_dispatcher initialization.
19630 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
19631 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
19632 instead of gsi_after_labels + manually skipping debug stmts.
19633 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
19634 ignore bbs with IFN_ABNORMAL_DISPATCHER.
19635 * tree-inline.c (copy_edges_for_bb): Remove
19636 can_make_abnormal_goto argument, instead add abnormal_goto_dest
19637 argument. Ignore computed_goto_p stmts. Don't call
19638 make_abnormal_goto_edges. If a call might need abnormal edges
19639 for non-local gotos, see if it already has an edge to
19640 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
19641 with true argument, don't do anything then, otherwise add
19642 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
19643 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
19645 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
19646 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
19647 (lower_stmt): Don't set data->calls_builtin_setjmp.
19648 (lower_builtin_setjmp): Adjust comment.
19649 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
19650 * tree-cfg.c (found_computed_goto): Remove.
19651 (factor_computed_gotos): Remove.
19652 (make_goto_expr_edges): Return bool, true for computed gotos.
19653 Don't call make_abnormal_goto_edges.
19654 (build_gimple_cfg): Don't set found_computed_goto, don't call
19655 factor_computed_gotos.
19656 (computed_goto_p): No longer static.
19657 (make_blocks): Don't set found_computed_goto.
19658 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
19659 (make_edges): If make_goto_expr_edges returns true, push bb
19660 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
19661 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
19662 vector. Record mapping between bbs and OpenMP regions if there
19663 are any, adjust make_gimple_omp_edges caller. Call
19664 handle_abnormal_edges.
19665 (make_abnormal_goto_edges): Remove.
19666 * tree-cfg.h (make_abnormal_goto_edges): Remove.
19667 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
19668 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
19669 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
19670 * internal-fn.def (ABNORMAL_DISPATCHER): New.
19671 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
19672 filling *region also set *region_idx to (*region)->entry->index.
19675 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
19676 For REGs set ORIGINAL_REGNO.
19678 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
19680 * doc/md.texi: Mention that a target shouldn't implement
19681 vec_widen_(s|u)mul_even/odd pair if it is less efficient
19684 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19686 PR tree-optimization/59594
19687 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
19688 a copy of the datarefs vector rather than the vector itself.
19690 2014-01-28 Jason Merrill <jason@redhat.com>
19693 * dwarf2out.c (auto_die): New static.
19694 (gen_type_die_with_usage): Handle C++1y 'auto'.
19695 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
19698 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
19701 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
19702 (SPEC_X32): Likewise.
19703 (SPEC_64): Likewise.
19704 * config/i386/i386.c (ix86_option_override_internal): Turn off
19705 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
19707 (x86_file_start): Output .code16gcc for TARGET_16BIT.
19708 * config/i386/i386.h (TARGET_16BIT): New macro.
19709 (TARGET_16BIT_P): Likewise.
19710 * config/i386/i386.opt: Add m16.
19711 * doc/invoke.texi: Document -m16.
19713 2014-01-28 Jakub Jelinek <jakub@redhat.com>
19715 PR preprocessor/59935
19716 * input.c (location_get_source_line): Bail out on when line number
19717 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
19719 2014-01-28 Richard Biener <rguenther@suse.de>
19721 PR tree-optimization/58742
19722 * tree-ssa-forwprop.c (associate_plusminus): Handle
19723 pointer subtraction of the form (T)(P + A) - (T)P.
19725 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19727 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
19730 2014-01-28 Richard Biener <rguenther@suse.de>
19733 2014-01-28 Richard Biener <rguenther@suse.de>
19735 PR rtl-optimization/45364
19736 PR rtl-optimization/59890
19737 * var-tracking.c (local_get_addr_clear_given_value): Handle
19738 already cleared slot.
19739 (val_reset): Handle not allocated local_get_addr_cache.
19740 (vt_find_locations): Use post-order on the inverted CFG.
19742 2014-01-28 Richard Biener <rguenther@suse.de>
19744 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
19746 2014-01-28 Richard Biener <rguenther@suse.de>
19748 PR rtl-optimization/45364
19749 PR rtl-optimization/59890
19750 * var-tracking.c (local_get_addr_clear_given_value): Handle
19751 already cleared slot.
19752 (val_reset): Handle not allocated local_get_addr_cache.
19753 (vt_find_locations): Use post-order on the inverted CFG.
19755 2014-01-28 Alan Modra <amodra@gmail.com>
19757 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
19758 * configure.ac <recursive call for build != host>: Define
19759 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
19760 and LD_FOR_BUILD too.
19761 * configure: Regenerate.
19763 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
19765 * config/i386/i386.c (get_builtin_code_for_version): Separate
19766 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
19767 Broadwell from Haswell.
19769 2014-01-27 Steve Ellcey <sellcey@mips.com>
19771 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
19772 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
19773 * config/mips/mips.c (mips_option_override): Change setting
19775 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
19776 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
19777 Change from Mask to Var.
19779 2014-01-27 Jeff Law <law@redhat.com>
19781 * ipa-inline.c (inline_small_functions): Fix typo.
19783 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
19785 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
19786 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
19787 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
19788 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
19789 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
19790 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
19791 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
19792 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
19793 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
19794 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
19795 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
19796 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
19797 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
19798 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
19799 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
19800 (_mm512_storeu_epi64): Ditto.
19801 (_mm512_cmpge_epi32_mask): Ditto.
19802 (_mm512_cmpge_epu32_mask): Ditto.
19803 (_mm512_cmpge_epi64_mask): Ditto.
19804 (_mm512_cmpge_epu64_mask): Ditto.
19805 (_mm512_cmple_epi32_mask): Ditto.
19806 (_mm512_cmple_epu32_mask): Ditto.
19807 (_mm512_cmple_epi64_mask): Ditto.
19808 (_mm512_cmple_epu64_mask): Ditto.
19809 (_mm512_cmplt_epi32_mask): Ditto.
19810 (_mm512_cmplt_epu32_mask): Ditto.
19811 (_mm512_cmplt_epi64_mask): Ditto.
19812 (_mm512_cmplt_epu64_mask): Ditto.
19813 (_mm512_cmpneq_epi32_mask): Ditto.
19814 (_mm512_cmpneq_epu32_mask): Ditto.
19815 (_mm512_cmpneq_epi64_mask): Ditto.
19816 (_mm512_cmpneq_epu64_mask): Ditto.
19817 (_mm512_expand_pd): Ditto.
19818 (_mm512_expand_ps): Ditto.
19819 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
19820 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
19821 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
19822 * config/i386/i386.c (ix86_builtins): Add
19823 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
19824 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
19825 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
19826 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
19827 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
19828 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
19829 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
19830 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
19831 IX86_BUILTIN_PMOVUSQW512_MEM.
19832 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
19833 __builtin_ia32_pmovsqd512mem_mask,
19834 __builtin_ia32_pmovqd512mem_mask,
19835 __builtin_ia32_pmovusqw512mem_mask,
19836 __builtin_ia32_pmovsqw512mem_mask,
19837 __builtin_ia32_pmovqw512mem_mask,
19838 __builtin_ia32_pmovusdw512mem_mask,
19839 __builtin_ia32_pmovsdw512mem_mask,
19840 __builtin_ia32_pmovdw512mem_mask,
19841 __builtin_ia32_pmovqb512mem_mask,
19842 __builtin_ia32_pmovusqb512mem_mask,
19843 __builtin_ia32_pmovsqb512mem_mask,
19844 __builtin_ia32_pmovusdb512mem_mask,
19845 __builtin_ia32_pmovsdb512mem_mask,
19846 __builtin_ia32_pmovdb512mem_mask.
19847 (bdesc_args): Add __builtin_ia32_expanddf512,
19848 __builtin_ia32_expandsf512.
19849 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
19850 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
19851 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
19852 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
19853 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
19854 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
19855 (avx512f_<code>v8div16qi2_mask_store): This.
19856 (avx512f_expand<mode>): New.
19858 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
19860 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
19862 (_mm512_mask_prefetch_i64gather_pd): Ditto.
19863 (_mm512_prefetch_i32scatter_pd): Ditto.
19864 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
19865 (_mm512_prefetch_i64scatter_pd): Ditto.
19866 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
19867 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
19868 (_mm512_mask_prefetch_i64gather_ps): Ditto.
19869 (_mm512_prefetch_i32scatter_ps): Ditto.
19870 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
19871 (_mm512_prefetch_i64scatter_ps): Ditto.
19872 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
19873 * config/i386/i386-builtin-types.def: Define
19874 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
19875 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
19876 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
19877 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
19878 IX86_BUILTIN_SCATTERPFQPD.
19879 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
19880 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
19881 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
19882 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
19883 __builtin_ia32_scatterpfqps.
19884 (ix86_expand_builtin): Expand new built-ins.
19885 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
19886 fix memory access data type.
19887 (*avx512pf_gatherpf<mode>_mask): Ditto.
19888 (*avx512pf_gatherpf<mode>): Ditto.
19889 (avx512pf_scatterpf<mode>): Ditto.
19890 (*avx512pf_scatterpf<mode>_mask): Ditto.
19891 (*avx512pf_scatterpf<mode>): Ditto.
19892 (GATHER_SCATTER_SF_MEM_MODE): New.
19893 (avx512pf_gatherpf<mode>df): Ditto.
19894 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19895 (*avx512pf_scatterpf<mode>df): Ditto.
19897 2014-01-27 Jakub Jelinek <jakub@redhat.com>
19900 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
19901 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
19904 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
19906 * common/config/arm/arm-common.c
19907 (arm_rewrite_mcpu): Handle multiple names.
19909 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
19911 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
19913 * gimple-builder.h (create_gimple_tmp): Delete.
19915 2014-01-27 Christian Bruel <christian.bruel@st.com>
19917 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
19920 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
19922 * config/pa/pa.md (call): Generate indirect long calls to non-local
19923 functions when outputing 32-bit code.
19924 (call_value): Likewise except for special call to buggy powf function.
19926 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
19927 portable runtime and PIC indirect calls.
19928 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
19929 and PIC call sequences. Use ldo instead of blr to set return register
19930 in PIC call sequence.
19932 2014-01-25 Walter Lee <walt@tilera.com>
19934 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
19935 avoid clobbering a live register.
19937 2014-01-25 Walter Lee <walt@tilera.com>
19939 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
19940 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
19941 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
19942 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
19944 2014-01-25 Walter Lee <walt@tilera.com>
19946 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
19947 arguments on even registers.
19948 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
19950 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
19951 (BIGGEST_ALIGNMENT): Ditto.
19952 (BIGGEST_FIELD_ALIGNMENT): Ditto.
19954 2014-01-25 Walter Lee <walt@tilera.com>
19956 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
19957 insns before bundling.
19958 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
19960 2014-01-25 Walter Lee <walt@tilera.com>
19962 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
19963 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
19964 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
19966 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
19968 * config/mips/constraints.md (kl): Delete.
19969 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
19970 define expands, using...
19971 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
19972 instructions for MIPS16.
19973 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
19974 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
19976 2014-01-25 Walter Lee <walt@tilera.com>
19978 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
19982 2014-01-25 Walter Lee <walt@tilera.com>
19984 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
19985 (TARGET_EXPAND_TO_RTL_HOOK): Define.
19987 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
19989 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
19992 2014-01-25 Jakub Jelinek <jakub@redhat.com>
19994 * print-rtl.c (in_call_function_usage): New var.
19995 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
19996 EXPR_LIST mode as mode and not as reg note name.
19998 PR middle-end/59561
19999 * cfgloopmanip.c (copy_loop_info): If
20000 loop->warned_aggressive_loop_optimizations, make sure
20001 the flag is set in target loop too.
20003 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20005 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20007 * builtins.def: Likewise.
20008 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20009 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20010 * ira.c (ira_setup_eliminable_regset): Likewise.
20011 * omp-low.c (gate_expand_omp): Likewise.
20012 (execute_lower_omp): Likewise.
20013 (diagnose_sb_0): Likewise.
20014 (gate_diagnose_omp_blocks): Likewise.
20015 (simd_clone_clauses_extract): Likewise.
20018 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20020 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20021 correction for little endian...
20022 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20025 2014-01-24 Jeff Law <law@redhat.com>
20027 PR tree-optimization/59919
20028 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20029 for non-returning calls.
20031 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20033 * common/config/aarch64/aarch64-common.c
20034 (aarch64_rewrite_mcpu): Handle multiple names.
20035 * config/aarch64/aarch64.h
20036 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20038 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20040 * input.c (add_file_to_cache_tab): Handle the case where fopen
20043 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20046 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20047 from push operand if code of push isn't PRE_DEC.
20049 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20052 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20053 -mquad-memory-atomic. Update -mquad-memory documentation to say
20054 it is only used for non-atomic loads/stores.
20056 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20057 -mquad-memory or -mquad-memory-atomic switches.
20059 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20060 -mquad-memory-atomic to ISA 2.07 support.
20062 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20063 to separate support of normal quad word memory operations (ldq, stq)
20064 from the atomic quad word memory operations.
20066 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20067 support to separate non-atomic quad word operations from atomic
20068 quad word operations. Disable non-atomic quad word operations in
20069 little endian mode so that we don't have to swap words after the
20070 load and before the store.
20071 (quad_load_store_p): Add comment about atomic quad word support.
20072 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20073 options printed with -mdebug=reg.
20075 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20076 -mquad-memory-atomic as the test for whether we have quad word
20077 atomic instructions.
20078 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20079 or -mp8-vector are used, allow byte/half-word atomic operations.
20081 * config/rs6000/sync.md (load_lockedti): Insure that the address
20082 is a proper indexed or indirect address for the lqarx instruction.
20083 On little endian systems, swap the hi/lo registers after the lqarx
20085 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20086 insure the address is valid for the lqarx instruction.
20087 (store_conditionalti): Insure that the address is a proper indexed
20088 or indirect address for the stqcrx. instruction. On little endian
20089 systems, swap the hi/lo registers before doing the stqcrx.
20091 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20092 insure the address is valid for the stqcrx. instruction.
20094 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20095 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20096 type of quad memory support is available.
20098 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20100 PR regression/59915
20101 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20102 there is a danger of looping.
20104 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20106 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20107 force flag_ira_loop_pressure if set via command line.
20109 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20111 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20112 (ashr_simd): New builtin handling DI mode.
20113 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20114 (aarch64_sshr_simddi): New match pattern.
20115 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20116 (vshrd_n_s64): Likewise.
20117 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20119 2014-01-23 Nick Clifton <nickc@redhat.com>
20121 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20122 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20123 favour of mcu specific scripts.
20124 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20127 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20128 Alex Velenko <Alex.Velenko@arm.com>
20130 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20131 (vaddv_s16): Likewise.
20132 (vaddv_s32): Likewise.
20133 (vaddv_u8): Likewise.
20134 (vaddv_u16): Likewise.
20135 (vaddv_u32): Likewise.
20136 (vaddvq_s8): Likewise.
20137 (vaddvq_s16): Likewise.
20138 (vaddvq_s32): Likewise.
20139 (vaddvq_s64): Likewise.
20140 (vaddvq_u8): Likewise.
20141 (vaddvq_u16): Likewise.
20142 (vaddvq_u32): Likewise.
20143 (vaddvq_u64): Likewise.
20144 (vaddv_f32): Likewise.
20145 (vaddvq_f32): Likewise.
20146 (vaddvq_f64): Likewise.
20147 (vmaxv_f32): Likewise.
20148 (vmaxv_s8): Likewise.
20149 (vmaxv_s16): Likewise.
20150 (vmaxv_s32): Likewise.
20151 (vmaxv_u8): Likewise.
20152 (vmaxv_u16): Likewise.
20153 (vmaxv_u32): Likewise.
20154 (vmaxvq_f32): Likewise.
20155 (vmaxvq_f64): Likewise.
20156 (vmaxvq_s8): Likewise.
20157 (vmaxvq_s16): Likewise.
20158 (vmaxvq_s32): Likewise.
20159 (vmaxvq_u8): Likewise.
20160 (vmaxvq_u16): Likewise.
20161 (vmaxvq_u32): Likewise.
20162 (vmaxnmv_f32): Likewise.
20163 (vmaxnmvq_f32): Likewise.
20164 (vmaxnmvq_f64): Likewise.
20165 (vminv_f32): Likewise.
20166 (vminv_s8): Likewise.
20167 (vminv_s16): Likewise.
20168 (vminv_s32): Likewise.
20169 (vminv_u8): Likewise.
20170 (vminv_u16): Likewise.
20171 (vminv_u32): Likewise.
20172 (vminvq_f32): Likewise.
20173 (vminvq_f64): Likewise.
20174 (vminvq_s8): Likewise.
20175 (vminvq_s16): Likewise.
20176 (vminvq_s32): Likewise.
20177 (vminvq_u8): Likewise.
20178 (vminvq_u16): Likewise.
20179 (vminvq_u32): Likewise.
20180 (vminnmv_f32): Likewise.
20181 (vminnmvq_f32): Likewise.
20182 (vminnmvq_f64): Likewise.
20184 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20186 * config/aarch64/aarch64-simd.md
20187 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20188 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20189 (*aarch64_mul3_elt<mode>): Likewise.
20190 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20191 (*aarch64_mul3_elt_to_64v2df): Likewise.
20192 (*aarch64_mla_elt<mode>): Likewise.
20193 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20194 (*aarch64_mls_elt<mode>): Likewise.
20195 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20196 (*aarch64_fma4_elt<mode>): Likewise.
20197 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20198 (*aarch64_fma4_elt_to_64v2df): Likewise.
20199 (*aarch64_fnma4_elt<mode>): Likewise.
20200 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20201 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20202 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20203 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20204 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20205 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20206 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20207 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20208 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20210 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20212 * config/aarch64/aarch64-simd.md
20213 (aarch64_be_checked_get_lane<mode>): New define_expand.
20214 * config/aarch64/aarch64-simd-builtins.def
20215 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20216 New builtin definition.
20217 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20218 Use new safe be builtin.
20220 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20222 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20224 (aarch64_be_st1<mode>): Likewise.
20225 (aarch_ld1<VALL:mode>): Define_expand modified.
20226 (aarch_st1<VALL:mode>): Likewise.
20227 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20228 (UNSPEC_ST1): Likewise.
20230 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20232 * config/microblaze/microblaze.md: Add trap insn and attribute
20234 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20236 PR preprocessor/58580
20237 * input.h (location_get_source_line): Take an additional line_size
20239 (void diagnostics_file_cache_fini): Declare new function.
20240 * input.c (struct fcache): New type.
20241 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20242 New static constants.
20243 (diagnostic_file_cache_init, total_lines_num)
20244 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20245 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20246 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20247 (get_next_line, read_next_line, goto_next_line, read_line_num):
20248 New static function definitions.
20249 (diagnostic_file_cache_fini): New function.
20250 (location_get_source_line): Take an additional output line_len
20251 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20253 * diagnostic.c (diagnostic_finish): Call
20254 diagnostic_file_cache_fini.
20255 (adjust_line): Take an additional input parameter for the length
20256 of the line, rather than calculating it with strlen.
20257 (diagnostic_show_locus): Adjust the use of
20258 location_get_source_line and adjust_line with respect to their new
20259 signature. While displaying a line now, do not stop at the first
20260 null byte. Rather, display the zero byte as a space and keep
20261 going until we reach the size of the line.
20262 * Makefile.in: Add vec.o to OBJS-libcommon
20264 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20265 Ilya Tocar <ilya.tocar@intel.com>
20267 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20268 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20269 (__builtin_ia32_kmov16): Ditto.
20270 * config/i386/i386.md (UNSPEC_KMOV): New.
20273 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20275 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20276 (_mm512_storeu_si512): Ditto.
20278 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20281 * rtl.h (get_referenced_operands): Declare.
20282 * recog.c (get_referenced_operands): New function.
20283 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20284 operands have been referenced when recording LO_SUM references.
20286 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20288 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20290 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20292 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20293 Enable for generic and recent AMD targets.
20295 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20297 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20298 ARG_SIZE note when adjustment was eliminated.
20300 2014-01-22 Jeff Law <law@redhat.com>
20302 PR tree-optimization/59597
20303 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20304 in file. Accept new argument REGISTERING and use it to modify
20305 dump output appropriately.
20306 (register_jump_thread): Corresponding changes.
20307 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20308 thread paths involving joiner blocks. Add code to dump cancelled
20309 jump threading paths.
20311 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20313 PR rtl-optimization/59477
20314 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20315 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20317 2014-01-22 Tom Tromey <tromey@redhat.com>
20319 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20321 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20323 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20325 PR rtl-optimization/59896
20326 * lra-constraints.c (process_alt_operands): Check unused note for
20327 matched operands of insn with no output reloads.
20329 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20331 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20332 (mips_move_from_gpr_cost): Likewise.
20334 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20336 PR rtl-optimization/59858
20337 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20338 ira_class_hard_regs_num.
20339 (process_alt_operands): Increase reject for dying matched operand.
20341 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20344 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20345 smaller than size, perform several stores or loads and stores
20346 at dst + count - size to store or copy all of size bytes, rather
20347 than just last modesize bytes.
20349 2014-01-20 DJ Delorie <dj@redhat.com>
20351 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20352 that CLOBBERs are REGs before propogating their values.
20354 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20356 PR middle-end/59789
20357 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20358 (cgraph_inline_failed_type): New function.
20359 * cgraph.h (DEFCIFCODE): Add type.
20360 (cgraph_inline_failed_type_t): New enum.
20361 (cgraph_inline_failed_type): New prototype.
20362 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20363 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20364 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20365 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20366 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20367 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20368 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20369 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20370 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20371 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20372 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20373 OPTIMIZATION_MISMATCH.
20374 * tree-inline.c (expand_call_inline): Emit errors during
20375 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20377 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20380 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20381 mode attribute in insn output.
20383 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20385 * output.h (output_constant): Delete.
20386 * varasm.c (output_constant): Make private.
20388 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20390 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20392 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20394 PR middle-end/59860
20395 * tree.h (fold_builtin_strcat): New prototype.
20396 * builtins.c (fold_builtin_strcat): No longer static. Add len
20397 argument, if non-NULL, don't call c_strlen. Optimize
20398 directly into __builtin_memcpy instead of __builtin_strcpy.
20399 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20400 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20402 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20404 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20405 for SImode_address_operand operands, having only a REG argument.
20407 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20409 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20410 loader name using mbig-endian.
20411 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20413 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20415 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20416 (-mtune): Likewise.
20419 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20421 * config/aarch64/aarch64-protos.h
20422 (aarch64_cannot_change_mode_class_ptr): Declare.
20423 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20424 aarch64_cannot_change_mode_class_ptr): New.
20425 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20426 backend hook aarch64_cannot_change_mode_class.
20428 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20430 * common/config/aarch64/aarch64-common.c
20431 (aarch64_handle_option): Don't handle any option order logic here.
20432 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20433 selected_cpu, warn on architecture version mismatch.
20434 (aarch64_override_options): Fix parsing order for option strings.
20436 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20437 Iain Sandoe <iain@codesourcery.com>
20440 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20441 warning. Amend comment to reflect current functionality.
20443 2014-01-20 Richard Biener <rguenther@suse.de>
20445 PR middle-end/59860
20446 * builtins.c (fold_builtin_strcat): Remove case better handled
20447 by tree-ssa-strlen.c.
20449 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20451 * config/aarch64/aarch64.opt
20452 (mcpu, march, mtune): Make case-insensitive.
20454 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20457 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20458 if operands[1] is a REG or ZERO_EXTEND of a REG.
20460 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20462 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20464 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20466 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20467 long non-pic millicode calls.
20469 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20471 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20473 2014-01-19 Kito Cheng <kito@0xlab.org>
20475 * builtins.c (expand_movstr): Check movstr expand done or fail.
20477 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20478 H.J. Lu <hongjiu.lu@intel.com>
20481 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20482 to DImode for zero-extended addresses.
20484 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20486 PR rtl-optimization/57763
20487 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20488 on the new indirect jump_insn and increment LABEL_NUSES (label).
20490 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20494 * config.gcc (x86_archs): New variable.
20495 (x86_64_archs): Likewise.
20496 (x86_cpus): Likewise.
20497 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20498 --with-arch/--with-cpu= options.
20499 Support --with-arch=/--with-cpu={nehalem,westmere,
20500 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20502 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20504 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20505 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20507 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20509 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20511 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20514 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20515 clear cpp_get_options (parse_in)->warn_unused_macros for
20516 ix86_target_macros_internal with cpp_define.
20518 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20520 * jump.c (delete_related_insns): Keep (use (insn))s.
20521 * reorg.c (redundant_insn): Check for barriers too.
20523 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20525 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20527 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20529 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20530 call to $$dyncall when TARGET_LONG_CALLS is true.
20532 2014-01-17 Jeff Law <law@redhat.com>
20534 * ree.c (combine_set_extension): Temporarily disable test for
20535 changing number of hard registers.
20537 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20539 PR middle-end/58125
20540 * ipa-inline-analysis.c (inline_free_summary):
20541 Do not free summary of aliases.
20543 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20545 PR middle-end/59706
20546 * gimplify.c (gimplify_expr): Use create_tmp_var
20547 instead of create_tmp_var_raw. If cond doesn't have
20548 integral type, don't add the IFN_ANNOTATE builtin at all.
20550 2014-01-17 Martin Jambor <mjambor@suse.cz>
20553 * ipa-cp.c (prev_edge_clone): New variable.
20554 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20555 Also resize prev_edge_clone vector.
20556 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20557 (ipcp_edge_removal_hook): New function.
20558 (ipcp_driver): Register ipcp_edge_removal_hook.
20560 2014-01-17 Andrew Pinski <apinski@cavium.com>
20561 Steve Ellcey <sellcey@mips.com>
20564 * config/mips/mips.c (mips_print_operand): Check operand mode instead
20567 2014-01-17 Jeff Law <law@redhat.com>
20569 PR middle-end/57904
20570 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
20571 so that pass_ccp runs first.
20573 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20575 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
20576 (ix86_adjust_cost): Use !TARGET_XXX.
20577 (do_reorder_for_imul): Likewise.
20578 (swap_top_of_ready_list): Likewise.
20579 (ix86_sched_reorder): Likewise.
20581 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20583 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20584 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
20585 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
20586 (intel_memset): New. Duplicate slm_memset.
20587 (intel_cost): New. Duplicate slm_cost.
20588 (m_INTEL): New macro.
20589 (processor_target_table): Add "intel".
20590 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
20591 with PROCESSOR_INTEL for "intel".
20592 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
20593 PROCESSOR_SILVERMONT.
20594 (ix86_issue_rate): Likewise.
20595 (ix86_adjust_cost): Likewise.
20596 (ia32_multipass_dfa_lookahead): Likewise.
20597 (swap_top_of_ready_list): Likewise.
20598 (ix86_sched_reorder): Likewise.
20599 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
20600 instead of TARGET_OPT_AGU.
20601 * config/i386/i386.h (TARGET_INTEL): New.
20602 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
20603 (processor_type): Add PROCESSOR_INTEL.
20604 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
20605 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
20607 2014-01-17 Marek Polacek <polacek@redhat.com>
20610 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
20613 2014-01-17 Richard Biener <rguenther@suse.de>
20615 PR tree-optimization/46590
20616 * opts.c (default_options_table): Add entries for
20617 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
20618 all enabled at -O1 but not for -Og.
20619 * common.opt (fbranch-count-reg): Remove Init(1).
20620 (fmove-loop-invariants): Likewise.
20621 (ftree-pta): Likewise.
20623 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20625 * config/i386/i386.c (ix86_data_alignment): For compatibility with
20626 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
20627 decls to at least the GCC 4.8 used alignments.
20630 * tree-nested.c (convert_nonlocal_reference_stmt,
20631 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
20632 of GIMPLE_BIND stmts, adjust associated decls.
20634 2014-01-17 Richard Biener <rguenther@suse.de>
20636 PR tree-optimization/46590
20637 * vec.h (vec<>::bseach): New member function implementing
20638 binary search according to C89 bsearch.
20639 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
20640 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
20641 bitmap pointer again. Make accesses_in_loop a flat array.
20642 (mem_ref_obstack): New global.
20643 (outermost_indep_loop): Adjust for mem_ref->stored changes.
20644 (mark_ref_stored): Likewise.
20645 (ref_indep_loop_p_2): Likewise.
20646 (set_ref_stored_in_loop): New helper function.
20647 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
20648 (memref_free): Adjust.
20649 (record_mem_ref_loc): Simplify.
20650 (gather_mem_refs_stmt): Adjust.
20651 (sort_locs_in_loop_postorder_cmp): New function.
20652 (analyze_memory_references): Sort accesses_in_loop after
20653 loop postorder number.
20654 (find_ref_loc_in_loop_cmp): New function.
20655 (for_all_locs_in_loop): Find relevant cluster of locs in
20656 accesses_in_loop and iterate without recursion.
20657 (execute_sm): Avoid uninit warning.
20658 (struct ref_always_accessed): Simplify.
20659 (ref_always_accessed::operator ()): Likewise.
20660 (ref_always_accessed_p): Likewise.
20661 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
20662 loop postorder numbers here.
20663 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
20666 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20669 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
20670 on decls for which assemble_alias has been called.
20672 2014-01-17 Nick Clifton <nickc@redhat.com>
20674 * config/msp430/msp430.opt: (mcpu): New option.
20675 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
20676 (msp430_option_override): Parse target_cpu. If the MCU name
20677 matches a generic string, clear target_mcu.
20678 (msp430_attr): Allow numeric interrupt values up to 63.
20679 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
20680 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
20682 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
20684 * config/msp430/msp430.md (popm): Use %J rather than %I.
20685 (addsi3): Use msp430_nonimmediate_operand for operand 2.
20686 (addhi_cy_i): Use immediate_operand for operand 2.
20687 * doc/invoke.texi: Document -mcpu option.
20689 2014-01-17 Richard Biener <rguenther@suse.de>
20691 PR rtl-optimization/38518
20692 * df.h (df_analyze_loop): Declare.
20693 * df-core.c: Include cfgloop.h.
20694 (df_analyze_1): Split out main part of df_analyze.
20695 (df_analyze): Adjust.
20696 (loop_inverted_post_order_compute): New function.
20697 (loop_post_order_compute): Likewise.
20698 (df_analyze_loop): New function avoiding whole-function
20699 postorder computes.
20700 * loop-invariant.c (find_defs): Use df_analyze_loop.
20701 (find_invariants): Adjust.
20702 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
20704 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
20706 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
20707 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
20709 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20711 * ipa-ref.c (ipa_remove_stmt_references): Fix references
20712 traversal when removing references.
20714 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
20717 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
20719 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
20721 PR middle-end/56791
20722 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
20723 pushing a reload for an autoinc when we had previously reloaded an
20724 inner part of the address.
20726 2014-01-16 Jakub Jelinek <jakub@redhat.com>
20728 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
20730 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
20731 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
20732 when not giving up or versioning for alias only because of
20734 (vect_analyze_data_ref_dependences): Set to true.
20735 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
20737 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
20738 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
20741 PR middle-end/58344
20742 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
20745 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
20746 operand 0 predicate for gathers, use a new pseudo as subtarget.
20748 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
20750 PR middle-end/59609
20751 * lra-constraints.c (process_alt_operands): Add printing debug info.
20752 Check absence of input/output reloads for matched operands too.
20754 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
20756 PR rtl-optimization/59835
20757 * ira.c (ira_init_register_move_cost): Increase cost for
20760 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
20762 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
20764 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
20767 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
20768 non-register objects. Use gen_(high/low)part more consistently.
20771 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
20774 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
20775 endian support, remove tests for WORDS_BIG_ENDIAN.
20776 (p8_mfvsrd_3_<mode>): Likewise.
20777 (reload_gpr_from_vsx<mode>): Likewise.
20778 (reload_gpr_from_vsxsf): Likewise.
20779 (p8_mfvsrd_4_disf): Likewise.
20781 2014-01-16 Richard Biener <rguenther@suse.de>
20783 PR rtl-optimization/46590
20784 * lcm.c (compute_antinout_edge): Use postorder iteration.
20785 (compute_laterin): Use inverted postorder iteration.
20787 2014-01-16 Nick Clifton <nickc@redhat.com>
20789 PR middle-end/28865
20790 * varasm.c (output_constant): Return the number of bytes actually
20792 (output_constructor_array_range): Update the field size with the
20793 number of bytes emitted by output_constant.
20794 (output_constructor_regular_field): Likewise. Also do not
20795 complain if the total number of bytes emitted is now greater
20796 than the expected fieldpos.
20797 * output.h (output_constant): Update prototype and descriptive comment.
20799 2014-01-16 Marek Polacek <polacek@redhat.com>
20801 PR middle-end/59827
20802 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
20803 it is error_mark_node.
20805 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
20807 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
20808 VALID_AVX256_REG_OR_OI_MODE.
20810 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
20812 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
20813 current procedure should be profiled.
20815 2014-01-15 Andrew Pinski <apinski@cavium.com>
20817 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
20818 of moving from/to the STACK_REG register class.
20820 2014-01-15 Richard Henderson <rth@redhat.com>
20823 * reginfo.c (global_regs_decl): Globalize.
20824 * rtl.h (global_regs_decl): Declare.
20825 * ira.c (do_reload): Diagnose frame_pointer_needed and it
20826 reserved via global_regs.
20828 2014-01-15 Teresa Johnson <tejohnson@google.com>
20830 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
20832 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20834 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
20835 and vmulosh rather than call gen_vec_widen_smult_*.
20836 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
20837 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
20838 (vec_widen_smult_even_v16qi): Likewise.
20839 (vec_widen_umult_even_v8hi): Likewise.
20840 (vec_widen_smult_even_v8hi): Likewise.
20841 (vec_widen_umult_odd_v16qi): Likewise.
20842 (vec_widen_smult_odd_v16qi): Likewise.
20843 (vec_widen_umult_odd_v8hi): Likewise.
20844 (vec_widen_smult_odd_v8hi): Likewise.
20845 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
20846 vmuloub rather than call gen_vec_widen_umult_*.
20847 (vec_widen_umult_lo_v16qi): Likewise.
20848 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
20849 vmulosb rather than call gen_vec_widen_smult_*.
20850 (vec_widen_smult_lo_v16qi): Likewise.
20851 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
20852 rather than call gen_vec_widen_umult_*.
20853 (vec_widen_umult_lo_v8hi): Likewise.
20854 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
20855 rather than call gen_vec_widen_smult_*.
20856 (vec_widen_smult_lo_v8hi): Likewise.
20858 2014-01-15 Jeff Law <law@redhat.com>
20860 PR tree-optimization/59747
20861 * ree.c (find_and_remove_re): Properly handle case where a second
20862 eliminated extension requires widening a copy created for elimination
20863 of a prior extension.
20864 (combine_set_extension): Ensure that the number of hard regs needed
20865 for a destination register does not change when we widen it.
20867 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
20869 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
20870 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
20871 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
20872 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
20873 (avr-*-rtems*): Likewise.
20874 (bfin*-rtems*): Likewise.
20875 (moxie-*-rtems*): Likewise.
20876 (h8300-*-rtems*): Likewise.
20877 (i[34567]86-*-rtems*): Likewise.
20878 (lm32-*-rtems*): Likewise.
20879 (m32r-*-rtems*): Likewise.
20880 (m68k-*-rtems*): Likewise.
20881 (microblaze*-*-rtems*): Likewise.
20882 (mips*-*-rtems*): Likewise.
20883 (powerpc-*-rtems*): Likewise.
20884 (sh-*-rtems*): Likewise.
20885 (sparc-*-rtems*): Likewise.
20886 (sparc64-*-rtems*): Likewise.
20887 (v850-*-rtems*): Likewise.
20888 (m32c-*-rtems*): Likewise.
20890 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
20892 PR rtl-optimization/59511
20893 * ira.c (ira_init_register_move_cost): Use memory costs for some
20894 cases of register move cost calculations.
20895 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
20896 instead of BB frequency.
20897 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
20898 * lra-assigns.c (find_hard_regno_for): Ditto.
20900 2014-01-15 Richard Biener <rguenther@suse.de>
20902 PR tree-optimization/59822
20903 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
20904 (vectorizable_load): Use it to hoist defs of uses of invariant
20905 loads out of the loop.
20907 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
20908 Kugan Vivekanandarajah <kuganv@linaro.org>
20911 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
20914 2014-01-15 Richard Biener <rguenther@suse.de>
20916 PR rtl-optimization/59802
20917 * lcm.c (compute_available): Use inverted postorder to seed
20918 the initial worklist.
20920 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20923 * config/s390/s390.c (s390_preferred_reload_class): Don't return
20924 ADDR_REGS for invalid symrefs in non-PIC code.
20926 2014-01-15 Jakub Jelinek <jakub@redhat.com>
20929 * builtins.c (determine_block_size): Initialize *probable_max_size
20930 even if len_rtx is CONST_INT.
20932 2014-01-14 Andrew Pinski <apinski@cavium.com>
20934 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
20935 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
20936 (cortexa53_tunings): Likewise.
20937 (aarch64_sched_issue_rate): New function.
20938 (TARGET_SCHED_ISSUE_RATE): Define.
20940 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
20942 * ira-costs.c (find_costs_and_classes): Add missed
20943 ira_init_register_move_cost_if_necessary.
20945 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
20948 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
20950 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
20953 * config/i386/i386.c (type_natural_mode): Add a bool parameter
20954 to indicate if type is used for function return value. Warn ABI
20955 change if the vector mode isn't available for function return value.
20956 (ix86_function_arg_advance): Pass false to type_natural_mode.
20957 (ix86_function_arg): Likewise.
20958 (ix86_gimplify_va_arg): Likewise.
20959 (function_arg_32): Don't warn ABI change.
20960 (ix86_function_value): Pass true to type_natural_mode.
20961 (ix86_return_in_memory): Likewise.
20962 (ix86_struct_value_rtx): Removed.
20963 (TARGET_STRUCT_VALUE_RTX): Likewise.
20965 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20967 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
20968 converting a conditional jump into a conditional return.
20970 2014-01-14 Richard Biener <rguenther@suse.de>
20972 PR tree-optimization/58921
20973 PR tree-optimization/59006
20974 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
20975 hoisting invariant stmts.
20976 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
20977 invariant loads on the preheader edge if possible.
20979 2014-01-14 Joey Ye <joey.ye@arm.com>
20981 * doc/plugin.texi (Building GCC plugins): Update to C++.
20983 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
20985 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
20986 (_mm_rcp28_round_ss): Ditto.
20987 (_mm_rsqrt28_round_sd): Ditto.
20988 (_mm_rsqrt28_round_ss): Ditto.
20989 (_mm_rcp28_sd): Ditto.
20990 (_mm_rcp28_ss): Ditto.
20991 (_mm_rsqrt28_sd): Ditto.
20992 (_mm_rsqrt28_ss): Ditto.
20993 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
20994 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
20995 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
20996 (IX86_BUILTIN_RCP28SD): Ditto.
20997 (IX86_BUILTIN_RCP28SS): Ditto.
20998 (IX86_BUILTIN_RSQRT28SD): Ditto.
20999 (IX86_BUILTIN_RSQRT28SS): Ditto.
21000 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21001 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21002 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21003 (ix86_expand_special_args_builtin): Expand new FTYPE.
21004 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21005 (srcp14<mode>): Make insn unary.
21006 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21007 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21008 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21009 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21010 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21011 Fix rounding: make it SAE only.
21012 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21014 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21016 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21017 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21018 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21019 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21020 (round_saeonly_mask_scalar_operand4): Ditto.
21021 (round_saeonly_mask_scalar_op3): Ditto.
21022 (round_saeonly_mask_scalar_op4): Ditto.
21024 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21026 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21027 Implement -maltivec=be for vec_insert and vec_extract.
21029 2014-01-10 DJ Delorie <dj@redhat.com>
21031 * config/msp430/msp430.md (call_internal): Don't allow memory
21032 references with SP as the base register.
21033 (call_value_internal): Likewise.
21034 * config/msp430/constraints.md (Yc): New. For memory references
21035 that don't use SP as a base register.
21037 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21038 "an integer without a # prefix"
21039 * config/msp430/msp430.md (epilogue_helper): Use it.
21041 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21044 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21045 AVX512F gather builtins.
21046 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21047 on gather decls with INTEGER_TYPE masktype.
21048 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21049 directly into the builtin rather than hoisting it before loop.
21051 PR tree-optimization/59387
21052 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21053 (scev_const_prop): If folded_casts and type has undefined overflow,
21054 use force_gimple_operand instead of force_gimple_operand_gsi and
21055 for each added stmt if it is assign with
21056 arith_code_with_undefined_signed_overflow, call
21057 rewrite_to_defined_overflow.
21058 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21059 gimple-fold.h instead.
21060 (arith_code_with_undefined_signed_overflow,
21061 rewrite_to_defined_overflow): Moved to ...
21062 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21063 rewrite_to_defined_overflow): ... here. No longer static.
21064 Include gimplify-me.h.
21065 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21066 rewrite_to_defined_overflow): New prototypes.
21068 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21070 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21072 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21074 * builtins.c (get_object_alignment_2): Minor tweak.
21075 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21077 2014-01-13 Christian Bruel <christian.bruel@st.com>
21079 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21080 optimized non constant lengths.
21082 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21085 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21086 load as __atomic_load_N if possible.
21088 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21090 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21092 (rs6000_expand_builtin): Adjust call.
21094 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21097 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21098 * config/rs6000/rs6000.c: Include target-globals.h.
21099 (rs6000_set_current_function): Instead of doing target_reinit
21100 unconditionally, use save_target_globals_default_opts and
21101 restore_target_globals.
21103 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21105 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21106 (rs6000_expand_builtin): Handle mffs and mtfsf.
21107 (rs6000_init_builtins): Define mffs and mtfsf.
21108 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21109 (rs6000_mffs): New pattern.
21110 (rs6000_mtfsf): New pattern.
21112 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21114 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21115 Start narrowing with START. Apply candidate-use pair
21116 and check overall cost in narrowing.
21117 (iv_ca_prune): Pass new argument.
21119 2014-01-10 Jeff Law <law@redhat.com>
21121 PR middle-end/59743
21122 * ree.c (combine_reaching_defs): Ensure the defining statement
21123 occurs before the extension when optimizing extensions with
21124 different source and destination hard registers.
21126 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21129 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21130 vtables into the type inheritance graph.
21132 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21134 PR rtl-optimization/59754
21135 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21136 modes in the REGNO != REGNO case.
21138 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21140 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21142 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21144 PR tree-optimization/59745
21145 * tree-predcom.c (tree_predictive_commoning_loop): Call
21146 free_affine_expand_cache if giving up because components is NULL.
21148 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21149 GC in payload of target_globals struct instead of allocating them on
21150 the heap and the larger structs separately using GC.
21151 * target-globals.h (struct target_globals): Make regs, hard_regs,
21152 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21153 of GTY((skip)) and change type to void *.
21154 (reset_target_globals): Cast loads from those fields to corresponding
21157 2014-01-10 Steve Ellcey <sellcey@mips.com>
21160 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21161 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21162 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21164 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21167 * aarch64-modes.def (CC_Zmode): New flags mode.
21168 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21169 represents an equality.
21170 (aarch64_get_condition_code): Handle CC_Zmode.
21171 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21173 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21175 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21176 extraction in good case.
21178 2014-01-10 Richard Biener <rguenther@suse.de>
21180 PR tree-optimization/59374
21181 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21182 checking after SLP discovery. Mark stmts not participating
21183 in any SLP instance properly.
21185 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21187 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21188 when handling a SET rtx.
21190 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21192 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21193 (cortex-a57): Likewise.
21194 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21196 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21198 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21199 non-iwmmxt builtins.
21201 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21205 * ipa-devirt.c record_target_from_binfo): Take as argument
21206 stack of binfos and lookup matching one for virtual inheritance.
21207 (possible_polymorphic_call_targets_1): Update.
21209 2014-01-10 Huacai Chen <chenhc@lemote.com>
21211 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21212 kernel strings for Loongson-2E/2F/3A.
21214 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21216 PR middle-end/59670
21217 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21218 is_gimple_call before calling gimple_call_internal_p.
21220 2014-01-09 Steve Ellcey <sellcey@mips.com>
21222 * Makefile.in (TREE_FLOW_H): Remove.
21223 (TREE_SSA_H): Add file names from tree-flow.h.
21224 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21225 * tree.h: Remove tree-flow.h reference.
21226 * hash-table.h: Remove tree-flow.h reference.
21227 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21228 reference with tree-ssa-loop.h.
21230 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21232 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21233 default element-order behavior for -maltivec.
21234 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21235 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21236 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21237 when targeting big endian, at least for now.
21238 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21240 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21242 PR middle-end/47735
21243 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21244 var satisfies use_register_for_decl, just take into account type
21245 alignment, rather than decl alignment.
21247 PR tree-optimization/59622
21248 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21249 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21250 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21251 Don't devirtualize for inplace at all. For targets.length () == 1,
21252 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21254 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21256 * config/i386/i386.md (cpu): Remove the unused btver1.
21258 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21260 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21262 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21265 * tree-core.h (struct target_globals): New forward declaration.
21266 (struct tree_target_option): Add globals field.
21267 * tree.h (TREE_TARGET_GLOBALS): Define.
21268 (prepare_target_option_nodes_for_pch): New prototype.
21269 * target-globals.h (struct target_globals): Define even if
21270 !SWITCHABLE_TARGET.
21271 * tree.c (prepare_target_option_node_for_pch,
21272 prepare_target_option_nodes_for_pch): New functions.
21273 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21274 * config/i386/i386.c: Include target-globals.h.
21275 (ix86_set_current_function): Instead of doing target_reinit
21276 unconditionally, use save_target_globals_default_opts and
21277 restore_target_globals.
21279 2014-01-09 Richard Biener <rguenther@suse.de>
21281 PR tree-optimization/59715
21282 * tree-cfg.h (split_critical_edges): Declare.
21283 * tree-cfg.c (split_critical_edges): Export.
21284 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21286 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21288 * cfgexpand.c (expand_stack_vars): Optionally disable
21289 asan stack protection.
21290 (expand_used_vars): Likewise.
21291 (partition_stack_vars): Likewise.
21292 * asan.c (asan_emit_stack_protection): Optionally disable
21293 after return stack usage.
21294 (instrument_derefs): Optionally disable memory access instrumentation.
21295 (instrument_builtin_call): Likewise.
21296 (instrument_strlen_call): Likewise.
21297 (asan_protect_global): Optionally disable global variables protection.
21298 * doc/invoke.texi: Added doc for new options.
21299 * params.def: Added new options.
21300 * params.h: Likewise.
21302 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21304 PR rtl-optimization/59724
21305 * ifcvt.c (cond_exec_process_if_block): Don't call
21306 flow_find_head_matching_sequence with 0 longest_match.
21307 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21308 non-active insns if !stop_after.
21309 (try_head_merge_bb): Revert 2014-01-07 changes.
21311 2014-01-08 Jeff Law <law@redhat.com>
21313 * ree.c (get_sub_rtx): New function, extracted from...
21314 (merge_def_and_ext): Here.
21315 (combine_reaching_defs): Use get_sub_rtx.
21317 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21319 * cgraph.h (varpool_variable_node): Do not choke on null node.
21321 2014-01-08 Catherine Moore <clm@codesourcery.com>
21323 * config/mips/mips.md (simple_return): Attempt to use JRC
21325 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21327 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21329 PR rtl-optimization/59137
21330 * reorg.c (steal_delay_list_from_target): Call update_block for
21332 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21334 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21336 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21337 two duplicate entries.
21339 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21342 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21344 * config/mips/mips.c (mips_truncated_op_cost): New function.
21345 (mips_rtx_costs): Adjust test for BADDU.
21346 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21348 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21350 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21351 (*baddu_si): ...this new pattern.
21353 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21356 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21358 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21360 PR middle-end/57748
21361 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21363 (expand_expr, expand_normal): Adjust.
21364 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21365 inner_reference_p. Use inner_reference_p to expand inner references.
21366 (store_expr): Adjust.
21367 * cfgexpand.c (expand_call_stmt): Adjust.
21369 2014-01-08 Rong Xu <xur@google.com>
21371 * gcov-io.c (gcov_var): Move from gcov-io.h.
21372 (gcov_position): Ditto.
21373 (gcov_is_error): Ditto.
21374 (gcov_rewrite): Ditto.
21375 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21376 only part to libgcc/libgcov.h.
21378 2014-01-08 Marek Polacek <polacek@redhat.com>
21380 PR middle-end/59669
21381 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21383 2014-01-08 Marek Polacek <polacek@redhat.com>
21386 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21388 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21390 PR rtl-optimization/59649
21391 * stor-layout.c (get_mode_bounds): For BImode return
21392 0 and STORE_FLAG_VALUE.
21394 2014-01-08 Richard Biener <rguenther@suse.de>
21396 PR middle-end/59630
21397 * gimple.h (is_gimple_builtin_call): Remove.
21398 (gimple_builtin_call_types_compatible_p): New.
21399 (gimple_call_builtin_p): New overload.
21400 * gimple.c (is_gimple_builtin_call): Remove.
21401 (validate_call): Rename to ...
21402 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21403 check return types.
21404 (validate_type): New static function.
21405 (gimple_call_builtin_p): New overload and adjust.
21406 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21407 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21408 (gimple_fold_stmt_to_constant_1): Likewise.
21409 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21411 2014-01-08 Richard Biener <rguenther@suse.de>
21413 PR middle-end/59471
21414 * gimplify.c (gimplify_expr): Gimplify register-register type
21415 VIEW_CONVERT_EXPRs to separate stmts.
21417 2014-01-07 Jeff Law <law@redhat.com>
21419 PR middle-end/53623
21420 * ree.c (combine_set_extension): Handle case where source
21421 and destination registers in an extension insn are different.
21422 (combine_reaching_defs): Allow source and destination registers
21423 in extension to be different under limited circumstances.
21424 (add_removable_extension): Remove restriction that the
21425 source and destination registers in the extension are the same.
21426 (find_and_remove_re): Emit a copy from the extension's
21427 destination to its source after the defining insn if
21428 the source and destination registers are different.
21430 PR middle-end/59285
21431 * ifcvt.c (merge_if_block): If we are merging a block with more than
21432 one successor with a block with no successors, remove any BARRIER
21433 after the second block.
21435 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21437 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21439 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21442 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21443 for 14-bit register offsets when INT14_OK_STRICT is false.
21445 2014-01-07 Roland Stigge <stigge@antcom.de>
21446 Michael Meissner <meissner@linux.vnet.ibm.com>
21449 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21450 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21452 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21454 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21457 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21459 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21460 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21461 rtx is const0_rtx or not.
21463 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21466 * target-globals.c (save_target_globals): Remove this_fn_optab
21468 * toplev.c: Include optabs.h.
21469 (target_reinit): Temporarily restore the global options if another
21470 set of options are in force.
21472 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21474 PR rtl-optimization/58668
21475 * cfgcleanup.c (flow_find_cross_jump): Don't count
21476 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21477 to determine what is counted.
21478 (flow_find_head_matching_sequence): Use active_insn_p to determine
21480 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21482 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21483 determine what is counted.
21485 PR tree-optimization/59643
21486 * tree-predcom.c (split_data_refs_to_components): If one dr is
21487 read and one write, determine_offset fails and the write isn't
21488 in the bad component, just put the read into the bad component.
21490 2014-01-07 Mike Stump <mikestump@comcast.net>
21491 Jakub Jelinek <jakub@redhat.com>
21494 * tree-core.h (struct tree_optimization_option): Change optabs
21495 type from unsigned char * to void *.
21496 * optabs.c (init_tree_optimization_optabs): Adjust
21497 TREE_OPTIMIZATION_OPTABS initialization.
21499 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21502 * config/i386/i386.h (struct machine_function): Add
21503 no_drap_save_restore field.
21504 * config/i386/i386.c (ix86_save_reg): Use
21505 !cfun->machine->no_drap_save_restore instead of
21506 crtl->stack_realign_needed.
21507 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21508 this function clears frame_pointer_needed. Set
21509 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21510 and DRAP reg is needed.
21512 2014-01-06 Marek Polacek <polacek@redhat.com>
21515 * doc/implement-c.texi: Mention that other integer types are
21516 permitted as bit-field types in strictly conforming mode.
21518 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21520 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21521 is newly allocated.
21523 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21525 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21527 2014-01-06 Martin Jambor <mjambor@suse.cz>
21530 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21532 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21534 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21538 * var-tracking.c (add_stores): Preserve the value of the source even if
21539 we don't record the store.
21541 2014-01-06 Terry Guo <terry.guo@arm.com>
21543 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21545 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21548 * config/darwin.c (darwin_function_section): Adjust return values to
21549 correspond to optimisation changes made in r206070.
21551 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21553 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21554 from prefetch_block tune setting.
21555 (nocona_cost): Correct size of prefetch block to 64.
21557 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21559 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21560 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21561 used to save the static chain register in the computation of the offset
21562 from which the FP registers need to be restored.
21564 2014-01-04 Jakub Jelinek <jakub@redhat.com>
21566 PR tree-optimization/59519
21567 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
21568 ICE if get_current_def (current_new_name) is already non-NULL, as long
21569 as it is a phi result of some other phi in *new_exit_bb that has
21572 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
21573 or vmovdqu* for misaligned_operand.
21574 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
21575 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
21576 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
21577 aligned_mem for AVX512F masked aligned load and store builtins and for
21578 non-temporal moves.
21580 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
21582 PR tree-optimization/59651
21583 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21584 Address range for negative step should be added by TYPE_SIZE_UNIT.
21586 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
21588 * config/m68k/m68k.c (handle_move_double): Handle pushes with
21589 overlapping registers also for registers other than the stack pointer.
21591 2014-01-03 Marek Polacek <polacek@redhat.com>
21594 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
21597 2014-01-03 Jakub Jelinek <jakub@redhat.com>
21600 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
21603 * config/i386/i386.md (MODE_SIZE): New mode attribute.
21604 (push splitter): Use <P:MODE_SIZE> instead of
21605 GET_MODE_SIZE (<P:MODE>mode).
21606 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
21607 (mov -1, reg peephole2): Likewise.
21608 * config/i386/sse.md (*mov<mode>_internal,
21609 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
21610 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
21611 *<code><mode>3, *andnot<mode>3<mask_name>,
21612 <mask_codefor><code><mode>3<mask_name>): Likewise.
21613 * config/i386/subst.md (mask_mode512bit_condition,
21614 sd_mask_mode512bit_condition): Likewise.
21616 2014-01-02 Xinliang David Li <davidxl@google.com>
21618 PR tree-optimization/59303
21619 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
21620 (dump_predicates): Better output format.
21621 (pred_equal_p): New function.
21622 (is_neq_relop_p): Ditto.
21623 (is_neq_zero_form_p): Ditto.
21624 (pred_expr_equal_p): Ditto.
21625 (pred_neg_p): Ditto.
21626 (simplify_pred): Ditto.
21627 (simplify_preds_2): Ditto.
21628 (simplify_preds_3): Ditto.
21629 (simplify_preds_4): Ditto.
21630 (simplify_preds): Ditto.
21631 (push_pred): Ditto.
21632 (push_to_worklist): Ditto.
21633 (get_pred_info_from_cmp): Ditto.
21634 (is_degenerated_phi): Ditto.
21635 (normalize_one_pred_1): Ditto.
21636 (normalize_one_pred): Ditto.
21637 (normalize_one_pred_chain): Ditto.
21638 (normalize_preds): Ditto.
21639 (normalize_cond_1): Remove function.
21640 (normalize_cond): Ditto.
21641 (is_gcond_subset_of): Ditto.
21642 (is_subset_of_any): Ditto.
21643 (is_or_set_subset_of): Ditto.
21644 (is_and_set_subset_of): Ditto.
21645 (is_norm_cond_subset_of): Ditto.
21646 (pred_chain_length_cmp): Ditto.
21647 (convert_control_dep_chain_into_preds): Type change.
21648 (find_predicates): Ditto.
21649 (find_def_preds): Ditto.
21650 (destroy_predicates_vecs): Ditto.
21651 (find_matching_predicates_in_rest_chains): Ditto.
21652 (use_pred_not_overlap_with_undef_path_pred): Ditto.
21653 (is_pred_expr_subset): Ditto.
21654 (is_pred_chain_subset_of): Ditto.
21655 (is_included_in): Ditto.
21656 (is_superset_of): Ditto.
21658 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21660 Update copyright years.
21662 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21664 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
21665 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
21666 config/arc/arc.md, config/arc/arc.opt,
21667 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
21668 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
21669 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
21670 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
21671 config/linux-protos.h, config/linux.c, config/winnt-c.c,
21672 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
21673 vtable-verify.c, vtable-verify.h: Use the standard form for the
21676 2014-01-02 Tobias Burnus <burnus@net-b.de>
21678 * gcc.c (process_command): Update copyright notice dates.
21679 * gcov-dump.c: Ditto.
21681 * doc/cpp.texi: Bump @copying's copyright year.
21682 * doc/cppinternals.texi: Ditto.
21683 * doc/gcc.texi: Ditto.
21684 * doc/gccint.texi: Ditto.
21685 * doc/gcov.texi: Ditto.
21686 * doc/install.texi: Ditto.
21687 * doc/invoke.texi: Ditto.
21689 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21691 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
21693 2014-01-01 Jakub Jelinek <jakub@redhat.com>
21695 * config/i386/sse.md (*mov<mode>_internal): Guard
21696 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
21698 PR rtl-optimization/59647
21699 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
21700 new_rtx into UNSIGNED_FLOAT rtxes.
21702 Copyright (C) 2014 Free Software Foundation, Inc.
21704 Copying and distribution of this file, with or without modification,
21705 are permitted in any medium without royalty provided the copyright
21706 notice and this notice are preserved.