Instruction attributes take an rtx_insn *
[gcc.git] / gcc / ChangeLog
1 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2
3 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4 rtx to rtx_insn *.
5 (arc_sets_cc_p): Likewise.
6 * config/arc/arc.c (arc_print_operand): Use methods of
7 "final_sequence" for clarity, and to enable strengthening of
8 locals "jump" and "delay" from rtx to rtx_insn *.
9 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
10 rtx_insn *; use method of rtx_sequence for typesafety.
11 (arc_get_insn_variants): Use insn method of rtx_sequence for
12 typesafety.
13 (arc_pad_return): Likewise.
14 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
15 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
16 dyn_cast to rtx_sequence *, using insn method for typesafety.
17 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
18 rtx_sequence * and use insn method when invoking get_attr_length.
19 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
20 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
21 rtx_sequence *, introducing a local "seq", using its insn method
22 from typesafety and clarity.
23 (add_sched_insns_for_speculation): Strengthen local "next" from
24 rtx to rtx_insn *.
25 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
26 (predicate_insn): Likewise.
27 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
28 second param.
29 * config/cris/cris.c (cris_notice_update_cc): Likewise.
30 * config/epiphany/epiphany-protos.h
31 (extern void epiphany_insert_mode_switch_use): Likewise for param
32 "insn".
33 (get_attr_sched_use_fpu): Likewise for param.
34 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
35 Likewise for param "insn".
36 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
37 param "insn" of "target_insert_mode_switch_use" callback.
38 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
39 (frv_issues_to_branch_unit_p): Likewise.
40 (frv_pack_insn_p): Likewise.
41 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
42 const rtx * (i.e. mutable rtx_def * const *) to
43 rtx_insn * const *.
44 * config/i386/i386-protos.h (standard_sse_constant_opcode):
45 Strengthen first param from rtx to rtx_insn *.
46 (output_fix_trunc): Likewise.
47 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
48 (output_fix_trunc): Likewise.
49 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
50 local "insn".
51 (min_insn_size): Likewise for param "insn".
52 (get_mem_group): Likewise.
53 (is_cmp): Likewise.
54 (get_insn_path): Likewise.
55 (get_insn_group): Likewise.
56 (count_num_restricted): Likewise.
57 (fits_dispatch_window): Likewise.
58 (add_insn_window): Likewise.
59 (add_to_dispatch_window): Likewise.
60 (debug_insn_dispatch_info_file): Likewise.
61 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
62 first param.
63 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
64 "cmp" and local "prev".
65 (m32c_output_compare): Likewise for param "insn".
66 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
67 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
68 (define_predicate "large_insn_p"): Likewise.
69 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
70 param from rtx to rtx_insn *.
71 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
72 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
73 (m68k_sched_attr_size): Likewise.
74 (sched_get_opxy_mem_type): Likewise for param "insn".
75 (m68k_sched_attr_op_mem): Likewise.
76 (sched_mem_operand_p): Likewise.
77 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
78 * config/mep/mep.c (mep_multi_slot): Likewise.
79 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
80 first param.
81 (mips_sync_loop_insns): Likewise.
82 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
83 method of "final_sequence" for typesafety.
84 (mips_process_sync_loop): Strengthen param "insn" from rtx to
85 rtx_insn *.
86 (mips_output_sync_loop): Likewise.
87 (mips_sync_loop_insns): Likewise.
88 (mips_74k_agen_init): Likewise.
89 (mips_sched_init): Use NULL rather than NULL_RTX when working with
90 insns.
91 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
92 Strengthen param "insn" from rtx to rtx_insn *.
93 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
94 local "insn".
95 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
96 param.
97 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
98 "insn". Use method of rtx_sequence for typesafety.
99 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
100 rtx_insn *.
101 (branch_needs_nop_p): Likewise.
102 (use_skip_p): Likewise.
103 (pa_insn_refs_are_delayed): Likewise.
104 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
105 for locals "insn", "ninsn".
106 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
107 "insn".
108 (is_cracked_insn): Likewise.
109 (is_branch_slot_insn): Likewise.
110 (is_nonpipeline_insn): Likewise.
111 (insn_terminates_group_p): Likewise.
112 (insn_must_be_first_in_group): Likewise.
113 (insn_must_be_last_in_group): Likewise.
114 (force_new_group): Likewise for param "next_insn".
115 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
116 "insn".
117 (s390_sched_score): Likewise.
118 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
119 (rtx sfunc_uses_reg): Likewise for sole param.
120 * config/sh/sh.c (sh_print_operand): Use insn method of
121 final_sequence for typesafety.
122 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
123 Use insn method of final_sequence for typesafety.
124 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
125 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
126 for param.
127 (eligible_for_return_delay): Likewise.
128 (eligible_for_sibcall_delay): Likewise.
129 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
130 (eligible_for_return_delay): Likewise.
131 (eligible_for_sibcall_delay): Likewise.
132 * config/stormy16/stormy16-protos.h
133 (xstormy16_output_cbranch_hi): Likewise for final param.
134 (xstormy16_output_cbranch_si): Likewise.
135 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
136 (xstormy16_output_cbranch_si): Likewise.
137 * config/v850/v850-protos.h (notice_update_cc): Likewise.
138 * config/v850/v850.c (notice_update_cc): Likewise.
139
140 * final.c (get_attr_length_1): Strengthen param "insn" and param
141 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
142 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
143 (get_attr_min_length): Likewise.
144 (shorten_branches): Likewise for signature of locals "length_fun"
145 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
146 from a checked cast and use its methods for clarity and to enable
147 strengthening local "inner_insn" from rtx to rtx_insn *.
148 * genattr.c (gen_attr): When writing out the prototypes of the
149 various generated "get_attr_" functions, strengthen the params of
150 the non-const functions from rtx to rtx_insn *.
151 Similarly, strengthen the params of insn_default_length,
152 insn_min_length, insn_variable_length_p, insn_current_length.
153 (main): Similarly, strengthen the param of num_delay_slots,
154 internal_dfa_insn_code, insn_default_latency, bypass_p,
155 insn_latency, min_issue_delay, print_reservation,
156 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
157 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
158 to hook_int_rtx_insn_unreachable.
159 * genattrtab.c (write_attr_get): When writing out the generated
160 "get_attr_" functions, strengthen the param "insn" from rtx to
161 rtx_insn *, eliminating a checked cast.
162 (make_automaton_attrs): When writing out prototypes of
163 "internal_dfa_insn_code_", "insn_default_latency_" functions
164 and the "internal_dfa_insn_code" and "insn_default_latency"
165 callbacks, strengthen their params from rtx to rtx_insn *
166 * genautomata.c (output_internal_insn_code_evaluation): When
167 writing out code, add a checked cast from rtx to rtx_insn * when
168 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
169 (output_dfa_insn_code_func): Strengthen param of generated
170 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
171 (output_trans_func): Likewise for generated function
172 "state_transition".
173 (output_internal_insn_latency_func): When writing out generated
174 function "internal_insn_latency", rename params from "insn" and
175 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
176 locals "insn" and "insn2" as rtx_insn * with checked casts once
177 we've proven that we're not dealing with const0_rtx.
178 (output_insn_latency_func): Strengthen param of generated
179 function "insn_latency" from rtx to rtx_insn *.
180 (output_print_reservation_func): Likewise for generated function
181 "print_reservation".
182 (output_insn_has_dfa_reservation_p): Likewise for generated
183 function "insn_has_dfa_reservation_p".
184 * hooks.c (hook_int_rtx_unreachable): Rename to...
185 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
186 from rtx to rtx_insn *.
187 * hooks.h (hook_int_rtx_unreachable): Likewise.
188 (extern int hook_int_rtx_insn_unreachable): Likewise.
189 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
190 (get_attr_min_length): Likewise.
191 * recog.c (get_enabled_alternatives): Likewise.
192 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
193 * reorg.c (find_end_label): Introduce local rtx "pat" and
194 strengthen local "insn" from rtx to rtx_insn *.
195 (redundant_insn): Use insn method of "seq" rather than element for
196 typesafety; strengthen local "control" from rtx to rtx_insn *.
197 * resource.c (mark_referenced_resources): Add checked cast to
198 rtx_insn * within INSN/JUMP_INSN case.
199 (mark_set_resources): Likewise.
200 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
201 rtx to rtx_insn *.
202
203 2014-09-15 David Malcolm <dmalcolm@redhat.com>
204
205 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
206 param "label" from rtx to rtx_insn *.
207 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
208 and local "op".
209 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
210 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
211 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
212 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
213 * final.c (default_label_align_after_barrier_max_skip): Strengthen
214 param from rtx to rtx_insn *.
215 (default_loop_align_max_skip): Likewise.
216 (default_label_align_max_skip): Likewise.
217 (default_jump_align_max_skip): Likewise.
218 * target.def (label_align_after_barrier_max_skip): Likewise.
219 (loop_align_max_skip): Likewise.
220 (label_align_max_skip): Likewise.
221 (jump_align_max_skip): Likewise.
222 * targhooks.h (default_label_align_after_barrier_max_skip):
223 Likewise.
224 (default_loop_align_max_skip): Likewise.
225 (default_label_align_max_skip): Likewise.
226 (default_jump_align_max_skip): Likewise.
227
228 2014-09-15 David Malcolm <dmalcolm@redhat.com>
229
230 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
231 from const_rtx to const rtx_insn *. Update union members from rtx
232 to rtx_insn *.
233 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
234 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
235 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
236 strengthen both params from const_rtx to const rtx_insn *.
237 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
238 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
239 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
240 rtx_insn *.
241 * target.def (can_follow_jump): Strengthen both params from
242 const_rtx to const rtx_insn *, and update default implementation
243 from hook_bool_const_rtx_const_rtx_true to
244 hook_bool_const_rtx_insn_const_rtx_insn_true.
245
246 2014-09-15 David Malcolm <dmalcolm@redhat.com>
247
248 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
249 "insn" from rtx to rtx_insn *.
250 * sched-int.h (deps_start_bb): Likewise for 2nd param.
251
252 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
253 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
254 Anna Tikhonova <anna.tikhonova@intel.com>
255 Ilya Tocar <ilya.tocar@intel.com>
256 Andrey Turetskiy <andrey.turetskiy@intel.com>
257 Ilya Verbin <ilya.verbin@intel.com>
258 Kirill Yukhin <kirill.yukhin@intel.com>
259 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
260
261 * config/i386/sse.md
262 (define_insn "vcvtph2ps<mask_name>"): Add masking.
263 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
264 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
265 (define_expand "vcvtps2ph_mask"): New.
266 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
267 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
268 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
269
270 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
271 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
272 Anna Tikhonova <anna.tikhonova@intel.com>
273 Ilya Tocar <ilya.tocar@intel.com>
274 Andrey Turetskiy <andrey.turetskiy@intel.com>
275 Ilya Verbin <ilya.verbin@intel.com>
276 Kirill Yukhin <kirill.yukhin@intel.com>
277 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
278
279 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
280 New.
281 (define_mode_iterator VI24_AVX512BW_1): Ditto.
282 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
283 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
284 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
285 also for TARGET_AVX512VL.
286 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
287
288 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
289
290 * doc/install.texi (Options specification): add
291 --disable-libsanitizer item.
292
293 2014-09-14 James Clarke <jrtc27@jrtc27.com>
294 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
295
296 PR target/61407
297 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
298 and above.
299 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
300 kernel version check to avoid incrementing it after every major OS X
301 release.
302 (darwin_default_min_version): Avoid static memory buffer.
303
304 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
305
306 * tree.c (need_assembler_name_p): Store C++ type mangling only
307 for aggregates.
308
309 2014-09-13 Marek Polacek <polacek@redhat.com>
310
311 * tree.c (protected_set_expr_location): Don't check whether T is
312 non-null here.
313
314 2014-09-12 DJ Delorie <dj@redhat.com>
315
316 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
317 (extend_and_shift1_hipsi2): Likewise.
318 (extend_and_shift2_hipsi2): Likewise.
319
320 2014-09-12 David Malcolm <dmalcolm@redhat.com>
321
322 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
323 with NULL when dealing with an insn.
324 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
325 from rtx to rtx_insn *.
326 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
327 const_rtx to const rtx_insn *.
328 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
329
330 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
331
332 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
333 assert.
334
335 2014-09-12 Joseph Myers <joseph@codesourcery.com>
336
337 * target.def (libgcc_floating_mode_supported_p): New hook.
338 * targhooks.c (default_libgcc_floating_mode_supported_p): New
339 function.
340 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
341 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
342 (LIBGCC2_HAS_TF_MODE): Remove.
343 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
344 * doc/tm.texi: Regenerate.
345 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
346 machine mode.
347 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
348 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
349 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
350 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
351 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
352 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
353 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
354 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
355 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
356 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
357 function.
358 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
359 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
360 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
361 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
362 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
363 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
364 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
365 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
366 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
367 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
368 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
369 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
370 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
371 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
372 Remove.
373 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
374 New macro.
375 (ia64_libgcc_floating_mode_supported_p): New function.
376 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
377 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
378 (IA64_NO_LIBGCC_TFMODE): Define.
379 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
380 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
381 macro.
382 (pdp11_scalar_mode_supported_p): New function.
383 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
384 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
385
386 2014-09-12 Richard Biener <rguenther@suse.de>
387
388 PR middle-end/63237
389 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
390
391 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
392
393 * tree.c (integer_each_onep): New function.
394 * tree.h (integer_each_onep): Declare it.
395 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
396 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
397 (X & 1) == 0 for vector and complex.
398
399 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
400
401 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
402 for A57.
403 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
404 cost to spilling from integer to FP registers.
405
406 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
407
408 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
409 move handling.
410 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
411 are now handled correctly.
412
413 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
414
415 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
416 handling of CALLER_SAVE_REGS and POINTER_REGS.
417
418 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
419
420 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
421 the number of hard registers.
422
423 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
425 Anna Tikhonova <anna.tikhonova@intel.com>
426 Ilya Tocar <ilya.tocar@intel.com>
427 Andrey Turetskiy <andrey.turetskiy@intel.com>
428 Ilya Verbin <ilya.verbin@intel.com>
429 Kirill Yukhin <kirill.yukhin@intel.com>
430 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
431
432 * config/i386/sse.md
433 (define_mode_iterator VI48_AVX512VL): New.
434 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
435 "avx512f_vternlog<mode>_maskz" and update mode iterator.
436 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
437 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
438 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
439 "avx512f_vternlog<mode>_mask" and update mode iterator.
440 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
441 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
442 iterator.
443 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
444 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
445 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
446 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
447 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
448 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
449
450 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
451 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
452 Anna Tikhonova <anna.tikhonova@intel.com>
453 Ilya Tocar <ilya.tocar@intel.com>
454 Andrey Turetskiy <andrey.turetskiy@intel.com>
455 Ilya Verbin <ilya.verbin@intel.com>
456 Kirill Yukhin <kirill.yukhin@intel.com>
457 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
458
459 * config/i386/sse.md (VI128_256): Delete.
460 (define_mode_iterator VI124_256): New.
461 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
462 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
463 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
464 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
465 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
466 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
467 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
468 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
469 iterator.
470 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
471 in presence of AVX-512.
472
473 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
474 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
475 Anna Tikhonova <anna.tikhonova@intel.com>
476 Ilya Tocar <ilya.tocar@intel.com>
477 Andrey Turetskiy <andrey.turetskiy@intel.com>
478 Ilya Verbin <ilya.verbin@intel.com>
479 Kirill Yukhin <kirill.yukhin@intel.com>
480 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
481
482 * config/i386/sse.md
483 (define_expand "<avx512>_gathersi<mode>"): Rename from
484 "avx512f_gathersi<mode>".
485 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
486 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
487 (define_expand "<avx512>_gatherdi<mode>"): Rename from
488 "avx512f_gatherdi<mode>".
489 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
490 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
491 wide versions.
492 (define_expand "<avx512>_scattersi<mode>"): Rename from
493 "avx512f_scattersi<mode>".
494 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
495 (define_expand "<avx512>_scatterdi<mode>"): Rename from
496 "avx512f_scatterdi<mode>".
497 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
498
499 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
500
501 * ira.h (ira_finish_once): Delete.
502 * ira-int.h (target_ira_int::~target_ira_int): Declare.
503 (target_ira_int::free_ira_costs): Likewise.
504 (target_ira_int::free_register_move_costs): Likewise.
505 (ira_finish_costs_once): Delete.
506 * ira.c (free_register_move_costs): Replace with...
507 (target_ira_int::free_register_move_costs): ...this new function.
508 (target_ira_int::~target_ira_int): Define.
509 (ira_init): Call free_register_move_costs as a member function rather
510 than a global function.
511 (ira_finish_once): Delete.
512 * ira-costs.c (free_ira_costs): Replace with...
513 (target_ira_int::free_ira_costs): ...this new function.
514 (ira_init_costs): Call free_ira_costs as a member function rather
515 than a global function.
516 (ira_finish_costs_once): Delete.
517 * target-globals.c (target_globals::~target_globals): Call the
518 target_ira_int destructor.
519 * toplev.c: Include lra.h.
520 (finalize): Call lra_finish_once rather than ira_finish_once.
521
522 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
523
524 * common.opt (flto-odr-type-merging): New flag.
525 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
526 (types_same_for_odr): Likewise.
527 (odr_subtypes_equivalent_p): Likewise.
528 (add_type_duplicate): Do not walk type variants.
529 (register_odr_type): New function.
530 * ipa-utils.h (register_odr_type): Declare.
531 (odr_type_p): New function.
532 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
533 TYPE_DECLs
534 * doc/invoke.texi (-flto-odr-type-merging): Document.
535 * tree.c (need_assembler_name_p): Compute ODR names when asked
536 for it.
537 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
538
539 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
540
541 PR target/63228
542 * config/i386/i386.c (ix86_option_override_internal): Also turn
543 off OPTION_MASK_ABI_X32 for -m16.
544
545 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
546
547 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
548 GPR instead of P.
549
550 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
551
552 PR target/58757
553 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
554 Directly forward to __*_DENORM_MIN__.
555
556 2014-09-11 David Malcolm <dmalcolm@redhat.com>
557
558 * rtl.h (LABEL_REF_LABEL): New macro.
559
560 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
561 of XEXP (, 0), where we know that we have a LABEL_REF.
562 * cfgbuild.c (make_edges): Likewise.
563 (purge_dead_tablejump_edges): Likewise.
564 * cfgexpand.c (convert_debug_memory_address): Likewise.
565 * cfgrtl.c (patch_jump_insn): Likewise.
566 * combine.c (distribute_notes): Likewise.
567 * cse.c (hash_rtx_cb): Likewise.
568 (exp_equiv_p): Likewise.
569 (fold_rtx): Likewise.
570 (check_for_label_ref): Likewise.
571 * cselib.c (rtx_equal_for_cselib_1): Likewise.
572 (cselib_hash_rtx): Likewise.
573 * emit-rtl.c (mark_label_nuses): Likewise.
574 * explow.c (convert_memory_address_addr_space): Likewise.
575 * final.c (output_asm_label): Likewise.
576 (output_addr_const): Likewise.
577 * gcse.c (add_label_notes): Likewise.
578 * genconfig.c (walk_insn_part): Likewise.
579 * genrecog.c (validate_pattern): Likewise.
580 * ifcvt.c (cond_exec_get_condition): Likewise.
581 (noce_emit_store_flag): Likewise.
582 (noce_get_alt_condition): Likewise.
583 (noce_get_condition): Likewise.
584 * jump.c (maybe_propagate_label_ref): Likewise.
585 (mark_jump_label_1): Likewise.
586 (redirect_exp_1): Likewise.
587 (rtx_renumbered_equal_p): Likewise.
588 * lra-constraints.c (operands_match_p): Likewise.
589 * reload.c (operands_match_p): Likewise.
590 (find_reloads): Likewise.
591 * reload1.c (set_label_offsets): Likewise.
592 * reorg.c (get_branch_condition): Likewise.
593 * rtl.c (rtx_equal_p_cb): Likewise.
594 (rtx_equal_p): Likewise.
595 * rtlanal.c (reg_mentioned_p): Likewise.
596 (rtx_referenced_p): Likewise.
597 (get_condition): Likewise.
598 * sched-vis.c (print_value): Likewise.
599 * varasm.c (const_hash_1): Likewise.
600 (compare_constant): Likewise.
601 (const_rtx_hash_1): Likewise.
602 (output_constant_pool_1): Likewise.
603
604 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
605
606 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
607 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
608 instead of minus.
609 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
610 cr6_test_for_lt_reverse): Ditto.
611
612 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
613
614 PR c++/61489
615 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
616
617 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
618
619 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
620 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
621 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
622 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
623 Delete.
624
625 (aarch64_fold_builtin): Remove all reinterpret cases.
626
627 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
628
629 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
630
631 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
632 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
633 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
634 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
635 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
636 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
637 aarch64_reinterpretv2df<mode>): Delete.
638
639 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
640
641 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
642 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
643 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
644 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
645 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
646 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
647 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
648 vreinterpret_u32_f64): Use cast.
649
650 * config/aarch64/iterators.md (VD_RE): Delete.
651
652 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
653
654 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
655 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
656 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
657 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
658 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
659 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
660 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
661 Replace inline assembler with __aarch64_vset_lane_any.
662
663 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
664
665 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
666 types.
667 (vmull_high_lane_s32): Likewise.
668 (vmull_high_lane_u16): Likewise.
669 (vmull_high_lane_u32): Likewise.
670
671 2014-09-11 Jason Merrill <jason@redhat.com>
672
673 PR c++/58678
674 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
675
676 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
677
678 PR target/63223
679 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
680 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
681 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
682
683 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
684 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
685 Anna Tikhonova <anna.tikhonova@intel.com>
686 Ilya Tocar <ilya.tocar@intel.com>
687 Andrey Turetskiy <andrey.turetskiy@intel.com>
688 Ilya Verbin <ilya.verbin@intel.com>
689 Kirill Yukhin <kirill.yukhin@intel.com>
690 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
691
692 * config/i386/sse.md
693 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
694 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
695 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
696 New.
697 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
698 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
699 iterator.
700 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
701 New.
702 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
703 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
704 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
705 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
706 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
707 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
708 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
709 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
710 iterator.
711 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
712 New.
713 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
714 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
715 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
716
717 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
718
719 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
720 to access removed nodes.
721
722 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
723
724 PR tree-optimization/63186
725 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
726 (mark_nonssa_use): Likewise.
727 (verify_non_ssa_vars): Verify all header blocks for label
728 definitions.
729
730 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
731 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
732 Anna Tikhonova <anna.tikhonova@intel.com>
733 Ilya Tocar <ilya.tocar@intel.com>
734 Andrey Turetskiy <andrey.turetskiy@intel.com>
735 Ilya Verbin <ilya.verbin@intel.com>
736 Kirill Yukhin <kirill.yukhin@intel.com>
737 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
738
739 * config/i386/sse.md
740 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
741 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
742 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
743 "<avx2_avx512f>_permvar<mode><mask_name>".
744 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
745 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
746 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
747 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
748 Ditto.
749 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
750 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
751 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
752 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
753
754 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
755
756 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
757 V2DF, V4SF, DF, and DI modes.
758 (vsx_fmav2df2): Likewise.
759 (vsx_float_fix_<mode>2): Likewise.
760 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
761
762 2014-09-10 Xinliang David Li <davidxl@google.com>
763
764 PR target/63209
765 * config/arm/arm.md (movcond_addsi): Handle case where source
766 and target operands are the same.
767
768 2014-09-10 David Malcolm <dmalcolm@redhat.com>
769
770 * final.c (this_is_asm_operands): Strengthen this variable from
771 rtx to const rtx_insn *.
772 * output.h (this_is_asm_operands): Likewise.
773 * rtl-error.c (location_for_asm): Strengthen param "insn" from
774 const_rtx to const rtx_insn *.
775 (diagnostic_for_asm): Likewise.
776 * rtl-error.h (error_for_asm): Likewise.
777 (warning_for_asm): Likewise.
778
779 2014-09-10 David Malcolm <dmalcolm@redhat.com>
780
781 * genextract.c (print_header): When writing out insn_extract to
782 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
783 * recog.h (insn_extract): Strengthen the param from rtx to
784 rtx_insn *.
785
786 2014-09-10 Mike Stump <mikestump@comcast.net>
787
788 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
789 8.6.1.
790
791 2014-09-10 Martin Jambor <mjambor@suse.cz>
792
793 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
794 (analyze): Do not set analyze flag if expand_thunk returns false;.
795 (create_wrapper): Likewise.
796 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
797
798 2014-09-10 Martin Jambor <mjambor@suse.cz>
799
800 PR ipa/61654
801 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
802 new decl properly. Analyze the new thunk if it is expanded.
803
804 2014-09-10 Andreas Schwab <schwab@suse.de>
805
806 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
807 [USED_FOR_TARGET]: Define.
808
809 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
810
811 * config/mips/mips.c (mips_secondary_reload_class): Handle
812 regno < 0 case.
813
814 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
815
816 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
817 assignment.
818
819 2014-09-10 Jakub Jelinek <jakub@redhat.com>
820
821 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
822 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
823 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
824 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
825 flag_delete_null_pointer_checks for them.
826 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
827 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
828 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
829 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
830 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
831 stmt's iterator.
832 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
833 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
834 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
835 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
836 * doc/invoke.texi (-fsanitize=nonnull-attribute,
837 -fsanitize=returns-nonnull-attribute): Document.
838
839 * ubsan.h (struct ubsan_mismatch_data): Removed.
840 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
841 * ubsan.c (ubsan_source_location): For unknown locations,
842 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
843 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
844 Allow more than one location and arbitrary extra arguments passed
845 in ... instead of through MISMATCH pointer.
846 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
847 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
848 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
849 callers.
850
851 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
852 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
853 Anna Tikhonova <anna.tikhonova@intel.com>
854 Ilya Tocar <ilya.tocar@intel.com>
855 Andrey Turetskiy <andrey.turetskiy@intel.com>
856 Ilya Verbin <ilya.verbin@intel.com>
857 Kirill Yukhin <kirill.yukhin@intel.com>
858 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
859
860 * config/i386/sse.md
861 (define_mode_iterator VI48F): New.
862 (define_insn "<avx512>_compress<mode>_mask"): Rename from
863 "avx512f_compress<mode>_mask" and update mode iterator.
864 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
865 "avx512f_compressstore<mode>_mask" and update mode iterator.
866 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
867 "avx512f_expand<mode>_maskz" and update mode iterator.
868 (define_insn "<avx512>_expand<mode>_mask"): Rename from
869 "avx512f_expand<mode>_mask" and update mode iterator.
870
871 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
872 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
873 Anna Tikhonova <anna.tikhonova@intel.com>
874 Ilya Tocar <ilya.tocar@intel.com>
875 Andrey Turetskiy <andrey.turetskiy@intel.com>
876 Ilya Verbin <ilya.verbin@intel.com>
877 Kirill Yukhin <kirill.yukhin@intel.com>
878 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
879
880 * config/i386/i386.c
881 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
882 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
883 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
884 avx512dq_rangepv4sf_mask.
885 * config/i386/sse.md
886 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
887 UNSPEC_RANGE.
888 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
889 (define_insn "reduces<mode>"): Ditto.
890 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
891 Ditto.
892 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
893 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
894 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
895
896 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
897 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
898 Anna Tikhonova <anna.tikhonova@intel.com>
899 Ilya Tocar <ilya.tocar@intel.com>
900 Andrey Turetskiy <andrey.turetskiy@intel.com>
901 Ilya Verbin <ilya.verbin@intel.com>
902 Kirill Yukhin <kirill.yukhin@intel.com>
903 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
904
905 * config/i386/i386.c
906 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
907 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
908 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
909 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
910 avx512vl_getmantv2df_mask.
911 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
912 avx512f_vgetmantv4sf_round.
913 * config/i386/sse.md
914 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
915 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
916 mode iterator.
917 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
918 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
919 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
920 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
921 iterator..
922 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
923 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
924 update mode iterator.
925 (define_expand
926 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
927 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
928 mode iterator.
929 (define_insn
930 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
931 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
932 update mode iterator.
933 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
934 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
935 iterator..
936 (define_insn
937 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
938 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
939 mode iterator..
940 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
941 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
942 update mode iterator.
943 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
944 "avx512f_getmant<mode><round_saeonly_name>".
945
946 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
947
948 PR ipa/63166
949 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
950
951 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
952 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
953 Anna Tikhonova <anna.tikhonova@intel.com>
954 Ilya Tocar <ilya.tocar@intel.com>
955 Andrey Turetskiy <andrey.turetskiy@intel.com>
956 Ilya Verbin <ilya.verbin@intel.com>
957 Kirill Yukhin <kirill.yukhin@intel.com>
958 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
959
960 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
961 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
962 (define_mode_iterator FMAMODE_AVX512): New.
963 (define_mode_iterator FMAMODE): Remove conditions.
964 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
965 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
966 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
967 mode iterator.
968 (define_mode_iterator FMAMODE_NOVF512): Remove.
969 (define_insn "*fma_fmadd_<mode>"): Rename from
970 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
971 FMAMODE mode iterator.
972 (define_mode_iterator VF_SF_AVX512VL): New.
973 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
974 Use VF_SF_AVX512VL mode iterator.
975 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
976 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
977 iterator.
978 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
979 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
980 iterator.
981 (define_insn "*fma_fmsub_<mode>"): Rename from
982 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
983 FMAMODE mode iterator.
984 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
985 Use VF_SF_AVX512VL mode iterator.
986 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
987 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
988 iterator.
989 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
990 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
991 iterator.
992 (define_insn "*fma_fnmadd_<mode>"): Rename from
993 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
994 use FMAMODE mode iterator.
995 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
996 Use VF_SF_AVX512VL mode iterator.
997 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
998 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
999 iterator.
1000 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
1001 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1002 iterator.
1003 (define_insn "*fma_fnmsub_<mode>"): Rename from
1004 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
1005 FMAMODE mode iterator.
1006 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
1007 Use VF_SF_AVX512VL mode iterator.
1008 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
1009 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1010 iterator.
1011 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
1012 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1013 iterator.
1014 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
1015 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
1016 use VF_AVX512VL mode iterator.
1017 (define_insn "*fma_fmaddsub_<mode>"): Rename from
1018 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
1019 remove subst usage.
1020 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
1021 Use VF_SF_AVX512VL mode iterator.
1022 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
1023 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1024 iterator.
1025 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
1026 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1027 iterator.
1028 (define_insn "*fma_fmsubadd_<mode>"): Rename from
1029 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
1030 remove usage of subst.
1031 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
1032 Use VF_SF_AVX512VL mode iterator.
1033 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
1034 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1035 iterator.
1036 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
1037 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1038 iterator.
1039
1040 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
1041
1042 Revert r213751:
1043 * calls.c (precompute_arguments): Check
1044 promoted_for_signed_and_unsigned_p and set the promoted mode.
1045 (promoted_for_signed_and_unsigned_p): New function.
1046 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
1047 and set the promoted mode.
1048 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
1049 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
1050 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
1051
1052 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1053
1054 * opth-gen.awk: Generate mapping from cpp message reasons to the
1055 options that enable them.
1056 * doc/options.texi (CppReason): Document.
1057
1058 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1059
1060 * doc/invoke.texi (Wnormalized=): Update.
1061
1062 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
1063
1064 PR target/63195
1065 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
1066 operands. Split off the constant operand alternative to ...
1067 (*bool<mode>3_imm): New.
1068
1069 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1070
1071 * rtl.h (single_set_2): Strengthen first param from const_rtx to
1072 const rtx_insn *, and move prototype to above...
1073 (single_set): ...this. Convert this from a macro to an inline
1074 function, enforcing the requirement that the param is a const
1075 rtx_insn *.
1076 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
1077
1078 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
1079 Strengthen both params from rtx to rtx_insn *.
1080 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
1081 Likewise; introduce locals "producer_set", "consumer_set", using
1082 them in place of "producer" and "consumer" when dealing with SET
1083 rather than insn.
1084 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
1085 when invoking single_set in region guarded by INSN_P.
1086 (avr_out_bitop): Likewise.
1087 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
1088 region guarded by GET_CODE check, using methods to strengthen
1089 local "this_insn" from rtx to rtx_insn *, and for clarity.
1090 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
1091 Strengthen local "insn" from rtx to rtx_insn *.
1092 (define_insn_and_split "xload<mode>_A"): Likewise.
1093 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
1094 "insn".
1095 (find_load): Likewise for return type.
1096 (workaround_speculation): Likewise for both locals named
1097 "load_insn".
1098 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
1099 local "cc0_user".
1100 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
1101 for local "prev".
1102 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
1103 param 2.
1104 * config/h8300/h8300.c (notice_update_cc): Likewise.
1105 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
1106 "insn" and "dep_insn".
1107 (exact_store_load_dependency): Likewise for both params.
1108 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
1109 since this now clashes with inline function. Instead, delay
1110 calling single_set until the point where its needed, and then
1111 assign the result to "compare_set" and rework the conditional that
1112 follows.
1113 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
1114 local "last" from rtx to rtx_insn *.
1115 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
1116 second param.
1117 (mips_store_data_bypass_p): Likewise for both params.
1118 * config/mips/mips.c (mips_load_store_insns): Likewise for second
1119 param.
1120 (mips_store_data_bypass_p): Likewise for both params.
1121 (mips_orphaned_high_part_p): Likewise for param "insn".
1122 * config/mn10300/mn10300.c (extract_bundle): Likewise.
1123 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
1124 Introduce local rtx "insn2_pat".
1125 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
1126 "ninsn".
1127 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
1128 Introduce local rtx "set", using it in place of "insn" for the
1129 result of single_set. This appears to fix a bug, since the call
1130 to find_regno_note on a SET does nothing.
1131 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
1132 params from rtx to rtx_insn *.
1133 (set_to_load_agen): Likewise.
1134 * config/s390/s390.c (s390_label_align): Likewise for local
1135 "prev_insn". Introduce new rtx locals "set" and "src", using
1136 them in place of "prev_insn" for the results of single_set
1137 and SET_SRC respectively.
1138 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
1139 Introduce new rtx local "set" using in place of "jump" for the
1140 result of single_set. Use SET_SRC (set) rather than plain
1141 XEXP (set, 1).
1142 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
1143 rtx to rtx_insn *.
1144 (noncall_uses_reg): Likewise.
1145 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
1146 guarded by GET_CODE check, using its methods for clarity, and to
1147 enable strengthening local "this_insn" from rtx to rtx_insn *.
1148 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
1149 "insn" from rtx to rtx_insn *.
1150 (define_expand "umulhisi3"): Likewise.
1151 (define_expand "smulsi3_highpart"): Likewise.
1152 (define_expand "umulsi3_highpart"): Likewise.
1153 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1154 local "after". Replace GET_CODE check with a dyn_cast,
1155 introducing new local rtx_sequence * "seq", using insn method for
1156 typesafety.
1157
1158 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
1159 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
1160 place of "insn" once we're dealing with patterns rather than the
1161 input insn.
1162 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
1163 (scan_trace): Likewise for local "elt", updating lookups within
1164 sequence to use insn method rather than element method.
1165 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
1166 to rtx_insn *.
1167 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
1168 * ifcvt.c (noce_try_abs): Likewise for local "insn".
1169 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
1170 invoking single_set.
1171 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
1172 "insn" from rtx to rtx_insn *.
1173 (skip_usage_debug_insns): Likewise for return type, adding a
1174 checked cast.
1175 (check_secondary_memory_needed_p): Likewise for local "insn".
1176 (inherit_reload_reg): Likewise.
1177 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
1178 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
1179 checked casts.
1180 (store_data_bypass_p): Likewise for both params.
1181 (if_test_bypass_p): Likewise.
1182 * recog.h (store_data_bypass_p): Likewise for both params.
1183 (if_test_bypass_p): Likewise.
1184 * reload.c (find_equiv_reg): Likewise for local "where".
1185 * reorg.c (delete_jump): Likewise for param "insn".
1186 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
1187 to const rtx_insn *.
1188 * store-motion.c (replace_store_insn): Likewise for param "del".
1189 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
1190 and use its methods for clarity, and to strengthen local "del"
1191 from rtx to rtx_insn *.
1192 (build_store_vectors): Use insn method of "st" when calling
1193 replace_store_insn for typesafety and clarity.
1194
1195 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1196
1197 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
1198 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
1199 on how to make it legal in future.
1200
1201 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1202
1203 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
1204 to rtx_insn *.
1205 (restinsn): Likewise.
1206 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
1207 Likewise for param.
1208 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
1209 Likewise.
1210 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
1211 first param.
1212 (arc_hazard): Likewise for both params.
1213 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
1214 checked casts to rtx_sequence * and uses of the insn method for
1215 type-safety.
1216 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
1217 (arc_adjust_insn_length): Likewise for param "insn".
1218 (struct insn_length_parameters_s): Likewise for first param of
1219 "get_variants" callback field.
1220 (arc_get_insn_variants): Likewise for first param and local
1221 "inner". Replace a check of GET_CODE with a dyn_cast to
1222 rtx_sequence *, using methods for type-safety and clarity.
1223 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
1224 rtx_sequence * and uses of the insn method for type-safety when
1225 invoking arc_adjust_insn_length.
1226 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
1227 for param.
1228 (arm_address_offset_is_imm): Likewise.
1229 (struct tune_params): Likewise for params 1 and 3 of the
1230 "sched_adjust_cost" callback field.
1231 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
1232 params 1 and 3 ("insn" and "dep").
1233 (xscale_sched_adjust_cost): Likewise.
1234 (fa726te_sched_adjust_cost): Likewise.
1235 (cortexa7_older_only): Likewise for param "insn".
1236 (cortexa7_younger): Likewise.
1237 (arm_attr_length_move_neon): Likewise.
1238 (arm_address_offset_is_imm): Likewise.
1239 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
1240 * config/avr/avr.c (avr_notice_update_cc): Likewise.
1241 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
1242 (workaround_speculation): Likewise for local "last_condjump".
1243 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
1244 (shadow_or_blockage_p): Likewise.
1245 (get_unit_reqs): Likewise.
1246 (get_unit_operand_masks): Likewise.
1247 (c6x_registers_update): Likewise.
1248 (returning_call_p): Likewise.
1249 (can_use_callp): Likewise.
1250 (convert_to_callp): Likewise.
1251 (find_last_same_clock): Likwise for local "t".
1252 (reorg_split_calls): Likewise for local "shadow".
1253 (hwloop_pattern_reg): Likewise for param "insn".
1254 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
1255 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1256 (frv_extract_membar): Likewise.
1257 (frv_optimize_membar_local): Strengthen param "last_membar" from
1258 rtx * to rtx_insn **.
1259 (frv_optimize_membar_global): Strengthen param "membar" from rtx
1260 to rtx_insn *.
1261 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
1262 to rtx_insn **.
1263 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
1264 both params from rtx to rtx_insn *.
1265 (ia64_ld_address_bypass_p): Likewise.
1266 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
1267 "insn".
1268 (ia64_safe_type): Likewise.
1269 (group_barrier_needed): Likewise.
1270 (safe_group_barrier_needed): Likewise.
1271 (ia64_single_set): Likewise.
1272 (is_load_p): Likewise.
1273 (record_memory_reference): Likewise.
1274 (get_mode_no_for_insn): Likewise.
1275 (important_for_bundling_p): Likewise.
1276 (unknown_for_bundling_p): Likewise.
1277 (ia64_st_address_bypass_p): Likewise for both params.
1278 (ia64_ld_address_bypass_p): Likewise.
1279 (expand_vselect): Introduce new local rtx_insn * "insn", using it
1280 in place of rtx "x" after the emit_insn call.
1281 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
1282 Strengthen param from rtx to rtx_insn *.
1283 (ix86_agi_dependent): Likewise for both params.
1284 (ix86_attr_length_immediate_default): Likewise for param 1.
1285 (ix86_attr_length_address_default): Likewise for param.
1286 (ix86_attr_length_vex_default): Likewise for param 1.
1287 * config/i386/i386.c (ix86_attr_length_immediate_default):
1288 Likewise for param "insn".
1289 (ix86_attr_length_address_default): Likewise.
1290 (ix86_attr_length_vex_default): Likewise.
1291 (ix86_agi_dependent): Likewise for both params.
1292 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
1293 (vselect_insn): Likewise for this variable.
1294 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
1295 for param 1.
1296 (m68k_sched_attr_opy_type): Likewise.
1297 * config/m68k/m68k.c (sched_get_operand): Likewise.
1298 (sched_attr_op_type): Likewise.
1299 (m68k_sched_attr_opx_type): Likewise.
1300 (m68k_sched_attr_opy_type): Likewise.
1301 (sched_get_reg_operand): Likewise.
1302 (sched_get_mem_operand): Likewise.
1303 (m68k_sched_address_bypass_p): Likewise for both params.
1304 (sched_get_indexed_address_scale): Likewise.
1305 (m68k_sched_indexed_address_bypass_p): Likewise.
1306 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
1307 (m68k_sched_indexed_address_bypass_p): Likewise.
1308 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
1309 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
1310 removing another.
1311 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
1312 params from rtx to rtx_insn *.
1313 (mips_fmadd_bypass): Likewise.
1314 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
1315 (mips_linked_madd_p): Likewise.
1316 (mips_macc_chains_last_hilo): Likewise for this variable.
1317 (mips_macc_chains_record): Likewise for param.
1318 (vr4130_last_insn): Likewise for this variable.
1319 (vr4130_swap_insns_p): Likewise for both params.
1320 (mips_ls2_variable_issue): Likewise for param.
1321 (mips_need_noat_wrapper_p): Likewise for param "insn".
1322 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
1323 in place of "x" after the emit_insn.
1324 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
1325 params from rtx to rtx_insn *.
1326 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
1327 (pa_combine_instructions): Introduce local "par" for result of
1328 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1329 to make_insn_raw.
1330 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1331 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1332 (rl78_alloc_physical_registers_op1): Likewise.
1333 (rl78_alloc_physical_registers_op2): Likewise.
1334 (rl78_alloc_physical_registers_ro1): Likewise.
1335 (rl78_alloc_physical_registers_cmp): Likewise.
1336 (rl78_alloc_physical_registers_umul): Likewise.
1337 (rl78_alloc_address_registers_macax): Likewise.
1338 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1339 * config/s390/predicates.md (execute_operation): Likewise for
1340 local "insn".
1341 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1342 params.
1343 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1344 (addr_generation_dependency_p): Likewise for param "insn".
1345 (s390_agen_dep_p): Likewise for both params.
1346 (s390_fpload_toreg): Likewise for param "insn".
1347 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1348 * config/sh/sh.c (sh_loop_align): Likewise for param and local
1349 "next".
1350 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1351 * config/sh/sh_treg_combine.cc
1352 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1353 and local "i".
1354 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1355 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1356 "and_insn", "load", "shift".
1357 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1358 "insn".
1359 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1360 for XEXP (note, 0) of the REG_CC_SETTER note.
1361 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1362 rtx_insn *, eliminating a checked cast made redundant by this.
1363 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1364 to rtx_insn *.
1365 * genattr.c (main): When writing out the prototype to
1366 const_num_delay_slots, strengthen the param from rtx to
1367 rtx_insn *.
1368 * genattrtab.c (write_const_num_delay_slots): Likewise when
1369 writing out the implementation of const_num_delay_slots.
1370 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1371 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1372 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1373 favor of new rtx locals "src" and "set" and new local rtx_insn *
1374 "insn" and "seq".
1375 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1376 to rtx_insn *.
1377 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1378 locals "cond", "if_then_else", "set" and new rtx_insn * locals
1379 "insn" and "seq".
1380 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1381 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
1382 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
1383 the top-level scope, replacing with new more tightly-scoped rtx
1384 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1385 "new_insn", "copy_of_insn_b", and make local rtx "set" more
1386 tightly-scoped.
1387 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1388 rtx_insn *.
1389 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1390 "move_insn".
1391 (ira_setup_alts): Likewise for param "insn".
1392 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1393 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1394 and an rtx_insn *.
1395 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1396 new more-tightly scoped rtx locals "add3_insn", "insn",
1397 "add2_insn" and rtx_insn * "move_insn".
1398 * postreload-gcse.c (eliminate_partially_redundant_load): Add
1399 checked cast on result of gen_move_insn when invoking
1400 extract_insn.
1401 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1402 rtx_insn *.
1403 (verify_changes): Add a checked cast on "object" when invoking
1404 insn_invalid_p.
1405 (extract_insn_cached): Strengthen param "insn" from rtx to
1406 rtx_insn *.
1407 (extract_constrain_insn_cached): Likewise.
1408 (extract_insn): Likewise.
1409 * recog.h (insn_invalid_p): Likewise for param 1.
1410 (recog_memoized): Likewise for param.
1411 (extract_insn): Likewise.
1412 (extract_constrain_insn_cached): Likewise.
1413 (extract_insn_cached): Likewise.
1414 * reload.c (can_reload_into): Likewise for local "test_insn".
1415 * reload.h (cleanup_subreg_operands): Likewise for param.
1416 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1417 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1418 result of emit_insn. Remove a checked cast made redundant by this
1419 change.
1420 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1421 rtx to rtx_insn *.
1422 * sel-sched.c (get_reg_class): Likewise.
1423
1424 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
1425 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1426
1427 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1428 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1429 Define.
1430 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1431
1432 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1433
1434 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1435 const rtx_insn *, and from rtx to rtx_insn * for the other
1436 overloaded variant.
1437 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1438 INSN_LOCATION, since we know INSN_P holds.
1439 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1440 (insn_file): Likewise.
1441 (insn_scope): Likewise.
1442 (insn_location): Likewise.
1443
1444 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1445 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1446 for the result of gen_load_const_gp.
1447 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1448 param from rtx to rtx_insn *.
1449 * config/rs6000/rs6000.c (output_call): Likewise.
1450 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1451 introducing a checked cast to rtx_sequence * and use of the insn
1452 method.
1453 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1454 from rtx to rtx_insn *.
1455 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1456 (insn_line): Likewise.
1457 (insn_file): Likewise.
1458 (insn_location): Likewise.
1459 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1460 from rtx to rtx_insn *.
1461 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1462 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1463 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1464 via a checked cast.
1465 * reorg.c (relax_delay_slots): Strengthen locals named "after"
1466 from rtx to rtx_insn *; use methods of "pat" for type-safety.
1467
1468 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1469
1470 * combine.c (try_combine): Eliminate checked cast on result of
1471 gen_rtx_INSN.
1472 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1473 autogenerated one by strengthening the return type and params 2 and 3
1474 from rtx to rtx_insn *, and by naming the params.
1475 * gengenrtl.c (special_rtx): Add INSN to those that are
1476 special-cased.
1477 * rtl.h (gen_rtx_INSN): New prototype.
1478
1479 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1480
1481 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1482 than NULL_RTX.
1483 (no_equiv): Likewise.
1484 (update_equiv_regs): Likewise.
1485 (setup_reg_equiv): Likewise. Strengthen locals "elem",
1486 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1487 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
1488 clarity.
1489 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1490 from rtx to rtx_insn_list *.
1491 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1492 rtx_insn_list * and use methods for clarity and typesafety.
1493 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1494 "list".
1495 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
1496 redundant check on INSN_P (insns): this cannot hold, as "insns" is
1497 an INSN_LIST, not an insn.
1498 (reverse_equiv_p): Strengthen local "insns" from rtx to
1499 rtx_insn_list * and use methods for clarity and typesafety.
1500 (contains_reloaded_insn_p): Likewise for local "list".
1501
1502 2014-09-09 Jiong Wang <jiong.wang@arm.com>
1503
1504 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1505 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1506 (arm_builtin_vectorized_function): Likewise.
1507 * config/arm/arm_neon_builtins.def: New macro for copysignf.
1508 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1509
1510 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
1511
1512 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1513 * builtins.h (default_target_builtins): Likewise.
1514 * gcse.h (default_target_gcse): Likewise.
1515 * target-globals.h (target_globals): Add a destructor. Convert
1516 void-pointer fields back to their real type and change from
1517 GTY((atomic)) to GTY((skip)).
1518 (restore_target_globals): Remove casts accordingly.
1519 * target-globals.c (save_target_globals): Use XCNEW rather than
1520 ggc_internal_cleared_alloc to allocate non-GC structures.
1521 Use ggc_cleared_alloc to allocate the target_globals structure
1522 itself.
1523 (target_globals::~target_globals): Define.
1524
1525 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1526
1527 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1528 mnemonic instead of fldmfdd.
1529 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1530 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1531 Output vpush when address register is SP.
1532 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1533 (vfp_output_vstmd): ... This.
1534 * config/arm/vfp.md (push_multi_vfp): Update call to
1535 vfp_output_vstmd.
1536
1537 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1538
1539 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1540
1541 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1542
1543 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1544 (*sqrtdf2_vfp): Likewise.
1545 (*cmpsf_vfp): Likewise.
1546 (*cmpsf_trap_vfp): Likewise.
1547 (*cmpdf_vfp): Likewise.
1548 (*cmpdf_trap_vfp): Likewise.
1549
1550 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1551
1552 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1553 (*truncdfsf2_vfp): Likewise.
1554 (*truncsisf2_vfp): Likewise.
1555 (*truncsidf2_vfp): Likewise.
1556 (fixuns_truncsfsi2): Likewise.
1557 (fixuns_truncdfsi2): Likewise.
1558 (*floatsisf2_vfp): Likewise.
1559 (*floatsidf2_vfp): Likewise.
1560 (floatunssisf2): Likewise.
1561 (floatunssidf2): Likewise.
1562
1563 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1564
1565 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1566 (*muldf3_vfp): Likewise.
1567 (*mulsf3negsf_vfp): Likewise.
1568 (*muldf3negdf_vfp): Likewise.
1569 (*mulsf3addsf_vfp): Likewise.
1570 (*muldf3adddf_vfp): Likewise.
1571 (*mulsf3subsf_vfp): Likewise.
1572 (*muldf3subdf_vfp): Likewise.
1573 (*mulsf3negsfaddsf_vfp): Likewise.
1574 (*fmuldf3negdfadddf_vfp): Likewise.
1575 (*mulsf3negsfsubsf_vfp): Likewise.
1576 (*muldf3negdfsubdf_vfp): Likewise.
1577
1578 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1579
1580 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1581 (*absdf2_vfp): Likewise.
1582 (*negsf2_vfp): Likewise.
1583 (*negdf2_vfp): Likewise.
1584 (*addsf3_vfp): Likewise.
1585 (*adddf3_vfp): Likewise.
1586 (*subsf3_vfp): Likewise.
1587 (*subdf3_vfp): Likewise.
1588 (*divsf3_vfp): Likewise.
1589 (*divdf3_vfp): Likewise.
1590
1591 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1592
1593 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1594 multiple.
1595 (arm_print_operand): Don't convert real values to decimal
1596 representation in default case.
1597 (fp_immediate_constant): Delete.
1598 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1599 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1600 syntax.
1601 (*thumb2_movsi_vfp): Likewise.
1602 (*movdi_vfp): Likewise.
1603 (*movdi_vfp_cortexa8): Likewise.
1604 (*movhf_vfp_neon): Likewise.
1605 (*movhf_vfp): Likewise.
1606 (*movsf_vfp): Likewise.
1607 (*thumb2_movsf_vfp): Likewise.
1608 (*movdf_vfp): Likewise.
1609 (*thumb2_movdf_vfp): Likewise.
1610 (*movsfcc_vfp): Likewise.
1611 (*thumb2_movsfcc_vfp): Likewise.
1612 (*movdfcc_vfp): Likewise.
1613 (*thumb2_movdfcc_vfp): Likewise.
1614
1615 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1616
1617 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1618 (-mtune): Likewise.
1619 (-mcpu): Likewise.
1620
1621 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1622
1623 PR target/61749
1624 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1625 Use qualifier_immediate for last operand. Rename to...
1626 (aarch64_types_ternop_lane_qualifiers): ... This.
1627 (TYPES_QUADOP): Rename to...
1628 (TYPES_TERNOP_LANE): ... This.
1629 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1630 error. Change return of 0 to return of NULL_RTX.
1631 (aarch64_crc32_expand_builtin): Likewise.
1632 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1633 ICE when expanding unknown builtin.
1634 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1635 TERNOP_LANE qualifiers.
1636 (sqdmlsl_lane): Likewise.
1637 (sqdmlal_laneq): Likewise.
1638 (sqdmlsl_laneq): Likewise.
1639 (sqdmlal2_lane): Likewise.
1640 (sqdmlsl2_lane): Likewise.
1641 (sqdmlal2_laneq): Likewise.
1642 (sqdmlsl2_laneq): Likewise.
1643
1644 2014-09-09 Nick Clifton <nickc@redhat.com>
1645
1646 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1647 end of a line.
1648 (S/390 and zSeries Options): Remove superfluous word from the
1649 description of the -mhotpatch option.
1650
1651 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1652
1653 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1654 * ira.c: #include "shrink-wrap.h"
1655 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1656 * ifcvt.c: #include "shrink-wrap.h"
1657 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1658
1659 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1660
1661 * common/config/picochip/picochip-common.c: Remove.
1662 * config.gcc: Remove support for picochip.
1663 * config/picochip/constraints.md: Remove.
1664 * config/picochip/dfa_space.md: Remove.
1665 * config/picochip/dfa_speed.md: Remove.
1666 * config/picochip/picochip-protos.h: Remove.
1667 * config/picochip/picochip.c: Remove.
1668 * config/picochip/picochip.h: Remove.
1669 * config/picochip/picochip.md: Remove.
1670 * config/picochip/picochip.opt: Remove.
1671 * config/picochip/predicates.md: Remove.
1672 * config/picochip/t-picochip: Remove.
1673 * doc/md.texi: Don't document picochi.
1674
1675 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1676
1677 * basic-block.h (control_flow_insn_p): Strengthen param from
1678 const_rtx to const rtx_insn *.
1679 * cfgbuild.c (control_flow_insn_p): Likewise.
1680
1681 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1682
1683 * gcse.c (modify_mem_list): Strengthen this variable from
1684 vec<rtx> * to vec<rtx_insn *> *.
1685 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1686 vec<rtx_insn *>.
1687 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1688 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1689 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1690 rtx_insn *.
1691 (record_last_set_info): Likewise for local "last_set_insn".
1692
1693 2014-09-08 DJ Delorie <dj@redhat.com>
1694
1695 * doc/invoke.texi (MSP430 Options): Add -minrt.
1696
1697 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1698
1699 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1700 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1701 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1702 handling SH_SPLAT.
1703 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1704 of extracted lane.
1705 (adjust_splat): New function.
1706 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1707 (dump_swap_insn_table): Add case for SH_SPLAT.
1708
1709 2014-09-08 Richard Biener <rguenther@suse.de>
1710
1711 PR ipa/63196
1712 * tree-inline.c (copy_loops): The source loop header should
1713 always be non-NULL.
1714 (tree_function_versioning): If loops need fixup after removing
1715 unreachable blocks fix them.
1716 * omp-low.c (simd_clone_adjust): Do not add incr block to
1717 loop under construction.
1718
1719 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1720
1721 * config/aarch64/aarch64-builtins.c
1722 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1723
1724 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1725
1726 * config/i386/cygming.h (TF_SIZE): Remove.
1727 * config/i386/darwin.h (TF_SIZE): Remove.
1728 * config/i386/dragonfly.h (TF_SIZE): Remove.
1729 * config/i386/freebsd.h (TF_SIZE): Remove.
1730 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1731 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1732 * config/i386/sol2.h (TF_SIZE): Remove.
1733 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1734 * config/ia64/linux.h (TF_SIZE): Remove.
1735 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1736 * doc/tm.texi: Regenerate.
1737 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1738
1739 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1740
1741 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1742 Remove.
1743 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1744 Remove.
1745 * doc/tm.texi: Regenerate.
1746 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1747 Poison.
1748 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1749 * config/cris/cris.h (__make_dp): Remove.
1750
1751 2014-09-08 Richard Biener <rguenther@suse.de>
1752
1753 PR bootstrap/63204
1754 * cfgloop.c (mark_loop_for_removal): Track former header
1755 unconditionally.
1756 * cfgloop.h (struct loop): Add former_header member unconditionally.
1757 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1758 diagnostic unconditionally.
1759
1760 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1761
1762 PR target/63190
1763 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1764 constraint for operand0 and remove write only modifier from operand3.
1765
1766 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1767
1768 PR rtl-optimization/62208
1769 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1770 rather than const0_rtx in eq/ne-xor simplifications.
1771
1772 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1773
1774 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1775 (arc_output_mi_thunk): Likewise.
1776
1777 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1778 arguments to silence bogus warning.
1779
1780 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1781
1782 PR middle-end/63171
1783 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1784
1785 2014-09-06 Tom de Vries <tom@codesourcery.com>
1786
1787 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1788 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1789 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1790
1791 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1792
1793 PR target/63188
1794 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1795 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1796
1797 2014-09-05 Easwaran Raman <eraman@google.com>
1798
1799 PR rtl-optimization/62146
1800 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1801 hoisted instruction unconditional.
1802
1803 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1804
1805 PR target/63187
1806 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1807 Do not allow any_mask_operand for operands[2].
1808 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1809
1810 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1811
1812 * config/arc/arc.c (arc_print_operand): Use insn method of
1813 final_sequence for type-safety.
1814 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1815 "insn" from rtx to rtx_insn *.
1816 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1817 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1818 Likewise for locals "branch", "label".
1819 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1820 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1821 (same_cmp_following_p): Likewise for locals "i2", "i3".
1822 * config/sh/sh_optimize_sett_clrt.cc
1823 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1824 param "cbranch_insn".
1825 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1826 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1827 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1828 const rtx_insn *.
1829 (condjump_p): Likewise.
1830 (condjump_in_parallel_p): Likewise.
1831 (pc_set): Likewise.
1832 (any_uncondjump_p): Likewise.
1833 (any_condjump_p): Likewise.
1834 (condjump_label): Likewise.
1835 (returnjump_p): Strengthen param "insn" from rtx to
1836 const rtx_insn *.
1837 (onlyjump_p): Strengthen param "insn" from const_rtx to
1838 const rtx_insn *.
1839 (jump_to_label_p): Likewise.
1840 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1841 (invert_jump): Likewise.
1842 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1843 simplejump_p.
1844 (get_jump_flags): Strengthen param "insn" from rtx to
1845 const rtx_insn *.
1846 (get_branch_condition): Likewise.
1847 (condition_dominates_p): Likewise.
1848 (make_return_insns): Move declaration of local "pat" earlier, to
1849 after we've handled NONJUMP_INSN_P and non-sequences, using its
1850 methods to simplify the code and for type-safety.
1851 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1852 const rtx_insn *.
1853 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1854 (condjump_p): Strengthen param from const_rtx to
1855 const rtx_insn *.
1856 (any_condjump_p): Likewise.
1857 (any_uncondjump_p): Likewise.
1858 (pc_set): Likewise.
1859 (condjump_label): Likewise.
1860 (simplejump_p): Likewise.
1861 (returnjump_p): Likewise.
1862 (onlyjump_p): Likewise.
1863 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1864 (invert_jump): Likewise.
1865 (condjump_in_parallel_p): Strengthen param from const_rtx to
1866 const rtx_insn *.
1867 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1868 to const rtx_insn *.
1869 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1870 to const rtx_insn *.
1871 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1872
1873 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1874
1875 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1876 above the conditional, and convert the check on GET_CODE to a
1877 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1878 the conditional. Simplify the conditional by using methods of
1879 "trial_seq".
1880
1881 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1882
1883 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1884 "link" from rtx to rtx_insn_list *, and use its methods for
1885 clarity and type-safety.
1886 (toggle_cancelled_flags): Likewise.
1887 (restore_last_backtrack_point): Likewise.
1888 (queue_to_ready): Use insn method of "link" in one place.
1889 (schedule_block): Strengthen local "link" from rtx to
1890 rtx_insn_list *, and use its methods for clarity and type-safety.
1891
1892 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1893
1894 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1895 param "insn" from const_rtx to const rtx_insn *.
1896 (sched_get_reverse_condition_uncached): Likewise.
1897 (sched_get_condition_with_rev): Likewise.
1898 (sched_has_condition_p): Likewise.
1899 (sched_insns_conditions_mutex_p): Likewise for both params.
1900 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1901 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1902 (setup_insn_reg_uses): Move local "list" to be more tightly
1903 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1904 its methods for clarity and type-safety.
1905 (sched_analyze_1): Strengthen local "pending" from rtx to
1906 rtx_insn_list *, and local "pending_mem" from rtx to
1907 rtx_expr_list *. Use methods of each for clarity and type-safety.
1908 (sched_analyze_2): Likewise.
1909 (sched_analyze_insn): Likewise.
1910
1911 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1912 param from const_rtx to const rtx_insn *.
1913 (sched_insns_conditions_mutex_p): Likewise for both params.
1914 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1915 param.
1916
1917 * system.h (CONST_CAST_RTX_INSN): New macro.
1918
1919 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1920
1921 * recog.c (peep2_attempt): Strengthen return type from rtx to
1922 rtx_insn *.
1923 (peep2_update_life): Likewise for params "last", "prev", removing
1924 a checked cast made redundant by this.
1925 (peephole2_optimize): Likewise for local "last".
1926
1927 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1928
1929 * basic-block.h (set_block_for_insn): Eliminate this macro in
1930 favor of...
1931 * rtl.h (set_block_for_insn): New inline function, imposing the
1932 requirement that the "insn" param is an rtx_insn *.
1933
1934 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1935
1936 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1937 rtx to rtx_insn *.
1938 * final.c (get_call_reg_set_usage): Likewise for first param,
1939 eliminating a checked cast.
1940 * regs.h (get_call_reg_set_usage): Likewise for first param.
1941 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1942 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1943 cast, replacing references to "x" with "call_insn" where
1944 appropriate.
1945 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1946 rtx_insn *, adding a checked cast.
1947
1948 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1949
1950 * output.h (final_scan_insn): Strengthen first param from rtx to
1951 rtx_insn *.
1952
1953 * final.c (final_scan_insn): Likewise, renaming it back from
1954 "uncast_insn" to "insn", eliminating the checked cast.
1955
1956 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1957 "vec" with an rtx_sequence * "seq", taking a copy of
1958 "final_sequence", and using methods of "seq" for clarity, and for
1959 type-safety in the calls to final_scan_insn.
1960 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1961 of "final_sequence" for clarity, and for type-safety in the call to
1962 final_scan_insn.
1963 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1964 rtx_sequence * and rename from "insn" to "seq".
1965
1966 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1967
1968 * jump.c (delete_related_insns): Introduce a new local "table" by
1969 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1970 get_labels method of "table" to simplify access to the labels in
1971 the jump table.
1972
1973 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1974
1975 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1976 f_minmaxs, f_minmaxd types.
1977
1978 2014-09-05 Richard Biener <rguenther@suse.de>
1979
1980 * cfgloop.c (mark_loop_for_removal): Record former header
1981 when ENABLE_CHECKING.
1982 * cfgloop.h (strut loop): Add former_header member when
1983 ENABLE_CHECKING.
1984 * loop-init.c (fix_loop_structure): Sanity check loops
1985 marked for removal if they re-appeared.
1986
1987 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1988
1989 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1990 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1991
1992 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1993 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1994 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1995 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1996 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1997 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1998 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1999 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
2000 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
2001 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
2002 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
2003 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
2004 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
2005 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
2006 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
2007 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
2008 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
2009 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
2010 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
2011 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
2012 with int{32,16,8}_t.
2013
2014 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2015
2016 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
2017 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
2018 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
2019 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
2020 Remove temporary __asm__ and reimplement.
2021
2022 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2023
2024 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
2025 handling cmge, cmgt, cmeq, cmtst.
2026
2027 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
2028 cmlt, cmgeu, cmgtu, cmtst): Remove.
2029
2030 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
2031 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
2032 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
2033 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
2034
2035 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2036
2037 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
2038 TYPES_TST): Define.
2039 (aarch64_fold_builtin): Update pattern for cmtst.
2040
2041 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
2042 Declare.
2043
2044 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
2045
2046 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
2047 Switch operands, separate out more cases, refactor.
2048
2049 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
2050
2051 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
2052 argument; rename old version to...
2053 (aarch64_const_vec_all_same_in_range_p): ...this.
2054 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
2055
2056 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
2057
2058 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2059
2060 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2061 Remove qualifier_const_pointer, update comment.
2062
2063 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2064
2065 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
2066
2067 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2068
2069 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
2070 varargs with pointer parameter.
2071 (aarch64_simd_expand_builtin): pass pointer into previous.
2072
2073 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2074
2075 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
2076 alus_ext.
2077
2078 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2079
2080 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
2081 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
2082 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
2083 Replace temporary asm with call to builtin.
2084 (vrbit_p8, vrbitq_p8): New functions.
2085
2086 2014-09-05 Richard Biener <rguenther@suse.de>
2087
2088 * cfgloop.c (mark_loop_for_removal): New function.
2089 * cfgloop.h (mark_loop_for_removal): Declare.
2090 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
2091 (merge_blocks): Likewise.
2092 (duplicate_block): Likewise.
2093 * except.c (sjlj_emit_dispatch_table): Likewise.
2094 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
2095 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
2096 (thread_through_loop_header): Likewise.
2097
2098 2014-09-05 Richard Biener <rguenther@suse.de>
2099
2100 PR middle-end/63148
2101 * fold-const.c (try_move_mult_to_index): Remove.
2102 (fold_binary_loc): Do not call it.
2103 * tree-data-ref.c (dr_analyze_indices): Strip conversions
2104 from the base object again.
2105
2106 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
2107
2108 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
2109 DImode.
2110
2111 2014-09-05 Bin Cheng <bin.cheng@arm.com>
2112
2113 PR target/55701
2114 * config/arm/arm.md (setmem): New pattern.
2115 * config/arm/arm-protos.h (struct tune_params): New fields.
2116 (arm_gen_setmem): New prototype.
2117 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
2118 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2119 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2120 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
2121 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
2122 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
2123 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
2124 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2125 (arm_const_inline_cost): New function.
2126 (arm_block_set_max_insns): New function.
2127 (arm_block_set_non_vect_profit_p): New function.
2128 (arm_block_set_vect_profit_p): New function.
2129 (arm_block_set_unaligned_vect): New function.
2130 (arm_block_set_aligned_vect): New function.
2131 (arm_block_set_unaligned_non_vect): New function.
2132 (arm_block_set_aligned_non_vect): New function.
2133 (arm_block_set_vect, arm_gen_setmem): New functions.
2134
2135 2014-09-05 Bin Cheng <bin.cheng@arm.com>
2136
2137 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
2138
2139 2014-09-05 Bin Cheng <bin.cheng@arm.com>
2140
2141 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
2142
2143 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
2144
2145 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
2146 an rtx.
2147 * valtrack.h: Adjust.
2148
2149 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
2150
2151 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
2152 an rtx.
2153 (emit_jump_insn_before_noloc): Likewise.
2154 (emit_call_insn_before_noloc): Likewise.
2155 (emit_label_before): Likewise.
2156 (emit_label_after): Likewise.
2157 (emit_insn_before_setloc): Likewise.
2158 (emit_jump_insn_before_setloc): Likewise.
2159 (emit_call_insn_before_setloc): Likewise.
2160 (emit_call_insn_before): Likewise.
2161 * rtl.h: Adjust.
2162
2163 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2164
2165 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
2166 rtx_insn *, eliminating a checked cast.
2167
2168 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2169
2170 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
2171 const_rtx to const rtx_insn *.
2172 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
2173 cast.
2174
2175 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2176
2177 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
2178 fixup_args_size_notes.
2179 * expr.c (fixup_args_size_notes): Strengthen first two params from
2180 rtx to rtx_insn *, eliminating a checked cast.
2181 * rtl.h (fixup_args_size_notes): Strengthen first two params from
2182 rtx to rtx_insn *.
2183
2184 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2185
2186 * haifa-sched.c (get_ready_element): Strengthen return type from
2187 rtx to rtx_insn *.
2188 * sched-int.h (get_ready_element): Likewise.
2189
2190 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
2191
2192 PR target/63165
2193 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
2194 indexed_or_indirect_operand instead of memory_operand.
2195 (floatsi<mode>2_lfiwzx_mem): Ditto.
2196
2197 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
2198
2199 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
2200 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
2201 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
2202
2203 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
2204
2205 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
2206 rtx.
2207 (get_last_nonnote_insn): Likewise.
2208 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
2209 * resource.c (find_basic_block): Likewise.
2210 * rtl.h: Adjust.
2211 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
2212 const_rtx.
2213
2214 2014-09-04 David Malcolm <dmalcolm@redhat.com>
2215
2216 * genattr.c (main): Within the prototype of insn_latency written
2217 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
2218 * genautomata.c (output_internal_maximal_insn_latency_func):
2219 Within the implementation of insn_latency written out to
2220 insn-automata.c, strengthen both params from rtx to rtx_insn *,
2221 eliminating a pair of checked casts.
2222
2223 2014-09-04 David Malcolm <dmalcolm@redhat.com>
2224
2225 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
2226 rtx_insn *.
2227
2228 * rtl.h (eh_returnjump_p): Likewise.
2229
2230 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
2231
2232 * Makefile.in (TAGS): Handle constructs in timevar.def.
2233
2234 2014-09-04 Guozhi Wei <carrot@google.com>
2235
2236 PR target/62040
2237 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
2238 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
2239 it into two patterns.
2240 (move_lo_quad_internal_be_<mode>): Likewise.
2241
2242 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2243
2244 * doc/options.texi: Document that Var and Init are required if CPP
2245 is given.
2246 * optc-gen.awk: Require Var and Init if CPP is given.
2247 * common.opt (Wpedantic): Use Init.
2248
2249 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2250
2251 * config/rs6000/rs6000.c (special_handling_values): Add
2252 SH_EXTRACT.
2253 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
2254 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
2255 as swappable with special handling SH_EXTRACT. Remove
2256 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
2257 optimization.
2258 (adjust_extract): New function.
2259 (handle_special_swappables): Add default to case statement; add
2260 case for SH_EXTRACT that calls adjust_extract.
2261 (dump_swap_insn_table): Handle SH_EXTRACT.
2262
2263 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2264
2265 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
2266 selection of 0th memory doubleword, regardless of endianness.
2267
2268 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2269
2270 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
2271
2272 2014-09-04 Alan Modra <amodra@gmail.com>
2273
2274 PR debug/60655
2275 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
2276 can't be output.
2277
2278 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
2279
2280 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
2281 * targhooks.c (default_dwarf_frame_reg_mode): New function.
2282 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
2283 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
2284 * doc/tm.texi: Regenerate.
2285 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
2286 selection logic to default_dwarf_frame_reg_mode.
2287
2288 2014-09-03 Marek Polacek <polacek@redhat.com>
2289
2290 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
2291 by -Wall.
2292
2293 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
2294
2295 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
2296 the automodified register.
2297
2298 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
2299
2300 * output.h (get_some_local_dynamic_name): Declare.
2301 * final.c (some_local_dynamic_name): New variable.
2302 (get_some_local_dynamic_name): New function.
2303 (final_end_function): Clear some_local_dynamic_name.
2304 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
2305 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2306 (print_operand): Report an error if '%&' is used inappropriately.
2307 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
2308 (get_some_local_dynamic_name_1): Delete.
2309 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
2310 (rs6000_get_some_local_dynamic_name): Delete.
2311 (rs6000_get_some_local_dynamic_name_1): Delete.
2312 (print_operand): Report an error if '%&' is used inappropriately.
2313 * config/s390/s390.c (machine_function): Remove some_ld_name.
2314 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2315 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
2316 * config/sparc/sparc.c: Include rtl-iter.h.
2317 (machine_function): Remove some_ld_name.
2318 (sparc_print_operand): Report an error if '%&' is used inappropriately.
2319 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2320
2321 2014-09-03 Richard Henderson <rth@redhat.com>
2322
2323 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
2324 (aarch64_popwb_pair_reg): Remove.
2325 (aarch64_set_frame_expr): Remove.
2326 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
2327 the restore ops performed by the insns generated.
2328 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
2329 insn. Perform the calls_eh_return addition later; do not attempt to
2330 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
2331 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2332 special markup at all. Load cfun->machine->frame.hard_fp_offset
2333 into a local variable.
2334 (aarch64_frame_pointer_required): Don't check calls_alloca.
2335
2336 2014-09-03 Richard Biener <rguenther@suse.de>
2337
2338 * opts.c (default_options_optimization): Adjust
2339 max-combine-insns to 2 for -Og.
2340
2341 2014-09-03 Martin Jambor <mjambor@suse.cz>
2342
2343 PR ipa/62015
2344 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2345 pass-trough jump functions correctly.
2346
2347 2014-09-03 Martin Jambor <mjambor@suse.cz>
2348
2349 PR ipa/61986
2350 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2351 created replacements in ascending order of offsets.
2352 (known_aggs_to_agg_replacement_list): Likewise.
2353
2354 2014-09-03 Martin Liska <mliska@suse.cz>
2355
2356 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2357 is set to set uninitialized value for vnresult.
2358
2359 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2360
2361 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2362 for TARGET_MUST_PASS_IN_STACK.
2363
2364 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2365
2366 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2367 for TARGET_ARG_PARTIAL_BYTES.
2368
2369 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2370
2371 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2372 instructions for varargs implementation.
2373 (nds32_expand_epilogue): Emit stack adjustment instructions for
2374 varargs implementation.
2375
2376 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2377
2378 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2379 optimization detection.
2380
2381 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2382
2383 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2384 arguments.
2385 (nds32_function_arg_advance): Deal with nameless arguments.
2386 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2387 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2388 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2389
2390 2014-09-03 Richard Biener <rguenther@suse.de>
2391
2392 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2393 (struct bb_bitmap_sets): Remove deferred member.
2394 (BB_DEFERRED): Remove.
2395 (defer_or_phi_translate_block): Remove.
2396 (compute_antic_aux): Remove deferring of blocks, assert
2397 proper iteration order.
2398 (compute_antic): Do not set BB_DEFERRED.
2399 (eliminate): Allocate el_avail of proper size initially.
2400
2401 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2402
2403 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2404 according to the value of crtl->args.pretend_args_size.
2405
2406 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2407
2408 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2409 varargs information.
2410
2411 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2412
2413 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2414 implementation for TARGET_SETUP_INCOMING_VARARGS.
2415 (nds32_strict_argument_naming): Refine comment.
2416 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2417 Define for future implementation.
2418
2419 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
2420
2421 * config/i386/adxintrin.h (_subborrow_u32): New.
2422 (_addcarry_u32): Ditto.
2423 (_subborrow_u64): Ditto.
2424 (_addcarry_u64): Ditto.
2425 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2426 IX86_BUILTIN_SBB64.
2427 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2428 __builtin_ia32_sbb_u64
2429
2430 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2431
2432 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2433 GPR-specific stuff.
2434 (nds32_function_arg_advance): Likewise.
2435 (nds32_init_cumulative_args): Likewise.
2436 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2437 (NDS32_FIRST_GPR_REGNUM): Define.
2438 (NDS32_LAST_GPR_REGNUM): Define.
2439 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2440 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2441 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2442 (machine_function): Use GRP-specific stuff.
2443
2444 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2445
2446 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2447 (nds32_expand_epilogue): Likewise.
2448 (nds32_expand_prologue_v3push): Likewise.
2449 (nds32_expand_epilogue_v3pop): Likewise.
2450
2451 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2452
2453 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2454 v3push/v3pop for variadic function.
2455 * config/nds32/nds32.md (prologue, epilogue): Likewise.
2456
2457 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2458
2459 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2460 Check rtx for varargs implementation.
2461 (nds32_output_stack_pop): Likewise.
2462 * config/nds32/nds32-protos.h: Have a rtx argument for
2463 nds32_output_stack_push and nds32_output_stack_pop.
2464 * config/nds32/nds32.md: Likewise.
2465
2466 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2467
2468 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2469 to check if FUNC is an interrupt service routine.
2470 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2471
2472 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2473
2474 * config/nds32/nds32.h (machine_function): Add some fields for variadic
2475 arguments implementation.
2476
2477 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2478
2479 * config/nds32/nds32-predicates.c
2480 (nds32_valid_stack_push_pop): Rename to ...
2481 (nds32_valid_stack_push_pop_p): ... this.
2482 * config/nds32/nds32-protos.h: Likewise.
2483 * config/nds32/predicates.md: Likewise.
2484
2485 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2486
2487 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2488 (nds32_emit_stack_v3push): ... this.
2489 (nds32_gen_stack_v3pop): Rename to ...
2490 (nds32_emit_stack_v3pop): ... this and consider CFA restore
2491 information.
2492
2493 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2494
2495 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2496 (nds32_emit_stack_push_multiple): ... this.
2497 (nds32_gen_stack_pop_multiple): Rename to ...
2498 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2499 information.
2500
2501 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2502
2503 PR target/61078
2504 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2505 and add a second splitter to handle the remaining cases.
2506
2507 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2508
2509 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2510
2511 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2512
2513 * cfgexpand.c (label_rtx_for_bb): Change type to
2514 hash_map<basic_block, rtx_code_label *> *.
2515 (expand_gimple_basic_block): Adjust.
2516 (pass_expand::execute): Likewise.
2517
2518 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2519
2520 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2521 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2522 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2523 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2524 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2525 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2526 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2527 of rtx.
2528
2529 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2530
2531 * alloc-pool.c: Include coretypes.h.
2532 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2533 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2534 hash_set instead of htab.
2535 * ggc-page.c (in_gc): New variable.
2536 (ggc_free): Do nothing if a collection is taking place.
2537 (ggc_collect): Set in_gc appropriately.
2538 * ggc.h (gt_ggc_mx(const char *)): New function.
2539 (gt_pch_nx(const char *)): Likewise.
2540 (gt_ggc_mx(int)): Likewise.
2541 (gt_pch_nx(int)): Likewise.
2542 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2543 (hash_map::hash_entry::pch_nx): Likewise.
2544 (hash_map::hash_entry::pch_nx_helper): Likewise.
2545 (hash_map::hash_map): Adjust.
2546 (hash_map::create_ggc): New function.
2547 (gt_ggc_mx): Likewise.
2548 (gt_pch_nx): Likewise.
2549 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2550 (default_hashset_traits::pch_nx): Likewise.
2551 (hash_set::hash_entry::ggc_mx): Likewise.
2552 (hash_set::hash_entry::pch_nx): Likewise.
2553 (hash_set::hash_entry::pch_nx_helper): Likewise.
2554 (hash_set::hash_set): Adjust.
2555 (hash_set::create_ggc): New function.
2556 (hash_set::elements): Likewise.
2557 (gt_ggc_mx): Likewise.
2558 (gt_pch_nx): Likewise.
2559 * hash-table.h (hash_table::hash_table): Adjust.
2560 (hash_table::m_ggc): New member.
2561 (hash_table::~hash_table): Adjust.
2562 (hash_table::expand): Likewise.
2563 (hash_table::empty): Likewise.
2564 (gt_ggc_mx): New function.
2565 (hashtab_entry_note_pointers): Likewise.
2566 (gt_pch_nx): Likewise.
2567
2568 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2569
2570 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2571 built-in definition.
2572 (XVCVUXDDP_SCALE): Likewise.
2573 (XVCVDPSXDS_SCALE): Likewise.
2574 (XVCVDPUXDS_SCALE): Likewise.
2575 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2576 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2577 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2578 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2579 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2580 prototype.
2581 * config/rs6000/rs6000.c (real.h): New include.
2582 (rs6000_scale_v2df): New function.
2583 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2584 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2585 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2586 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2587 (vsx_xvcvsxddp_scale): New define_expand.
2588 (vsx_xvcvsxddp): New define_insn.
2589 (vsx_xvcvuxddp_scale): New define_expand.
2590 (vsx_xvcvuxddp): New define_insn.
2591 (vsx_xvcvdpsxds_scale): New define_expand.
2592 (vsx_xvcvdpsxds): New define_insn.
2593 (vsx_xvcvdpuxds_scale): New define_expand.
2594 (vsx_xvcvdpuxds): New define_insn.
2595 * doc/extend.texi (vec_ctf): Add new prototypes.
2596 (vec_cts): Likewise.
2597 (vec_ctu): Likewise.
2598 (vec_splat): Likewise.
2599 (vec_div): Likewise.
2600 (vec_mul): Likewise.
2601
2602 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2603
2604 PR target/62275
2605 * config/arm/neon.md
2606 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2607 <v_cmp_result>): New pattern.
2608 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2609 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2610 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2611 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2612 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2613 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2614
2615 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2616
2617 PR target/62275
2618 * config/arm/iterators.md (FIXUORS): New code iterator.
2619 (VCVT): New int iterator.
2620 (su_optab): New code attribute.
2621 (su): Likewise.
2622 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2623
2624 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2625
2626 * config/aarch64/predicates.md (aarch64_comparison_operation):
2627 New special predicate.
2628 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2629 aarch64_comparison_operation instead of matching an operator.
2630 Update operand numbers.
2631 (csinc3<mode>_insn): Likewise.
2632 (*csinv3<mode>_insn): Likewise.
2633 (*csneg3<mode>_insn): Likewise.
2634 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2635 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2636 Return -1 instead of aborting on invalid condition codes.
2637 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2638 to assert that the returned condition code is valid.
2639 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2640
2641 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2642
2643 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2644 tree.def, and gimple.def
2645
2646 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2647 Balaji V. Iyer <balaji.v.iyer@intel.com>
2648 Igor Zamyatin <igor.zamyatin@intel.com>
2649
2650 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2651 (__cilkrts_cilk_for_64): Likewise.
2652 * cilk-common.c (declare_cilk_for_builtin): New function.
2653 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2654 __cilkrts_cilk_for_64 bultins.
2655 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2656 CILK_TI_F_LOOP_64.
2657 (cilk_for_32_fndecl): New define.
2658 (cilk_for_64_fndecl): Likewise.
2659 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2660 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2661 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2662 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2663 GF_OMP_FOR_COMBINED_INTO.
2664 * gimplify.c (gimplify_scan_omp_clauses): Added
2665 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2666 (gimplify_adjust_omp_clauses): Ditto.
2667 (gimplify_omp_for): Added CILK_FOR case.
2668 (gimplify_expr): Ditto.
2669 * omp-low.c: Include cilk.h.
2670 (extract_omp_for_data): Set appropriate kind for
2671 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2672 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2673 (create_omp_child_function_name): Added second argument to handle
2674 cilk_for case.
2675 (cilk_for_check_loop_diff_type): New function.
2676 (expand_cilk_for_call): Likewise.
2677 (expand_cilk_for): Likewise.
2678 (create_omp_child_function): Set cilk_for_count; handle the cases when
2679 it is true; call create_omp_child_function_name with second argument.
2680 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2681 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2682 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2683 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2684 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2685 (convert_local_omp_clauses): Ditto.
2686 * tree-pretty-print.c (dump_omp_clause): Added
2687 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2688 (dump_generic_node): Added CILK_FOR case.
2689 * tree.c (omp_clause_num_ops): New element
2690 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2691 (omp_clause_code_name): New element _Cilk_for_count_.
2692 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2693 * tree.def: Add tree code for CILK_FOR.
2694
2695 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2696
2697 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2698 (ppc403-compare): Add "exts with dot" case.
2699 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2700 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2701 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2702 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2703 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2704 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2705 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2706 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2707 cell-cmp-microcoded): Similarly.
2708 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2709 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2710 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2711 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2712 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2713 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2714 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2715 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2716 (power6-compare): Add "exts with dot" case.
2717 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2718 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2719 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2720
2721 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2722 if avoiding Cell microcode.
2723 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2724 (is_cracked_insn): Ditto.
2725 (insn_must_be_first_in_group): Ditto.
2726 * config/rs6000/rs6000.md (dot): Adjust comment.
2727 (cell_micro): Handle exts+dot.
2728 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2729 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2730 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2731 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2732 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2733 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2734 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2735
2736 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2737
2738 * config/rs6000/rs6000.md (QHSI): Delete.
2739 (EXTQI, EXTHI, EXTSI): New mode iterators.
2740 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2741 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2742 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2743 9 anonymous instructions, and 8 splitters): Delete.
2744 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2745 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2746 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2747 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2748 *zero_extendsi<mode>2_dot2): New.
2749
2750 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2751
2752 * config/rs6000/rs6000.md (any_extend): New code iterator.
2753 (u, su): New code attributes.
2754 (dmode, DMODE): New mode attributes.
2755 (<su>mul<mode>3_highpart): New.
2756 (*<su>mul<mode>3_highpart): New.
2757 (<su>mulsi3_highpart_le): New.
2758 (<su>muldi3_highpart_le): New.
2759 (<su>mulsi3_highpart_64): New.
2760 (<u>mul<mode><dmode>3): New.
2761 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2762 splitters): Delete.
2763 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2764 splitters): Delete.
2765
2766 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2767
2768 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2769 *mulsi3_internal2, and two splitters): Delete.
2770 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2771 Delete.
2772 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2773
2774 2014-09-02 Richard Biener <rguenther@suse.de>
2775
2776 PR tree-optimization/62695
2777 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2778 vector truncate.
2779
2780 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2781
2782 PR target/62312
2783 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2784
2785 2014-09-01 Andi Kleen <ak@linux.intel.com>
2786
2787 * file-find.c (add_prefix_begin): Add.
2788 (do_add_prefix): Rename from add_prefix with first argument.
2789 (add_prefix): Add new wrapper.
2790 * file-find.h (add_prefix_begin): Add.
2791 * gcc-ar.c (main): Support -B option.
2792
2793 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2794
2795 * genemit.c: Include dumpfile.h.
2796 (gen_split): Print name of splitter function to dump file.
2797
2798 2014-09-01 Richard Biener <rguenther@suse.de>
2799
2800 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2801 Use stack auto_vecs for constraint expressions.
2802 (find_func_aliases_for_call): Likewise.
2803 (find_func_aliases): Likewise.
2804 (find_func_clobbers): Likewise.
2805
2806 2014-09-01 Richard Biener <rguenther@suse.de>
2807
2808 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2809 operands vector in most cases. Remove redundant code.
2810
2811 2014-09-01 Olivier Hainque <hainque@adacore.com>
2812
2813 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2814 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2815 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2816
2817 2014-09-01 Richard Biener <rguenther@suse.de>
2818
2819 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2820 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2821 vn_reference_compute_hash, vn_reference_insert): Remove.
2822 (vn_reference_lookup_call): New function.
2823 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2824 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2825 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2826 (create_reference_ops_from_call): Remove.
2827 (vn_reference_lookup_3): Properly update shared_lookup_references.
2828 (vn_reference_lookup_pieces): Assert that we updated
2829 shared_lookup_references properly.
2830 (vn_reference_lookup): Likewise.
2831 (vn_reference_lookup_call): New function.
2832 (visit_reference_op_call): Use it. Avoid re-building the
2833 reference ops.
2834 (visit_reference_op_load): Remove redundant lookup.
2835 (visit_reference_op_store): Perform special tail-merging work
2836 only when possibly doing tail-merging.
2837 (visit_use): Likewise.
2838 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2839
2840 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2841
2842 PR target/62025
2843 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2844 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2845 (find_inc): Revert 2014-08-13 change.
2846
2847 2014-09-01 Marek Polacek <polacek@redhat.com>
2848
2849 PR middle-end/61903
2850 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2851 Change the type of V to unsigned HOST_WIDE_INT.
2852
2853 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2854
2855 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2856 the size of byte markers.
2857 (do_shift_rotate): Fix confusion between host, target and marker byte
2858 size.
2859 (verify_symbolic_number_p): Likewise.
2860 (find_bswap_or_nop_1): Likewise.
2861 (find_bswap_or_nop): Likewise.
2862
2863 2014-09-01 Olivier Hainque <hainque@adacore.com>
2864
2865 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2866 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2867
2868 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2869
2870 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2871 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2872 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2873
2874 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2875
2876 PR sanitizer/61897
2877 PR sanitizer/62140
2878 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2879 (build_check_stmt): Likewise.
2880 (instrument_strlen_call): Likewise.
2881 (asan_expand_check_ifn): Likewise and fix types.
2882 (maybe_cast_to_ptrmode): New function.
2883
2884 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2885
2886 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2887
2888 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2889
2890 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2891
2892 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2893
2894 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2895 prefix to function labels when generating fast indirect calls.
2896
2897 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2898
2899 PR bootstrap/62304
2900
2901 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2902 param back from rtx_insn * to rtx. Rename param from "label" to
2903 "label_or_return", reintroducing "label" as an rtx_insn * after
2904 we've ensured it's not a RETURN.
2905 (first_active_target_insn): Likewise for return type and param;
2906 add a checked cast to rtx_insn * once we've ensured "insn" is not
2907 a RETURN.
2908 (steal_delay_list_from_target): Convert param "pnew_thread" back
2909 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2910 with JUMP_LABEL.
2911 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2912 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2913 cast once we've established we're not dealing with a RETURN,
2914 renaming subsequent uses of "thread" to "thread_insn".
2915 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2916 to JUMP_LABEL.
2917 (follow_jumps): Convert return type and param "label" from
2918 rtx_insn * back to rtx. Move initialization of "value" to after
2919 the handling for ANY_RETURN_P, adding a checked cast there to
2920 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2921 rename to "this_label_or_return", reintroducing "this_label" as
2922 an rtx_insn * once we've handled the case where it could be an
2923 ANY_RETURN_P.
2924 (fill_slots_from_thread): Rename param "thread" to
2925 "thread_or_return", converting from an rtx_insn * back to an rtx.
2926 Reintroduce name "thread" as an rtx_insn * local with a checked
2927 cast once we've handled the case of it being an ANY_RETURN_P.
2928 Convert local "new_thread" from an rtx_insn * back to an rtx.
2929 Add a checked cast when assigning to "trial" from "new_thread".
2930 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2931 checked cast to rtx_insn * from "new_thread" when invoking
2932 get_label_before.
2933 (fill_eager_delay_slots): Convert locals "target_label",
2934 "insn_at_target" from rtx_insn * back to rtx.
2935 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2936 (relax_delay_slots): Convert locals "trial", "target_label" from
2937 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2938 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2939 invoking update_block.
2940 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2941 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2942
2943 * resource.h (mark_target_live_regs): Undo erroneous conversion
2944 of second param of r214693, converting it back from rtx_insn * to
2945 rtx, since it could be a RETURN.
2946
2947 * resource.c (find_dead_or_set_registers): Similarly, convert
2948 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2949 could be writing back a RETURN. Rename local rtx_insn * "next" to
2950 "next_insn", and introduce "lab_or_return" as a local rtx,
2951 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2952 (mark_target_live_regs): Undo erroneous conversion
2953 of second param of r214693, converting it back from rtx_insn * to
2954 rtx, since it could be a RETURN. Rename it from "target" to
2955 "target_maybe_return", reintroducing the name "target" as a local
2956 rtx_insn * with a checked cast, after we've handled the case of
2957 ANY_RETURN_P.
2958
2959 2014-08-29 DJ Delorie <dj@redhat.com>
2960
2961 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2962 pointer size up to a power of two.
2963 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2964 (POINTER_SIZE_UNITS): New, rounded up value.
2965 * dwarf2asm.c (size_of_encoded_value): Use it.
2966 (dw2_output_indirect_constant_1): Likewise.
2967 * expmed.c (init_expmed_one_conv): We now know the sizes of
2968 partial int modes.
2969 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2970 * optabs.c (expand_float): Use precision, not size.
2971 (expand_fix): Likewise.
2972 * simplify-rtx (simplify_unary_operation_1): Likewise.
2973 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2974 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2975 (default_assemble_integer) Likewise.
2976 (dump_tm_clone_pairs): Likewise.
2977 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2978 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2979 (prepare_call_arguments): Likewise.
2980 * stor-layout.c (finalize_type_size): Preserve precision.
2981 (layout_type): Use precision, not size.
2982
2983 * expr.c (convert_move): If the target has an explicit converter,
2984 use it.
2985
2986 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2987
2988 * gdbinit.in: Skip various inline functions in rtl.h when
2989 stepping.
2990
2991 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2992
2993 PR bootstrap/62301
2994 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2995
2996 2014-08-29 Richard Biener <rguenther@suse.de>
2997
2998 PR tree-optimization/62291
2999 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
3000 exactly the vector size needed and use quick_push.
3001 (phi_translate_1): Adjust comment.
3002 (valid_in_sets): Remove block argument and remove pointless
3003 checking of NAMEs.
3004 (dependent_clean): Adjust for removal of block argument.
3005 (clean): Likewise.
3006 (compute_antic_aux): Likewise.
3007 (compute_partial_antic_aux): Likewise.
3008
3009 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
3010 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3011 Anna Tikhonova <anna.tikhonova@intel.com>
3012 Ilya Tocar <ilya.tocar@intel.com>
3013 Andrey Turetskiy <andrey.turetskiy@intel.com>
3014 Ilya Verbin <ilya.verbin@intel.com>
3015 Kirill Yukhin <kirill.yukhin@intel.com>
3016 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3017
3018 * config/i386/sse.md
3019 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
3020 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
3021 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
3022 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
3023
3024 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
3025 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3026 Anna Tikhonova <anna.tikhonova@intel.com>
3027 Ilya Tocar <ilya.tocar@intel.com>
3028 Andrey Turetskiy <andrey.turetskiy@intel.com>
3029 Ilya Verbin <ilya.verbin@intel.com>
3030 Kirill Yukhin <kirill.yukhin@intel.com>
3031 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3032
3033 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
3034 * config/i386/sse.md
3035 (define_mode_iterator VI4_128_8_256): New.
3036 (define_mode_iterator VI2_128_4_256): Ditto.
3037 (define_mode_iterator PMOV_DST_MODE): Rename into
3038 (define_mode_iterator PMOV_DST_MODE_1): this.
3039 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
3040 Use PMOV_DST_MODE_1 mode iterator.
3041 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3042 Ditto.
3043 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3044 Ditto.
3045 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
3046 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
3047 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
3048 (define_mode_iterator PMOV_DST_MODE_2): New.
3049 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
3050 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
3051 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
3052 Ditto.
3053 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
3054 (define_mode_attr pmov_dst_3): Ditto.
3055 (define_mode_attr pmov_dst_zeroed_3): Ditto.
3056 (define_mode_attr pmov_suff_3): Ditto.
3057 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
3058 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
3059 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
3060 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
3061 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
3062 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
3063 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
3064 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
3065 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
3066 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
3067 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
3068 (define_mode_attr pmov_dst_4): Ditto.
3069 (define_mode_attr pmov_dst_zeroed_4): Ditto.
3070 (define_mode_attr pmov_suff_4): Ditto.
3071 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
3072 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
3073 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
3074 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
3075 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
3076 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
3077 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
3078 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
3079 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
3080 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
3081 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
3082
3083 2014-08-29 Richard Biener <rguenther@suse.de>
3084
3085 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
3086 NON_LVALUE_EXPR in gimple.
3087
3088 2014-08-29 Richard Biener <rguenther@suse.de>
3089
3090 PR middle-end/62292
3091 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
3092 from previous refactoring.
3093 (gimple_fold_builtin_strncpy): Likewise.
3094
3095 2014-08-29 David Malcolm <dmalcolm@redhat.com>
3096
3097 PR bootstrap/62300
3098 * function.c (assign_parm_setup_reg): Remove erroneous checked
3099 cast to rtx_insn * on result of gen_extend_insn in favor of
3100 introducing a new local rtx "pat".
3101
3102 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3103
3104 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
3105 to silence warning.
3106 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
3107
3108 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3109
3110 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
3111 (next_insn): Likewise.
3112 * emit-rtl.c (next_insn): Likewise.
3113 (previous_insn): Likewise.
3114 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
3115 "insn" and "next" from rtx to rtx_insn *.
3116 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
3117 "insn", "insn1", "vliw_start", "prologue_end_note",
3118 "last_insn_in_packet".
3119
3120 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3121
3122 * shrink-wrap.h (active_insn_between): Strengthen both params from
3123 rtx to rtx_insn *.
3124 * function.c (active_insn_between): Likewise.
3125
3126 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3127
3128 * genattr.c (main): When writing out insn-attr.h, strengthen param
3129 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
3130 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
3131 writing out the definition of dfa_clear_single_insn_cache to the
3132 generated insn-automata.c
3133
3134 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3135
3136 * resource.h (clear_hashed_info_for_insn): Strengthen param from
3137 rtx to rtx_insn *.
3138 (incr_ticks_for_insn): Likewise.
3139 (init_resource_info): Likewise.
3140
3141 * resource.c (init_resource_info): Likewise.
3142 (clear_hashed_info_for_insn): Likewise.
3143 (incr_ticks_for_insn): Likewise.
3144
3145 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
3146 rtx to rtx_insn *.
3147 (steal_delay_list_from_target): Use methods of "seq".
3148 (try_merge_delay_insns): Use methods of "merged_insns".
3149 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
3150 (reorg_redirect_jump): Likewise for param "jump".
3151
3152 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3153
3154 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
3155 rtx to rtx_insn *.
3156 * config/s390/s390.c (s390_split_branches): Eliminate top-level
3157 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
3158 "set_insn".
3159 (s390_mainpool_finish): In three places, split out a local rtx
3160 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
3161 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
3162 and split another local rtx "insn" out into rtx "pat" and
3163 rtx_insn * "insn".
3164 * config/sh/sh.c (output_branchy_insn): Rather than working
3165 directly on operands[9], introduce local rtx_code_label *
3166 variables named "lab" in two places, working on them, and then
3167 assigning them to operands[9], so that the intervening operations
3168 are known by the type system to be on insns.
3169
3170 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3171
3172 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
3173 const rtx_insn *.
3174
3175 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
3176 in invocation of INSN_HAS_LOCATION.
3177
3178 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3179
3180 * config/rs6000/altivec.h (vec_xl): New #define.
3181 (vec_xst): Likewise.
3182 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
3183 (XXSPLTD_V2DI): Likewise.
3184 (DIV_V2DI): Likewise.
3185 (UDIV_V2DI): Likewise.
3186 (MUL_V2DI): Likewise.
3187 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3188 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
3189 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
3190 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
3191 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
3192 (UNSPEC_VSX_DIVSD): Likewise.
3193 (UNSPEC_VSX_DIVUD): Likewise.
3194 (UNSPEC_VSX_MULSD): Likewise.
3195 (vsx_mul_v2di): New insn-and-split.
3196 (vsx_div_v2di): Likewise.
3197 (vsx_udiv_v2di): Likewise.
3198 (vsx_xxspltd_<mode>): New insn.
3199
3200 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3201
3202 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
3203 NEXT_INSN.
3204 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
3205 (NEXT_INSN): Likewise.
3206 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
3207 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
3208 const rtx_insn *.
3209 (no_labels_between_p): Likewise for both params.
3210
3211 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
3212 cast when using NEXT_INSN on operands[2].
3213 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
3214 "insn" from rtx to rtx_insn *, adding a checked cast.
3215 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
3216 rtx_insn *.
3217 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
3218 for third param.
3219 (arc_text_label): Likewise for param "insn".
3220 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
3221 "insn".
3222 (arc_ccfsm_record_condition): Likewise for param "jump".
3223 (arc_text_label): Likewise for local "label".
3224 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
3225 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
3226 a method for typesafety. Add a checked cast.
3227 * config/arc/constraints.md (Clb): Add a checked cast when getting
3228 the CODE_LABEL from a LABEL_REF.
3229 * config/arm/arm.c (require_pic_register): Strengthen locals
3230 "seq", "insn" from rtx to rtx_insn *.
3231 (create_fix_barrier): Likewise for locals "selected", "next".
3232 (thumb1_reorg): Likewise for locals "prev", "insn".
3233 (arm_expand_prologue): Likewise for local "last".
3234 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
3235 operands[0].
3236 (thumb2_output_casesi): Likewise for operands[2].
3237 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
3238 strengthen local "insn" from rtx to rtx_insn *.
3239 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
3240 type and param "insn".
3241 (find_prev_insn_start): Likewise.
3242 (hwloop_optimize): Likewise for locals "insn", "last_insn",
3243 "prev".
3244 (gen_one_bundle): Likewise for loal "t".
3245 (find_load): Likewise for param "insn".
3246 (workaround_speculation): Likewise for locals "insn", "next",
3247 "target", "next_tgt".
3248 * config/c6x/c6x.c (assign_reservations): Likewise for both params
3249 and for locals "insn", "within", "last".
3250 (count_unit_reqs): Likewise for params "head", "tail" and local
3251 "insn".
3252 (try_rename_operands): Likewise for params "head", "tail".
3253 (reshuffle_units): Likewise for locals "head", "tail", "insn".
3254 (struct c6x_sched_context): Likewise for fields
3255 "last_scheduled_insn", "last_scheduled_iter0".
3256 (init_sched_state): Replace NULL_RTX with NULL.
3257 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
3258 to rtx_insn *.
3259 (undo_split_delayed_nonbranch): Likewise for param and for local
3260 "prev".
3261 (conditionalize_after_sched): Likewise for local "insn".
3262 (bb_earliest_end_cycle): Likewise.
3263 (filter_insns_above): Likewise for locals "insn", "next".
3264 (hwloop_optimize): Remove redundant checked cast.
3265 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
3266 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
3267 NULL_RTX with NULL.
3268 (cris_simple_epilogue): Likewise.
3269 (cris_expand_prologue): Likewise.
3270 (cris_expand_epilogue): Likewise.
3271 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
3272 local "insn" from rtx to rtx_insn *.
3273 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
3274 (struct frv_packet_group): Likewise for the elements within array
3275 fields "insns", "sorted", and for field "nop".
3276 (frv_packet): Likewise for the elements within array field
3277 "insns".
3278 (frv_add_insn_to_packet): Likewise for param "insn".
3279 (frv_insert_nop_in_packet): Likewise for param "insn" and local
3280 "last".
3281 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
3282 (frv_sort_insn_group_1): Likewise for local "insn".
3283 (frv_optimize_membar_local): Likewise.
3284 (frv_align_label): Likewise for locals "x", "last", "barrier",
3285 "label".
3286 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
3287 local.
3288 (ia64_sched_init): Likewise for local "insn".
3289 (scheduled_good_insn): Likewise for param "last".
3290 (struct _ia64_sched_context): Likewise for field
3291 "last_scheduled_insn".
3292 (ia64_init_sched_context): Replace NULL_RTX with NULL.
3293 (struct bundle_state): Likewise for field "insn".
3294 (issue_nops_and_insn): Likewise for param "insn".
3295 (get_next_important_insn): Likewise for return type and both
3296 params.
3297 (ia64_add_bundle_selector_before): Likewise for param "insn".
3298 (bundling): Likewise for params "prev_head_insn", "tail" and
3299 locals "insn", "next_insn", "b". Eliminate top-level local rtx
3300 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
3301 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
3302 Strengthen final param from rtx to rtx_insn *.
3303 (iq2000_move_1word): Likewise for second param.
3304 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
3305 param "cur_insn" and local "next_insn".
3306 (iq2000_move_1word): Likewise for param "insn".
3307 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
3308 casts when using NEXT_INSN on operands[1].
3309 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
3310 "insn" from rtx to rtx_insn *.
3311 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
3312 "x", introducing local rtx_insn * "insn" for when working with the
3313 CODE_LABEL of the LABEL_REF.
3314 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
3315 rtx_insn *.
3316 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
3317 param.
3318 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
3319 type.
3320 (conditionalize_block): Likewise for return type and param.
3321 (mcore_is_dead): Likewise for param "first" and local "insn".
3322 (emit_new_cond_insn): Likewise for return type.
3323 (conditionalize_block): Likewise for return type, param, and
3324 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
3325 "newinsn".
3326 (conditionalize_optimization): Likewise for local "insn".
3327 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
3328 using NEXT_INSN.
3329 * config/microblaze/microblaze.md: Add checked casts when using
3330 NEXT_INSN.
3331 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3332 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3333 and rtx_insn * "insn".
3334 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3335 checked cast when using NEXT_INSN on operands[2].
3336 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3337 local "insn" from rtx to rtx_insn *.
3338 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3339 Likewise.
3340 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3341 Add a checked cast when using NEXT_INSN on operands[1].
3342 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3343 rtx to rtx_insn *.
3344 (pa_output_cbranch): Likewise for final param.
3345 (pa_output_lbranch): Likewise for second param.
3346 (pa_output_bb): Likewise for third param.
3347 (pa_output_bvb): Likewise.
3348 (pa_output_dbra): Likewise for second param.
3349 (pa_output_movb): Likewise.
3350 (pa_output_parallel_movb): Likewise.
3351 (pa_output_parallel_addb): Likewise.
3352 (pa_output_millicode_call): Likewise for first param.
3353 (pa_output_mul_insn): Likewise for second param.
3354 (pa_output_div_insn): Likewise for third param.
3355 (pa_output_mod_insn): Likewise for second param.
3356 (pa_jump_in_call_delay): Likewise for param.
3357 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3358 (pa_output_div_insn): Likewise.
3359 (pa_output_mod_insn): Likewise.
3360 (pa_output_cbranch): Likewise.
3361 (pa_output_lbranch): Likewise.
3362 (pa_output_bb): Likewise.
3363 (pa_output_bvb): Likewise.
3364 (pa_output_dbra): Likewise.
3365 (pa_output_movb): Likewise.
3366 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3367 to simplify and for typesafety.
3368 (pa_output_call): Use method of rtx_sequence *.
3369 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3370 (pa_jump_in_call_delay): Likewise.
3371 (pa_output_parallel_movb): Likewise.
3372 (pa_output_parallel_addb): Likewise.
3373 (pa_following_call): Likewise.
3374 (pa_combine_instructions): Likewise for locals "anchor",
3375 "floater".
3376 (pa_can_combine_p): Likewise for params "anchor", "floater" and
3377 locals "start", "end".
3378 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3379 param "insn" and local "local_insn".
3380 (picochip_final_prescan_insn): Likewise for local "local_insn".
3381 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3382 local "insn".
3383 (uses_TOC): Likewise.
3384 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3385 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3386 splitting out to more tightly-scoped locals, 3 as rtx and one as
3387 rtx_insn *.
3388 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3389 to rtx_insn *.
3390 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3391 where needed.
3392 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3393 to rtx_insn *.
3394 (fixup_addr_diff_vecs): Likewise.
3395 (reg_unused_after): Likewise for param 2.
3396 (sh_can_redirect_branch): Likewise for both params.
3397 (check_use_sfunc_addr): Likewise for param 1.
3398 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3399 (find_barrier): Likewise for local "last_got".
3400 (gen_block_redirect): Likewise for return type, param "jump" and
3401 locals "prev", "scan", "next", "insn".
3402 (struct far_branch): Likewise for fields "near_label",
3403 "insert_place", "far_label".
3404 (gen_far_branch): Likewise for local "jump".
3405 (fixup_addr_diff_vecs): Likewise for param "first" and locals
3406 "insn", "prev".
3407 (barrier_align): Likewise for param and for locals "prev", "x".
3408 Introduce local rtx_sequence * "prev_seq" and use insn method for
3409 typesafety and clarity.
3410 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3411 (get_dest_uid): Likewise for local "dest".
3412 (split_branches): Likewise for locals "next", "beyond", "label",
3413 "block", "far_label". Add checked casts when assigning to
3414 bp->far_label and "far_label".
3415 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3416 (sequence_insn_p): Likewise.
3417 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
3418 more loop-scoped rtx "insn" when walking LABEL_REFS.
3419 (sh_can_redirect_branch): Strengthen both params from rtx to
3420 rtx_insn *.
3421 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
3422 new local rtx_sequence * "seq" via a dyn_cast, and use a method
3423 for clarity and typesafety.
3424 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3425 "insn" from rtx to rtx_insn *.
3426 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3427 when using NEXT_INSN on the CODE_LABEL in operands[2].
3428 (define_insn "casesi_worker_2"): Likewise.
3429 (define_insn "casesi_shift_media"): Likewise.
3430 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3431 operands[3].
3432 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3433 Strengthen field "insn" from rtx to rtx_insn *.
3434 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3435 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3436 param "start_insn" and local "start_insn".
3437 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3438 field "insn".
3439 (find_set_of_reg_bb): Likewise for param "insn".
3440 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3441 (trace_reg_uses): Likewise for param "start_insn".
3442 (sh_treg_combine::cbranch_trace): Likewise for field
3443 "cbranch_insn".
3444 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3445 param "insn".
3446 (sh_treg_combine::record_set_of_reg): Likewise for param
3447 "start_insn" and local "i".
3448 (sh_treg_combine::can_remove_cstore): Likewise for local
3449 "prev_insn".
3450 (sh_treg_combine::try_optimize_cbranch): Likewise for param
3451 "insn".
3452 (sh_treg_combine::execute): Likewise for local "i".
3453 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3454 param.
3455 (sparc_check_64): Likewise for second param.
3456 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3457 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
3458 dyn_cast, using its insn method for typesafety and clarity.
3459 (empty_delay_slot): Strengthen param "insn" from rtx to
3460 rtx_insn *.
3461 (set_extends): Likewise.
3462 (sparc_check_64): Likewise.
3463 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3464 for locals "seq", "last_insn".
3465 (combine_bnp): Likewise for param "insn".
3466 (xstormy16_reorg): Likewise for local "insn".
3467 * config/v850/v850.c (substitute_ep_register): Likewise for params
3468 "first_insn", "last_insn" and local "insn".
3469 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3470 elements of "regs" array, and local "insn".
3471 * except.c (emit_note_eh_region_end): Likewise for param "insn".
3472 * final.c (final_sequence): Strengthen this global from rtx to
3473 rtx_sequence *.
3474 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3475 rtx_insn *.
3476 (final_scan_insn): Update assignment to "final_sequence" to be
3477 from "seq", the cast version of "body", for type-safety.
3478 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3479 "insns" from rtx to rtx_insn *.
3480 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3481 * genattr.c (main): When writing out generated insn-attr.h,
3482 strengthen params 1 and 3 of eligible_for_delay,
3483 eligible_for_annul_true, eligible_for_annul_false from rtx to
3484 rtx_insn *.
3485 * genattrtab.c (write_eligible_delay): Likewise when writing out
3486 generated insn-attrtab.c; also local "insn" the generated
3487 functions.
3488 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3489 to rtx_insn *.
3490 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3491 "start_label" from rtx to rtx_insn *.
3492 * ira.c (decrease_live_ranges_number): Likewise for local "p".
3493 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3494 "insns" and local "insn".
3495 (validate_equiv_mem): Likewise for param "start" and local "insn".
3496 (memref_used_between_p): Likewise for params "start", "end" and
3497 local "insn".
3498 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3499 final param.
3500 * loop-doloop.c (doloop_optimize): Within region guarded by
3501 INSN_P (doloop_pat), introduce a new local rtx_insn *
3502 "doloop_insn" via a checked cast, and use it for typesafety,
3503 eventually writing the value back into doloop_pat.
3504 * output.h (final_sequence): Strengthen this global from rtx to
3505 rtx_sequence *.
3506 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3507 reintroducing "insn" as an rtx_insn * via a checked cast.
3508 Strengthen param "attempt" and local "new_insn"from rtx to
3509 rtx_insn *.
3510 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3511 to rtx_insn *.
3512 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3513 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3514 "p" in favor of more tightly-scoped replacements, sometimes rtx
3515 and sometimes rtx_insn *, as appropriate.
3516 (delete_output_reload): Eliminate top-level rtx "i1", splitting
3517 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3518 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
3519 local "trial" from rtx to rtx_insn *.
3520 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3521 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3522 rtx_sequence * and use methods for clarity and typesafety.
3523 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3524 rtx to rtx_insn *. Strenghten local "li" from rtx to
3525 rtx_insn_list * and use its methods for clarity and typesafety.
3526 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3527 to rtx_insn *.
3528 (steal_delay_list_from_fallthrough): Likewise.
3529 (try_merge_delay_insns): Likewise for param "thread" and locals
3530 "trial", "next_trial", "delay_insn".
3531 (redundant_insn): Likewise for param "target" and local "trial".
3532 (own_thread_p): Likewise for param "thread" and locals
3533 "active_insn", "insn".
3534 (get_label_before): Likewise for param "insn".
3535 (fill_simple_delay_slots): Likewise for local "new_label"; use
3536 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3537 (label_before_next_insn): Strengthen return type and local "insn"
3538 from rtx to rtx_insn *.
3539 (relax_delay_slots): Likewise for locals "other", "tmp".
3540 (make_return_insns): Likewise for param "first" and locals "insn",
3541 "jump_insn", "prev". Move declaration of "pat" to its assignment
3542 and strengthen from rtx to rtx_sequence *. Use its methods for
3543 clarity and typesafety.
3544 * rtlanal.c (no_labels_between_p): Strengthen params from
3545 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3546 rtx_insn *.
3547 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3548 from const_rtx to const rtx_insn *.
3549 (reg_set_between_p): Rename param "from_insn" to
3550 "uncast_from_insn", and reintroduce "from_insn" as a
3551 const rtx_insn * via a checked cast.
3552 (modified_between_p): Likewise for param "start" as "uncast_start".
3553 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3554 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3555 "tmp", head" from rtx to rtx_insn *.
3556 (recompute_rev_top_order): Likewise for local "insn".
3557 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3558 * store-motion.c (build_store_vectors): Likewise for local "insn".
3559 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3560 for clarity and typesafety.
3561 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3562 rtx to rtx_insn *.
3563 (computation_cost): Likewise for local "seq".
3564 (get_address_cost): Likewise.
3565
3566 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3567
3568 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3569 const rtx_insn *.
3570 (label_is_jump_target_p): Likewise for second param.
3571
3572 * rtlanal.c (tablejump_p): Likewise for param "insn".
3573 (label_is_jump_target_p): Likewise for param "jump_insn".
3574
3575 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3576
3577 * rtl.h (find_first_parameter_load): Strengthen return type and
3578 both params from rtx to rtx_insn *.
3579 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3580 both params and locals "before", "first_set" from rtx to
3581 rtx_insn *. Remove now-redundant cast.
3582 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3583
3584 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3585
3586 * rtl.h (find_last_value): Delete.
3587 * rtlanal.c (find_last_value): Delete.
3588
3589 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3590
3591 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3592 from rtx to rtx_insn *.
3593 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3594 rtx "note" with new local rtx_insn * "new_head" when calculating
3595 head insn of new basic block.
3596 * combine.c (combine_split_insns): Strengthen return type and local
3597 "ret" from rtx to rtx_insn *.
3598 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3599 (try_combine): Eliminate local "m_split", splitting into new
3600 locals "m_split_insn" and "m_split_pat".
3601 (find_split_point): Strengthen local "seq" from rtx into
3602 rtx_insn *.
3603 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3604 locals "label", "branch".
3605 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3606 for local "insn".
3607 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3608 * dse.c (note_add_store_info): Likewise for fields "first",
3609 "current".
3610 (note_add_store): Likewise for local "insn".
3611 (emit_inc_dec_insn_before): Likewise for locals "insn",
3612 "new_insn", "cur".
3613 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3614 (replace_read): Likewise for locals "insns", "this_insn".
3615 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3616 (notice_eh_throw): Likewise for param "insn".
3617 (before_next_cfi_note): Likewise for return type, param, and local
3618 "prev".
3619 (connect_traces): Likewise for local "note".
3620 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3621 (verify_rtl_sharing): Likewise.
3622 (unshare_all_rtl_in_chain): Likewise for param "insn".
3623 (get_first_nonnote_insn): Likewise for local "insn".
3624 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3625 "seq" and use its methods to clarify things.
3626 (next_insn): Strengthen return type from rtx to rtx_insn *.
3627 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3628 local rtx_insn * using a checked cast, dropping a checked cast
3629 made redundant by this change. Use a cast to and method of
3630 rtx_sequence to clarify the code.
3631 (previous_insn): Rename param "insn" to "uncast_insn" and
3632 reintroduce "insn" as a local rtx_insn * using a checked cast,
3633 dropping a checked cast made redundant by this change. Use a cast
3634 to and method of rtx_sequence to clarify the code.
3635 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3636 reintroduce "insn" as a local rtx_insn * using a checked cast,
3637 dropping a checked cast made redundant by this change.
3638 (next_nonnote_insn_bb): Likewise.
3639 (prev_nonnote_insn): Likewise.
3640 (prev_nonnote_insn_bb): Likewise.
3641 (next_nondebug_insn): Likewise.
3642 (prev_nondebug_insn): Likewise.
3643 (next_nonnote_nondebug_insn): Likewise.
3644 (prev_nonnote_nondebug_insn): Likewise.
3645 (next_real_insn): Likewise.
3646 (prev_real_insn): Likewise.
3647 (next_active_insn): Likewise.
3648 (prev_active_insn): Likewise.
3649 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3650 clarity.
3651 (prev_cc0_setter): Likewise.
3652 (try_split): Rename param "trial" to "uncast_trial" and
3653 reintroduce "insn" as a local rtx_insn * using a checked cast,
3654 dropping checked casts made redundant by this change.
3655 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3656 rtx to rtx_insn *.
3657 (remove_insn): Rename param "insn" to "uncast_insn" and
3658 reintroduce "insn" as a local rtx_insn * using a checked cast.
3659 (emit_pattern_after_setloc): Likewise for param "after", as
3660 "uncast_after".
3661 (emit_pattern_after): Likewise. Strengthen local "prev" from
3662 rtx to rtx_insn *.
3663 (emit_pattern_before_setloc): Rename param "before" to
3664 "uncast_before" and reintroduce "before" as a local rtx_insn *
3665 using a checked cast. Strengthen locals "first", "last" from
3666 rtx to rtx_insn *.
3667 (emit_pattern_before): Likewise rename/cast param "before" to
3668 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3669 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3670 "first" and local "insn" from rtx to rtx_insn *.
3671 (copy_reg_eh_region_note_backward): Likewise for param "last"
3672 and local "insn".
3673 * expr.c (fixup_args_size_notes): Rename param "last" to
3674 "uncast_last" and reintroduce "last" as a local rtx_insn *
3675 using a checked cast. Strengthen local "insn" from rtx to
3676 rtx_insn *.
3677 * function.c (set_insn_locations): Strengthen param "insn" from
3678 rtx to rtx_insn *.
3679 (record_insns): Likewise for param "insns" and local "tmp".
3680 (active_insn_between): Rename param "tail" to
3681 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3682 using a checked cast.
3683 (thread_prologue_and_epilogue_insns): Split out top-level local
3684 rtx "seq" into three different rtx_insn * locals. Strengthen
3685 local "prologue_seq" from rtx to rtx_insn *.
3686 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3687 from rtx to rtx_insn *.
3688 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3689 (priority): Likewise for locals "prev_first", "twin".
3690 (setup_insn_max_reg_pressure): Likewise for param "after".
3691 (sched_setup_bb_reg_pressure_info): Likewise.
3692 (no_real_insns_p): Strengthen params from const_rtx to
3693 const rtx_insn *.
3694 (schedule_block): Strengthen local "next_tail" from rtx to
3695 rtx_insn *.
3696 * ifcvt.c (find_active_insn_before): Strengthen return type and
3697 param "insn" from rtx to rtx_insn *.
3698 (find_active_insn_after): Likewise.
3699 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3700 (cond_exec_process_if_block): Likewise for locals "then_start",
3701 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3702 (noce_process_if_block): Likewise for local "jump".
3703 (merge_if_block): Likewise for two locals named "end".
3704 (cond_exec_find_if_block): Likewise for local "last_insn".
3705 * jump.c (delete_related_insns): Rename param "insn" to
3706 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3707 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3708 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3709 NULL.
3710 (split_reg): Likewise.
3711 * lra.c (lra_process_new_insns): Likewise.
3712 * modulo-sched.c (permute_partial_schedule): Strengthen param
3713 "last" from rtx to rtx_insn *.
3714 * optabs.c (add_equal_note): Likewise for param "insns" and local
3715 "last_insn".
3716 (expand_binop_directly): Add checked casts to rtx_insn * within
3717 NEXT_INSN (pat) uses.
3718 (expand_unop_direct): Likewise.
3719 (maybe_emit_unop_insn): Likewise.
3720 * recog.c (peep2_attempt): Strengthen locals "last",
3721 "before_try", "x" from rtx to rtx_insn *.
3722 * reorg.c (optimize_skip): Strengthen return type and local
3723 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3724 and locals "trial", "next_trial" from rtx to rtx_insn *.
3725 * resource.c (next_insn_no_annul): Strengthen return type and
3726 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3727 rtx_sequence to clarify the code.
3728 (mark_referenced_resources): Add a checked cast to rtx_insn *
3729 within PREV_INSN (x).
3730 (find_dead_or_set_registers): Strengthen return type, param
3731 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3732 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3733 to rtx_insn **.
3734 (mark_target_live_regs): Strengthen params "insns" and "target",
3735 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3736 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3737 the code.
3738 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3739 from rtx to rtx_insn *.
3740 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3741 from rtx to rtx_insn *.
3742 (copy_reg_eh_region_note_backward): Likewise.
3743 (unshare_all_rtl_in_chain): Likewise for sole param.
3744 (dump_rtl_slim): Strengthen second and third params from const_rtx
3745 to const rtx_insn *.
3746 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3747 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3748 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3749 "next_tail" from rtx to rtx_insn *.
3750 (begin_move_insn): Likewise for local "next".
3751 * sched-int.h (sched_free_deps): Likewise for first and second
3752 params.
3753 (no_real_insns_p): Strengthen both params from const_rtx to
3754 const rtx_insn *.
3755 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3756 rtx to rtx_insn *.
3757 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3758 "next_tail".
3759 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3760 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3761 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3762 rtx_insn *.
3763 (debug_rtl_slim): Strengthen params "first" and "last" from
3764 const_rtx to const rtx_insn *.
3765 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3766 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3767 (convert_to_simple_return): Likewise for param "returnjump".
3768 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3769 "prologue_seq".
3770 (convert_to_simple_return): Likewise for param "returnjump".
3771 * valtrack.c (propagate_for_debug): Likewise for params
3772 "insn", "last".
3773 * valtrack.h (propagate_for_debug): Likewise for second param.
3774
3775 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3776
3777 * output.h (insn_current_reference_address): Strengthen param
3778 from rtx to rtx_insn *.
3779 * final.c (insn_current_reference_address): Likewise.
3780
3781 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3782
3783 * basic-block.h (inside_basic_block_p): Strengthen param from
3784 const_rtx to const rtx_insn *.
3785 * cfgbuild.c (inside_basic_block_p): Likewise.
3786
3787 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3788
3789 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3790 rtx_insn *.
3791 (get_trace_info): Likewise for param "insn".
3792 (save_point_p): Likewise.
3793 (maybe_record_trace_start): Likewise for both params.
3794 (maybe_record_trace_start_abnormal): Likewise.
3795 (create_trace_edges): Likewise for sole param and for three of the
3796 locals named "lab".
3797 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3798 to rtx_insn *, and update a call to pat->element to pat->insn.
3799
3800 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3801
3802 * function.h (struct expr_status): Convert field "x_forced_labels"
3803 from rtx_expr_list * to rtx_insn_list *.
3804
3805 * cfgbuild.c (make_edges): Convert local "x" from an
3806 rtx_expr_list * to an rtx_insn_list *, replacing use of
3807 "element" method with "insn" method.
3808 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3809 * except.c (sjlj_emit_dispatch_table): Replace use of
3810 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3811 forced_labels.
3812 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3813 rtx_expr_list * to an rtx_insn_list *, replacing use of
3814 "element" method with "insn" method.
3815 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3816 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3817 rtx_insn *, adding a checked cast. Replace use of
3818 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3819 forced_labels.
3820 (expand_label): Likewise for local "label_r".
3821
3822 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3823
3824 * function.h (struct rtl_data): Convert field
3825 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3826 rtx_insn_list *.
3827 * rtl.h (remove_node_from_insn_list): New prototype.
3828
3829 * builtins.c (expand_builtin): When prepending to
3830 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3831 gen_rtx_EXPR_LIST.
3832 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3833 to rtx_insn_list *, and use its "insn" method rather than
3834 "element" method.
3835 * cfgrtl.c (delete_insn): Use new function
3836 remove_node_from_insn_list rather than
3837 remove_node_from_expr_list.
3838 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3839 to rtx_insn_list *, and use its "insn" method rather than
3840 "element" method.
3841 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3842 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3843 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3844 from remove_node_from_expr_list.
3845 * stmt.c (expand_label): When prepending to
3846 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3847 gen_rtx_EXPR_LIST.
3848
3849 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3850
3851 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3852 and "x_naked_return_label" from rtx to rtx_code_label *.
3853
3854 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3855
3856 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3857 (SET_NEXT_INSN): Likewise.
3858 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3859
3860 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3861 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3862 to split out the SEQUENCE from local "bundle", strengthening the
3863 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3864 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3865 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3866 and the type of the elements of the "slot" array from rtx to
3867 rtx_insn *.
3868 (reorg_split_calls): Likewise for locals "insn" and "next", and
3869 the type of the elements of the "slot" array.
3870
3871 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3872 array.
3873 (frv_function_prologue): Likewise for locals "insn", "next",
3874 "last_call".
3875 (frv_register_nop): Introduce a local "nop_insn" to be the
3876 rtx_insn * containing rtx "nop".
3877
3878 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3879 used as an insn and sometimes as a pattern, so rename it to
3880 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3881 using it where dealing with the core insn.
3882
3883 * config/picochip/picochip.c (reorder_var_tracking_notes):
3884 Strengthen locals "insn", "next", "last_insn", "queue",
3885 "next_queue", "prev" from rtx to rtx_insn *.
3886
3887 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3888 the second param is an rtx_insn ** rather than an rtx **.
3889 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3890 from rtx to rtx_sequence *, and introduce local named "sequence",
3891 using methods of rtx_sequence to clarify the code.
3892 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3893 use its methods.
3894 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3895 Rename param "after" to "uncast_after", reintroducing "after" as a
3896 local rtx_insn * with a checked cast.
3897 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3898 reintroducing "after" as a local rtx_insn * with a checked cast.
3899 Strengthen local "last" from rtx to rtx_insn * and remove the
3900 now-redundant checked casts.
3901 (copy_delay_slot_insn): Strengthen return type and param from rtx
3902 to rtx_insn *.
3903
3904 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3905 "last" from rtx to rtx_insn *.
3906
3907 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3908
3909 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3910 param from rtx to rtx_insn *.
3911
3912 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3913
3914 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3915 and local "insn" from rtx to rtx_insn *.
3916 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3917 (unfilled_slots_next): Likewise.
3918 (function_return_label): Strengthen from rtx to rtx_code_label *.
3919 (function_simple_return_label): Likewise.
3920 (first_active_target_insn): Strengthen return type and param from
3921 rtx to rtx_insn *.
3922 (find_end_label): Strengthen return type from rtx to
3923 rtx_code_label *; strengthen locals as appropriate.
3924 (emit_delay_sequence): Strengthen return type, param "insn" and
3925 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3926 and local "li" from rtx to rtx_insn_list *, using methods of
3927 rtx_insn_list for clarity and typesafety.
3928 (add_to_delay_list): Strengthen return type and param "insn" from
3929 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3930 rtx_insn_list * and use methods of rtx_insn_list.
3931 (delete_from_delay_slot): Strengthen return type, param "insn",
3932 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3933 Strengthen local "seq" from rtx to rtx_sequence *, and local
3934 "delay_list" from rtx to rtx_insn_list *, using methods of
3935 rtx_sequence for clarity and type-safety.
3936 (delete_scheduled_jump): Add checked cast when invoking
3937 delete_from_delay_slot. Strengthen local "trial" from rtx to
3938 rtx_insn *.
3939 (optimize_skip): Strengthen return type and local "delay_list"
3940 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3941 rtx_insn *.
3942 (steal_delay_list_from_target): Strengthen return type, param
3943 "delay_list" and local "new_delay_list" from rtx to
3944 rtx_insn_list *. Strengthen param "seq" from rtx to
3945 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3946 rtx_insn **.
3947 Split out local "temp" into multiple more-tightly scoped locals:
3948 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3949 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3950 Strengthen locals named "trial" from rtx to rtx_insn *.
3951 (steal_delay_list_from_fallthrough): Strengthen return type and
3952 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3953 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3954 Strengthen local "trial" from rtx to rtx_insn *.
3955 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3956 to rtx_insn_list * and use its methods. Strengthen local "pat"
3957 from rtx to rtx_sequence * and use its methods. Strengthen locals
3958 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3959 (get_label_before): Strengthen return type and local "label" from
3960 rtx to rtx_insn *.
3961 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3962 "next_trial", "next", prev". Strengthen local "delay_list" from
3963 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3964 rtx_insn **.
3965 (follow_jumps): Strengthen return type, param "label" and locals
3966 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3967 (fill_slots_from_thread): Strengthen return type, param
3968 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3969 "insn", "thread", "opposite_thread" and locals "new_thread",
3970 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3971 "sequence" from a checked cast to rtx_sequence so that we can call
3972 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3973 with an rtx_sequence *.
3974 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3975 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3976 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3977 (relax_delay_slots): Strengthen param "first" and locals "insn",
3978 "next", "trial", "delay_insn", "target_label" from rtx to
3979 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3980 Introduce a local "trial_seq" for PATTERN (trial) of type
3981 rtx_sequence *, in both cases using methods of rtx_sequence.
3982 (dbr_schedule): Strengthen param "first" and locals "insn",
3983 "next", "epilogue_insn" from rtx to rtx_insn *.
3984
3985 2014-08-28 Richard Biener <rguenther@suse.de>
3986
3987 PR tree-optimization/62283
3988 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3989 Do not peel loops for alignment where the vector loop likely
3990 doesn't run at least VF times.
3991
3992 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3993
3994 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3995 important_candidates. Consider all important candidates if
3996 IVS doesn't give any result. Remove check on ivs->upto.
3997 (try_add_cand_for): Call iv_ca_add_use only once.
3998
3999 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4000 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4001 Anna Tikhonova <anna.tikhonova@intel.com>
4002 Ilya Tocar <ilya.tocar@intel.com>
4003 Andrey Turetskiy <andrey.turetskiy@intel.com>
4004 Ilya Verbin <ilya.verbin@intel.com>
4005 Kirill Yukhin <kirill.yukhin@intel.com>
4006 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4007
4008 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
4009 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
4010 masking.
4011 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
4012 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4013 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4014 (define_insn "*mul<mode>3"): Add EVEX version.
4015
4016 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4017 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4018 Anna Tikhonova <anna.tikhonova@intel.com>
4019 Ilya Tocar <ilya.tocar@intel.com>
4020 Andrey Turetskiy <andrey.turetskiy@intel.com>
4021 Ilya Verbin <ilya.verbin@intel.com>
4022 Kirill Yukhin <kirill.yukhin@intel.com>
4023 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4024
4025 * config/i386/sse.md
4026 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
4027 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
4028 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
4029 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
4030 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
4031 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
4032 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
4033 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
4034 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
4035 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
4036 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
4037 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
4038 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
4039 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
4040 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
4041 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
4042
4043 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4044 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4045 Anna Tikhonova <anna.tikhonova@intel.com>
4046 Ilya Tocar <ilya.tocar@intel.com>
4047 Andrey Turetskiy <andrey.turetskiy@intel.com>
4048 Ilya Verbin <ilya.verbin@intel.com>
4049 Kirill Yukhin <kirill.yukhin@intel.com>
4050 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4051
4052 * config/i386/sse.md
4053 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
4054 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
4055 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
4056
4057 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4059 Anna Tikhonova <anna.tikhonova@intel.com>
4060 Ilya Tocar <ilya.tocar@intel.com>
4061 Andrey Turetskiy <andrey.turetskiy@intel.com>
4062 Ilya Verbin <ilya.verbin@intel.com>
4063 Kirill Yukhin <kirill.yukhin@intel.com>
4064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4065
4066 * config/i386/sse.md
4067 (define_mode_iterator VI128_256): New.
4068 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
4069
4070 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4071 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4072 Anna Tikhonova <anna.tikhonova@intel.com>
4073 Ilya Tocar <ilya.tocar@intel.com>
4074 Andrey Turetskiy <andrey.turetskiy@intel.com>
4075 Ilya Verbin <ilya.verbin@intel.com>
4076 Kirill Yukhin <kirill.yukhin@intel.com>
4077 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4078
4079 * config/i386/sse.md
4080 (define_mode_iterator VI8_256_512): New.
4081 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
4082 Ditto.
4083 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4084 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
4085 Ditto.
4086 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
4087
4088 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4089
4090 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
4091 pointer to the cumulative reloc value and return the value for
4092 this reloc instead.
4093 (compute_reloc_for_rtx): Take a const_rtx. Call
4094 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
4095 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
4096 for_each_rtx for the CONST case.
4097
4098 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4099
4100 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
4101 (mark_constants_in_pattern): ...this new function to iterate over
4102 all the subrtxes.
4103 (mark_constants): Update accordingly.
4104
4105 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4106
4107 * varasm.c: Include rtl-iter.h.
4108 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
4109 Remove the pointer to the cumulative hashval_t and just return
4110 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
4111 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4112 Accumulate the hashval_ts here instead of const_rtx_hash_1.
4113
4114 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4115
4116 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
4117 Give real type of data parameter. Remove return value.
4118 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
4119 to iterate over subrtxes.
4120
4121 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4122
4123 * var-tracking.c (use_narrower_mode_test): Turn from being a
4124 for_each_rtx callback to being a function that examines each
4125 subrtx itself.
4126 (adjust_mems): Update accordingly.
4127
4128 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4129
4130 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
4131 callback to being a function that examines each subrtx itself.
4132 Remove handling of null rtxes.
4133 (add_uses): Update accordingly.
4134
4135 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4136
4137 * var-tracking.c: Include rtl-iter.h.
4138 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
4139 to being a function that examines each subrtx itself.
4140 (use_type): Update accordingly.
4141
4142 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4143
4144 * store-motion.c: Include rtl-iter.h.
4145 (extract_mentioned_regs_1): Delete.
4146 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
4147 for_each_rtx to iterate over subrtxes.
4148
4149 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4150
4151 * sel-sched.c: Include rtl-iter.h
4152 (count_occurrences_1): Delete.
4153 (count_occurrences_equiv): Turn rtxes into const_rtxes.
4154 Use FOR_EACH_SUBRTX rather than for_each_rtx.
4155
4156 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4157
4158 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
4159 * rtlanal.c (tls_referenced_p_1): Delete.
4160 (tls_referenced_p): Take a const_rtx rather than an rtx.
4161 Use FOR_EACH_SUBRTX rather than for_each_rtx.
4162
4163 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4164
4165 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
4166 (for_each_inc_dec): Take an rtx rather than an rtx *.
4167 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
4168 (cselib_record_sets): Likewise.
4169 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
4170 (check_for_inc_dec): Likewise.
4171 * rtlanal.c (for_each_inc_dec_ops): Delete.
4172 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
4173 rather than a pointer to the memory address. Replace
4174 for_each_inc_dec_ops argument with separate function and data
4175 arguments. Abort on non-autoinc addresses.
4176 (for_each_inc_dec_find_mem): Delete.
4177 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
4178 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
4179
4180 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4181
4182 * rtl.h (find_all_hard_regs): Declare.
4183 * rtlanal.c (find_all_hard_regs): New function.
4184 (record_hard_reg_uses_1): Delete.
4185 (record_hard_reg_uses): Use find_all_hard_regs.
4186
4187 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4188
4189 * rtl.h (replace_label_data): Delete.
4190 (replace_label): Take the old label, new label and update-nuses flag
4191 as direct arguments. Return void.
4192 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
4193 * rtlanal.c (replace_label): Update interface as above. Handle
4194 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
4195 iterator. Use FOR_EACH_SUBRTX_PTR.
4196
4197 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4198
4199 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
4200 with const_rtx parameters.
4201 * varasm.c (get_pool_constant): Likewise.
4202 * rtlanal.c (rtx_referenced_p_1): Delete.
4203 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4204 Assert that the rtx we're looking for is nonnull. Allow searches
4205 for constant pool SYMBOL_REFs.
4206
4207 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4208
4209 * reload1.c: Include rtl-iter.h.
4210 (note_reg_elim_costly): Turn from being a for_each_rtx callback
4211 to being a function that examines each subrtx itself.
4212 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
4213
4214 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4215
4216 * regcprop.c (cprop_find_used_regs_1): Delete.
4217 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4218
4219 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4220
4221 * regcprop.c: Include rtl-iter.h.
4222 (kill_value): Take a const_rtx.
4223 (kill_autoinc_value): Turn from being a for_each_rtx callback
4224 to being a function that examines each subrtx itself.
4225 (copyprop_hardreg_forward_1): Update accordingly.
4226
4227 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4228
4229 * reg-stack.c: Include rtl-iter.h.
4230 (subst_stack_regs_in_debug_insn): Delete.
4231 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
4232 instead of for_each_rtx.
4233
4234 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4235
4236 * lower-subreg.c (find_decomposable_subregs): Turn from being
4237 a for_each_rtx callback to being a function that examines each
4238 subrtx itself. Remove handling of null rtxes.
4239 (decompose_multiword_subregs): Update accordingly.
4240
4241 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4242
4243 * lower-subreg.c (adjust_decomposed_uses): Delete.
4244 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
4245 Remove handling of null rtxes.
4246
4247 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4248
4249 * lower-subreg.c: Include rtl-iter.h.
4250 (resolve_subreg_use): Turn from being a for_each_rtx callback
4251 to being a function that examines each subrtx itself. Remove
4252 handling of null rtxes.
4253 (resolve_reg_notes, resolve_simple_move): Update accordingly.
4254 (decompose_multiword_subregs): Likewise.
4255
4256 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4257
4258 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
4259 to being a function that examines each subrtx itself.
4260 (simplify_using_condition, simplify_using_initial_values): Update
4261 accordingly.
4262
4263 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4264
4265 * loop-iv.c: Include rtl-iter.h.
4266 (find_single_def_src): New function.
4267 (replace_single_def_regs): Turn from being a for_each_rtx callback
4268 to being a function that examines each subrtx itself.
4269 (replace_in_expr, simplify_using_initial_values): Update accordingly.
4270
4271 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4272
4273 * jump.c (eh_returnjump_p_1): Delete.
4274 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4275 Remove handling of null rtxes.
4276
4277 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4278
4279 * jump.c: Include rtl-iter.h.
4280 (returnjump_p_1): Delete.
4281 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4282 Remove handling of null rtxes.
4283
4284 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4285
4286 * ira.c: Include rtl-iter.h.
4287 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
4288 to being a function that examines each subrtx itself. Remove
4289 handling of null rtxes.
4290 (update_equiv_regs): Update call accordingly.
4291
4292 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4293
4294 * fwprop.c: Include rtl-iter.h.
4295 (varying_mem_p): Turn from being a for_each_rtx callback to being
4296 a function that examines each subrtx itself.
4297 (propagate_rtx): Update accordingly.
4298
4299 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4300
4301 * function.c: Include rtl-iter.h
4302 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
4303 callback to being a function that examines each subrtx itself.
4304 Return the changed flag.
4305 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
4306 (instantiate_virtual_regs): Update calls accordingly.
4307
4308 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4309
4310 * final.c: Include rtl-iter.h.
4311 (mark_symbol_ref_as_used): Delete.
4312 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
4313 for_each_rtx.
4314
4315 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4316
4317 * emit-rtl.c: Include rtl-iter.h.
4318 (find_auto_inc): Turn from being a for_each_rtx callback to being
4319 a function that examines each subrtx itself. Assume the first operand
4320 to an RTX_AUTOINC is the automodified register.
4321 (try_split): Update call accordingly.
4322
4323 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4324
4325 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4326 Return a bool, inverting the result so that 0/false means "not ok".
4327 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
4328 subrtxes of a CONST.
4329 (mem_loc_descriptor, add_const_value_attribute)
4330 (resolve_addr_in_expr): Update calls accordingly.
4331
4332 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4333
4334 * dwarf2out.c: Include rtl-iter.h.
4335 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4336 Remove unused data parameter. Return a bool, inverting the result
4337 so that 0/false means "not ok".
4338 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
4339 instead of for_each_rtx.
4340
4341 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4342
4343 * dse.c: Include rtl-iter.h.
4344 (check_mem_read_rtx): Change void * parameter to real type.
4345 Remove return value.
4346 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
4347 for_each_rtx. Don't handle null rtxes.
4348
4349 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4350
4351 * df-problems.c: Include rtl-iter.h.
4352 (find_memory): Turn from being a for_each_rtx callback to being
4353 a function that examines each subrtx itself. Continue to look for
4354 volatile references even after a nonvolatile one has been found.
4355 (can_move_insns_across): Update calls accordingly.
4356
4357 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4358
4359 * ddg.c (walk_mems_2, walk_mems_1): Delete.
4360 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4361 to iterate over subrtxes. Return a bool rather than an int.
4362
4363 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4364
4365 * ddg.c: Include rtl-iter.h.
4366 (mark_mem_use_1): Rename to...
4367 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
4368 instead of for_each_rtx.
4369 (mem_read_insn_p): Update accordingly.
4370
4371 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4372
4373 * cse.c (change_cc_mode_args): Delete.
4374 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4375 a function that examines each subrtx itself. Take the fields of
4376 change_cc_mode_args as argument and return void.
4377 (cse_change_cc_mode_insn): Update calls accordingly.
4378
4379 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4380
4381 * cse.c (is_dead_reg): Change argument to const_rtx.
4382 (dead_debug_insn_data): Delete.
4383 (is_dead_debug_insn): Expand commentary. Turn from being a
4384 for_each_rtx callback to being a function that examines
4385 each subrtx itself. Take the fields of dead_debug_insn_data
4386 as argument.
4387 (delete_trivially_dead_insns): Update call accordingly.
4388
4389 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4390
4391 * cse.c (check_for_label_ref): Move earlier in file. Turn from
4392 being a for_each_rtx callback to being a function that examines
4393 each subrtx itself.
4394 (cse_extended_basic_block): Update call accordingly.
4395
4396 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4397
4398 * cse.c (check_dependence_data): Delete.
4399 (check_dependence): Change from being a for_each_rtx callback to being
4400 a function that examines all subrtxes itself. Don't handle null rtxes.
4401 (invalidate): Update call accordingly.
4402
4403 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4404
4405 * cse.c: Include rtl-iter.h.
4406 (approx_reg_cost_1): Delete.
4407 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4408 Don't handle null rtxes.
4409
4410 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4411
4412 * cfgcleanup.c: Include rtl-iter.h.
4413 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4414 to being a function that examines each subrtx itself.
4415 (thread_jump): Update accordingly.
4416
4417 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4418
4419 * combine-stack-adj.c: Include rtl-iter.h.
4420 (record_stack_refs_data): Delete.
4421 (record_stack_refs): Turn from being a for_each_rtx callback
4422 to being a function that examines each subrtx itself.
4423 Take a pointer to the reflist. Invert sense of return value
4424 so that true means success and false means failure. Don't
4425 handle null rtxes.
4426 (combine_stack_adjustments_for_block): Update accordingly.
4427
4428 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4429
4430 * combine.c (record_truncated_value): Turn from being a for_each_rtx
4431 callback to a function that takes an rtx and returns a bool
4432 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4433 for_each_rtx.
4434
4435 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4436
4437 * combine.c: Include rtl-iter.h.
4438 (unmentioned_reg_p_1): Delete.
4439 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4440 Don't handle null rtxes.
4441
4442 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4443
4444 * calls.c: Include rtl-iter.h.
4445 (internal_arg_pointer_based_exp_1): Delete.
4446 (internal_arg_pointer_based_exp): Take a const_rtx.
4447 Use FOR_EACH_SUBRTX to iterate over subrtxes.
4448
4449 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4450
4451 * caller-save.c: Include rtl-iter.h.
4452 (add_used_regs_1): Delete.
4453 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4454 to iterate over subrtxes. Assert that any remaining pseudos
4455 have been spilled.
4456
4457 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4458
4459 * bt-load.c: Include rtl-iter.h.
4460 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4461 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
4462 to iterate over subrtxes.
4463 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4464 find_btr_use rather than btr_referenced_p.
4465
4466 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4467
4468 * alias.c: Include rtl-iter.h.
4469 (refs_newer_value_cb): Delete.
4470 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4471
4472 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4473
4474 * rtl-iter.h: New file.
4475 * rtlanal.c: Include it.
4476 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4477 (generic_subrtx_iterator <T>::add_single_to_queue)
4478 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4479 (generic_subrtx_iterator <T>::free_array): New functions.
4480 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4481 (generic_subrtx_iterator <const_rtx_accessor>)
4482 (generic_subrtx_iterator <rtx_var_accessor>
4483 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4484 (setup_reg_subrtx_bounds): New function.
4485 (init_rtlanal): Call it.
4486
4487 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4488
4489 PR target/62261
4490 * config/sh/sh.md (ashlsi3): Handle negative shift count for
4491 TARGET_SHMEDIA.
4492 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4493
4494 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
4495
4496 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4497
4498 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4499
4500 * rtl.h (JUMP_LABEL_AS_INSN): New.
4501
4502 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4503
4504 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4505 rtx_expr_list **.
4506 (alloc_EXPR_LIST): Strengthen return type from rtx to
4507 rtx_expr_list *.
4508 (remove_free_EXPR_LIST_node): Likewise for param.
4509 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4510 from rtx to rtx_expr_list *.
4511 * sched-int.h (struct deps_desc): Strengthen fields
4512 "pending_read_mems" and "pending_write_mems" from rtx to
4513 rtx_expr_list *.
4514
4515 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4516 rtx to rtx_expr_list *.
4517 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4518 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4519 rtx_expr_list **.
4520 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4521 from rtx to rtx_expr_list *.
4522 * loop-iv.c (simplify_using_initial_values): Strengthen local
4523 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4524 "pnote_next" from rtx * to rtx_expr_list **.
4525 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4526 param "exprp" from rtx * to rtx_expr_list **.
4527 (add_insn_mem_dependence): Strengthen local "mem_list" from
4528 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4529 to rtx_expr_list *.
4530 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4531 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4532 param "old_mems_p" from rtx * to rtx_expr_list **.
4533 * var-tracking.c (struct adjust_mem_data): Strengthen field
4534 "side_effects" from rtx to rtx_expr_list *.
4535 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4536 rtx_expr_list *.
4537 (prepare_call_arguments): Likewise.
4538
4539 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4540
4541 * function.h (struct rtl_data): Strengthen field
4542 "x_stack_slot_list" from rtx to rtx_expr_list *.
4543
4544 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4545 when assigning to stack_slot_list.
4546
4547 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4548
4549 * function.h (struct rtl_data): Strengthen field
4550 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4551 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4552 rtx * to rtx_expr_list **.
4553
4554 * cfgbuild.c (make_edges): In loop over
4555 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4556 rtx_expr_list *, and use methods of the latter class to clarify
4557 the code.
4558 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4559 rtx_expr_list *, and use methods of the latter class to clarify
4560 the code.
4561 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4562 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4563 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4564 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4565 to rtx_expr_list *. Use methods of the latter class to clarify
4566 the code.
4567
4568 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4569
4570 * function.h (struct expr_status): Strengthen field
4571 "x_forced_labels" from rtx to rtx_expr_list *.
4572
4573 * cfgbuild.c (make_edges): Split local "x" into two locals,
4574 strengthening one from rtx to rtx_expr_list *, and using methods
4575 of said class.
4576 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4577 loop over forced_labels, introduce strengthen it from rtx to
4578 rtx_expr_list *, using methods to clarify the code.
4579 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4580 to rtx_expr_list *, using methods of said class to clarify the
4581 code.
4582 * reload1.c (set_initial_label_offsets): Split local "x" into two
4583 per-loop variables, strengthening the first from rtx to
4584 rtx_expr_list * and using methods.
4585
4586 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4587
4588 * coretypes.h (class rtx_expr_list): Add forward declaration.
4589 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4590 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4591 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4592 invariant: GET_CODE (X) == EXPR_LIST.
4593 (is_a_helper <rtx_expr_list *>::test): New.
4594 (rtx_expr_list::next): New.
4595 (rtx_expr_list::element): New.
4596 (gen_rtx_EXPR_LIST): New.
4597
4598 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4599
4600 * varasm.c (mark_constants): Convert a GET_CODE check into a
4601 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4602 Use methods of rtx_sequence to clarify the code.
4603
4604 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4605
4606 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4607 local "seq" via a checked cast, and use methods of rtx_sequence
4608 to simplify the code.
4609
4610 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4611
4612 * resource.c (mark_referenced_resources): Strengthen local
4613 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4614 using methods of rtx_sequence to clarify the code.
4615 (find_dead_or_set_registers): Within the switch statement, convert
4616 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4617 the JUMP_P handling, introduce another local "seq", adding a
4618 checked cast to rtx_sequence *. In both cases, use methods of
4619 rtx_sequence to clarify the code.
4620 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4621 via a checked cast, and use methods of rtx_sequence to simplify
4622 the code.
4623
4624 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4625
4626 * reorg.c (redundant_insn): In two places in the function, replace
4627 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4628 usings methods of rtx_sequence to clarify the code.
4629
4630 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4631
4632 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4633 local "seq" with a checked cast, and use methods of rtx_sequence
4634 to clarify the code.
4635
4636 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4637
4638 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4639 with a checked cast, in the region for where we know it's a
4640 SEQUENCE. Use methods of rtx_sequence.
4641
4642 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4643
4644 * final.c (get_attr_length_1): Replace GET_CODE check with a
4645 dyn_cast, introducing local "seq" and the use of methods of
4646 rtx_sequence.
4647 (shorten_branches): Likewise, introducing local "body_seq".
4648 Strengthen local "inner_insn" from rtx to rtx_insn *.
4649 (reemit_insn_block_notes): Replace GET_CODE check with a
4650 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4651 Use methods of rtx_sequence.
4652 (final_scan_insn): Likewise, introducing local "seq" for when
4653 "body" is known to be a SEQUENCE, using its methods.
4654
4655 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4656
4657 * except.c (can_throw_external): Strengthen local "seq" from rtx
4658 to rtx_sequence *. Use methods of rtx_sequence.
4659 (insn_nothrow_p): Likewise.
4660
4661 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4662
4663 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4664 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4665 Use methods of rtx_sequence.
4666 (scan_trace): Likewise for local "pat".
4667
4668 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4669
4670 * coretypes.h (class rtx_sequence): Add forward declaration.
4671 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4672 invariant: GET_CODE (X) == SEQUENCE.
4673 (is_a_helper <rtx_sequence *>::test): New.
4674 (is_a_helper <const rtx_sequence *>::test): New.
4675 (rtx_sequence::len): New.
4676 (rtx_sequence::element): New.
4677 (rtx_sequence::insn): New.
4678
4679 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4680
4681 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4682 rtx_insn_list **.
4683 (alloc_INSN_LIST): Strengthen return type from rtx to
4684 rtx_insn_list *.
4685 (copy_INSN_LIST): Likewise for return type and param.
4686 (concat_INSN_LIST): Likewise for both params and return type.
4687 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4688 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4689 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4690 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4691
4692 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4693 "implicit_sets", "control_uses", "clobbers" from rtx to
4694 rtx_insn_list *.
4695 (struct deps_desc): Likewise for fields "pending_read_insns",
4696 "pending_write_insns", "pending_jump_insns",
4697 "last_pending_memory_flush", "last_function_call",
4698 "last_function_call_may_noreturn", "sched_before_next_call",
4699 "sched_before_next_jump".
4700 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4701 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4702
4703 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4704 from rtx to rtx_insn_list *.
4705 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4706 rtx_insn_list *.
4707
4708 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4709 to rtx_insn_list **.
4710 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4711 rtx_insn_list *.
4712 (queue_insn): Likewise for local "link".
4713 (struct haifa_saved_data): Strengthen field "insn_queue" from
4714 rtx * to rtx_insn_list **.
4715 (save_backtrack_point): Update allocation of save->insn_queue to
4716 reflect the strengthening of elements from rtx to rtx_insn_list *.
4717 (queue_to_ready): Strengthen local "link" from rtx to
4718 rtx_insn_list *; use methods "next" and "insn" when traversing the
4719 list.
4720 (early_queue_to_ready): Likewise for locals "link", "next_link",
4721 "prev_link".
4722 (schedule_block): Update allocation of insn_queue to reflect the
4723 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4724 local "link" from rtx to rtx_insn_list *, and use methods when
4725 working it.
4726 (add_to_speculative_block): Strengthen locals "twins" and
4727 "next_node" from rtx to rtx_insn_list *, and use methods when
4728 working with them. Strengthen local "twin" from rtx to
4729 rtx_insn *, eliminating a checked cast.
4730 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4731 from rtx to rtx_insn_list *, and use methods when working with
4732 them.
4733
4734 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4735 from rtx to rtx_insn_list *, adding a checked cast.
4736 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4737 rtx_insn_list **.
4738 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4739 "newlink" from rtx to rtx_insn_list *. Strengthen local
4740 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4741 from rtx to rtx_insn *.
4742 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4743 from rtx to rtx_insn_list *. Use methods of the latter class.
4744 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4745 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4746 (remove_free_INSN_LIST_node): Strengthen return type and local
4747 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4748 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4749 rtx_insn_list *, using "insn" method.
4750
4751 * sched-deps.c (add_dependence_list): Strengthen param "list"
4752 from rtx to rtx_insn_list *, and use methods when working with it.
4753 (add_dependence_list_and_free): Strengthen param "listp" from
4754 rtx * to rtx_insn_list **.
4755 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4756 to rtx_insn_list **, and use methods when working with *listp.
4757 (remove_from_both_dependence_lists): Strengthen param "listp" from
4758 rtx * to rtx_insn_list **
4759 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4760 to rtx_insn_list **. Eliminate local "link", in favor of two new
4761 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4762 respectively.
4763 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4764 by introducing local "cond_deps".
4765 (remove_from_deps): Strengthen param "insn" from rtx to
4766 rtx_insn *.
4767
4768 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4769 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4770 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4771 Use methods of rtx_insn_list.
4772
4773 * store-motion.c (struct st_expr): Strengthen fields
4774 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4775 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4776 rtx_insn_list *.
4777 (find_moveable_store): Split out "tmp" into multiple more-tightly
4778 scoped locals. Use methods of rtx_insn_list *.
4779 (compute_store_table): Strengthen local "tmp" from rtx to
4780 rtx_insn *. Use methods of rtx_insn_list *.
4781
4782 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4783
4784 * coretypes.h (class rtx_insn_list): Add forward declaration.
4785 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4786 (is_a_helper <rtx_insn_list *>::test): New.
4787 (rtx_insn_list::next): New.
4788 (rtx_insn_list::insn): New.
4789 (gen_rtx_INSN_LIST): Add prototype.
4790 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4791 * gengenrtl.c (special_rtx): Add INSN_LIST.
4792
4793 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4794
4795 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4796 "prev" from rtx to rtx_insn *.
4797
4798 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4799
4800 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4801 functions. Require merely an rtx for now, not an rtx_insn *.
4802 (BLOCK_FOR_INSN): Likewise.
4803 (INSN_LOCATION): Likewise.
4804 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4805
4806 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4807
4808 * rtl.h (PATTERN): Convert this macro into a pair of inline
4809 functions, for now, requiring const_rtx and rtx.
4810
4811 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4812
4813 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4814 rtx_insn *.
4815 (final_postscan_insn): Likewise.
4816 (adjust_cost): Likewise.
4817 (adjust_priority): Likewise.
4818 (variable_issue): Likewise.
4819 (macro_fusion_pair_p): Likewise.
4820 (dfa_post_cycle_insn): Likewise.
4821 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4822 (first_cycle_multipass_issue): Likewise.
4823 (dfa_new_cycle): Likewise.
4824 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4825 (speculate_insn): Likewise for param "insn".
4826 (gen_spec_check): Likewise for params "insn" and "label".
4827 (get_insn_spec_ds): Likewise for param "insn".
4828 (get_insn_checked_ds): Likewise.
4829 (dispatch_do): Likewise.
4830 (dispatch): Likewise.
4831 (cannot_copy_insn_p): Likewise.
4832 (invalid_within_doloop): Likewise.
4833 (legitimate_combined_insn): Likewise.
4834 (needed): Likewise.
4835 (after): Likewise.
4836
4837 * doc/tm.texi: Automatically updated to reflect changes to
4838 target.def.
4839
4840 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4841 working with insn.
4842 (schedule_block): Likewise.
4843 (sched_init): Likewise.
4844 (sched_speculate_insn): Strengthen param "insn" from rtx to
4845 rtx_insn *.
4846 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4847 working with insn.
4848 * hooks.c (hook_bool_rtx_true): Rename to...
4849 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4850 rtx to rtx_insn *.
4851 (hook_constcharptr_const_rtx_null): Rename to...
4852 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4853 first param from const_rtx to const rtx_insn *.
4854 (hook_bool_rtx_int_false): Rename to...
4855 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4856 param from rtx to rtx_insn *.
4857 (hook_void_rtx_int): Rename to...
4858 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4859 rtx to rtx_insn *.
4860
4861 * hooks.h (hook_bool_rtx_true): Rename to...
4862 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4863 rtx to rtx_insn *.
4864 (hook_bool_rtx_int_false): Rename to...
4865 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4866 param from rtx to rtx_insn *.
4867 (hook_void_rtx_int): Rename to...
4868 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4869 rtx to rtx_insn *.
4870 (hook_constcharptr_const_rtx_null): Rename to...
4871 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4872 first param from const_rtx to const rtx_insn *.
4873
4874 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4875 and local "prev" from rtx to rtx_insn *.
4876
4877 * sched-int.h (sched_speculate_insn): Strengthen first param from
4878 rtx to rtx_insn *.
4879
4880 * sel-sched.c (create_speculation_check): Likewise for local "label".
4881 * targhooks.c (default_invalid_within_doloop): Strengthen param
4882 "insn" from const_rtx to const rtx_insn *.
4883 * targhooks.h (default_invalid_within_doloop): Strengthen param
4884 from const_rtx to const rtx_insn *.
4885
4886 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4887 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4888
4889 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4890 "insn".
4891 (arc_invalid_within_doloop): Likewise, with const.
4892
4893 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4894 (arm_cannot_copy_insn_p): Likewise for param "insn".
4895 (arm_unwind_emit): Likewise.
4896
4897 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4898 "dep_insn".
4899
4900 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4901 (c6x_variable_issue): Likewise. Removed now-redundant checked
4902 cast.
4903 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4904
4905 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4906 Likewise for param "insn".
4907 (epiphany_mode_after): Likewise.
4908 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4909 params "insn", "dep_insn".
4910 (epiphany_mode_needed): Likewise for param "insn".
4911 (epiphany_mode_after): Likewise.
4912
4913 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4914 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4915 (ix86_avx_u128_mode_needed): Likewise.
4916 (ix86_i387_mode_needed): Likewise.
4917 (ix86_mode_needed): Likewise.
4918 (ix86_avx_u128_mode_after): Likewise.
4919 (ix86_mode_after): Likewise.
4920 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4921 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4922 (ix86_adjust_priority): Likewise for param "insn".
4923 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4924 (do_dispatch): Likewise.
4925 (has_dispatch): Likewise.
4926 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4927
4928 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4929 reflect renaming of default hook implementation from
4930 hook_constcharptr_const_rtx_null to
4931 hook_constcharptr_const_rtx_insn_null.
4932 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4933 rtx to rtx_insn *.
4934 (ia64_variable_issue): Likewise for param "insn".
4935 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4936 (ia64_dfa_new_cycle): Likewise.
4937 (ia64_get_insn_spec_ds): Likewise.
4938 (ia64_get_insn_checked_ds): Likewise.
4939 (ia64_speculate_insn): Likewise.
4940 (ia64_gen_spec_check): Likewise for params "insn", "label".
4941 (ia64_asm_unwind_emit): Likewise for param "insn".
4942
4943 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4944
4945 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4946 "insn", "def_insn".
4947 (m68k_sched_variable_issue): Likewise for param "insn".
4948
4949 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4950 "def_insn".
4951
4952 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4953 Likewise for params "insn", "dep".
4954
4955 * config/mips/mips.c (mips_adjust_cost): Likewise.
4956 (mips_variable_issue): Likewise for param "insn".
4957 (mips_final_postscan_insn): Likewise.
4958
4959 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4960 for params "insn", "dep".
4961
4962 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4963 "dep_insn".
4964 (pa_adjust_priority): Likewise for param "insn".
4965
4966 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4967 Likewise for params "insn", "dep_insn".
4968
4969 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4970 param "insn".
4971 (rs6000_variable_issue): Likewise.
4972 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4973 (rs6000_debug_adjust_cost): Likewise.
4974 (rs6000_adjust_priority): Likewise for param "insn".
4975 (rs6000_use_sched_lookahead_guard): Likewise.
4976 (get_next_active_insn): Likewise for return type and both params.
4977 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4978 and locals "insn", "next_insn".
4979 (pad_groups): Likewise.
4980
4981 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4982 "insn".
4983 (s390_cannot_copy_insn_p): Likewise.
4984 (s390_sched_variable_issue): Likewise for third param, eliminating
4985 checked cast.
4986 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4987 default hook implementation from hook_constcharptr_const_rtx_null
4988 to hook_constcharptr_const_rtx_insn_null.
4989
4990 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4991 from rtx to rtx_insn *.
4992 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4993 (sh_variable_issue): Likewise for param "insn".
4994 (sh_dfa_new_cycle): Likewise.
4995 (sh_mode_needed): Likewise.
4996 (sh_mode_after): Likewise.
4997
4998 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4999 params "insn", "dep_insn".
5000 (hypersparc_adjust_cost): Likewise.
5001 (sparc_adjust_cost): Likewise.
5002
5003 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
5004 param, eliminated checked cast.
5005 (spu_sched_adjust_cost): Likewise for first and third params.
5006
5007 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
5008 params "insn" and "dep_insn" from rtx to rtx_insn *.
5009
5010 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
5011
5012 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5013
5014 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
5015 (set_is_load_p): ...this, updating to work on a SET pattern rather
5016 than an insn.
5017 (is_store_insn): Rename to...
5018 (set_is_store_p): ...this, updating to work on a SET pattern
5019 rather than an insn.
5020 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
5021 top of function to where it is needed. Rewrite the bogus
5022 condition that checks for "insn" and "dep" being PARALLEL to
5023 instead use single_set, introducing locals "insn_set" and
5024 "dep_set". Given that we only ever returned "cost" for a non-pair
5025 of SETs, bail out early if we don't have a pair of SET.
5026 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
5027 use the new locals "insn_set" and "dep_set", and update calls to
5028 is_load_insn and is_store_insn to be calls to set_is_load_p and
5029 set_is_store_p.
5030
5031 2014-08-27 Guozhi Wei <carrot@google.com>
5032
5033 PR target/62262
5034 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
5035 amount before using it.
5036
5037 2014-08-27 Richard Biener <rguenther@suse.de>
5038
5039 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
5040 get_maxval_strlen inside a more useful API.
5041 (gimple_fold_builtin_with_strlen): Remove and fold into ...
5042 (gimple_fold_builtin): ... caller.
5043 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
5044 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
5045 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
5046 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
5047 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
5048 gimple_fold_builtin_sprintf): Adjust to compute maxval
5049 themselves.
5050
5051 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
5052
5053 PR other/62248
5054 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
5055
5056 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5057 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5058 Anna Tikhonova <anna.tikhonova@intel.com>
5059 Ilya Tocar <ilya.tocar@intel.com>
5060 Andrey Turetskiy <andrey.turetskiy@intel.com>
5061 Ilya Verbin <ilya.verbin@intel.com>
5062 Kirill Yukhin <kirill.yukhin@intel.com>
5063 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5064
5065 * config/i386/sse.md
5066 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
5067 Use `concat_tg_mode' attribute to determine asm register size.
5068
5069 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5070 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5071 Anna Tikhonova <anna.tikhonova@intel.com>
5072 Ilya Tocar <ilya.tocar@intel.com>
5073 Andrey Turetskiy <andrey.turetskiy@intel.com>
5074 Ilya Verbin <ilya.verbin@intel.com>
5075 Kirill Yukhin <kirill.yukhin@intel.com>
5076 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5077
5078 * config/i386/sse.md
5079 (define_mode_iterator VI48_AVX512VL): New.
5080 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
5081 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
5082 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
5083 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5084 with VI1): Change mode iterator.
5085 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5086 with VI_ULOADSTORE_BW_AVX512VL): New.
5087 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5088 with VI_ULOADSTORE_F_AVX512VL): Ditto.
5089 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5090 with VI1): Change mode iterator.
5091 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5092 with VI_ULOADSTORE_BW_AVX512VL): New.
5093 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5094 with VI_ULOADSTORE_F_AVX512VL): Ditto.
5095 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5096 with VI1): Change mode iterator.
5097 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5098 with VI_ULOADSTORE_BW_AVX512VL): New.
5099 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5100 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
5101 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
5102 (define_insn "<avx512>_storedqu<mode>_mask" with
5103 VI48_AVX512VL): New.
5104 (define_insn "<avx512>_storedqu<mode>_mask" with
5105 VI12_AVX512VL): Ditto.
5106
5107 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5108 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5109 Anna Tikhonova <anna.tikhonova@intel.com>
5110 Ilya Tocar <ilya.tocar@intel.com>
5111 Andrey Turetskiy <andrey.turetskiy@intel.com>
5112 Ilya Verbin <ilya.verbin@intel.com>
5113 Kirill Yukhin <kirill.yukhin@intel.com>
5114 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5115
5116 * config/i386/sse.md
5117 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
5118 (define_mode_iterator VI48_AVX512BW): New.
5119 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
5120 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5121 with VI48_AVX2_48_AVX512F): New.
5122 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5123 with VI2_AVX512VL): Ditto.
5124
5125 2014-08-27 Richard Biener <rguenther@suse.de>
5126
5127 PR middle-end/62239
5128 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
5129 (fold_builtin_3): Do not fold strcat_chk here.
5130 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
5131 from builtins.c.
5132 (gimple_fold_builtin): Fold strcat_chk here.
5133
5134 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
5135
5136 * dwarf2out.h (dwarf2out_decl): Remove prototype.
5137 * dwarf2out.c (dwarf2out_decl): Make static.
5138
5139 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
5140
5141 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
5142
5143 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5144
5145 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
5146 from rtx to rtx_insn *.
5147 (cselib_lookup_from_insn): Likewise for final param.
5148 (cselib_subst_to_values_from_insn): Likewise.
5149 (cselib_add_permanent_equiv): Likewise.
5150
5151 * cselib.c (cselib_current_insn): Likewise for this variable.
5152 (cselib_subst_to_values_from_insn): Likewise for param "insn".
5153 (cselib_lookup_from_insn): Likewise.
5154 (cselib_add_permanent_equiv): Likewise for param "insn" and local
5155 "save_cselib_current_insn".
5156 (cselib_process_insn): Replace use of NULL_RTX with NULL.
5157
5158 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
5159 from rtx to rtx_insn *.
5160
5161 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5162
5163 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
5164 rtx_insn *.
5165
5166 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5167
5168 * df.h (df_dump_insn_problem_function): Strengthen first param of
5169 this callback from const_rtx to const rtx_insn *.
5170 (struct df_insn_info): Strengthen field "insn" from rtx to
5171 rtx_insn *.
5172 (DF_REF_INSN): Eliminate this function, reinstating the older
5173 macro definition.
5174 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
5175 (df_reg_defined): Likewise.
5176 (df_find_use): Likewise.
5177 (df_reg_used): Likewise.
5178 (df_dump_insn_top): Strengthen param 1 from const_rtx to
5179 const rtx_insn *.
5180 (df_dump_insn_bottom): Likewise.
5181 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
5182 (df_insn_debug_regno): Likewise.
5183 (debug_df_insn): Likewise.
5184 (df_rd_simulate_one_insn): Likewise for param 2.
5185 (df_word_lr_simulate_defs): Likewise for param 1.
5186 (df_word_lr_simulate_uses): Likewise.
5187 (df_md_simulate_one_insn): Likewise for param 2.
5188 (df_simulate_find_noclobber_defs): Likewise for param 1.
5189 (df_simulate_find_defs): Likewise.
5190 (df_simulate_defs): Likewise.
5191 (df_simulate_uses): Likewise.
5192 (df_simulate_one_insn_backwards): Likewise for param 2.
5193 (df_simulate_one_insn_forwards): Likewise.
5194 (df_uses_create): Likewise for param 2.
5195 (df_insn_create_insn_record): Likewise for param 1.
5196 (df_insn_delete): Likewise.
5197 (df_insn_rescan): Likewise.
5198 (df_insn_rescan_debug_internal): Likewise.
5199 (df_insn_change_bb): Likewise.
5200 (df_notes_rescan): Likewise.
5201 * rtl.h (remove_death): Likewise for param 2.
5202 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
5203 const rtx_insn *.
5204 * sched-int.h (reemit_notes): Strengthen param from rtx to
5205 rtx_insn *.
5206 * valtrack.h (propagate_for_debug): Likewise for param 1.
5207
5208 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
5209 local "tmp_rtx" from const_rtx to const rtx_insn *.
5210 * combine.c (remove_death): Strengthen param "insn" from rtx to
5211 rtx_insn *.
5212 (move_deaths): Likewise for local "where_dead".
5213 * cse.c (delete_trivially_dead_insns): Introduce local
5214 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
5215 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
5216 rtx_insn *.
5217 (df_reg_defined): Likewise.
5218 (df_find_use): Likewise.
5219 (df_reg_used): Likewise.
5220 (df_dump_insn_problem_data): Strengthen param "insn" from
5221 const_rtx to const rtx_insn *.
5222 (df_dump_insn_top): Likewise.
5223 (df_dump_insn_bottom): Likewise.
5224 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
5225 (df_insn_debug_regno): Likewise.
5226 (debug_df_insn): Likewise.
5227 (DF_REF_INSN): Delete.
5228 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
5229 from rtx to rtx_insn *.
5230 (df_chain_insn_top_dump): Strengthen param "insn" from
5231 const_rtx to const rtx_insn *.
5232 (df_chain_insn_bottom_dump): Likewise.
5233 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
5234 rtx_insn *.
5235 (df_word_lr_simulate_uses): Likewise.
5236 (df_print_note): Likewise.
5237 (df_remove_dead_and_unused_notes): Likewise.
5238 (df_set_unused_notes_for_mw): Likewise.
5239 (df_set_dead_notes_for_mw): Likewise.
5240 (df_create_unused_note): Likewise.
5241 (df_simulate_find_defs): Likewise.
5242 (df_simulate_find_uses): Likewise.
5243 (df_simulate_find_noclobber_defs): Likewise.
5244 (df_simulate_defs): Likewise.
5245 (df_simulate_uses): Likewise.
5246 (df_simulate_one_insn_backwards): Likewise.
5247 (df_simulate_one_insn_forwards): Likewise.
5248 (df_md_simulate_one_insn): Likewise.
5249 * df-scan.c (df_uses_create): Likewise.
5250 (df_insn_create_insn_record): Likewise.
5251 (df_insn_delete): Likewise.
5252 (df_insn_rescan): Likewise.
5253 (df_insn_rescan_debug_internal): Likewise.
5254 (df_insn_change_bb): Likewise.
5255 (df_notes_rescan): Likewise.
5256 (df_refs_add_to_chains): Likewise.
5257 (df_insn_refs_verify): Likewise.
5258 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
5259 when invoking df_insn_delete.
5260 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
5261 (set_unique_reg_note): Add checked cast.
5262 * final.c (cleanup_subreg_operands): Likewise.
5263 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
5264 "insn" from rtx to rtx_insn *.
5265 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
5266 "last" from rtx to rtx_insn *.
5267 * ira-emit.c (change_regs_in_insn): New function.
5268 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
5269 Invoke change_regs_in_insn rather than change_regs.
5270 * ira.c (update_equiv_regs): Strengthen locals "insn",
5271 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
5272 for_each_rtx_in_insn rather than for_each_rtx.
5273 * recog.c (confirm_change_group): Add checked casts.
5274 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
5275 Add checked cast.
5276 (peep2_fill_buffer): Add checked cast.
5277 * rtlanal.c (remove_note): Likewise.
5278 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
5279 locals "next" "end" from rtx to rtx_insn *.
5280
5281 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5282
5283 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
5284 to rtx_insn *.
5285 (struct reg_use_data): Likewise for field "insn".
5286 (insn_cost): Likewise for param.
5287 (real_insn_for_shadow): Likewise for return type and param.
5288 (increase_insn_priority): Likewise for param 1.
5289 (debug_dependencies): Likewise for both params.
5290
5291 * haifa-sched.c (insn_delay): Likewise for param "insn".
5292 (real_insn_for_shadow): Likewise for return type and param "insn".
5293 (update_insn_after_change): Likewise for param "insn".
5294 (recompute_todo_spec): Likewise for param "next" and locals "pro",
5295 "other".
5296 (insn_cost): Likewise for param "insn".
5297 (increase_insn_priority): Likewise.
5298 (calculate_reg_deaths): Likewise.
5299 (setup_insn_reg_pressure_info): Likewise.
5300 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
5301 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
5302 (model_recompute): Likewise.
5303 (must_restore_pattern_p): Likewise for param "next".
5304 (model_excess_cost): Likewise for param "insn".
5305 (queue_remove): Likewise.
5306 (adjust_priority): Likewise for param "prev".
5307 (update_register_pressure): Likewise for param "insn".
5308 (setup_insn_max_reg_pressure): Likewise for local "insn".
5309 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
5310 (model_add_to_schedule): Likewise.
5311 (model_reset_queue_indices): Likewise for local "insn".
5312 (unschedule_insns_until): Strengthen local "recompute_vec" from
5313 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
5314 "con" from rtx to rtx_insn *.
5315 (restore_last_backtrack_point): Likewise for both locals "x". Add
5316 checked casts.
5317 (estimate_insn_tick): Likewise for param "insn".
5318 (commit_schedule): Likewise for params "prev_head", "tail" and
5319 local "x".
5320 (verify_shadows): Likewise for locals "i1", "i2".
5321 (dump_insn_stream): Likewise for params "head", "tail" and locals
5322 "next_tail", "insn".
5323 (schedule_block): Likewise for locals "insn", "x". Add a checked
5324 cast.
5325 (fix_inter_tick): Likewise for params "head", "tail".
5326 (create_check_block_twin): Likewise for local "jump".
5327 (haifa_change_pattern): Likewise for param "insn".
5328 (haifa_speculate_insn): Likewise.
5329 (dump_new_block_header): Likewise for params "head", "tail".
5330 (fix_jump_move): Likewise for param "jump".
5331 (move_block_after_check): Likewise.
5332 (sched_init_insn_luid): Likewise for param "insn".
5333 (sched_init_luids): Likewise for local "insn".
5334 (insn_luid): Likewise for param "insn".
5335 (init_h_i_d): Likewise.
5336 (haifa_init_h_i_d): Likewise for local "insn".
5337 (haifa_init_insn): Likewise for param "insn".
5338 * sched-deps.c (add_dependence): Likewise for local "real_pro",
5339 "other".
5340 (create_insn_reg_use): Likewise for param "insn".
5341 (setup_insn_reg_uses): Likewise. Add a checked cast.
5342 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5343 "tail" from rtx to rtx_insn *.
5344 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5345 "insn", "next_tail".
5346
5347 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5348
5349 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5350 from rtx to rtx_insn *.
5351 (model_add_to_schedule): Likewise for locals "start", "end",
5352 "iter".
5353
5354 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5355
5356 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5357 rtx_insn *.
5358 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
5359 "to" and locals "insn", "next", "copy". Remove now-redundant
5360 checked cast.
5361
5362 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5363
5364 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5365 rtx_insn * and param 4 from rtx * to rtx_insn **.
5366 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5367 param 2 from rtx * to rtx_insn **.
5368
5369 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5370 rtx_insn * and final param from rtx * to rtx_insn **.
5371
5372 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5373 from rtx to rtx_insn *.
5374 (try_head_merge_bb): Likewise for both locals named "move_upto".
5375 * df-problems.c (can_move_insns_across): Likewise for params
5376 "from", "to", "across_from", "across_to" and locals "insn",
5377 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
5378 rtx_insn **.
5379 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5380 from rtx to rtx_insn *.
5381 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5382 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5383 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5384 rtx_insn *.
5385 (noce_try_abs): Likewise.
5386 (noce_get_condition): Likewise for param "jump". Strengthen param
5387 "earliest" from rtx * to rtx_insn **.
5388 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5389 rtx_insn *.
5390 (find_cond_trap): Likewise.
5391 (dead_or_predicable): Likewise for local "earliest".
5392 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
5393 checked cast.
5394 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5395 and local "prev". Strengthen param "earliest" from rtx * to
5396 rtx_insn **.
5397 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5398 Strengthen param "earliest" from rtx * to rtx_insn **.
5399
5400 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5401
5402 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5403 "to" and local "insn" from rtx to rtx_insn *.
5404
5405 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5406
5407 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5408 from rtx to rtx_insn *.
5409 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5410 (code_motion_path_driver): Likewise for local "last_insn".
5411 (simplify_changed_insns): Likewise for local "insn".
5412
5413 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5414
5415 * rtl.h (push_to_sequence): Strengthen param from rtx to
5416 rtx_insn *.
5417 (push_to_sequence2): Likewise for both params.
5418 (delete_insns_since): Likewise for param.
5419 (reorder_insns_nobb): Likewise for all three params.
5420 (set_new_first_and_last_insn): Likewise for both params.
5421
5422 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5423 rtx_insn *. Remove now-redundant cast.
5424 (set_last_insn): Likewise.
5425
5426 * builtins.c (expand_builtin_return): Strengthen local
5427 "call_fusage" from rtx to rtx_insn *.
5428 * cfgrtl.c (create_basic_block_structure): Likewise for local
5429 "after".
5430 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5431 "first", "last" and local "insn".
5432 (delete_insns_since): Likewise for param "from".
5433 (reorder_insns_nobb): Likewise for params "from", "to", "after"
5434 and local "x".
5435 (push_to_sequence): Likewise for param "first" and local "last".
5436 (push_to_sequence2): Likewise for params "first" and "last".
5437 * lra.c (emit_add3_insn): Likewise for local "last".
5438 (lra_emit_add): Likewise.
5439 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5440 "last_insn".
5441 (process_address_1): Likewise for locals "insn", last".
5442 * modulo-sched.c (ps_first_note): Likewise for return type.
5443 * optabs.c (expand_binop_directly): Likewise for param "last".
5444
5445 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5446
5447 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5448 to rtx_insn*.
5449 * emit-rtl.c (get_last_insn_anywhere): Likewise.
5450
5451 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5452
5453 * function.h (struct sequence_stack): Strengthen fields "first"
5454 and "last" from rtx to rtx_insn *.
5455 (struct emit_status): Likewise for fields "x_first_insn" and
5456 "x_last_insn".
5457
5458 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5459 (set_first_insn): Add checked cast.
5460 (get_last_insn): Remove now-redundant checked cast.
5461 (set_last_insn): Add checked cast.
5462
5463 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5464 "saved_first" and "saved_last" from rtx to rtx_insn *.
5465
5466 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5467
5468 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5469 (unlink_insn_chain): Strengthen both params from rtx to
5470 rtx_insn *.
5471
5472 * cfgrtl.c (cfg_layout_function_header): Likewise for this
5473 variable.
5474 (unlink_insn_chain): Likewise for params "first" and "last".
5475 Remove now-redundant checked cast.
5476 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5477 (fixup_reorder_chain): Strengthen local "insn" from rtx to
5478 rtx_insn *.
5479 * emit-rtl.c (link_insn_into_chain): Likewise for all three
5480 params.
5481 (add_insn): Likewise for param "insn" and local "prev".
5482 (add_insn_after_nobb): Likewise for both params and local "next".
5483 (add_insn_before_nobb): Likewise for both params and local "prev".
5484 (add_insn_after): Rename param "after" to "uncast_after",
5485 introducing local "after" with another checked cast.
5486 (add_insn_before): Rename params "insn" and "before", giving them
5487 "uncast_" prefixes, adding the old names back using checked casts.
5488 (emit_note_after): Likewise for param "after".
5489 (emit_note_before): Likewise for param "before".
5490 (emit_label): Add a checked cast.
5491
5492 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5493
5494 * cselib.h (cselib_record_sets_hook): Strengthen initial param
5495 "insn" from rtx to rtx_insn *.
5496
5497 * cselib.c (cselib_record_sets_hook): Likewise.
5498
5499 * var-tracking.c (add_with_sets): Likewise, renaming back from
5500 "uncast_insn" to "insn" and eliminating the checked cast from rtx
5501 to rtx_insn *.
5502
5503 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5504
5505 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5506 and "header_" from rtx to rtx_insn *.
5507 (struct basic_block_d): Likewise for field "head_" within "x"
5508 field of union basic_block_il_dependent.
5509 (BB_HEAD): Drop function...
5510 (SET_BB_HEAD): ...and this function in favor of...
5511 (BB_HEAD): ...reinstate macro.
5512 (BB_END): Drop function...
5513 (SET_BB_END): ...and this function in favor of...
5514 (BB_END): ...reinstate macro.
5515 (BB_HEADER): Drop function...
5516 (SET_BB_HEADER): ...and this function in favor of...
5517 (BB_HEADER): ...reinstate macro.
5518
5519 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5520 (fix_crossing_unconditional_branches): Likewise.
5521 * caller-save.c (save_call_clobbered_regs): Likewise.
5522 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5523 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5524 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5525 (merge_blocks_move_successor_nojumps): Likewise.
5526 (outgoing_edges_match): Update use of for_each_rtx to
5527 for_each_rtx_in_insn.
5528 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5529 (expand_gimple_cond): Likewise.
5530 (expand_gimple_tailcall): Likewise.
5531 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5532 SET_BB_END.
5533 (construct_exit_block): Drop use of SET_BB_END.
5534 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5535 rtx_insn *.
5536 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5537 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5538 SET_BB_HEAD and SET_BB_END.
5539 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5540 SET_BB_END.
5541 (rtl_delete_block): Drop use of SET_BB_HEAD.
5542 (rtl_split_block): Drop use of SET_BB_END.
5543 (emit_nop_for_unique_locus_between): Likewise.
5544 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5545 (block_label): Drop use of SET_BB_HEAD.
5546 (fixup_abnormal_edges): Drop use of SET_BB_END.
5547 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5548 (relink_block_chain): Likewise.
5549 (fixup_reorder_chain): Drop use of SET_BB_END.
5550 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5551 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5552 rtx_insn **. Drop use of SET_BB_HEADER.
5553 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5554 SET_BB_HEAD.
5555 (BB_HEAD): Delete this function.
5556 (SET_BB_HEAD): Likewise.
5557 (BB_END): Likewise.
5558 (SET_BB_END): Likewise.
5559 (BB_HEADER): Likewise.
5560 (SET_BB_HEADER): Likewise.
5561 * emit-rtl.c (add_insn_after): Rename param "insn" to
5562 "uncast_insn", adding a new local "insn" and a checked cast to
5563 rtx_insn *. Drop use of SET_BB_END.
5564 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5565 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5566 (reorder_insns): Drop use of SET_BB_END.
5567 (emit_insn_after_1): Strengthen param "first" and locals "last",
5568 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5569 (emit_pattern_after_noloc): Add checked cast.
5570 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5571 (restore_other_notes): Likewise.
5572 (move_insn): Likewise.
5573 (sched_extend_bb): Likewise.
5574 (fix_jump_move): Likewise.
5575 * ifcvt.c (noce_process_if_block): Likewise.
5576 (dead_or_predicable): Likewise.
5577 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5578 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5579 * sel-sched-ir.c (sel_move_insn): Likewise.
5580 * sel-sched.c (move_nop_to_previous_block): Likewise.
5581
5582 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5583 SET_BB_END.
5584 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5585
5586 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5587
5588 * basic-block.h (create_basic_block_structure): Strengthen params
5589 1 "head" and 2 "end" from rtx to rtx_insn *.
5590 * cfgrtl.c (create_basic_block_structure): Likewise.
5591 (rtl_create_basic_block): Update casts from void * to rtx to
5592 rtx_insn *, so that we can pass them as rtx_insn * to
5593 create_basic_block_structure.
5594 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5595
5596 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5597
5598 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5599 rtx_insn **.
5600 (check_for_inc_dec): Strengthen param "insn" from rtx to
5601 rtx_insn *.
5602
5603 * cselib.h (cselib_process_insn): Likewise.
5604
5605 * cselib.c (cselib_record_sets): Likewise.
5606 (cselib_process_insn): Likewise.
5607
5608 * dse.c (struct insn_info): Likewise for field "insn".
5609 (check_for_inc_dec_1): Likewise for local "insn".
5610 (check_for_inc_dec): Likewise for param "insn".
5611 (scan_insn): Likewise.
5612 (dse_step1): Likewise for local "insn".
5613
5614 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5615 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5616
5617 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5618
5619 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5620 from rtx to rtx_insn *.
5621 (DEP_PRO): Delete this function and...
5622 (SET_DEP_PRO): ...this function in favor of...
5623 (DEP_PRO): ...reinstate this macro.
5624 (DEP_CON): Delete this function and...
5625 (SET_DEP_CON): ...this function in favor of...
5626 (DEP_CON): ...reinstate this old macro.
5627 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5628 (init_dep): Likewise.
5629 (set_priorities): Likewise for both params.
5630 (sd_copy_back_deps): Likewise for params 1 and 2.
5631
5632 * haifa-sched.c (priority): Likewise for param "insn" and local
5633 "next".
5634 (set_priorities): Likewise for params "head" and "tail" and local
5635 "insn".
5636 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5637 local "consumer".
5638 (add_to_speculative_block): Add a checked cast.
5639 (create_check_block_twin): Drop use of SET_DEP_CON.
5640 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5641 rtx to rtx_insn *.
5642
5643 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5644 Drop use of SET_DEP_PRO
5645 (init_dep): Strengthen params "pro" and "con" from rtx to
5646 rtx_insn *.
5647 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5648 use of SET_DEP_CON.
5649 (DEP_PRO): Delete.
5650 (DEP_CON): Delete.
5651 (SET_DEP_PRO): Delete.
5652 (SET_DEP_CON): Delete.
5653
5654 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5655
5656 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5657 from rtx to rtx_insn *.
5658 (VINSN_INSN_RTX): Eliminate rvalue function and...
5659 (SET_VINSN_INSN): ...lvalue function in favor of...
5660 (VINSN_INSN_RTX): reinstate this old macro.
5661
5662 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5663 in favor of VINSN_INSN_RTX.
5664 (VINSN_INSN_RTX): Delete this function.
5665 (SET_VINSN_INSN_RTX): Likewise.
5666
5667 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5668
5669 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5670 (BND_TO): Delete this function and...
5671 (SET_BND_TO): ...this functions in favor of...
5672 (BND_TO): ...reinstating this macro.
5673 (struct _fence): Strengthen field "executing_insns" from
5674 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5675 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5676 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5677 and param "insn" from rtx to insn_t.
5678 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5679 rtx_insn *.
5680
5681 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5682 vec<rtx_insn *> .
5683 (rtx_vec_t): Likewise.
5684 (struct sched_deps_info_def): Strengthen param of "start_insn"
5685 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5686 "note_mem_dep" callback and first param of "note_dep" callback.
5687
5688 * haifa-sched.c (add_to_speculative_block): Strengthen param
5689 "insn" from rtx to rtx_insn *.
5690 (clear_priorities): Likewise.
5691 (calc_priorities): Likewise for local "insn".
5692
5693 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5694 Remove redundant checked cast.
5695 (haifa_note_mem_dep): Likewise for param "pending_insn".
5696 (haifa_note_dep): Likewise for param "elem".
5697 (note_mem_dep): Likewise for param "e".
5698 (sched_analyze_1): Add checked casts.
5699 (sched_analyze_2): Likewise.
5700
5701 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5702 from rtx to rtx_insn *.
5703 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5704 from vec<rtx> * to vec<rtx_insn *> *.
5705
5706 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5707 scaffolding.
5708 (flist_add): Strengthen param "executing_insns" from
5709 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5710 (advance_deps_context): Remove now-redundant checked cast.
5711 (init_fences): Replace uses of NULL_RTX with NULL.
5712 (merge_fences): Strengthen params "last_scheduled_insn" and
5713 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5714 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5715 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5716 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5717 an instruction, rather than doing double-duty as a pattern.
5718 (return_nop_to_pool): Update for change of insn_t.
5719 (deps_init_id): Remove now-redundant checked cast.
5720 (struct sched_scan_info_def): Strengthen param of "init_insn"
5721 callback from rtx to insn_t.
5722 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5723 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5724 NULL.
5725 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5726 "end" from rtx to rtx_insn *.
5727 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5728 (rtx insn_rtx, bool force_unique_p)
5729 (BND_TO): Delete function.
5730 (SET_BND_TO): Delete function.
5731
5732 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5733 rtx to rtx_insn *.
5734 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5735 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5736 rtx to rtx_insn *.
5737 (undo_transformations): Likewise for param "insn".
5738 (update_liveness_on_insn): Likewise.
5739 (compute_live_below_insn): Likewise for param "insn" and local
5740 "succ".
5741 (update_data_sets): Likewise for param "insn".
5742 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5743 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5744 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5745 rtx_insn *.
5746 (move_cond_jump): Likewise for param "insn".
5747 (move_cond_jump): Drop use of SET_BND_TO.
5748 (compute_av_set_on_boundaries): Likewise.
5749 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5750 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5751 from rtx to rtx_insn *.
5752 (maybe_emit_renaming_copy): Likewise for param "insn".
5753 (maybe_emit_speculative_check): Likewise.
5754 (handle_emitting_transformations): Likewise.
5755 (remove_insn_from_stream): Likewise.
5756 (code_motion_process_successors): Strengthen local "succ" from rtx
5757 to insn_t.
5758
5759 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5760
5761 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5762 ilist_t, not _xlist_t;
5763 (ILIST_INSN): Define in terms of new union field "insn".
5764 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5765 _XLIST_NEXT.
5766 (struct _list_node): Add new field "insn" to the union, of type
5767 insn_t.
5768 (ilist_add): Replace macro with an inline function, requiring an
5769 insn_t.
5770 (ilist_remove): Define this macro directly in terms of
5771 _list_remove, rather than indirectly via _xlist_remove.
5772 (ilist_clear): Likewise, in terms of _list_clear rather than
5773 _xlist_clear.
5774 (ilist_is_in_p): Replace macro with an inline function, requiring
5775 an insn_t.
5776 (_list_iter_cond_insn): New function.
5777 (ilist_iter_remove): Define this macro directly in terms of
5778 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5779 (ilist_iterator): Define directly in terms of _list_iterator
5780 rather than indirectly through _xlist_iterator.
5781 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5782 than in terms of _FOR_EACH_X.
5783 (FOR_EACH_INSN_1): Likewise.
5784
5785 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5786
5787 PR target/60606
5788 PR target/61330
5789 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5790 DECL_HARD_REGISTER and return for invalid register specifications.
5791 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5792 DECL_HARD_REGISTER, call expand_one_error_var.
5793 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5794 CC_REGNUM with non-MODE_CC modes.
5795 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5796
5797 2014-08-26 Marek Polacek <polacek@redhat.com>
5798
5799 PR c/61271
5800 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5801
5802 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5803
5804 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5805 qi cost; add di cost.
5806 (cortexa57_addrcost_table): Likewise.
5807
5808 2014-08-26 Marek Polacek <polacek@redhat.com>
5809
5810 PR c/61271
5811 * expr.c (is_aligning_offset): Remove logical not.
5812
5813 2014-08-26 Marek Polacek <polacek@redhat.com>
5814
5815 PR c/61271
5816 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5817 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5818
5819 2014-08-26 Richard Biener <rguenther@suse.de>
5820
5821 PR tree-optimization/62175
5822 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5823 expand possibly trapping operations.
5824
5825 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5826
5827 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5828 "insn" from rtx to rtx_insn *.
5829 (permute_load): Likewise for param "insn".
5830 (permute_store): Likewise.
5831 (handle_special_swappables): Likewise for local "insn".
5832 (replace_swap_with_copy): Likewise for locals "insn" and
5833 "new_insn".
5834 (rs6000_analyze_swaps): Likewise for local "insn".
5835
5836 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5837
5838 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5839 to rtx_insn *.
5840
5841 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5842
5843 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5844 "note_list" from rtx to rtx_insn *.
5845 (BB_NOTE_LIST): Replace this function and...
5846 (SET_BB_NOTE_LIST): ...this function with...
5847 (BB_NOTE_LIST): ...the former macro implementation.
5848
5849 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5850 local "from_start" from rtx to rtx_insn *. Strengthen param
5851 "to_endp" from rtx * to rtx_insn **.
5852
5853 * haifa-sched.c (concat_note_lists): Likewise.
5854 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5855 BB_NOTE_LIST.
5856 (sel_restore_notes): Likewise.
5857 (move_bb_info): Likewise.
5858 (BB_NOTE_LIST): Delete this function.
5859 (SET_BB_NOTE_LIST): Delete this function.
5860 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5861 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5862
5863 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5864
5865 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5866 from rtx * to rtx_insn **.
5867 (reorder2): Likewise.
5868 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5869 from rtx to rtx_insn *.
5870
5871 * doc/tm.texi: Update mechanically for above change to target.def.
5872
5873 * sched-int.h (note_list): Strengthen this variable from rtx to
5874 rtx_insn *.
5875 (remove_notes): Likewise for both params.
5876 (restore_other_notes): Likewise for return type and first param.
5877 (struct ready_list): Strengthen field "vec" from rtx * to
5878 rtx_insn **.
5879 (struct dep_replacement): Strenghten field "insn" from rtx to
5880 rtx_insn *.
5881 (struct deps_desc): Likewise for fields "last_debug_insn",
5882 "last_args_size".
5883 (struct haifa_sched_info): Likewise for callback field
5884 "can_schedule_ready_p"'s param, for first param of "new_ready"
5885 callback field, for both params of "rank" callback field, for
5886 first field of "print_insn" callback field (with a const), for
5887 both params of "contributes_to_priority" callback, for param
5888 of "insn_finishes_block_p" callback, for fields "prev_head",
5889 "next_tail", "head", "tail", for first param of "add_remove_insn"
5890 callback, for first param of "begin_schedule_ready" callback, for
5891 both params of "begin_move_insn" callback, and for second param
5892 of "advance_target_bb" callback.
5893 (add_dependence): Likewise for params 1 and 2.
5894 (sched_analyze): Likewise for params 2 and 3.
5895 (deps_analyze_insn): Likewise for param 2.
5896 (ready_element): Likewise for return type.
5897 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5898 (try_ready): Strenghten param from rtx to rtx_insn *.
5899 (sched_emit_insn): Likewise for return type.
5900 (record_delay_slot_pair): Likewise for params 1 and 2.
5901 (add_delay_dependencies): Likewise for param.
5902 (contributes_to_priority): Likewise for both params.
5903 (find_modifiable_mems): Likewise.
5904
5905 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5906 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5907 "first_older_only_insn" from rtx to rtx_insn *.
5908 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5909 rtx_insn **.
5910
5911 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5912 "last_scheduled_iter0" from rtx to rtx_insn *.
5913 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5914 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5915 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5916 "insn" from rtx to rtx_insn *.
5917 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5918 rtx_insn **.
5919 (c6x_sched_reorder2): Strengthen param "ready" and locals
5920 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5921 "insn" from rtx to rtx_insn *.
5922 (c6x_variable_issue): Add a checked cast when assigning from insn
5923 to ss.last_scheduled_iter0.
5924 (split_delayed_branch): Strengthen param "insn" and local "i1"
5925 from rtx to rtx_insn *.
5926 (split_delayed_nonbranch): Likewise.
5927 (undo_split_delayed_nonbranch): Likewise for local "insn".
5928 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5929 "entry_after", "end_packet", "head_insn", "tail_insn",
5930 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5931 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5932 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5933 but add a checked cast on loop->start_label. Consolidate calls to
5934 avoid assigning result of gen_spkernel to "insn", now an
5935 rtx_insn *.
5936
5937 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5938 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5939 rtx to rtx_insn *.
5940 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5941 rtx_insn **. Strengthen locals "top", "next" from rtx to
5942 rtx_insn *.
5943 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5944 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5945 (add_parameter_dependencies): Strengthen params "call", "head" and
5946 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5947 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5948 (add_dependee_for_func_arg): Likewise for param "arg" and local
5949 "insn".
5950 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5951 "tail" and locals "insn", "first_arg".
5952
5953 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5954 for params "head", "tail" and locals "insn", "next", "next_tail".
5955 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5956 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5957 "insn", "lowest", "highest" from rtx to rtx_insn *.
5958 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5959 rtx_insn **.
5960 (ia64_sched_reorder2): Likewise.
5961
5962 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5963 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5964 from rtx * to rtx_insn **.
5965 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5966 rtx_insn **.
5967 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5968 rtx_insn *.
5969 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5970 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5971 to rtx_insn *.
5972
5973 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5974 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5975 to rtx_insn *.
5976 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5977 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5978 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5979 rtx_insn **.
5980 (vr4130_reorder): Likewise.
5981 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5982 rtx to rtx_insn *.
5983 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5984 rtx_insn **.
5985 (mips_sched_reorder): Likewise.
5986 (mips_sched_reorder2): Likewise.
5987
5988 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5989
5990 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5991 Strengthen local "tmp" from rtx to rtx_insn *.
5992 (rs6000_sched_reorder2): Likewise.
5993
5994 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5995 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5996 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5997 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5998
5999 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
6000 "tmp2" from rtx to rtx_insn *.
6001 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
6002 Strengthen local "insn" from rtx to rtx_insn *.
6003 (ready_reorder): Strengthen param "ready" from rtx * to
6004 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
6005 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
6006 (sh_reorder2): Likewise.
6007
6008 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
6009 local "insn" from rtx to rtx_insn *.
6010
6011 * haifa-sched.c (note_list): Strengthen this variable from rtx to
6012 rtx_insn *.
6013 (scheduled_insns): Strengthen this variable from vec<rtx> to
6014 vec<rtx_insn *>.
6015 (set_modulo_params): Likewise for locals "i1", "i2".
6016 (record_delay_slot_pair): Likewise for params "i1", "i2".
6017 (add_delay_dependencies): Likewise for param "insn".
6018 (cond_clobbered_p): Likewise.
6019 (recompute_todo_spec): Likewise for local "prev".
6020 (last_scheduled_insn): Likewise for this variable.
6021 (nonscheduled_insns_begin): Likewise.
6022 (model_set_excess_costs): Strengthen param "insns" from rtx * to
6023 rtx_insn **.
6024 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
6025 rtx_insn *.
6026 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
6027 Strengthen local "insn" from rtx to rtx_insn *.
6028 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
6029 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6030 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
6031 (ready_remove_first): Likewise for return type and local "t".
6032 (ready_element): Likewise for return type.
6033 (ready_remove): Likewise for return type and local "t".
6034 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
6035 (check_clobbered_conditions): Strengthen local "x" from rtx to
6036 rtx_insn *, adding a checked cast.
6037 (schedule_insn): Likewise for param "insn".
6038 (remove_notes): Likewise for params "head", "tail" and locals
6039 "next_tail", "insn", "next".
6040 (struct haifa_saved_data): Likewise for fields
6041 "last_scheduled_insn", "nonscheduled_insns_begin".
6042 (save_backtrack_point): Update for change to field "vec" of
6043 struct ready_list.
6044 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
6045 rtx_insn **.
6046 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
6047 from rtx to rtx_insn *
6048 (resolve_dependencies): Strengthen param "insn" from rtx to
6049 rtx_insn *
6050 (restore_other_notes): Likewise for return type, for param "head"
6051 and local "note_head".
6052 (undo_all_replacements): Likewise for local "insn".
6053 (first_nonscheduled_insn): Likewise for return type and local "insn".
6054 (queue_to_ready): Likewise for local "insn", adding checked casts.
6055 (early_queue_to_ready): Likewise for local "insn".
6056 (debug_ready_list_1): Strengthen local "p" from rtx * to
6057 rtx_insn **.
6058 (move_insn): Strengthen param "insn" and local "note" from rtx to
6059 rtx_insn *
6060 (insn_finishes_cycle_p): Likewise for param "insn".
6061 (max_issue): Likewise for local "insn".
6062 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
6063 to rtx_insn **.
6064 (commit_schedule): Strengthen param "prev_head" and local "insn"
6065 from rtx to rtx_insn *
6066 (prune_ready_list): Likewise for local "insn".
6067 (schedule_block): Likewise for locals "prev_head", "head", "tail",
6068 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
6069 (set_priorities): Likewise for local "prev_head".
6070 (try_ready): Likewise for param "next".
6071 (fix_tick_ready): Likewise.
6072 (change_queue_index): Likewise.
6073 (sched_extend_ready_list): Update for change to field "vec" of
6074 struct ready_list.
6075 (generate_recovery_code): Strengthen param "insn" from rtx to
6076 rtx_insn *.
6077 (begin_speculative_block): Likewise.
6078 (create_check_block_twin): Likewise for param "insn" and locals
6079 "label", "check", "twin". Introduce local "check_pat" to avoid
6080 "check" being used as a plain rtx before being used as an insn.
6081 (fix_recovery_deps): Add a checked cast to rtx_insn * when
6082 extracting elements from ready_list.
6083 (sched_remove_insn): Strengthen param "insn" from rtx to
6084 rtx_insn *.
6085 (sched_emit_insn): Likewise for return type.
6086 (ready_remove_first_dispatch): Likewise for return type and local
6087 "insn".
6088
6089 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
6090
6091 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
6092 const rtx_insn *.
6093
6094 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
6095 from rtx to rtx_insn *.
6096 (add_dependence_list): Likewise for param "insn". Add a checked
6097 cast.
6098 (add_dependence_list_and_free): Strengthen param "insn" from rtx
6099 to rtx_insn *. Strengthen param "list_p" from rtx * to
6100 rtx_insn **.
6101 (chain_to_prev_insn): Strengthen param "insn" and locals
6102 "prec_nonnote", "i" from rtx to rtx_insn *.
6103 (flush_pending_lists): Likewise for param "insn".
6104 (cur_insn): Likewise for this variable.
6105 (haifa_start_insn): Add a checked cast.
6106 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
6107 (sched_analyze_reg): Likewise for param "insn".
6108 (sched_analyze_1): Likewise.
6109 (sched_analyze_2): Likewise. Add checked casts.
6110 (sched_analyze_insn): Likewise. Also for local "prev".
6111 (deps_analyze_insn): Likewise for param "insn".
6112 (sched_analyze): Likewise for params "head", "tail" and local "insn".
6113 (add_dependence_1): Likewise for params "insn", "elem".
6114 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
6115 (parse_add_or_inc): Likewise for param "insn".
6116 (find_inc): Likewise for local "inc_cand".
6117 (find_modifiable_mems): Likewise for params "head", "tail" and
6118 locals "insn", "next_tail".
6119
6120 * sched-ebb.c (init_ready_list): Likewise for local "insn".
6121 (begin_schedule_ready): Likewise for param "insn".
6122 (begin_move_insn): Likewise for params "insn" and "last".
6123 (ebb_print_insn): Strengthen param "insn" from const_rtx to
6124 const rtx_insn *.
6125 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
6126 (ebb_contributes_to_priority): Likewise for params "next", "insn".
6127 (ebb_add_remove_insn): Likewise for param "insn".
6128 (advance_target_bb): Likewise.
6129
6130 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
6131 "insn".
6132 (check_live): Likewise for param "insn".
6133 (init_ready_list): Likewise for local "insn".
6134 (can_schedule_ready_p): Likewise for param "insn".
6135 (begin_schedule_ready): Likewise.
6136 (new_ready): Likewise for param "next".
6137 (rgn_print_insn): Likewise for param "insn".
6138 (rgn_rank): Likewise for params "insn1", "insn2".
6139 (contributes_to_priority): Likewise for params "next", "insn".
6140 (rgn_insn_finishes_block_p): Likewise for param "insn".
6141 (add_branch_dependences): Likewise for params "head", "tail" and
6142 locals "insn", "last".
6143 (rgn_add_remove_insn): Likewise for param "insn".
6144 (advance_target_bb): Likewise.
6145
6146 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
6147 const_rtx to const rtx_insn *.
6148
6149 * sel-sched-dump.h (sel_print_insn): Likewise.
6150
6151 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
6152 (deps_init_id): Likewise.
6153
6154 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
6155 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
6156 rtx_insn **.
6157
6158 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6159
6160 * output.h (final_start_function): Strengthen param 1 from rtx to
6161 rtx_insn *.
6162
6163 * final.c (final_start_function): Likewise, renaming back from
6164 "uncast_first" to "first", and dropping the checked cast from rtx
6165 to rtx_insn *.
6166
6167 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6168
6169 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
6170 * final.c (final): Likewise. Rename param back from
6171 "uncast_first" to "first" and eliminate the checked cast from rtx
6172 to rtx_insn *.
6173
6174 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6175
6176 * output.h (shorten_branches): Strengthen param from rtx to
6177 rtx_insn *.
6178
6179 * final.c (shorten_branches): Likewise, renaming param back from
6180 "uncast_first" to "first", and dropping the checked cast from rtx
6181 to rtx_insn *.
6182
6183 * genattr.c (gen_attr): Likewise when writing out the prototype of
6184 shorten_branches.
6185
6186 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6187
6188 * sched-int.h (struct haifa_sched_info): Strengthen fields
6189 "prev_head" and "next_tail" from rtx to rtx_insn *.
6190
6191 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6192
6193 * rtl.h (rtx_jump_table_data::get_labels): New method.
6194 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
6195 with use of the new rtx_jump_table_data::get_labels method.
6196 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
6197 to rtx_jump_table_data *. Simplify by using get_labels method.
6198 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
6199 a dyn_cast, introducing local "table", using it to replace
6200 label-lookup logic with a get_labels method call.
6201 (patch_jump_insn): Simplify using get_labels method.
6202 * dwarf2cfi.c (create_trace_edges): Likewise.
6203 * rtlanal.c (label_is_jump_target_p): Likewise.
6204
6205 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6206
6207 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
6208 to rtx_insn *.
6209
6210 * emit-rtl.c (unshare_all_rtl_1): Likewise.
6211 (unshare_all_rtl_again): Likewise, also for local "p".
6212
6213 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6214
6215 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
6216 to rtx_insn *.
6217 * cfgrtl.c (delete_insn_and_edges): Likewise.
6218
6219 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6220
6221 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
6222 from rtx to rtx_insn *.
6223
6224 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
6225
6226 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6227
6228 * function.c (thread_prologue_and_epilogue_insns): Likewise for
6229 locals "returnjump", "epilogue_end", "insn", "next".
6230
6231 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
6232 "returnjump" from rtx * to rtx_insn **.
6233 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
6234
6235 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6236
6237 * basic-block.h (struct edge_def). Strengthen "r" within
6238 union edge_def_insns from rtx to rtx_insn *.
6239
6240 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
6241 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
6242 rtx_insn *.
6243 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
6244 from rtx to rtx_insn *.
6245 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
6246 rtx_insn *.
6247 * postreload-gcse.c (reg_killed_on_edge): Likewise.
6248 (reg_used_on_edge): Likewise.
6249 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
6250 (gt_pch_nx): New overload for rtx_insn *&.
6251 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
6252 from rtx to rtx_insn *.
6253
6254 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6255
6256 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
6257 from rtx to rtx_insn *.
6258 (BB_FOOTER): Replace function with access macro.
6259 (SET_BB_FOOTER): Delete.
6260
6261 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
6262 with BB_FOOTER.
6263 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6264 (emit_barrier_after_bb): Likewise.
6265 (record_effective_endpoints): Likewise.
6266 (relink_block_chain): Likewise.
6267 (fixup_fallthru_exit_predecessor): Likewise.
6268 (cfg_layout_duplicate_bb): Likewise.
6269 (cfg_layout_split_block): Likewise.
6270 (cfg_layout_delete_block): Likewise.
6271 (cfg_layout_merge_blocks): Likewise.
6272 (BB_FOOTER): Delete function.
6273 (SET_BB_FOOTER): Delete function.
6274 * combine.c (update_cfg_for_uncondjump): Replace uses of
6275 SET_BB_FOOTER with BB_FOOTER.
6276
6277 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6278
6279 * except.h (struct eh_landing_pad_d): Strengthen field
6280 "landing_pad" from rtx to rtx_code_label *.
6281
6282 * except.c (sjlj_emit_dispatch_table): Likewise for param
6283 "dispatch_label"
6284 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
6285
6286 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6287
6288 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
6289 first param from rtx to rtx_insn *.
6290 * config/xtensa/xtensa.c (struct machine_function): Likewise for
6291 field "set_frame_ptr_insn".
6292 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
6293 "csend" from rtx to rtx_code_label *.
6294 (xtensa_expand_atomic): Likewise for local "csloop".
6295 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
6296 rtx_insn *.
6297 (xtensa_call_tls_desc): Likewise for return type and locals
6298 "call_insn", "insns".
6299 (xtensa_legitimize_tls_address): Likewise for local "insns".
6300 (xtensa_expand_prologue): Likewise for locals "insn", "first".
6301
6302 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6303
6304 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
6305 first param from rtx to rtx_insn *.
6306 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
6307 "insn".
6308
6309 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6310
6311 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
6312 Strengthen param 1 from rtx to rtx_insn *.
6313 (tilepro_output_cbranch): Likewise.
6314 (tilepro_adjust_insn_length): Likewise.
6315 (tilepro_final_prescan_insn): Likewise for sole param.
6316
6317 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
6318 Likewise for local "last".
6319 (cbranch_predicted_p): Likewise for param "insn".
6320 (tilepro_output_simple_cbranch_with_opcode): Likewise.
6321 (tilepro_output_cbranch_with_opcode): Likewise.
6322 (tilepro_output_cbranch): Likewise.
6323 (frame_emit_load): Likewise for return type and locals "seq",
6324 "insn".
6325 (emit_sp_adjust): Likewise for return type and local "insn".
6326 (tilepro_expand_epilogue): Likewise for locals "last_insn",
6327 "insn".
6328 (tilepro_adjust_insn_length): Likewise for param "insn".
6329 (next_insn_to_bundle): Likewise for return type and params
6330 "r", "end".
6331 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6332 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6333 local "new_insns".
6334 (match_addli_pcrel): Likewise for param "insn".
6335 (replace_addli_pcrel): Likewise.
6336 (match_auli_pcrel): Likewise.
6337 (replace_auli_pcrel): Likewise.
6338 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6339 "next_insn".
6340 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6341 "queue", "next_queue", "prev".
6342 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6343 (tilepro_final_prescan_insn): Likewise for param "insn".
6344
6345 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6346
6347 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6348 Strengthen param 1 from rtx to rtx_insn *.
6349 (tilegx_output_cbranch): Likewise.
6350 (tilegx_adjust_insn_length): Likewise.
6351 (tilegx_final_prescan_insn): Likewise for sole param.
6352
6353 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6354 or local "last".
6355 (cbranch_predicted_p): Likewise for param "insn".
6356 (tilegx_output_simple_cbranch_with_opcode): Likewise.
6357 (tilegx_output_cbranch_with_opcode): Likewise.
6358 (tilegx_output_cbranch): Likewise.
6359 (frame_emit_load): Likewise for return type.
6360 (set_frame_related_p): Likewise for locals "seq", "insn".
6361 (emit_sp_adjust): Likewise for return type, and for local "insn".
6362 Introduce local "pat" for use in place of "insn" where the latter
6363 isn't an instruction.
6364 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6365 from rtx to rtx_insn *.
6366 (tilegx_adjust_insn_length): Likewise for param "insn".
6367 (next_insn_to_bundle): Likewise for return type and params "r" and
6368 "end".
6369 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6370 "end".
6371 (replace_insns): Likewise for params "old_insn", "new_insns".
6372 (replace_mov_pcrel_step1): Likewise for param "insn" and local
6373 "new_insns".
6374 (replace_mov_pcrel_step2): Likewise.
6375 (replace_mov_pcrel_step3): Likewise.
6376 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6377 "next_insn".
6378 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6379 "queue", "next_queue", "prev".
6380 (tilegx_output_mi_thunk): Likewise for local "insn".
6381 (tilegx_final_prescan_insn): Likewise for param "insn".
6382
6383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6384
6385 * config/spu/spu.c (frame_emit_store): Strengthen return type from
6386 rtx to rtx_insn *.
6387 (frame_emit_load): Likewise.
6388 (frame_emit_add_imm): Likewise, also for local "insn".
6389 (spu_expand_prologue): Likewise for local "insn".
6390 (struct spu_bb_info): Likewise for field "prop_jump".
6391 (emit_nop_for_insn): Likewise for param "insn" and local
6392 "new_insn".
6393 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6394 "hbr_insn".
6395 (spu_emit_branch_hint): Likewise for params "before", "branch" and
6396 locals "hint", "insn".
6397 (get_branch_target): Likewise for param "branch".
6398 (insn_clobbers_hbr): Likewise for param "insn".
6399 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6400 locals "insn", "before_4", "before_16".
6401 (insert_hbrp): Likewise for local "insn".
6402 (spu_machine_dependent_reorg): Likewise for locals "branch",
6403 "insn", "next", "bbend".
6404 (uses_ls_unit): Likewise for param "insn".
6405 (get_pipe): Likewise.
6406 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6407 introducing a checked cast.
6408 (spu_sched_adjust_cost): Likewise for params "insn" and
6409 "dep_insn".
6410 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6411 (spu_sms_res_mii): Likewise.
6412
6413 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6414
6415 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6416 from rtx to rtx_insn *.
6417 (output_cbranch): Likewise for param 6.
6418 (output_return): Likewise for param 1.
6419 (output_sibcall): Likewise.
6420 (output_v8plus_shift): Likewise.
6421 (output_v8plus_mult): Likewise.
6422 (output_v9branch): Likewise for param 7.
6423 (output_cbcond): Likewise for param 3.
6424
6425 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6426 for local "insn".
6427 (sparc_legitimize_pic_address): Likewise.
6428 (sparc_emit_call_insn): Likewise.
6429 (emit_save_or_restore_regs): Likewise.
6430 (emit_window_save): Likewise for return type and local "insn".
6431 (sparc_expand_prologue): Likewise for local "insn".
6432 (sparc_flat_expand_prologue): Likewise.
6433 (output_return): Likewise for param "insn".
6434 (output_sibcall): Likewise for param "insn" and local "delay".
6435 (output_ubranch): Likewise for param "insn".
6436 (output_cbranch): Likewise.
6437 (output_cbcond): Likewise.
6438 (output_v9branch): Likewise.
6439 (output_v8plus_shift): Likewise.
6440 (sparc_output_mi_thunk): Likewise for local "insn".
6441 (get_some_local_dynamic_name): Likewise.
6442 (output_v8plus_mult): Likewise for param "insn".
6443
6444 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6445
6446 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6447 from rtx to rtx_insn *.
6448 (output_branchy_insn): Likewise for param 3.
6449 (output_far_jump): Likewise for param 1.
6450 (final_prescan_insn): Likewise.
6451 (sh_insn_length_adjustment): Likewise for sole param.
6452
6453 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6454 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6455 rtx_code_label *.
6456 (sh_emit_compare_and_set): Likewise for local "lab".
6457 (output_far_jump): Strengthen param "insn" and local "prev" from
6458 rtx to rtx_insn *.
6459 (output_branchy_insn): Likewise for param "insn" and local
6460 "next_insn".
6461 (output_ieee_ccmpeq): Likewise for param "insn".
6462 (struct label_ref_list_d): Strengthen field "label" from rtx to
6463 rtx_code_label *.
6464 (pool_node): Likewise.
6465 (pool_window_label): Likewise for this global.
6466 (add_constant): Likewise for return type and locals "lab", "new_rtx".
6467 (dump_table): Strengthen params "start", "barrier" and local
6468 "scan" from rtx to rtx_insn *.
6469 (broken_move): Likewise for param "insn".
6470 (untangle_mova): Likewise for params "first_mova" and "new_mova".
6471 Strengthen param "first_mova" from rtx * to rtx_insn **.
6472 (mova_p): Likewise for param "insn".
6473 (fixup_mova): Likewise for param "mova".
6474 (find_barrier): Likewise for return type, params "mova" and
6475 "from", and locals "barrier_before_mova", "found_barrier",
6476 "good_barrier", "orig", "last_symoff", "next". Strengthen local
6477 "label" from rtx to rtx_code_label *.
6478 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6479 rtx to rtx_insn *.
6480 (sh_reorg): Likewise for locals "link", "scan", "barrier".
6481 (split_branches): Likewise for param "first" and local "insn".
6482 (final_prescan_insn): Likewise for param "insn".
6483 (sequence_insn_p): Likewise for locals "prev", "next".
6484 (sh_insn_length_adjustment): Likewise for param "insn".
6485 (sh_can_redirect_branch): Likewise for local "insn".
6486 (find_r0_life_regions): Likewise for locals "end", "insn".
6487 (sh_output_mi_thunk): Likewise for local "insns".
6488
6489 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6490
6491 * config/score/score.c (score_output_mi_thunk): Strengthen local
6492 "insn" from rtx to rtx_insn *.
6493 (score_prologue): Likewise.
6494
6495 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6496
6497 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6498 1 from rtx to rtx_insn *.
6499 (s390_emit_jump): Likewise for return type.
6500 (s390_emit_call): Likewise.
6501 (s390_load_got): Likewise.
6502
6503 * config/s390/s390.c (last_scheduled_insn): Likewise for this
6504 variable.
6505 (s390_match_ccmode): Likewise for param "insn".
6506 (s390_emit_jump): Likewise for return type.
6507 (s390_split_branches): Likewise for local "label".
6508 (struct constant): Strengthen field "label" from rtx to
6509 rtx_code_label *.
6510 (struct constant_pool): Likewise for field "label". Strengthen
6511 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6512 rtx_insn *.
6513 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6514 insns.
6515 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6516 (s390_end_pool): Likewise.
6517 (s390_dump_pool): Likewise for local "insn".
6518 (s390_mainpool_start): Likewise.
6519 (s390_chunkify_start): Likewise.
6520 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6521 with insns. Strengthen locals "label", "jump", "barrier", "next",
6522 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6523 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6524 rtx_insn *.
6525 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6526 "jump", "label", "next_insn".
6527 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6528 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6529 "tbegin_insn".
6530 (s390_load_got): Likewise for return type and local "insns".
6531 (s390_save_gprs_to_fprs): Likewise for local "insn".
6532 (s390_restore_gprs_from_fprs): Likewise.
6533 (pass_s390_early_mach::execute): Likewise.
6534 (s390_emit_prologue): Likewise for local "insns".
6535 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6536 rtx_code_label *.
6537 (s390_emit_call): Strengthen return type and local "insn" from
6538 rtx to rtx_insn *.
6539 (s390_emit_tpf_eh_return): Likewise for local "insn".
6540 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6541 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6542 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6543 local "cur_insn".
6544 (s390_non_addr_reg_read_p): Likewise for param "insn".
6545 (find_cond_jump): Likewise for return type and param "insn".
6546 (s390_swap_cmp): Likewise for param "insn".
6547 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6548 "prev_insn", "next_insn".
6549 (s390_reorg): Likewise for locals "insn", "target".
6550 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6551 (s390_sched_variable_issue): For now, rename param "insn" to
6552 "uncast_insn", introducing a checked cast.
6553 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6554 insn.
6555 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6556 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6557
6558 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6559
6560 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6561 param from rtx to rtx_insn *.
6562 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6563
6564 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6565
6566 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6567 4 from rtx to rtx_insn *.
6568 (rs6000_final_prescan_insn): Likewise for first param.
6569 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6570 local "insn".
6571 (rs6000_get_some_local_dynamic_name): Likewise.
6572 (output_cbranch): Likewise for param "insn".
6573 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6574 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6575 (rs6000_emit_allocate_stack): Likewise for local "insn".
6576 (load_cr_save): Likewise.
6577 (restore_saved_cr): Likewise.
6578 (restore_saved_lr): Likewise.
6579 (emit_cfa_restores): Likewise.
6580 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6581 "deleted_debug_label".
6582 (rs6000_output_mi_thunk): Likewise for local "insn".
6583 (rs6000_final_prescan_insn): Likewise for param "insn".
6584
6585 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6586
6587 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6588 Strengthen param "insn" from rtx to rtx_insn *.
6589 * config/picochip/picochip.c (picochip_current_prescan_insn):
6590 Likewise for this variable.
6591 (picochip_final_prescan_insn): Likewise for param "insn".
6592
6593 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6594
6595 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6596 from rtx to rtx_insn *.
6597 (pa_output_indirect_call): Likewise.
6598 (pa_adjust_insn_length): Likewise.
6599 (pa_attr_length_millicode_call): Likewise.
6600 (pa_attr_length_call): Likewise.
6601 (pa_attr_length_indirect_call): Likewise.
6602
6603 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6604 "insn".
6605 (pa_attr_length_millicode_call): Likewise.
6606 (pa_attr_length_call): Likewise.
6607 (pa_output_call): Likewise.
6608 (pa_attr_length_indirect_call): Likewise.
6609 (pa_output_indirect_call): Likewise.
6610
6611 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6612
6613 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6614 Strengthen first param from rtx to rtx_insn *.
6615 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6616 param "insn".
6617
6618 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6619
6620 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6621 type from rtx to rtx_insn *.
6622 (mips_expand_call): Likewise.
6623 (mips_adjust_insn_length): Likewise for first param.
6624 (mips_output_conditional_branch): Likewise.
6625 (mips_output_order_conditional_branch): Likewise.
6626 (mips_final_prescan_insn): Likewise.
6627
6628 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6629 rtx_insn * for the SEQUENCE case.
6630 (SEQ_END): Likewise.
6631 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6632 (mips_emit_call_insn): Likewise, also for local "insn".
6633 (mips16_gp_pseudo_reg): Likewise for local "scan".
6634 (mips16_build_call_stub): Likewise for return type and for local
6635 "insn". Introduce a new local "pattern" so that "insn" can indeed
6636 be an insn.
6637 (mips_expand_call): Strengthen return type and local "insn" from
6638 rtx to rtx_insn *.
6639 (mips_block_move_loop): Strengthen local "label" from rtx to
6640 rtx_code_label *.
6641 (mips_expand_synci_loop): Likewise for locals "label",
6642 "end_label".
6643 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6644 rtx_insn *.
6645 (mips16e_collect_argument_saves): Likewise for locals "insn",
6646 "next".
6647 (mips_find_gp_ref): Likewise for param of callback for "pred"
6648 param, and for local "insn".
6649 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6650 (mips_insn_has_flexible_gp_ref_p): Likewise.
6651 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6652 local "insn".
6653 (mips_epilogue_set_cfa): Likewise for local "insn".
6654 (mips_expand_epilogue): Likewise.
6655 (mips_adjust_insn_length): Likewise for param "insn".
6656 (mips_output_conditional_branch): Likewise.
6657 (mips_output_order_conditional_branch): Likewise.
6658 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6659 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6660 "falu2_turn_enabled_insn".
6661 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6662 "done_label" from rtx to rtx_code_label *.
6663 (struct mips16_constant): Likewise for field "label".
6664 (mips16_add_constant): Likewise for return type.
6665 (mips16_emit_constants_1): Strengthen return type and param "insn"
6666 from rtx to rtx_insn *.
6667 (mips16_emit_constants): Likewise for param "insn".
6668 (mips16_insn_length): Likewise.
6669 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6670 to rtx_code_label *.
6671 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6672 from rtx to rtx_insn *.
6673 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6674 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6675 (r10k_simplify_address): Strengthen param "insn" and local
6676 "def_insn" from rtx to rtx_insn *.
6677 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6678 rtx_insn *.
6679 (r10k_needs_protection_p_1): Update target type of cast of data
6680 from to rtx to rtx_insn *.
6681 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6682 rtx * to rtx_insn **.
6683 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6684 rtx_insn *.
6685 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6686 (mips_call_expr_from_insn): Likewise for param "insn".
6687 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6688 (mips_find_pic_call_symbol): Likewise for param "insn".
6689 (mips_annotate_pic_calls): Likewise for local "insn".
6690 (mips_sim_insn): Likewise for this variable.
6691 (struct mips_sim): Likewise for field "insn" within elements of
6692 last_set array.
6693 (mips_sim_wait_reg): Likewise for param "insn".
6694 (mips_sim_wait_regs): Likewise.
6695 (mips_sim_wait_units): Likewise.
6696 (mips_sim_wait_insn): Likewise.
6697 (mips_sim_issue_insn): Likewise.
6698 (mips_sim_finish_insn): Likewise.
6699 (mips_seq_time): Likewise for param "seq" and local "insn".
6700 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6701 locals "first", "second".
6702 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6703 "last", "last2", "next".
6704 (mips_avoid_hazard): Likewise for params "after", "insn".
6705 (mips_reorg_process_insns): Likewise for locals "insn",
6706 "last_insn", "subinsn", "next_insn".
6707 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6708 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6709 "jump_sequence".
6710 (mips_output_mi_thunk): Likewise for local "insn".
6711 (mips_final_prescan_insn): Likewise for param "insn".
6712
6713 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6714
6715 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6716 Strengthen return type and local "insns" from rtx to rtx_insn *.
6717 (microblaze_legitimize_tls_address): Likewise for local "insns".
6718 (microblaze_block_move_loop): Strengthen local "label" from rtx
6719 to rtx_code_label *.
6720 (microblaze_expand_prologue): Strengthen two locals named "insn"
6721 from rtx to rtx_insn *.
6722 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6723 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6724 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6725 to rtx_code_label *.
6726
6727 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6728
6729 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6730 param from rtx to rtx_insn *.
6731 (mep_reuse_lo): Likewise for third param.
6732 (mep_use_post_modify_p): Likewise for first param.
6733 (mep_core_address_length): Likewise.
6734 (mep_cop_address_length): Likewise.
6735 (mep_final_prescan_insn): Likewise.
6736 (mep_store_data_bypass_p): Likewise for both params.
6737 (mep_mul_hilo_bypass_p): Likewise.
6738 (mep_ipipe_ldc_p): Likewise for param.
6739
6740 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6741 (mep_rewrite_mult): Likewise.
6742 (mep_rewrite_mulsi3): Likewise.
6743 (mep_rewrite_maddsi3): Likewise.
6744 (mep_reuse_lo_p_1): Likewise.
6745 (mep_reuse_lo_p): Likewise.
6746 (mep_frame_expr): Likewise.
6747 (mep_make_parallel): Likewise for both params.
6748 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6749 local "insn".
6750 (mep_use_post_modify_p): Likewise for param "insn".
6751 (mep_core_address_length): Likewise.
6752 (mep_cop_address_length): Likewise.
6753 (mep_reg_set_in_function): Likewise for local "insn".
6754 (mep_asm_without_operands_p): Likewise.
6755 (F): Likewise for return type and param "x".
6756 (add_constant): Likewise for local "insn".
6757 (maybe_dead_move): Likewise for return type and local "insn".
6758 (mep_expand_prologue): Likewise for local "insn".
6759 (mep_final_prescan_insn): Likewise for param "insn".
6760 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6761 "next", "follow", "x".
6762 (mep_insert_repeat_label_last): Likewise for return type, param
6763 "last_insn", and locals "next", "prev". Strengthen param "label"
6764 from rtx to rtx_code_label *.
6765 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6766 rtx_insn *.
6767 (struct mep_doloop_end): Likewise for fields "insn" and
6768 "fallthrough".
6769 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6770 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6771 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6772 rtx_insn *.
6773 (mep_invert_branch): Likewise for params "insn" and "after".
6774 (mep_reorg_erepeat): Likewise for param "insns" and locals
6775 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6776 "l" from rtx to rtx_code_label *.
6777 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6778 from rtx to rtx_insn *.
6779 (mep_reorg_addcombine): Likewise for param "insns" and locals
6780 "i", "n".
6781 (add_sp_insn_p): Likewise for param "insn".
6782 (mep_reorg_noframe): Likewise for param "insns" and locals
6783 "start_frame_insn", "end_frame_insn", "next".
6784 (mep_reorg): Likewise for local "insns".
6785 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6786 cast.
6787 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6788 (mep_mul_hilo_bypass_p): Likewise.
6789 (mep_ipipe_ldc_p): Likewise for param "insn".
6790 (mep_make_bundle): Likewise for return type, param "cop" and local
6791 "insn", splitting out the latter into a new local "seq" for when it
6792 is a SEQUENCE rather than an insn.
6793 (core_insn_p): Likewise for param "insn".
6794 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6795 "last", "first", "note", "prev", "core_insn".
6796
6797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6798
6799 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6800 rtx to rtx_insn *.
6801 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6802 (m68k_final_prescan_insn): Likewise for first param.
6803
6804 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6805 (m68k_set_frame_related): Likewise for param "insn".
6806 (output_btst): Likewise for param "insn".
6807 (m68k_final_prescan_insn): Likewise.
6808 (m68k_move_to_reg): Likewise for local "insn".
6809 (m68k_call_tls_get_addr): Likewise for local "insns".
6810 (m68k_call_m68k_read_tp): Likewise.
6811 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6812 (m68k_output_mi_thunk): Likewise for local "insn".
6813
6814 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6815
6816 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6817 first param from rtx to rtx_insn *.
6818 (iq2000_adjust_insn_length): Likewise.
6819 (iq2000_output_conditional_branch): Likewise.
6820 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6821 "insn" and local "nop_insn".
6822 (iq2000_annotate_frame_insn): Likewise for param "insn".
6823 (iq2000_expand_prologue): Likewise for both locals "insn".
6824 (iq2000_adjust_insn_length): Likewise for param "insn".
6825 (iq2000_output_conditional_branch): Likewise.
6826
6827 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6828
6829 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6830 "insns" from rtx to rtx_insn *.
6831 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6832 (struct spill_fill_data): Likewise for field "init_after" and for
6833 elements of array field "prev_insn".
6834 (spill_restore_mem): Likewise for locals "insn", "first".
6835 (do_spill): Likewise for local "insn".
6836 (do_restore): Likewise.
6837 (ia64_expand_prologue): Likewise.
6838 (ia64_expand_epilogue): Likewise.
6839 (emit_insn_group_barriers): Likewise for locals "insn",
6840 "last_label".
6841 (emit_all_insn_group_barriers): Likewise for locals "insn",
6842 "last".
6843 (dfa_stop_insn): Likewise for this global.
6844 (dfa_pre_cycle_insn): Likewise.
6845 (ia64_nop): Likewise.
6846 (final_emit_insn_group_barriers): Likewise for locals "insn",
6847 "last".
6848 (emit_predicate_relation_info): Likewise for locals "head", "n",
6849 "insn", "b", "a".
6850 (ia64_reorg): Likewise for local "insn".
6851 (ia64_output_mi_thunk): Likewise.
6852 (expand_vec_perm_interleave_2): Likewise for local "seq".
6853
6854 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6855
6856 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6857 param 1 "insn" from rtx to rtx_insn *.
6858 (ix86_use_lea_for_mov): Likewise.
6859 (ix86_avoid_lea_for_addr): Likewise.
6860 (ix86_split_lea_for_addr): Likewise.
6861 (ix86_lea_for_add_ok): Likewise.
6862 (ix86_output_call_insn): Likewise.
6863
6864 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6865 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6866 (ix86_output_function_epilogue): Likewise for locals "insn",
6867 "deleted_debug_label".
6868 (legitimize_tls_address): Likewise for local "insn".
6869 (get_some_local_dynamic_name): Likewise.
6870 (increase_distance): Likewise for params "prev", "next".
6871 (distance_non_agu_define_in_bb): Likewise for params "insn",
6872 "start" and locals "prev", "next".
6873 (distance_non_agu_define): Likewise for param "insn".
6874 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6875 locals "next", "prev".
6876 (distance_agu_use): Likewise for param "insn".
6877 (ix86_lea_outperforms): Likewise.
6878 (ix86_ok_to_clobber_flags): Likewise.
6879 (ix86_avoid_lea_for_add): Likewise.
6880 (ix86_use_lea_for_mov): Likewise.
6881 (ix86_avoid_lea_for_addr): Likewise.
6882 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6883 (ix86_split_lea_for_addr): Likewise for param "insn".
6884 (ix86_lea_for_add_ok): Likewise for param "insn".
6885 (ix86_expand_carry_flag_compare): Likewise for local
6886 "compare_seq".
6887 (ix86_expand_int_movcc): Likewise.
6888 (ix86_output_call_insn): Likewise for param "insn".
6889 (ix86_output_call_insn): Likewise for local "i".
6890 (x86_output_mi_thunk): Introduce local "insn", using it in place
6891 of "tmp" when dealing with insns.
6892 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6893 "start".
6894 (ix86_pad_returns): Likewise for locals "ret", "prev".
6895 (ix86_count_insn_bb): Likewise for local "insn".
6896 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6897 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6898 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6899 (expand_vec_perm_interleave2): Likewise for local "seq".
6900 (expand_vec_perm_vperm2f128_vblend): Likewise.
6901 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6902 call to for_each_rtx with for_each_rtx_in_insn.
6903
6904 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6905
6906 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6907 "label" from rtx to rtx_code_label *.
6908 (ix86_expand_prologue): Likewise.
6909 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6910 "varargs_label".
6911 (ix86_split_idivmod): Likewise for locals "end_label" and
6912 "qimode_label".
6913 (ix86_expand_branch): Likewise for local "label2".
6914 (ix86_expand_aligntest): Likewise for return type and local "label".
6915 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6916 "top_label".
6917 (expand_movmem_epilogue): Likewise for the various locals named
6918 "label".
6919 (expand_setmem_epilogue): Likewise.
6920 (expand_small_movmem_or_setmem): Likewise for local "label".
6921 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6922 Strengthen param "done_label" from rtx * to rtx_code_label **.
6923 Strengthen locals "loop_label" and "label" from rtx to
6924 rtx_code_label *.
6925 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6926 Likewise for locals "loop_label", "label".
6927 (ix86_expand_set_or_movmem): Likewise for locals "label",
6928 "jump_around_label", "hot_label".
6929 (ix86_expand_strlensi_unroll_1): Likewise for locals
6930 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6931 "end_2_label".
6932 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6933 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6934 "label2", "jump_label".
6935 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6936 local "label".
6937 (ix86_expand_lfloorceil): Likewise for local "label".
6938 (ix86_expand_rint): Likewise.
6939 (ix86_expand_floorceildf_32): Likewise.
6940 (ix86_expand_floorceil): Likewise.
6941 (ix86_expand_rounddf_32): Likewise.
6942 (ix86_expand_trunc): Likewise.
6943 (ix86_expand_truncdf_32): Likewise.
6944 (ix86_expand_round): Likewise.
6945
6946 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6947
6948 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6949 first param from rtx to rtx_insn *.
6950 (h8300_insn_length_from_table): Likewise.
6951 * config/h8300/h8300.c (F): Likewise for return type and param
6952 "x".
6953 (Fpa): Add a checked cast to rtx_insn *.
6954 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6955 rtx_insn *.
6956 (final_prescan_insn): Likewise for param "insn".
6957 (h8300_binary_length): Likewise.
6958 (h8300_insn_length_from_table): Likewise.
6959
6960 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6961
6962 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6963 Strengthen first param "insn" from rtx to rtx_insn *.
6964
6965 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6966 Likewise.
6967 (frame_insn): Likewise for return type. Introduce local "insn"
6968 for use in place of local "x" for use as an rtx_insn *.
6969 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6970 (epiphany_expand_prologue): Likewise for local "insn".
6971 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6972 * config/epiphany/resolve-sw-modes.c
6973 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6974 "seq".
6975
6976 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6977
6978 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6979 param from rtx to rtx_insn *.
6980 (c6x_final_prescan_insn): Likewise for first param.
6981
6982 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6983 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6984 (c6x_expand_compare): Strengthen local "insns" from rtx to
6985 rtx_insn *.
6986 (c6x_get_unit_specifier): Likewise for param "insn".
6987 (c6x_print_unit_specifier_field): Likewise.
6988 (c6x_final_prescan_insn): Likewise.
6989 (emit_add_sp_const): Likewise for local "insn".
6990 (c6x_expand_prologue): Likewise.
6991
6992 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6993
6994 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6995 param 1 from rtx to rtx_insn *.
6996 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6997 the various locals named "insn".
6998 (expand_epilogue_reg_restore): Likewise.
6999 (frame_related_constant_load): Likewise.
7000 (add_to_reg): Likewise.
7001 (emit_link_insn): Likewise.
7002 (do_link): Likewise.
7003 (expand_interrupt_handler_prologue): Likewise.
7004 (branch_dest): Likewise for param "branch".
7005 (asm_conditional_branch): Likewise for param "insn".
7006 (gen_one_bundle): Likewise for elements of param "slot" and local
7007 "t".
7008 (bfin_gen_bundles): Likewise for locals "insn", "next" and
7009 elements of local "slot".
7010 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7011 "queue", "next_queue", "prev".
7012 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
7013 (add_sched_insns_for_speculation): Likewise for local "insn".
7014
7015 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7016
7017 * config/avr/avr-protos.h (output_movqi): Strengthen first param
7018 from rtx to rtx_insn *.
7019 (output_movhi): Likewise.
7020 (output_movsisf): Likewise.
7021 (avr_out_tstsi): Likewise.
7022 (avr_out_tsthi): Likewise.
7023 (avr_out_tstpsi): Likewise.
7024 (avr_out_compare): Likewise.
7025 (avr_out_compare64): Likewise.
7026 (avr_out_movpsi): Likewise.
7027 (ashlqi3_out): Likewise.
7028 (ashlhi3_out): Likewise.
7029 (ashlsi3_out): Likewise.
7030 (ashrqi3_out): Likewise.
7031 (ashrhi3_out): Likewise.
7032 (ashrsi3_out): Likewise.
7033 (lshrqi3_out): Likewise.
7034 (lshrhi3_out): Likewise.
7035 (lshrsi3_out): Likewise.
7036 (avr_out_ashlpsi3): Likewise.
7037 (avr_out_ashrpsi3): Likewise.
7038 (avr_out_lshrpsi3): Likewise.
7039 (avr_out_fract): Likewise.
7040 (avr_out_sbxx_branch): Likewise.
7041 (avr_out_round): Likewise.
7042 (avr_out_xload): Likewise.
7043 (avr_out_movmem): Likewise.
7044 (adjust_insn_length): Likewise.
7045 (avr_out_lpm): Likewise.
7046 (reg_unused_after): Likewise.
7047 (_reg_unused_after): Likewise.
7048 (avr_jump_mode): Likewise for second param.
7049 (jump_over_one_insn): Likewise for first param.
7050 (avr_final_prescan_insn): Likewise.
7051 (out_shift_with_cnt): Likewise for second param.
7052
7053 * config/avr/avr.c (get_sequence_length): Likewise for param
7054 "insns" and local "insn".
7055 (emit_push_byte): Likewise for local "insn".
7056 (emit_push_sfr): Likewise.
7057 (avr_prologue_setup_frame): Likewise for locals "insn",
7058 "fp_plus_insns", "sp_plus_insns".
7059 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
7060 "sp_plus_insns".
7061 (avr_jump_mode): Likewise for param "insn".
7062 (avr_final_prescan_insn): Likewise.
7063 (avr_find_unused_d_reg): Likewise.
7064 (avr_out_lpm_no_lpmx): Likewise.
7065 (avr_out_lpm): Likewise.
7066 (avr_out_xload): Likewise.
7067 (output_movqi): Likewise.
7068 (output_movhi): Likewise.
7069 (out_movqi_r_mr): Likewise.
7070 (out_movhi_r_mr): Likewise.
7071 (out_movsi_r_mr): Likewise.
7072 (out_movsi_mr_r): Likewise.
7073 (output_movsisf): Likewise.
7074 (avr_out_load_psi): Likewise.
7075 (avr_out_store_psi): Likewise.
7076 (avr_out_movpsi): Likewise.
7077 (out_movqi_mr_r): Likewise.
7078 (avr_out_movhi_mr_r_xmega): Likewise.
7079 (out_movhi_mr_r): Likewise.
7080 (compare_condition): Likewise for param "insn" and local "next".
7081 (compare_sign_p): Likewise for param "insn".
7082 (compare_diff_p): Likewise.
7083 (compare_eq_p): Likewise.
7084 (avr_out_compare): Likewise.
7085 (avr_out_compare64): Likewise.
7086 (avr_out_tsthi): Likewise.
7087 (avr_out_tstpsi): Likewise.
7088 (avr_out_tstsi): Likewise.
7089 (out_shift_with_cnt): Likewise.
7090 (ashlqi3_out): Likewise.
7091 (ashlhi3_out): Likewise.
7092 (avr_out_ashlpsi3): Likewise.
7093 (ashlsi3_out): Likewise.
7094 (ashrqi3_out): Likewise.
7095 (ashrhi3_out): Likewise.
7096 (avr_out_ashrpsi3): Likewise.
7097 (ashrsi3_out): Likewise.
7098 (lshrqi3_out): Likewise.
7099 (lshrhi3_out): Likewise.
7100 (avr_out_lshrpsi3): Likewise.
7101 (lshrsi3_out): Likewise.
7102 (avr_out_fract): Likewise.
7103 (avr_out_round): Likewise.
7104 (avr_adjust_insn_length): Likewise.
7105 (reg_unused_after): Likewise.
7106 (_reg_unused_after): Likewise.
7107 (avr_compare_pattern): Likewise.
7108 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
7109 and locals "branch1", "branch2", "insn2", "jump".
7110 (avr_reorg): Likewise for local "insn".
7111 (avr_2word_insn_p): Likewise for param "insn".
7112 (jump_over_one_insn_p): Likewise.
7113 (avr_out_sbxx_branch): Likewise.
7114 (avr_out_movmem): Likewise.
7115
7116 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7117
7118 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
7119 param from rtx to rtx_insn *.
7120 (thumb1_final_prescan_insn): Likewise.
7121 (thumb2_final_prescan_insn): Likewise.
7122
7123 * config/arm/arm.c (emit_set_insn): Strengthen return type from
7124 rtx to rtx_insn *.
7125 (struct minipool_node): Likewise for field "insn".
7126 (dump_minipool): Likewise for param "scan".
7127 (create_fix_barrier): Likewise for local "from". Strengthen local
7128 "label" from rtx to rtx_code_label *.
7129 (push_minipool_barrier): Strengthen param "insn" from rtx to
7130 rtx_insn *.
7131 (push_minipool_fix): Likewise.
7132 (note_invalid_constants): Likewise.
7133 (thumb2_reorg): Likewise for local "insn".
7134 (arm_reorg): Likewise.
7135 (thumb2_final_prescan_insn): Likewise for param
7136 "insn" and local "first_insn".
7137 (arm_final_prescan_insn): Likewise for param "insn" and locals
7138 "start_insn", "this_insn".
7139 (arm_debugger_arg_offset): Likewise for param "insn".
7140 (thumb1_emit_multi_reg_push): Likewise for return type and local
7141 "insn".
7142 (thumb1_final_prescan_insn): Likewise for param "insn".
7143 (thumb_far_jump_used_p): Likewise for local "insn".
7144 (thumb1_expand_prologue): Likewise.
7145 (arm_expand_epilogue_apcs_frame): Likewise.
7146 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
7147 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
7148 from rtx to rtx_code_label *.
7149 (arm_split_atomic_op): Likewise for local "label".
7150 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
7151
7152 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7153
7154 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
7155 first param from rtx to rtx_insn *.
7156 (arc_verify_short): Likewise.
7157 (arc_short_long): Likewise.
7158 (arc_need_delay): Likewise.
7159
7160 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
7161 "target_insn".
7162 (arc_ccfsm_advance): Likewise for param "insn" and locals
7163 "start_insn", "this_insn".
7164 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
7165 (arc_ccfsm_post_advance): Likewise for param "insn".
7166 (arc_next_active_insn): Likewise for return type and param "insn".
7167 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
7168 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
7169 (output_short_suffix): Likewise for local "insn".
7170 (arc_final_prescan_insn): Likewise for param "insn". Remove
7171 now-redundant checked cast.
7172 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
7173 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
7174 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
7175 for use where lc_set became an insn.
7176 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
7177 rtx to rtx_insn *.
7178 (arc_get_insn_variants): Likewise for local "prev".
7179 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
7180 "next".
7181 (arc_predicate_delay_insns): Likewise for local "insn".
7182 (arc_pad_return): Likewise for local "prev". For now, add a
7183 checked cast when extracting the insn from "final_sequence".
7184 (arc_short_long): Likewise for param "insn".
7185 (arc_need_delay): Likewise for param "insn" and local "next".
7186 (arc_label_align): Likewise for locals "prev", "next".
7187
7188 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7189
7190 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
7191 "insn" from rtx to rtx_insn *.
7192 (alpha_gp_save_rtx): Likewise for local "seq".
7193 (alpha_instantiate_decls): Likewise for local "top".
7194 (get_some_local_dynamic_name): Likewise for local "insn".
7195 (alpha_does_function_need_gp): Likewise.
7196 (set_frame_related_p): Likewise for return type and for locals
7197 "seq" and "insn".
7198 (emit_frame_store_1): Likewise for local "insn".
7199 (alpha_expand_prologue): Likewise for locals "insn", "seq".
7200 (alpha_end_function): Likewise for local "insn".
7201 (alpha_output_mi_thunk_osf): Likewise.
7202 (alphaev4_insn_pipe): Likewise for param "insn".
7203 (alphaev5_insn_pipe): Likewise.
7204 (alphaev4_next_group): Likewise for return type and param 1
7205 "insn".
7206 (alphaev5_next_group): Likewise.
7207 (alpha_align_insns_1): Likewise for return type and param 1 of
7208 callback param "next_group", and for locals "i", "next", "prev",
7209 "where", "where2", "insn".
7210
7211 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
7212
7213 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
7214 rather than modifying the stmt.
7215
7216 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7217
7218 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
7219 cgraph_state conversion.
7220
7221 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7222
7223 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7224 Strengthen local "insns" from rtx to rtx_insn *.
7225 (aarch64_set_frame_expr): Likewise for local "insn".
7226 (aarch64_save_or_restore_fprs): Likewise.
7227 (aarch64_save_or_restore_callee_save_registers): Likewise.
7228 (aarch64_expand_prologue): Likewise.
7229 (aarch64_expand_epilogue): Likewise.
7230 (aarch64_output_mi_thunk): Likewise.
7231 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
7232 "label2" from rtx to rtx_code_label *.
7233 (aarch64_split_atomic_op): Likewise for local "label".
7234
7235 2014-08-25 Martin Liska <mliska@suse.cz>
7236
7237 * cgraph.h (symtab_node):
7238 (bool needed_p (void)): created from decide_is_symbol_needed
7239 (bool referred_to_p (void)): created from referred_to_p
7240 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
7241 * cgraph.h (cgraph_node):
7242 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
7243 (void expand (void)): created from expand_function
7244 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
7245 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
7246 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
7247 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
7248 * cgraph.h (varpool_node):
7249 (static void add (tree decl): created from varpool_add_new_variable
7250 * cgraph.h (cgraph_edge):
7251 void remove (void);
7252 (void remove_caller (void)): created from cgraph_edge_remove_caller
7253 (void remove_callee (void)): created from cgraph_edge_remove_callee
7254 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
7255 created from cgraph_set_call_stmt
7256 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
7257 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
7258 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
7259 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
7260 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
7261 created from cgraph_speculative_call_info
7262 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
7263 int freq_scale, bool update_original)): created from cgraph_clone_edge
7264 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
7265 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
7266 (bool recursive_p (void)): created from cgraph_edge_recursive_p
7267 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
7268 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
7269 (static void rebuild_references (void)): created from cgraph_rebuild_references
7270 * cgraph.h (symbol_table):
7271 (create_reference): renamed from add_reference
7272 (maybe_create_reference): renamed from maybe_add_reference
7273 (void register_symbol (symtab_node *node)): new function
7274 (void clear_asm_symbols (void)): new function
7275 (void unregister (symtab_node *node)): new function
7276 (void release_symbol (cgraph_node *node, int uid)): new function
7277 (cgraph_node * allocate_cgraph_symbol (void)): new function
7278 (void initialize (void)): created from cgraph_init
7279 (symtab_node *first_symbol (void)):new function
7280 (asm_node *first_asm_symbol (void)):new function
7281 (symtab_node *first_defined_symbol (void)):new function
7282 (varpool_node *first_variable (void)):new function
7283 (varpool_node *next_variable (varpool_node *node)):new function
7284 (varpool_node *first_static_initializer (void)):new function
7285 (varpool_node *next_static_initializer (varpool_node *node)):new function
7286 (varpool_node *first_defined_variable (void)):new function
7287 (varpool_node *next_defined_variable (varpool_node *node)):new function
7288 (cgraph_node *first_defined_function (void)):new function
7289 (cgraph_node *next_defined_function (cgraph_node *node)):new function
7290 (cgraph_node *first_function (void)):new function
7291 (cgraph_node *next_function (cgraph_node *node)):new function
7292 (cgraph_node *first_function_with_gimple_body (void)):new function
7293 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
7294 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
7295 created from symtab_remove_unreachable_nodes
7296 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
7297 (void process_new_functions (void)): created from cgraph_process_new_functions
7298 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
7299 (bool output_variables (void)): created from varpool_node::output_variables
7300 (void output_asm_statements (void)): created from output_asm_statements
7301 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
7302 (void compile (void)): created from compile
7303 (void output_weakrefs (void)): created from output_weakrefs
7304 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
7305 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
7306 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
7307 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
7308 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
7309 created from cgraph_next_function_with_gimple_body
7310 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
7311 created from cgraph_remove_edge_removal_hook
7312 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
7313 created from cgraph_add_node_removal_hook
7314 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
7315 created from cgraph_remove_node_removal_hook
7316 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
7317 created from varpool_add_node_removal_hook
7318 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
7319 created from varpool_remove_node_removal_hook
7320 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
7321 created from cgraph_add_function_insertion_hook
7322 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
7323 created from cgraph_remove_function_insertion_hook
7324 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
7325 created from varpool_add_variable_insertion_hook
7326 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
7327 created from varpool_remove_variable_insertion_hook
7328 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
7329 created from cgraph_add_edge_duplication_hook
7330 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7331 created from cgraph_remove_edge_duplication_hook
7332 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7333 created from cgraph_add_node_duplication_hook
7334 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7335 created from cgraph_remove_node_duplication_hook
7336 (void call_edge_removal_hooks (cgraph_edge *e)):
7337 created from cgraph_call_edge_removal_hooks
7338 (void call_cgraph_insertion_hooks (cgraph_node *node)):
7339 created from call_function_insertion_hooks
7340 (void call_cgraph_removal_hooks (cgraph_node *node)):
7341 created from cgraph_call_node_removal_hooks
7342 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7343 created from cgraph_node::call_duplication_hooks
7344 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7345 created from cgraph_call_edge_duplication_hooks
7346 (void call_varpool_removal_hooks (varpool_node *node)):
7347 created from varpool_call_node_removal_hooks
7348 (void call_varpool_insertion_hooks (varpool_node *node)):
7349 created from varpool_call_variable_insertion_hooks
7350 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7351 created from insert_to_assembler_name_hash
7352 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7353 created from unlink_from_assembler_name_hash
7354 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7355 created from symtab_prevail_in_asm_name_hash
7356 (void symtab_initialize_asm_name_hash (void)):
7357 created from symtab_initialize_asm_name_hash
7358 (void change_decl_assembler_name (tree decl, tree name)):
7359 created from change_decl_assembler_name
7360 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7361 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7362 created from decl_assembler_name_hash
7363 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7364 created from decl_assembler_name_equal
7365 (static hashval_t hash_node_by_assembler_name (const void *p)):
7366 created from hash_node_by_assembler_name
7367 (static int eq_assembler_name (const void *p1, const void *p2)):
7368 created from eq_assembler_name
7369
7370 2014-08-25 Marek Polacek <polacek@redhat.com>
7371
7372 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7373
7374 2014-08-25 Petr Murzin <petr.murzin@intel.com>
7375
7376 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7377 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7378 SWI1248_AVX512BW mode iterator.
7379
7380 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
7381
7382 PR target/62111
7383 * config/sh/predicates.md (general_extend_operand): Disable
7384 TRUNCATE before reload completes.
7385
7386 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
7387
7388 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7389
7390 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
7391
7392 PR target/61996
7393 * config/sh/sh.opt (musermode): Allow negative form.
7394 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7395 targets that don't support it.
7396 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7397 Document -mno-usermode option.
7398
7399 2014-08-24 Kito Cheng <kito@0xlab.org>
7400
7401 * system.h (CALLER_SAVE_PROFITABLE): Poison.
7402 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7403 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7404 * doc/tm.texi: Regenerate.
7405
7406 2014-08-24 Kito Cheng <kito@0xlab.org>
7407
7408 * ira.c: Fix typo in comment.
7409
7410 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
7411
7412 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7413 Deprecate c++1y. Change language to reflect greater confidence in C++14.
7414
7415 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
7416
7417 PR target/62038
7418 * config/pa/pa.c (pa_output_function_epilogue): Don't set
7419 last_address when the current function is a thunk.
7420 (pa_asm_output_mi_thunk): When we don't have named sections or they
7421 are not being used, check that thunk can reach the stub table with a
7422 short branch.
7423
7424 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7425
7426 * web.c (union_match_dups): Strengthen param "insn" from rtx to
7427 rtx_insn *.
7428 (pass_web::execute): Likewise for local "insn".
7429
7430 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7431
7432 * var-tracking.c (struct micro_operation_def): Strengthen field
7433 "insn" from rtx to rtx_insn *.
7434 (struct emit_note_data_def): Likewise.
7435 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7436 (vt_stack_adjustments): Likewise for local "insn".
7437 (adjust_insn): Likewise for param "insn".
7438 (val_store): Likewise.
7439 (val_resolve): Likewise.
7440 (struct count_use_info): Likewise for field "insn".
7441 (log_op_type): Likewise for param "insn".
7442 (reverse_op): Likewise.
7443 (prepare_call_arguments): Likewise.
7444 (add_with_sets): The initial param takes an insn, but we can't
7445 yet strengthen it from rtx to rtx_insn * since it's used as a
7446 cselib_record_sets_hook callback. For now rename initial param
7447 from "insn" to "uncast_insn", and introduce a local "insn" of
7448 the stronger rtx_insn * type, with a checked cast.
7449 (compute_bb_dataflow): Strengthen local "insn" from rtx to
7450 rtx_insn *.
7451 (emit_note_insn_var_location): Likewise.
7452 (emit_notes_for_changes): Likewise.
7453 (emit_notes_for_differences): Likewise.
7454 (next_non_note_insn_var_location): Likewise for return type and
7455 for param "insn".
7456 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7457 (vt_initialize): Likewise for local "insn".
7458 (delete_debug_insns): Likewise for locals "insn" and "next".
7459
7460 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7461
7462 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7463 rtx_insn *.
7464 (mark_constant_pool): Likewise for local "insn".
7465
7466 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7467
7468 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7469 rtx to rtx_insn *.
7470 (dead_debug_promote_uses): Likewise.
7471 (dead_debug_insert_temp): Likewise.
7472
7473 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7474
7475 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7476 from const_rtx to const rtx_insn *.
7477 (store_killed_after): Likewise. Strengthen locals "last", "act"
7478 from rtx to rtx_insn *.
7479 (store_killed_before): Strengthen param "insn" from const_rtx to
7480 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
7481 (find_moveable_store): Strengthen param "insn" from rtx to
7482 rtx_insn *.
7483 (compute_store_table): Likewise for local "insn".
7484 (insert_insn_start_basic_block): Likewise for param "insn" and
7485 locals "prev", "before", "insn".
7486 (insert_store): For now, add a checked cast to rtx_insn * on the
7487 result of gen_move_insn.
7488 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7489 to rtx_insn *.
7490 (replace_store_insn): Likewise. For now, add a checked cast to
7491 rtx_insn * on the result of gen_move_insn.
7492
7493 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7494
7495 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7496 rtx_insn *.
7497 (expand_sjlj_dispatch_table): Likewise.
7498
7499 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7500
7501 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7502 "insn" from rtx to rtx_insn *.
7503
7504 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7505
7506 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7507 "insn" from rtx to rtx_insn *.
7508 (dup_block_and_redirect): Likewise for param 3 "before".
7509
7510 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7511 from rtx to rtx_insn *.
7512 (move_insn_for_shrink_wrap): Likewise.
7513 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7514 (dup_block_and_redirect): Likewise for param "before" and local
7515 "insn".
7516 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7517 "end".
7518 (convert_to_simple_return): Likewise for local "start".
7519
7520 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7521 Strengthen local "insn" from rtx to rtx_insn *, for use when
7522 invoking requires_stack_frame_p.
7523
7524 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7525
7526 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7527 rtx_insn *.
7528 (speculate_expr): Likewise for locals "orig_insn_rtx",
7529 "spec_insn_rtx".
7530 (eq_transformed_insns): Likewise for locals "i1", "i2".
7531 (check_for_new_jump): Likewise for return type and local "end".
7532 (find_new_jump): Likewise for return type and local "jump".
7533 (sel_split_edge): Likewise for local "jump".
7534 (sel_create_recovery_block): Likewise.
7535 (sel_redirect_edge_and_branch_force): Likewise.
7536 (sel_redirect_edge_and_branch): Likewise.
7537
7538 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7539
7540 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7541 "new_insn" from rtx to rtx_insn *.
7542 (create_insn_rtx_with_rhs): Likewise for return type and for local
7543 "insn_rtx".
7544 (create_insn_rtx_with_lhs): Likewise.
7545 (create_speculation_check): Likewise for local "insn_rtx".
7546 (implicit_clobber_conflict_p): Likewise for local "insn".
7547 (get_expr_cost): Likewise.
7548 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7549 (move_cond_jump): Likewise for locals "next", "prev", "link",
7550 "head", "from", "to".
7551
7552 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7553
7554 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7555 "next" from rtx to rtx_insn *.
7556 (find_conditional_protection): Likewise for local "next".
7557 (is_conditionally_protected): Likewise for local "insn1".
7558 (is_pfree): Likewise for locals "insn1", "insn2".
7559
7560 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7561
7562 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7563 from rtx to rtx_insn *.
7564
7565 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7566 locals "insn1", "insn2" from rtx to rtx_insn *.
7567 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7568 locals "insn", "prev", "last_jump", "next_tail".
7569 (schedule_ebb): Likewise for params "head", "tail".
7570 (schedule_ebbs): Likewise for locals "tail", "head".
7571
7572 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7573 to rtx_insn on "last_insn" in one of the invocations of
7574 schedule_ebb.
7575
7576 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7577
7578 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7579 "elem", "insn" from rtx to rtx_insn *.
7580 (change_spec_dep_to_hard): Likewise.
7581 (get_back_and_forw_lists): Likewise for local "con".
7582 (sd_add_dep): Likewise for locals "elem", "insn".
7583 (sd_resolve_dep): Likewise for locals "pro", "con".
7584 (sd_unresolve_dep): Likewise.
7585 (sd_delete_dep): Likewise.
7586 (chain_to_prev_insn): Likewise for local "pro".
7587 (find_inc): Likewise for locals "pro", "con".
7588
7589 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7590
7591 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7592 to rtx_insn *.
7593 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7594 const rtx_insn *.
7595 (modified_between_p): Strengthen local "insn" from rtx to
7596 rtx_insn *.
7597 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7598 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7599 const rtx_insn *.
7600
7601 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7602
7603 * resource.c (next_insn_no_annul): Strengthen local "next" from
7604 rtx to rtx_insn *.
7605 (mark_referenced_resources): Likewise for local "insn".
7606
7607 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7608
7609 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7610 to rtx_insn *.
7611 (find_reloads): Likewise for param 1.
7612 (subst_reloads): Likewise for sole param.
7613 (find_equiv_reg): Likwise for param 2.
7614 (regno_clobbered_p): Likwise for param 2.
7615 (reload): Likewise for param 1.
7616
7617 * caller-save.c (save_call_clobbered_regs): Strengthen local
7618 "insn" from rtx to rtx_insn *.
7619 (insert_one_insn): Likewise for local "insn".
7620
7621 * reload.c (this_insn): Likewise for this global.
7622 (find_reloads): Likewise for param "insn".
7623 (find_reloads_toplev): Likewise.
7624 (find_reloads_address): Likewise.
7625 (subst_reg_equivs): Likewise.
7626 (update_auto_inc_notes): Likewise.
7627 (find_reloads_address_1): Likewise.
7628 (find_reloads_subreg_address): Likewise.
7629 (subst_reloads): Likewise.
7630 (find_equiv_reg): Likewise, also for local "p".
7631 (regno_clobbered_p): Likewise for param "insn".
7632
7633 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7634 array.
7635 (spill_reg_store): Likewise for the elements of this array.
7636 (remove_init_insns): Likewise for local "equiv_insn".
7637 (will_delete_init_insn_p): Likewise for param "insn".
7638 (reload): Likewise for param ""first" and local "insn".
7639 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7640 rtx_insn *.
7641 (calculate_elim_costs_all_insns): Likewise.
7642 (delete_caller_save_insns): Likewise.
7643 (spill_failure): Likewise for param "insn".
7644 (delete_dead_insn): Likewise.
7645 (set_label_offsets): Likewise.
7646 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7647 "prev_insn".
7648 (elimination_costs_in_insn): Likewise for param "insn".
7649 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7650 when referring to an insn.
7651 (set_initial_label_offsets): Likewise.
7652 (set_offsets_for_label): Strengthen param "insn" from rtx to
7653 rtx_insn *.
7654 (init_eliminable_invariants): Likewise for param "first" and local
7655 "insn".
7656 (fixup_eh_region_note): Likewise for param "insn".
7657 (reload_as_needed): Likewise for locals "prev", "insn",
7658 "old_next", "old_prev", "next".
7659 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7660 "last".
7661 (reload_inheritance_insn): Strengthen elements of this array from
7662 rtx to rtx_insn *.
7663 (failed_reload): Likewise for param "insn".
7664 (choose_reload_regs): Likewise for local "insn". Replace use of
7665 NULL_RTX with NULL when referring to an insn.
7666 (input_reload_insns): Strengthen elements of this array from rtx
7667 to rtx_insn *.
7668 (other_input_address_reload_insns): Likewise for this global.
7669 (other_input_reload_insns): Likewise for this global.
7670 (input_address_reload_insns): Likwise for the elements of this
7671 array.
7672 (inpaddr_address_reload_insns): Likwise for the elements of this
7673 array.
7674 (output_reload_insns): Likewise for the elements of this array.
7675 (output_address_reload_insns): Likewise for the elements of this
7676 array.
7677 (outaddr_address_reload_insns): Likewise for the elements of this
7678 array.
7679 (operand_reload_insns): Likewise for this global.
7680 (other_operand_reload_insns): Likewise for this global.
7681 (other_output_reload_insns): Likewise for the elements of this
7682 array.
7683 (new_spill_reg_store): Likewise for the elements of this
7684 array.
7685 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7686 Strengthen local "where" from rtx * to rtx_insn **.
7687 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7688 from rtx to rtx_insn *.
7689 (do_input_reload): Likewise for local "insn".
7690 (do_output_reload): Likewise for local "insn".
7691 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7692 (emit_insn_if_valid_for_reload): Likewise for return type and local
7693 "last". Add checked cast to rtx_insn when returning "insn" since
7694 this has been through emit_insn.
7695 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7696 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7697 returning "insn" since it's been through
7698 emit_insn_if_valid_for_reload at this point.
7699 (delete_output_reload): Strengthen param "insn" and locals
7700 "output_reload_insn", "i2" from rtx to rtx_insn *.
7701 (delete_address_reloads): Likewise for params "dead_insn",
7702 "current_insn" and locals "prev", "next".
7703 (delete_address_reloads_1): Likewise for params "dead_insn",
7704 "current_insn" and locals "prev", "i2".
7705 (inc_for_reload): Likewise for locals "last", "add_insn".
7706 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7707 rtx_insn *.
7708
7709 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7710 param of this duplicate of the prototype from reload.h
7711
7712 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7713
7714 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7715 rtx to rtx_insn *.
7716 (regstat_bb_compute_calls_crossed): Likewise.
7717
7718 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7719
7720 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7721 to rtx_insn *.
7722 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7723 with an insn.
7724 (regrename_analyze): Strengthen local "insn" from rtx to
7725 rtx_insn *.
7726 (scan_rtx_reg): Likewise for param "insn".
7727 (scan_rtx_address): Likewise.
7728 (scan_rtx): Likewise.
7729 (restore_operands): Likewise.
7730 (record_out_operands): Likewise.
7731 (build_def_use): Likewise for local "insn". Replace use of
7732 NULL_RTX with NULL when dealing with an insn.
7733
7734 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7735
7736 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7737 * reginfo.c (reg_scan): Likewise, also for local "insn".
7738 (reg_scan_mark_refs): Likewise for param "insn".
7739 (init_subregs_of_mode): Likewise for local "insn".
7740
7741 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7742
7743 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7744 "insn" from rtx to rtx_insn *.
7745 (replace_oldest_value_reg): Likewise for param "insn".
7746 (replace_oldest_value_addr): Likewise.
7747 (replace_oldest_value_mem): Likewise.
7748 (apply_debug_insn_changes): Likewise for local "last_insn".
7749 (copyprop_hardreg_forward_1): Likewise for local "insn".
7750
7751 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7752
7753 * reg-stack.c (next_flags_user): Strengthen return type and param
7754 "insn" from rtx to rtx_insn *.
7755 (straighten_stack): Likewise for param "insn".
7756 (check_asm_stack_operands): Likewise.
7757 (remove_regno_note): Likewise.
7758 (emit_pop_insn): Likewise for return type, param "insn", local
7759 "pop_insn".
7760 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7761 "limit" from rtx to rtx_insn *.
7762 (swap_to_top): Likewise for param "insn".
7763 (move_for_stack_reg): Likewise.
7764 (move_nan_for_stack_reg): Likewise.
7765 (swap_rtx_condition): Likewise.
7766 (compare_for_stack_reg): Likewise.
7767 (subst_all_stack_regs_in_debug_insn): Likewise.
7768 (subst_stack_regs_pat): Likewise, and local "insn2".
7769 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7770 rtx_insn *.
7771 (subst_stack_regs): Likewise.
7772 (change_stack): Likewise.
7773 (convert_regs_1): Likewise for locals "insn", "next".
7774
7775 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7776
7777 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7778 rtx_insn *.
7779 (combine_set_extension): Likewise for param "curr_insn".
7780 (transform_ifelse): Likewise for param "def_insn".
7781 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7782 from vec<rtx> * to vec<rtx_insn *> *.
7783 (is_cond_copy_insn): Likewise for param "insn".
7784 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7785 to vec<rtx_insn *>.
7786 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7787 local "def_insn" from rtx to rtx_insn *.
7788 (get_sub_rtx): Likewise for param "def_insn".
7789 (merge_def_and_ext): Likewise.
7790 (combine_reaching_defs): Likewise.
7791 (add_removable_extension): Likewise for param "insn".
7792 (find_removable_extensions): Likewise for local "insn".
7793 (find_and_remove_re): Likewise for locals "curr_insn" and
7794 "def_insn". Strengthen locals "reinsn_del_list" and
7795 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7796
7797 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7798
7799 * recog.c (split_insn): Strengthen param "insn" and locals
7800 "first", "last" from rtx to rtx_insn *.
7801 (split_all_insns): Likewise for locals "insn", "next".
7802 (split_all_insns_noflow): Likewise.
7803
7804 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7805
7806 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7807 const rtx_insn *.
7808 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7809 (debug_rtx_find): Likewise for param 1 "x".
7810
7811 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7812 const_rtx to const rtx_insn *. Likewise for local "insn".
7813 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7814 (debug_rtx_find): Likewise for param 1 "x".
7815 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7816 from const_rtx to const rtx_insn * within the appropriate cases of
7817 the switch statement.
7818
7819 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7820 Strengthen local "insns" from rtx to rtx_insn * since this is
7821 passed to a call to debug_rtx_list.
7822
7823 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7824
7825 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7826 to rtx_insn *.
7827
7828 * function.c (stack_protect_epilogue): Add checked cast to
7829 rtx_insn for now when invoking predict_insn_def.
7830
7831 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7832 rtx_insn *.
7833 (predict_insn_def): Likewise.
7834 (rtl_predict_edge): Likewise for local "last_insn".
7835 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7836 const rtx_insn *.
7837 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7838 to rtx_insn *.
7839 (bb_estimate_probability_locally): Likewise for local "last_insn".
7840 (expensive_function_p): Likewise for local "insn".
7841
7842 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7843 local "jmp", since this is used when invoking predict_insn_def.
7844
7845 2014-08-22 Marek Polacek <polacek@redhat.com>
7846
7847 PR c++/62199
7848 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7849
7850 2014-08-22 Marek Polacek <polacek@redhat.com>
7851
7852 PR c/61271
7853 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7854 a comparison in parens.
7855 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7856 in parens.
7857
7858 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7859
7860 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7861 rtx_insn *.
7862
7863 * cprop.c (fis_get_condition): Likewise.
7864
7865 * postreload.c (reload_cse_regs): Likewise for param "first".
7866 (reload_cse_simplify): Likewise for param "insn".
7867 (reload_cse_regs_1): Likewise for local "insn".
7868 (reload_cse_simplify_set): Likewise for param "insn".
7869 (reload_cse_simplify_operands): Likewise.
7870 (struct reg_use): Likewise for field "insn".
7871 (reload_combine_purge_insn_uses): Likewise for param "insn".
7872 (fixup_debug_insns): Likewise for params "from", "to" and local
7873 "insn".
7874 (try_replace_in_use): Likewise for local "use_insn".
7875 (reload_combine_recognize_const_pattern): Likewise for param
7876 "insn" and locals "add_moved_after_insn", "use_insn".
7877 (reload_combine_recognize_pattern): Likewise for param "insn" and
7878 local "prev".
7879 (reload_combine): Likewise for locals "insn", "prev".
7880 (reload_combine_note_use): Likewise for param "insn".
7881 (move2add_use_add2_insn): Likewise.
7882 (move2add_use_add3_insn): Likewise.
7883 (reload_cse_move2add): Likewise, also for local "next".
7884 (move2add_note_store): Likewise for local "insn".
7885
7886 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7887
7888 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7889 rtx to rtx_insn *.
7890 (struct unoccr): Likewise.
7891 (struct modifies_mem): Likewise.
7892 (alloc_mem): Likewise for local "insn".
7893 (insert_expr_in_table): Likewise for param "insn".
7894 (dump_expr_hash_table_entry): Likewise for local "insn".
7895 (oprs_unchanged_p): Likewise for param "insn".
7896 (load_killed_in_block_p): Likewise for local "setter".
7897 (record_last_reg_set_info): Likewise for param "insn".
7898 (record_last_reg_set_info_regno): Likewise.
7899 (record_last_mem_set_info): Likewise.
7900 (record_last_set_info): Likewise for local "last_set_insn".
7901 (record_opr_changes): Likewise for param "insn".
7902 (hash_scan_set): Likewise.
7903 (compute_hash_table): Likewise for local "insn".
7904 (get_avail_load_store_reg): Likewise for param "insn".
7905 (eliminate_partially_redundant_load): Likewise, also for locals
7906 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7907 RTX for insns.
7908 (eliminate_partially_redundant_loads): Likewise for local "insn".
7909
7910 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7911
7912 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7913 rtx to rtx_insn *.
7914 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7915 (expand_twoval_unop): Likewise for locals entry_last", "last".
7916 (expand_twoval_binop): Likewise.
7917 (expand_twoval_binop_libfunc): Likewise for local "insns".
7918 (widen_leading): Likewise for local "last".
7919 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7920 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7921 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7922 (expand_parity): Likewise for locals "last" and "seq".
7923 (expand_ffs): Likewise for local "seq". Strengthen local
7924 "nonzero_label" from rtx to rtx_code_label *.
7925 (expand_absneg_bit): Strengthen local "insns" from rtx to
7926 rtx_insn *.
7927 (expand_unop_direct): Likewise for local "last".
7928 (expand_unop): Likewise for locals "last", "insns".
7929 (expand_abs_nojump): Likewise for local "last".
7930 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7931 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7932 rtx_insn *.
7933 (expand_copysign_absneg): Strengthen local "label" from rtx to
7934 rtx_code_label *.
7935 (expand_copysign_bit): Strengthen local "insns" from rtx to
7936 rtx_insn *.
7937 (struct no_conflict_data): Likewise for fields "first", "insn".
7938 (emit_libcall_block_1): Likewise for param "insns" and locals
7939 "next", "last", "insn".
7940 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7941 on "insns" when invoking emit_libcall_block_1. Ultimately we
7942 want to strengthen insns itself.
7943 (prepare_cmp_insn): Strengthen local "last" from rtx to
7944 rtx_insn *.
7945 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7946 (prepare_float_lib_cmp): Likewise for local "insns".
7947 (emit_conditional_move): Likewise for local "last".
7948 (emit_conditional_add): Likewise.
7949 (have_sub2_insn): Likewise for local "seq".
7950 (expand_float): Likewise for local "insns". Strengthen locals
7951 "label", "neglabel" from rtx to rtx_code_label *.
7952 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7953 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7954 (expand_fixed_convert): Likewise for local "insns" (to
7955 rtx_insn *).
7956 (expand_sfix_optab): Likewise for local "last".
7957 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7958 to rtx_code_label *.
7959 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7960 from rtx to rtx_insn *.
7961 (expand_atomic_fetch_op): Likewise for local "insn".
7962 (maybe_legitimize_operand_same_code): Likewise for local "last".
7963 (maybe_legitimize_operands): Likewise.
7964
7965 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7966
7967 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7968 "insn" from rtx to rtx_insn *.
7969 (ps_rtl_insn): Likewise for return type.
7970 (doloop_register_get): Likewise for params "head", "tail" and
7971 locals "insn", "first_insn_not_to_check".
7972 (schedule_reg_move): Likewise for local "this_insn".
7973 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7974 of gen_move_insn for now.
7975 (reset_sched_times): Strengthen local "insn" from rtx to
7976 rtx_insn *.
7977 (permute_partial_schedule): Likewise.
7978 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7979 (dump_insn_location): Likewise for param "insn".
7980 (loop_canon_p): Likewise for local "insn".
7981 (sms_schedule): Likewise.
7982 (print_partial_schedule): Likewise.
7983 (ps_has_conflicts): Likewise.
7984
7985 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7986
7987 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7988 "tailp" from rtx * to rtx_insn **.
7989
7990 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7991 from rtx to rtx_insn *.
7992 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7993 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7994 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7995 rtx to rtx_insn *.
7996 * modulo-sched.c (const_iteration_count): Strengthen return type
7997 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7998 use of NULL_RTX with NULL when working with insns.
7999 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
8000 to rtx_insn *.
8001 (sms_schedule): Likewise.
8002 * sched-rgn.c (init_ready_list): Likewise, also for locals
8003 "src_head" and "src_next_tail".
8004 (compute_block_dependences): Likewise.
8005 (free_block_dependencies): Likewise.
8006 (debug_rgn_dependencies): Likewise.
8007 (free_rgn_deps): Likewise.
8008 (compute_priorities): Likewise.
8009 (schedule_region): Likewise.
8010 * sel-sched.c (find_ebb_boundaries): Likewise.
8011
8012 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
8013 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
8014
8015 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8016
8017 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
8018 from rtx to rtx_insn *.
8019 (new_seginfo): Likewise for param "insn".
8020 (create_pre_exit): Likewise for locals "last_insn",
8021 "before_return_copy", "return_copy".
8022 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
8023 "mode_set".
8024
8025 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8026
8027 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
8028 from rtx to rtx_insn *.
8029 (lra_push_insn): Likewise for 1st param.
8030 (lra_push_insn_and_update_insn_regno_info): Likewise.
8031 (lra_pop_insn): Likewise for return type.
8032 (lra_invalidate_insn_data): Likewise for 1st param.
8033 (lra_set_insn_deleted): Likewise.
8034 (lra_delete_dead_insn): Likewise.
8035 (lra_process_new_insns): Likewise for first 3 params.
8036 (lra_set_insn_recog_data): Likewise for 1st param.
8037 (lra_update_insn_recog_data): Likewise.
8038 (lra_set_used_insn_alternative): Likewise.
8039 (lra_invalidate_insn_regno_info): Likewise.
8040 (lra_update_insn_regno_info): Likewise.
8041 (lra_former_scratch_operand_p): Likewise.
8042 (lra_eliminate_regs_1): Likewise.
8043 (lra_get_insn_recog_data): Likewise.
8044
8045 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
8046 rtx to rtx_insn *.
8047
8048 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
8049 "mv1" and "mv2".
8050 (substitute_within_insn): New.
8051 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
8052 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
8053 Replace call to "substitute" with call to substitute_within_insn.
8054
8055 * lra-constraints.c (curr_insn): Strengthen from rtx to
8056 rtx_insn *.
8057 (get_equiv_with_elimination): Likewise for param "insn".
8058 (match_reload): Strengthen params "before" and "after" from rtx *
8059 to rtx_insn **.
8060 (emit_spill_move): Likewise for return type. Add a checked cast
8061 to rtx_insn * on result of gen_move_insn for now.
8062 (check_and_process_move): Likewise for local "before". Replace
8063 NULL_RTX with NULL when referring to insns.
8064 (process_addr_reg): Strengthen params "before" and "after" from
8065 rtx * to rtx_insn **.
8066 (insert_move_for_subreg): Likewise.
8067 (simplify_operand_subreg): Strengthen locals "before" and "after"
8068 from rtx to rtx_insn *.
8069 (process_address_1): Strengthen params "before" and "after" from
8070 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
8071 rtx to rtx_insn *.
8072 (process_address): Strengthen params "before" and "after" from
8073 rtx * to rtx_insn **.
8074 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
8075 (curr_insn_transform): Strengthen locals "before" and "after"
8076 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
8077 to insns.
8078 (loc_equivalence_callback): Update cast of "data", changing
8079 resulting type from rtx to rtx_insn *.
8080 (substitute_pseudo_within_insn): New.
8081 (inherit_reload_reg): Strengthen param "insn" from rtx to
8082 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
8083 NULL when referring to insns. Add a checked cast to rtx_insn *
8084 when using usage_insn to invoke lra_update_insn_regno_info.
8085 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
8086 likewise for locals "restore", "save". Add checked casts to
8087 rtx_insn * when using usage_insn to invoke
8088 lra_update_insn_regno_info and lra_process_new_insns. Replace
8089 NULL_RTX with NULL when referring to insns.
8090 (split_if_necessary): Strengthen param "insn" from rtx to
8091 rtx_insn *.
8092 (update_ebb_live_info): Likewise for params "head", "tail" and local
8093 "prev_insn".
8094 (get_last_insertion_point): Likewise for return type and local "insn".
8095 (get_live_on_other_edges): Likewise for local "last".
8096 (inherit_in_ebb): Likewise for params "head", "tail" and locals
8097 "prev_insn", "next_insn", "restore".
8098 (remove_inheritance_pseudos): Likewise for local "prev_insn".
8099 (undo_optional_reloads): Likewise for local "insn".
8100
8101 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
8102 "insn".
8103 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
8104 insns.
8105 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
8106 rtx_insn *.
8107 (spill_pseudos): Likewise for local "insn".
8108 (init_elimination): Likewise.
8109 (process_insn_for_elimination): Likewise for param "insn".
8110
8111 * lra-lives.c (curr_insn): Likewise.;
8112
8113 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
8114 (remove_pseudos): Likewise for param "insn".
8115 (spill_pseudos): Likewise for local "insn".
8116 (lra_final_code_change): Likewise for locals "insn", "curr".
8117
8118 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
8119 (lra_set_insn_deleted): Likewise.
8120 (lra_delete_dead_insn): Likewise, and for local "prev".
8121 (new_insn_reg): Likewise for param "insn".
8122 (lra_set_insn_recog_data): Likewise.
8123 (lra_update_insn_recog_data): Likewise.
8124 (lra_set_used_insn_alternative): Likewise.
8125 (get_insn_freq): Likewise.
8126 (invalidate_insn_data_regno_info): Likewise.
8127 (lra_invalidate_insn_regno_info): Likewise.
8128 (lra_update_insn_regno_info): Likewise.
8129 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
8130 vec<rtx_insn *>.
8131 (lra_push_insn_1): Strengthen param "insn" from rtx to
8132 rtx_insn *.
8133 (lra_push_insn): Likewise.
8134 (lra_push_insn_and_update_insn_regno_info): Likewise.
8135 (lra_pop_insn): Likewise for return type and local "insn".
8136 (push_insns): Likewise for params "from", "to", and local "insn".
8137 (setup_sp_offset): Likewise for params "from", "last" and locals
8138 "before", "insn".
8139 (lra_process_new_insns): Likewise for params "insn", "before",
8140 "after" and local "last".
8141 (struct sloc): Likewise for field "insn".
8142 (lra_former_scratch_operand_p): Likewise for param "insn".
8143 (remove_scratches): Likewise for locals "insn", "last".
8144 (check_rtl): Likewise for local "insn".
8145 (add_auto_inc_notes): Likewise for param "insn".
8146 (update_inc_notes): Likewise for local "insn".
8147 (lra): Replace NULL_RTX with NULL when referring to insn.
8148
8149 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8150
8151 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
8152 to rtx_insn *.
8153 (resolve_reg_notes): Likewise.
8154 (resolve_simple_move): Likewise for return type, param "insn", and
8155 locals "insns", "minsn".
8156 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
8157 (resolve_use): Likewise.
8158 (resolve_debug): Likewise.
8159 (find_decomposable_shift_zext): Likewise.
8160 (resolve_shift_zext): Likewise for return type, param "insn", and
8161 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
8162 (decompose_multiword_subregs): Likewise for local "insn",
8163 "orig_insn", "decomposed_shift", "end".
8164
8165 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8166
8167 * basic-block.h (basic_block split_edge_and_insert): Strengthen
8168 param "insns" from rtx to rtx_insn *.
8169
8170 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
8171 rtx to rtx_insn *.
8172 (struct iv_to_split): Likewise.
8173 (loop_exit_at_end_p): Likewise for local "insn".
8174 (split_edge_and_insert): Likewise for param "insns".
8175 (compare_and_jump_seq): Likewise for return type, param "cinsn",
8176 and locals "seq", "jump".
8177 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
8178 "branch_code"; update invocations of compare_and_jump_seq to
8179 eliminate NULL_RTX in favor of NULL.
8180 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
8181 rtx to rtx_insn *.
8182 (reset_debug_uses_in_loop): Likewise.
8183 (analyze_insn_to_expand_var): Likewise for param "insn".
8184 (analyze_iv_to_split_insn): Likewise.
8185 (analyze_insns_in_loop): Likewise for local "insn".
8186 (insert_base_initialization): Likewise for param
8187 "insn" and local "seq".
8188 (split_iv): Likewise for param "insn" and local "seq".
8189 (expand_var_during_unrolling): Likewise for param "insn".
8190 (insert_var_expansion_initialization): Likewise for local "seq".
8191 (combine_var_copies_in_loop_exit): Likewise.
8192 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
8193 "insn".
8194 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
8195 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
8196 "next".
8197
8198 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8199
8200 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
8201 rtx_insn *.
8202 (iv_analyze_result): Likewise.
8203 (iv_analyze_expr): Likewise.
8204 (biv_p): Likewise.
8205
8206 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
8207 local "def_insn" from rtx to rtx_insn *.
8208 (get_biv_step_1): Likewise for local "insn".
8209 (iv_analyze_expr): Likewise for param "insn".
8210 (iv_analyze_def): Likewise for local "insn".
8211 (iv_analyze_op): Likewise for param "insn".
8212 (iv_analyze): Likewise.
8213 (iv_analyze_result): Likewise.
8214 (biv_p): Likewise.
8215 (suitable_set_for_replacement): Likewise.
8216 (simplify_using_initial_values): Likewise for local "insn".
8217 (iv_number_of_iterations): Likewise for param "insn".
8218 (check_simple_exit): Add checked cast to rtx_insn when invoking
8219 iv_number_of_iterations for now (until get_condition is
8220 strengthened).
8221
8222 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
8223 "insn" from rtx to rtx_insn *.
8224 (analyze_insns_in_loop): Likewise for local "insn".
8225
8226 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8227
8228 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
8229 to rtx_insn *.
8230 (struct invariant): Likewise.
8231 (hash_invariant_expr_1): Likewise for param "insn".
8232 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
8233 (find_exits): Likewise for local "insn".
8234 (create_new_invariant): Likewise for param "insn".
8235 (check_dependencies): Likewise.
8236 (find_invariant_insn): Likewise.
8237 (record_uses): Likewise.
8238 (find_invariants_insn): Likewise.
8239 (find_invariants_bb): Likewise for local "insn".
8240 (get_pressure_class_and_nregs): Likewise for param "insn".
8241 (calculate_loop_reg_pressure): Likewise for local "insn".
8242
8243 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8244
8245 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
8246 to rtx_insn *.
8247 (add_test): Likewise for locals "seq", "jump".
8248 (doloop_modify): Likewise for locals "sequence", "jump_insn".
8249
8250 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8251
8252 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
8253 rtx_insn *.
8254 (rebuild_jump_labels_chain): Likewise for param "chain".
8255
8256 * cfgexpand.c (pass_expand::execute): Add checked cast to
8257 rtx_insn * when calling rebuild_jump_labels_chain in region where
8258 we know e->insns.r is non-NULL.
8259
8260 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
8261 rtx_insn *.
8262 (rebuild_jump_labels): Likewise.
8263 (rebuild_jump_labels_chain): Likewise for param "chain".
8264 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
8265 (init_label_info): Likewise for param "f".
8266 (maybe_propagate_label_ref): Likewise for params "jump_insn",
8267 "prev_nonjump_insn".
8268 (mark_all_labels): Likewise for param "f" and locals "insn",
8269 "prev_nonjump_insn".
8270
8271 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8272
8273 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
8274 from rtx to rtx_insn *insn.
8275 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
8276 (ira_add_allocno_copy): Likewise.
8277 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
8278 rtx to rtx_insn *.
8279 (ira_create_copy): Likewise.
8280 (ira_add_allocno_copy): Likewise.
8281 (create_bb_allocnos): Likewise for local "insn".
8282 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
8283 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
8284 process_regs_for_copy for rtx_insn * param.
8285 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
8286 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
8287 process_regs_for_copy for rtx_insn * param.
8288 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
8289 * ira-costs.c (record_reg_classes): Likewise for param "insn".
8290 (record_operand_costs): Likewise.
8291 (scan_one_insn): Likewise for return type, and for param "insn".
8292 (process_bb_for_costs): Likewise for local "insn".
8293 (process_bb_node_for_hard_reg_moves): Likewise.
8294 * ira-emit.c (struct move): Likewise for field "insn".
8295 (create_move): Eliminate use of NULL_RTX when dealing with an
8296 rtx_insn *.
8297 (emit_move_list): Strengthen return type and locals "result",
8298 "insn" from rtx to rtx_insn *insn.
8299 (emit_moves): Likewise for locals "insns", "tmp".
8300 (ira_emit): Likewise for local "insn".
8301 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
8302 "insn".
8303 (find_call_crossed_cheap_reg): Likewise.
8304 (process_bb_node_lives): Likewise for local "insn".
8305 * ira.c (decrease_live_ranges_number): Likewise.
8306 (compute_regs_asm_clobbered): Likewise.
8307 (build_insn_chain): Likewise.
8308 (find_moveable_pseudos): Likewise, also locals "def_insn",
8309 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
8310 to rtx_insn **. Add a checked cast when assigning from
8311 "closest_use" into closest_uses array in a region where we know
8312 it's a non-NULL insn.
8313 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
8314 to rtx_insn *.
8315 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
8316 "last_interesting_insn", "uin".
8317 (move_unallocated_pseudos): Likewise for locals "def_insn",
8318 "move_insn", "newinsn".
8319
8320 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8321
8322 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
8323 Strengthen locals "done_label", "do_error" from rtx to
8324 rtx_code_label *.
8325 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
8326 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
8327 rtx_code_label *.
8328 (ubsan_expand_si_overflow_neg_check): Likewise for locals
8329 "done_label", "do_error" to rtx_code_label * and local "last" to
8330 rtx_insn *.
8331 (ubsan_expand_si_overflow_mul_check): Likewise for locals
8332 "done_label", "do_error", "large_op0", "small_op0_large_op1",
8333 "one_small_one_large", "both_ops_large", "after_hipart_neg",
8334 "after_lopart_neg", "do_overflow", "hipart_different" to
8335 rtx_code_label * and local "last" to rtx_insn *.
8336
8337 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8338
8339 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8340 "insn" and "move_insn" from rtx to rtx_insn *.
8341
8342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8343
8344 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8345 rtx_insn *.
8346 (cheap_bb_rtx_cost_p): Likewise.
8347 (first_active_insn): Likewise for return type and local "insn".
8348 (last_active_insn): Likewise for return type and locals "insn",
8349 "head".
8350 (struct noce_if_info): Likewise for fields "jump", "insn_a",
8351 "insn_b".
8352 (end_ifcvt_sequence): Likewise for return type and locals "insn",
8353 "seq".
8354 (noce_try_move): Likewise for local "seq".
8355 (noce_try_store_flag): Likewise.
8356 (noce_try_store_flag_constants): Likewise.
8357 (noce_try_addcc): Likewise.
8358 (noce_try_store_flag_mask): Likewise.
8359 (noce_try_cmove): Likewise.
8360 (noce_try_minmax): Likewise.
8361 (noce_try_abs): Likewise.
8362 (noce_try_sign_mask): Likewise.
8363 (noce_try_bitop): Likewise.
8364 (noce_can_store_speculate_p): Likewise for local "insn".
8365 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8366 seq".
8367 (check_cond_move_block): Likewise for local "insn".
8368 (cond_move_convert_if_block): Likewise.
8369 (cond_move_process_if_block): Likewise for locals "seq",
8370 "loc_insn".
8371 (noce_find_if_block): Likewise for local "jump".
8372 (merge_if_block): Likewise for local "last".
8373 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8374 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8375 (block_has_only_trap): Likewise for return type and local "trap".
8376 (find_if_case_1): Likewise for local "jump".
8377 (dead_or_predicable): Likewise for locals "head", "end", "jump",
8378 "insn".
8379
8380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8381
8382 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8383 "last_insn", "loop_end" from rtx to rtx_insn *.
8384
8385 * hw-doloop.c (scan_loop): Likewise for local "insn".
8386 (discover_loop): Likewise for param "tail_insn".
8387 (discover_loops): Likewise for local "tail".
8388
8389 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8390 cast to rtx_insn * when assigning from an rtx local to a
8391 hwloop_info's "last_insn" field.
8392
8393 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8394
8395 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8396 (add_delay_dependencies): Strengthen local "pro" from rtx to
8397 rtx_insn *.
8398 (recompute_todo_spec): Likewise.
8399 (dep_cost_1): Likewise for locals "insn", "used".
8400 (schedule_insn): Likewise for local "dbg".
8401 (schedule_insn): Likewise for locals "pro", "next".
8402 (unschedule_insns_until): Likewise for local "con".
8403 (restore_pattern): Likewise for local "next".
8404 (estimate_insn_tick): Likewise for local "pro".
8405 (resolve_dependencies): Likewise for local "next".
8406 (fix_inter_tick): Likewise.
8407 (fix_tick_ready): Likewise for local "pro".
8408 (add_to_speculative_block): Likewise for locals "check", "twin",
8409 "pro".
8410 (sched_extend_bb): Likewise for locals "end", "insn".
8411 (init_before_recovery): Likewise for local "x".
8412 (sched_create_recovery_block): Likewise for local "barrier".
8413 (create_check_block_twin): Likewise for local "pro".
8414 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8415 "consumer".
8416 (unlink_bb_notes): Update for change to type of bb_header.
8417 Strengthen locals "prev", "label", "note", "next" from rtx to
8418 rtx_insn *.
8419 (clear_priorities): Likewise for local "pro".
8420
8421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8422
8423 * gcse.c (struct occr): Strengthen field "insn" from rtx to
8424 rtx_insn *.
8425 (test_insn): Likewise for this global.
8426 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8427 const rtx_insn *.
8428 (oprs_anticipatable_p): Likewise.
8429 (oprs_available_p): Likewise.
8430 (insert_expr_in_table): Strengthen param "insn" from rtx to
8431 rtx_insn *.
8432 (hash_scan_set): Likewise.
8433 (hash_scan_clobber): Likewise.
8434 (hash_scan_call): Likewise.
8435 (hash_scan_insn): Likewise.
8436 (compute_hash_table_work): Likewise for local "insn".
8437 (process_insert_insn): Likewise for return type and local "pat".
8438 (insert_insn_end_basic_block): Likewise for locals "new_insn",
8439 "pat", "pat_end", "maybe_cc0_setter".
8440 (pre_edge_insert): Likewise for local "insn".
8441 (pre_insert_copy_insn): Likewise for param "insn".
8442 (pre_insert_copies): Likewise for local "insn".
8443 (struct set_data): Likewise for field "insn".
8444 (single_set_gcse): Likewise for param "insn".
8445 (gcse_emit_move_after): Likewise.
8446 (pre_delete): Likewise for local "insn".
8447 (update_bb_reg_pressure): Likewise for param "from" and local
8448 "insn".
8449 (should_hoist_expr_to_dom): Likewise for param "from".
8450 (hoist_code): Likewise for local "insn".
8451 (get_pressure_class_and_nregs): Likewise for param "insn".
8452 (calculate_bb_reg_pressure): Likewise for local "insn".
8453 (compute_ld_motion_mems): Likewise.
8454
8455 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8456
8457 * genpeep.c (main): Rename param back from "uncast_ins1" to
8458 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
8459 checked cast.
8460
8461 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8462
8463 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8464
8465 PR target/62195
8466 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8467 documentation to state it is only for VSX operations.
8468
8469 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8470 constraint only active if VSX.
8471
8472 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8473 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8474 (lfiwzx): Likewise.
8475
8476 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8477
8478 * fwprop.c (single_def_use_dom_walker::before_dom_children):
8479 Strengthen local "insn" from rtx to rtx_insn *.
8480 (use_killed_between): Likewise for param "target_insn".
8481 (all_uses_available_at): Likewise for param "target_insn" and
8482 local "next".
8483 (update_df_init): Likewise for params "def_insn", "insn".
8484 (update_df): Likewise for param "insn".
8485 (try_fwprop_subst): Likewise for param "def_insn" and local
8486 "insn".
8487 (free_load_extend): Likewise for param "insn".
8488 (forward_propagate_subreg): Likewise for param "def_insn" and
8489 local "use_insn".
8490 (forward_propagate_asm): Likewise for param "def_insn" and local
8491 "use_insn".
8492 (forward_propagate_and_simplify): Likewise for param "def_insn"
8493 and local "use_insn".
8494 (forward_propagate_into): Likewise for locals "def_insn" and
8495 "use_insn".
8496
8497 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8498
8499 * function.c (emit_initial_value_sets): Strengthen local "seq"
8500 from rtx to rtx_insn *.
8501 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8502 local "seq".
8503 (instantiate_virtual_regs): Likewise for local "insn".
8504 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8505 (reorder_blocks_1): Likewise for param "insns" and local "insn".
8506 (expand_function_end): Likewise for locals "insn" and "seq".
8507 (epilogue_done): Likewise for local "insn".
8508 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8509 "last", "trial".
8510 (reposition_prologue_and_epilogue_notes): Likewise for locals
8511 "insn", "last", "note", "first".
8512 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8513 (pass_match_asm_constraints::execute): Likewise for local "insn".
8514
8515 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8516
8517 * output.h (final_scan_insn): Strengthen return type from rtx to
8518 rtx_insn *.
8519 (final_forward_branch_p): Likewise for param.
8520 (current_output_insn): Likewise for this global.
8521
8522 * final.c (rtx debug_insn): Likewise for this variable.
8523 (current_output_insn): Likewise.
8524 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8525 adding "insn" back in as an rtx_insn * with a checked cast, so
8526 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8527 first param.
8528 (compute_alignments): Strengthen local "label" from rtx to
8529 rtx_insn *.
8530 (shorten_branches): Rename param from "first" to "uncast_first",
8531 introducing a new local rtx_insn * "first" using a checked cast to
8532 effectively strengthen "first" from rtx to rtx_insn * without
8533 affecting the type signature. Strengthen locals "insn", "seq",
8534 "next", "label" from rtx to rtx_insn *.
8535 (change_scope): Strengthen param "orig_insn" and local "insn" from
8536 rtx to rtx_insn *.
8537 (final_start_function): Rename param from "first" to "uncast_first",
8538 introducing a new local rtx_insn * "first" using a checked cast to
8539 effectively strengthen "first" from rtx to rtx_insn * without
8540 affecting the type signature. Strengthen local "insn" from rtx to
8541 rtx_insn *.
8542 (dump_basic_block_info): Strengthen param "insn" from rtx to
8543 rtx_insn *.
8544 (final): Rename param from "first" to "uncast_first",
8545 introducing a new local rtx_insn * "first" using a checked cast to
8546 effectively strengthen "first" from rtx to rtx_insn * without
8547 affecting the type signature. Strengthen locals "insn", "next"
8548 from rtx to rtx_insn *.
8549 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8550 rtx_insn *.
8551 (call_from_call_insn): Strengthen param "insn" from rtx to
8552 rtx_call_insn *.
8553 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8554 introducing a new local rtx_insn * "insn" using a checked cast to
8555 effectively strengthen "insn" from rtx to rtx_insn * without
8556 affecting the type signature. Strengthen return type and locals
8557 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8558 now-redundant checked cast to rtx_insn * from both invocations of
8559 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8560 introducing a local "call_insn" for use when invoking
8561 call_from_call_insn.
8562 (notice_source_line): Strengthen param "insn" from rtx to
8563 rtx_insn *.
8564 (leaf_function_p): Likewise for local "insn".
8565 (final_forward_branch_p): Likewise.
8566 (leaf_renumber_regs): Likewise for param "first".
8567 (rest_of_clean_state): Likewise for locals "insn" and "next".
8568 (self_recursive_call_p): Likewise for param "insn".
8569 (collect_fn_hard_reg_usage): Likewise for local "insn".
8570 (get_call_fndecl): Likewise for param "insn".
8571 (get_call_cgraph_rtl_info): Likewise.
8572 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8573 introducing a new local rtx_insn * "insn" using a checked cast to
8574 effectively strengthen "insn" from rtx to rtx_insn * without
8575 affecting the type signature.
8576
8577 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8578 cast when assigning from param "insn" to current_output_insn.
8579 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8580 so that we can assign it back to current_output_insn.
8581
8582 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8583
8584 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8585 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8586 atmxt540s and atmxt540sreva devices.
8587 * config/avr/avr-tables.opt: Regenerate.
8588 * config/avr/t-multilib: Regenerate.
8589 * doc/avr-mmcu.texi: Regenerate.
8590
8591 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8592
8593 * expr.c (convert_move): Strengthen local "insns" from rtx to
8594 rtx_insn *.
8595 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8596 "top_label" from rtx to rtx_code_label *.
8597 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8598 rtx_insn *.
8599 (emit_single_push_insn): Likewise for locals "prev", "last".
8600 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8601 to rtx_code_label *.
8602 (store_constructor): Likewise for locals "loop_start", "loop_end".
8603 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8604 rtx_insn *.
8605 (expand_expr_real_2): Likewise.
8606 (expand_expr_real_1): Strengthen local "label" from rtx to
8607 rtx_code_label *.
8608
8609 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8610
8611 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8612 from rtx to rtx_insn *.
8613 (store_bit_field_1): Likewise.
8614 (extract_bit_field_1): Likewise.
8615 (expand_mult_const): Likewise for local "insns".
8616 (expmed_mult_highpart): Strengthen local "label" from rtx to
8617 rtx_code_label *.
8618 (expand_smod_pow2): Likewise.
8619 (expand_sdiv_pow2): Likewise.
8620 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8621 rtx_insn *. Strengthen locals "label", "label1", "label2",
8622 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8623 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8624 (emit_store_flag): Likewise.
8625 (emit_store_flag_force): Strengthen local "label" from rtx to
8626 rtx_code_label *.
8627 (do_cmp_and_jump): Likewise for param "label".
8628
8629 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8630
8631 * explow.c (force_reg): Strengthen local "insn" from rtx to
8632 rtx_insn *.
8633 (adjust_stack_1): Likewise.
8634 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8635 "final_label", "available_label", "space_available" from rtx to
8636 rtx_code_label *.
8637 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8638 (anti_adjust_stack_and_probe): Likewise.
8639
8640 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8641
8642 * except.h (sjlj_emit_function_exit_after): Strengthen param
8643 "after" from rtx to rtx_insn *. This is only called with
8644 result of get_last_insn (in function.c) so type-change should be
8645 self-contained.
8646
8647 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8648 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8649 to rtx_insn *. These fields are only used from except.c so this
8650 type-change should be self-contained to this patch.
8651
8652 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8653 local "last" from rtx to rtx_insn *.
8654 (dw2_build_landing_pads): Likewise for local "seq".
8655 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8656 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8657 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8658 rtx to rtx_insn *.
8659 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8660 to rtx_insn *.
8661 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8662 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8663 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8664 referring to an insn. Strengthen local "dispatch_label" from
8665 rtx to rtx_code_label *.
8666 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8667 rtx_insn *.
8668 (expand_eh_return): Strengthen local "around_label" from
8669 rtx to rtx_code_label *.
8670 (convert_to_eh_region_ranges): Strengthen locals "iter",
8671 "last_action_insn", "first_no_action_insn",
8672 "first_no_action_insn_before_switch",
8673 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8674
8675 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8676
8677 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8678 from rtx to rtx_insn *.
8679 (cached_next_real_insn): Likewise.
8680 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8681 working with insns.
8682 (dwarf2out_var_location): Strengthen locals "next_real",
8683 "next_note", "expected_next_loc_note", "last_start", "insn" from
8684 rtx to rtx_insn *.
8685
8686 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8687
8688 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8689 from rtx to rtx_insn *.
8690 (create_pseudo_cfg): Likewise for local "insn".
8691
8692 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8693
8694 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8695 from rtx to rtx_insn *.
8696 (df_bb_regno_last_def_find): Likewise.
8697
8698 * df-problems.c (df_rd_bb_local_compute): Likewise.
8699 (df_lr_bb_local_compute): Likewise.
8700 (df_live_bb_local_compute): Likewise.
8701 (df_chain_remove_problem): Likewise.
8702 (df_chain_create_bb): Likewise.
8703 (df_word_lr_bb_local_compute): Likewise.
8704 (df_remove_dead_eq_notes): Likewise for param "insn".
8705 (df_note_bb_compute): Likewise for local "insn".
8706 (simulate_backwards_to_point): Likewise.
8707 (df_md_bb_local_compute): Likewise.
8708
8709 * df-scan.c (df_scan_free_bb_info): Likewise.
8710 (df_scan_start_dump): Likewise.
8711 (df_scan_start_block): Likewise.
8712 (df_install_ref_incremental): Likewise for local "insn".
8713 (df_insn_rescan_all): Likewise.
8714 (df_reorganize_refs_by_reg_by_insn): Likewise.
8715 (df_reorganize_refs_by_insn_bb): Likewise.
8716 (df_recompute_luids): Likewise.
8717 (df_bb_refs_record): Likewise.
8718 (df_update_entry_exit_and_calls): Likewise.
8719 (df_bb_verify): Likewise.
8720
8721 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8722
8723 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8724 "first_note" from rtx to rtx_insn *.
8725 (get_node_of_insn): Likewise for param 2 "insn".
8726 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8727
8728 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8729 rtx_insn *.
8730 (mem_write_insn_p): Likewise.
8731 (mem_access_insn_p): Likewise.
8732 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8733 (def_has_ccmode_p): Likewise for param "insn".
8734 (add_cross_iteration_register_deps): Likewise for locals
8735 "def_insn" and "use_insn".
8736 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8737 (build_intra_loop_deps): Likewise for local "src_insn".
8738 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8739 to rtx_insn *.
8740 (get_node_of_insn): Likewise for param "insn".
8741
8742 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8743
8744 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8745 (deletable_insn_p): Strengthen param "insn" from rtx to
8746 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8747 find_call_stack_args, since this is guarded by CALL_P (insn).
8748 (marked_insn_p): Strengthen param "insn" from rtx to
8749 rtx_insn *.
8750 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8751 invoking find_call_stack_args, since this is guarded by
8752 CALL_P (insn).
8753 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8754 rtx_insn *; we know this is an insn since this was called by
8755 mark_nonreg_stores.
8756 (mark_nonreg_stores_2): Likewise.
8757 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8758 rtx_insn *.
8759 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8760 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8761 to rtx_insn *.
8762 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8763 from rtx to rtx_insn *.
8764 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8765 "next", "ref_insn".
8766 (delete_unmarked_insns): Likewise for locals "insn", "next".
8767 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8768 (mark_reg_dependencies): Likewise for param "insn".
8769 (rest_of_handle_ud_dce): Likewise for local "insn".
8770 (word_dce_process_block): Likewise.
8771 (dce_process_block): Likewise.
8772
8773 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8774
8775 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8776 from rtx to rtx_insn *.
8777 (struct change_cc_mode_args): Likewise for field "insn".
8778 (this_insn): Strengthen from rtx to rtx_insn *.
8779 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8780 with insn.
8781 (validate_canon_reg): Strengthen param "insn" from rtx to
8782 rtx_insn *.
8783 (canon_reg): Likewise.
8784 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8785 dealing with insn.
8786 (record_jump_equiv): Strengthen param "insn" from rtx to
8787 rtx_insn *.
8788 (try_back_substitute_reg): Likewise, also for locals "prev",
8789 "bb_head".
8790 (find_sets_in_insn): Likewise for param "insn".
8791 (canonicalize_insn): Likewise.
8792 (cse_insn): Likewise. Add a checked cast.
8793 (invalidate_from_clobbers): Likewise for param "insn".
8794 (invalidate_from_sets_and_clobbers): Likewise.
8795 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8796 dealing with insn.
8797 (cse_prescan_path): Strengthen local "insn" from rtx to
8798 rtx_insn *.
8799 (cse_extended_basic_block): Likewise for locals "insn" and
8800 "prev_insn".
8801 (cse_main): Likewise for param "f".
8802 (check_for_label_ref): Likewise for local "insn".
8803 (set_live_p): Likewise for second param ("insn").
8804 (insn_live_p): Likewise for first param ("insn") and for local
8805 "next".
8806 (cse_change_cc_mode_insn): Likewise for first param "insn".
8807 (cse_change_cc_mode_insns): Likewise for first and second params
8808 "start" and "end".
8809 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8810 and "end".
8811 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8812 "cc_src_insn".
8813
8814 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8815 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8816 Anna Tikhonova <anna.tikhonova@intel.com>
8817 Ilya Tocar <ilya.tocar@intel.com>
8818 Andrey Turetskiy <andrey.turetskiy@intel.com>
8819 Ilya Verbin <ilya.verbin@intel.com>
8820 Kirill Yukhin <kirill.yukhin@intel.com>
8821 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8822
8823 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8824 New.
8825 * config/i386/sse.md
8826 (define_mode_iterator VI248_AVX2): Delete.
8827 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8828 (define_mode_iterator VI48_AVX2): Ditto.
8829 (define_insn <shift_insn><mode>3): Delete.
8830 (define_insn "<shift_insn><mode>3<mask_name>" with
8831 VI2_AVX2_AVX512BW): New.
8832 (define_insn "<shift_insn><mode>3<mask_name>" with
8833 VI48_AVX2): Ditto.
8834
8835 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8836 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8837 Anna Tikhonova <anna.tikhonova@intel.com>
8838 Ilya Tocar <ilya.tocar@intel.com>
8839 Andrey Turetskiy <andrey.turetskiy@intel.com>
8840 Ilya Verbin <ilya.verbin@intel.com>
8841 Kirill Yukhin <kirill.yukhin@intel.com>
8842 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8843
8844 * config/i386/sse.md
8845 (define_mode_iterator VI4F_BRCST32x2): New.
8846 (define_mode_attr 64x2_mode): Ditto.
8847 (define_mode_attr 32x2mode): Ditto.
8848 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8849 with VI4F_BRCST32x2): Ditto.
8850 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8851 with V16FI mode iterator): Ditto.
8852 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8853 with V16FI): Ditto.
8854 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8855 with VI8F_BRCST64x2): Ditto.
8856
8857 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8858 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8859 Anna Tikhonova <anna.tikhonova@intel.com>
8860 Ilya Tocar <ilya.tocar@intel.com>
8861 Andrey Turetskiy <andrey.turetskiy@intel.com>
8862 Ilya Verbin <ilya.verbin@intel.com>
8863 Kirill Yukhin <kirill.yukhin@intel.com>
8864 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8865
8866 * config/i386/sse.md
8867 (define_mode_iterator VI8_AVX512VL): New.
8868 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8869
8870 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8871
8872 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8873 (define_mode_iterator V48_AVX512VL): New.
8874 (define_mode_iterator V12_AVX512VL): Ditto.
8875 (define_insn <avx512>_load<mode>_mask): Split into two similar
8876 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8877 Refactor output template.
8878 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8879
8880 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8881
8882 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8883 rtx_insn *.
8884 (reg_available_p): Likewise for param "insn".
8885 (insert_set_in_table): Likewise.
8886 (hash_scan_set): Likewise.
8887 (hash_scan_insn): Likewise.
8888 (make_set_regs_unavailable): Likewise.
8889 (compute_hash_table_work): Likewise for local "insn".
8890 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8891 const rtx_insn *.
8892 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8893 (try_replace_reg): Likewise.
8894 (find_avail_set): Likewise.
8895 (cprop_jump): Likewise for params "setcc", "jump".
8896 (constprop_register): Likewise for param "insn".
8897 (cprop_insn): Likewise.
8898 (do_local_cprop): Likewise.
8899 (local_cprop_pass): Likewise for local "insn".
8900 (bypass_block): Likewise for params "setcc" and "jump".
8901 (bypass_conditional_jumps): Likewise for locals "setcc" and
8902 "insn".
8903 (one_cprop_pass): Likewise for local "insn".
8904
8905 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8906
8907 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8908 from rtx to rtx_insn *.
8909 (struct comparison): Likewise, also for field "prev_clobber".
8910 (conforming_compare): Likewise for param "insn".
8911 (arithmetic_flags_clobber_p): Likewise.
8912 (find_flags_uses_in_insn): Likewise.
8913 (find_comparison_dom_walker::before_dom_children): Likewise for
8914 locals "insn", "next", "last_clobber".
8915 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8916
8917 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8918
8919 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8920 "insn" from rtx to rtx_insn *.
8921 (single_set_for_csa): Likewise for param "insn".
8922 (record_one_stack_ref): Likewise.
8923 (try_apply_stack_adjustment): Likewise.
8924 (struct record_stack_refs_data): Likewise for field "insn".
8925 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8926 (prev_active_insn_bb): Likewise for return type and param "insn".
8927 (next_active_insn_bb): Likewise.
8928 (force_move_args_size_note): Likewise for params "prev" and "last"
8929 and locals "test", "next_candidate", "prev_candidate".
8930 (combine_stack_adjustments_for_block): Strengthen locals
8931 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8932 rtx_insn *.
8933
8934 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8935
8936 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8937 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8938 (subst_insn): Likewise for this variable.
8939 (added_links_insn): Likewise.
8940 (struct insn_link): Likewise for field "insn".
8941 (alloc_insn_link): Likewise for param "insn".
8942 (struct undobuf): Likewise for field "other_insn".
8943 (find_single_use): Likewise for param "insn" and local "next".
8944 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8945 (delete_noop_moves): Likewise for locals "insn", "next".
8946 (create_log_links): Likewise for locals "insn", "use_insn".
8947 Strengthen local "next_use" from rtx * to rtx_insn **.
8948 (insn_a_feeds_b): Likewise for params "a", "b".
8949 (combine_instructions): Likewise for param "f" and locals "insn",
8950 "next", "prev", "first", "last_combined_insn", "link", "link1",
8951 "temp". Replace use of NULL_RTX with NULL when referring to
8952 insns.
8953 (setup_incoming_promotions): Likewise for param "first"
8954 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8955 (can_combine_p): Likewise for params "insn", "i3", "pred",
8956 "pred2", "succ", "succ2" and for local "p".
8957 (combinable_i3pat): Likewise for param "i3".
8958 (cant_combine_insn_p): Likewise for param "insn".
8959 (likely_spilled_retval_p): Likewise.
8960 (adjust_for_new_dest): Likewise.
8961 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8962 (try_combine): Likewise for return type and for params "i3", "i2",
8963 "i1", "i0", "last_combined_insn", and for locals "insn",
8964 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8965 "i0_insn". Eliminate local "tem" in favor of new locals
8966 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8967 checked cast for now to rtx_insn * on the return type of
8968 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8969 insns.
8970 (find_split_point): Strengthen param "insn" from rtx to
8971 rtx_insn *.
8972 (simplify_set): Likewise for local "other_insn".
8973 (recog_for_combine): Likewise for param "insn".
8974 (record_value_for_reg): Likewise.
8975 (record_dead_and_set_regs_1): Likewise for local
8976 "record_dead_insn".
8977 (record_dead_and_set_regs): Likewise for param "insn".
8978 (record_promoted_value): Likewise.
8979 (check_promoted_subreg): Likewise.
8980 (get_last_value_validate): Likewise.
8981 (reg_dead_at_p): Likewise.
8982 (move_deaths): Likewise for param "to_insn".
8983 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8984 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8985 in favor of new locals "tem_note" and "tem_insn", the latter being
8986 an rtx_insn *.
8987 (distribute_links): Strengthen locals "place", "insn" from rtx to
8988 rtx_insn *.
8989
8990 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8991
8992 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8993 than a const_rtx.
8994 (can_delete_label_p): Require a const rtx_code_label * rather than
8995 a const_rtx.
8996 (delete_insn): Add checked cast to rtx_code_label * when we know
8997 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8998 rtx to rtx_insn *.
8999 (delete_insn_chain): Strengthen locals "prev" and "current" from
9000 rtx to rtx_insn *. Add a checked cast when assigning from
9001 "finish" (strengthening the params will come later). Add a
9002 checked cast to rtx_note * in region where we know
9003 NOTE_P (current).
9004 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
9005 rtx_insn *.
9006 (compute_bb_for_insn): Likewise.
9007 (free_bb_for_insn): Likewise for local "insn".
9008 (compute_bb_for_insn): Likewise.
9009 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
9010 local "insn" from rtx to rtx_insn *
9011 (flow_active_insn_p): Require a const rtx_insn * rather than a
9012 const_rtx.
9013 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
9014 rtx_insn *.
9015 (can_fallthru): Likewise for locals "insn" and "insn2".
9016 (bb_note): Likewise for local "note".
9017 (first_insn_after_basic_block_note): Likewise for local "note" and
9018 for return type.
9019 (rtl_split_block): Likewise for locals "insn" and "next".
9020 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
9021 "end".
9022 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
9023 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
9024 "prev", "tmp".
9025 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
9026 them), "kill_from", "barrier", "new_insn".
9027 (patch_jump_insn): Likewise for params "insn", "old_label".
9028 (redirect_branch_edge): Likewise for locals "old_label", "insn".
9029 (force_nonfallthru_and_redirect): Likewise for locals "insn",
9030 "old_label", "new_label".
9031 (rtl_tidy_fallthru_edge): Likewise for local "q".
9032 (rtl_split_edge): Likewise for locals "before", "last".
9033 (commit_one_edge_insertion): Likewise for locals "before",
9034 "after", "insns", "tmp", "last", adding a checked cast where
9035 currently necessary.
9036 (commit_edge_insertions): Likewise.
9037 (rtl_dump_bb): Likewise for locals "insn", "last".
9038 (print_rtl_with_bb): Likewise for local "x".
9039 (rtl_verify_bb_insns): Likewise for local "x".
9040 (rtl_verify_bb_pointers): Likewise for local "insn".
9041 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
9042 "head", "end".
9043 (rtl_verify_fallthru): Likewise for local "insn".
9044 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
9045 (purge_dead_edges): Likewise for local "insn".
9046 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
9047 (skip_insns_after_block): Likewise for return type and for locals
9048 "insn", "last_insn", "next_head", "prev".
9049 (record_effective_endpoints): Likewise for locals "next_insn",
9050 "insn", "end".
9051 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
9052 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
9053 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
9054 (duplicate_insn_chain): For now, add checked cast from rtx to
9055 rtx_insn * when returning insn.
9056 (cfg_layout_duplicate_bb): Likewise for local "insn".
9057 (cfg_layout_delete_block): Likewise for locals "insn", "next",
9058 "prev", "remaints".
9059 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
9060 (rtl_block_empty_p): Likewise.
9061 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
9062 "split_point", "last".
9063 (rtl_block_ends_with_call_p): Likewise for local "insn".
9064 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
9065 const rtx_insn *.
9066 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
9067 "split_at_insn" from rtx to rtx_insn *.
9068 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
9069 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
9070 to const rtx_insn *.
9071 (rtl_account_profile_record): Likewise.
9072
9073 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9074
9075 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
9076 rtx to rtx_insn *.
9077 (average_num_loop_insns): Likewise.
9078 (init_set_costs): Likewise for local "seq".
9079 (seq_cost): Likewise for param "seq", from const_rtx to const
9080 rtx_insn *.
9081
9082 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9083
9084 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
9085 rtx to rtx_insn *.
9086
9087 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9088
9089 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
9090 "f1" and "f2" from rtx * to rtx_insn **.
9091 (flow_find_head_matching_sequence): Likewise.
9092
9093 * cfgcleanup.c (try_simplify_condjump): Strengthen local
9094 "cbranch_insn" from rtx to rtx_insn *.
9095 (thread_jump): Likewise for local "insn".
9096 (try_forward_edges): Likewise for local "last".
9097 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
9098 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
9099 "real_b_end".
9100 (can_replace_by): Likewise for params "i1", "i2".
9101 (old_insns_match_p): Likewise.
9102 (merge_notes): Likewise.
9103 (walk_to_nondebug_insn): Likewise for param "i1".
9104 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
9105 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
9106 "afterlast1", "afterlast2" from rtx to rtx_insn *.
9107 (flow_find_head_matching_sequence): Strengthen params "f1" and
9108 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
9109 "last1", "last2", "beforelast1", "beforelast2" from rtx to
9110 rtx_insn *.
9111 (outgoing_edges_match): Likewise for locals "last1", "last2".
9112 (try_crossjump_to_edge): Likewise for local "insn".
9113 Replace call to for_each_rtx with for_each_rtx_in_insn.
9114
9115 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
9116 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
9117 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
9118 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
9119 (try_optimize_cfg): Strengthen local "last" from rtx to
9120 rtx_insn *.
9121 (delete_dead_jumptables): Likewise for locals "insn", "next",
9122 "label".
9123
9124 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
9125 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
9126 "rtx else_first_tail", to reflect the basic-block.h changes above.
9127
9128 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9129
9130 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
9131 rtx_insn *.
9132 (purge_dead_tablejump_edges): Likewise.
9133 (find_bb_boundaries): Likewise for locals "insn", "end",
9134 "flow_transfer_insn".
9135
9136 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9137
9138 * caller-save.c (save_call_clobbered_regs): Strengthen locals
9139 "ins" and "prev" from rtx to rtx_insn *.
9140
9141 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9142
9143 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
9144 rtx_insn *.
9145 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
9146 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
9147 "scan_start".
9148 (load_register_parameters): Likewise for local "before_arg".
9149 (check_sibcall_argument_overlap): Likewise for param "insn".
9150 (expand_call): Likewise for locals "normal_call_insns",
9151 "tail_call_insns", "insns", "before_call", "after_args",
9152 "before_arg", "last", "prev". Strengthen one of the "last" from
9153 rtx to rtx_call_insn *.
9154 (fixup_tail_calls): Strengthen local "insn" from rtx to
9155 rtx_insn *.
9156 (emit_library_call_value_1): Likewise for locals "before_call" and
9157 "last".
9158
9159 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9160
9161 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
9162 and "last" from rtx to rtx_insn *.
9163 (expand_builtin_nonlocal_goto): Likewise for local "insn".
9164 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
9165 rtx_call_insn *.
9166 (expand_errno_check): Strengthen local "lab" from rtx to
9167 rtx_code_label *.
9168 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
9169 rtx_insn *.
9170 (expand_builtin_mathfn_2): Likewise.
9171 (expand_builtin_mathfn_ternary): Likewise.
9172 (expand_builtin_mathfn_3): Likewise.
9173 (expand_builtin_interclass_mathfn): Likewise for local "last".
9174 (expand_builtin_int_roundingfn): Likewise for local "insns".
9175 (expand_builtin_int_roundingfn_2): Likewise.
9176 (expand_builtin_strlen): Likewise for local "before_strlen".
9177 (expand_builtin_strncmp): Likewise for local "seq".
9178 (expand_builtin_signbit): Likewise for local "last".
9179 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
9180 from rtx to rtx_code_label *.
9181 (expand_stack_restore): Strengthen local "prev" from rtx to
9182 rtx_insn *.
9183
9184 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9185
9186 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
9187 to rtx_insn *.
9188 (struct btr_def_s): Likewise.
9189 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
9190 const rtx_insn *.
9191 (add_btr_def): Likewise.
9192 (new_btr_user): Likewise.
9193 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
9194 rtx to rtx_insn *.
9195 (link_btr_uses): Likewise.
9196 (move_btr_def): Likewise for locals "insp", "old_insn",
9197 "new_insn". Add checked cast to rtx_insn * for now on result of
9198 gen_move_insn.
9199 (can_move_up): Strengthen param "insn" from const_rtx to
9200 const rtx_insn *.
9201
9202 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9203
9204 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
9205 rtx_insn *.
9206 (get_uncond_jump_length): Likewise for locals "label", "jump".
9207 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
9208 "jump", "insn".
9209 (add_labels_and_missing_jumps): Likewise for local "new_jump".
9210 (fix_up_fall_thru_edges): Likewise for local "old_jump".
9211 (find_jump_block): Likewise for local "insn".
9212 (fix_crossing_conditional_branches): Likewise for locals
9213 "old_jump", "new_jump".
9214 (fix_crossing_unconditional_branches): Likewise for locals
9215 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
9216 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
9217
9218 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9219
9220 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
9221 rtx to rtx_insn *.
9222 (struct mem_insn): Likewise for field "insn".
9223 (reg_next_use): Strengthen from rtx * to rtx_insn **.
9224 (reg_next_inc_use): Likewise.
9225 (reg_next_def): Likewise.
9226 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
9227 from rtx to rtx_insn *.
9228 (move_insn_before): Likewise for param "next_insn" and local "insns".
9229 (attempt_change): Likewise for local "mov_insn".
9230 (try_merge): Likewise for param "last_insn".
9231 (get_next_ref): Likewise for return type and local "insn".
9232 Strengthen param "next_array" from rtx * to rtx_insn **.
9233 (parse_add_or_inc): Strengthen param "insn" from rtx to
9234 rtx_insn *.
9235 (find_inc): Likewise for locals "insn" and "other_insn" (three of
9236 the latter).
9237 (merge_in_block): Likewise for locals "insn", "curr",
9238 "other_insn".
9239 (pass_inc_dec::execute): Update allocations of the arrays to
9240 reflect the stronger types.
9241
9242 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9243
9244 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
9245 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
9246 from rtx to rtx_code_label *.
9247
9248 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9249
9250 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
9251 to rtx_insn *.
9252
9253 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9254
9255 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
9256 generated a warning and prevented bootstrapping the compiler.
9257
9258 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9259
9260 * rtl.h (delete_related_insns): Strengthen return type from rtx to
9261 rtx_insn *.
9262
9263 * jump.c (delete_related_insns): Likewise, also for locals "next"
9264 and "prev".
9265
9266 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9267
9268 * genautomata.c (output_internal_insn_latency_func): When writing
9269 the function "internal_insn_latency" to insn-automata.c,
9270 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
9271 allowing the optional guard function of (define_bypass) clauses to
9272 expect a pair of rtx_insn *, rather than a pair of rtx.
9273 (output_insn_latency_func): When writing the function
9274 "insn_latency", add an "uncast_" prefix to params "insn" and
9275 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
9276 using checked casts from the params, thus enabling the above
9277 change to the generated "internal_insn_latency" function.
9278
9279 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
9280
9281 PR tree-optimization/62091
9282 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
9283 handle correctly arrays.
9284 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
9285 inheritance binfos.
9286 (record_known_type): Walk into inner type.
9287 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
9288 condition on no type changes.
9289
9290 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9291
9292 * genattrtab.c (write_attr_get): Within the generated get_attr_
9293 functions, rename param "insn" to "uncast_insn" and reintroduce
9294 "insn" as an local rtx_insn * using a checked cast, so that "insn"
9295 is an rtx_insn * within insn-attrtab.c
9296
9297 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9298
9299 * output.h (peephole): Strengthen return type from rtx to
9300 rtx_insn *.
9301 * rtl.h (delete_for_peephole): Likewise for both params.
9302 * genpeep.c (main): In generated "peephole" function, strengthen
9303 return type and local "insn" from rtx to rtx_insn *. For now,
9304 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
9305 rtx_insn *, with a checked cast.
9306 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
9307 locals "insn", "next", "prev" from rtx to rtx_insn *.
9308
9309 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
9310
9311 PR tree-optimization/62112
9312 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
9313 * gimple-iterator.h (gsi_replace): Return bool.
9314 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
9315 moved from ref_may_alias_global_p.
9316 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
9317 New overloads.
9318 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
9319 (stmt_kills_ref_p_1): Rename...
9320 (stmt_kills_ref_p): ... to this.
9321 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
9322 stmt_kills_ref_p): Declare.
9323 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
9324 Move the self-assignment case...
9325 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
9326
9327 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9328
9329 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9330
9331 * emit-rtl.c (try_split): Likewise, also for locals "before" and
9332 "after". For now, don't strengthen param "trial", which requires
9333 adding checked casts when returning it.
9334
9335 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9336
9337 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9338 "label" from rtx to rtx_code_label *. Strengthen param 1 of
9339 "var_location" hook from rtx to rtx_insn *.
9340 (debug_nothing_rtx): Delete in favor of...
9341 (debug_nothing_rtx_code_label): New prototype.
9342 (debug_nothing_rtx_rtx): Delete unused prototype.
9343 (debug_nothing_rtx_insn): New prototype.
9344
9345 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9346 invoking debug_hooks->var_location (in two places, one in a NOTE
9347 case of a switch statement, the other guarded by a CALL_P
9348 conditional. Add checked cast to rtx_code_label * when invoking
9349 debug_hooks->label (within CODE_LABEL case of switch statement).
9350
9351 * dbxout.c (dbx_debug_hooks): Update "label" hook from
9352 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9353 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9354 (xcoff_debug_hooks): Likewise.
9355 * debug.c (do_nothing_debug_hooks): Likewise.
9356 (debug_nothing_rtx): Delete in favor of...
9357 (debug_nothing_rtx_insn): New function.
9358 (debug_nothing_rtx_rtx): Delete unused function.
9359 (debug_nothing_rtx_code_label): New function.
9360 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9361 debug_nothing_rtx to debug_nothing_rtx_code_label.
9362 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9363 to rtx_insn *.
9364 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9365 debug_nothing_rtx to debug_nothing_rtx_insn.
9366 (sdbout_label): Strengthen param "insn" from rtx to
9367 rtx_code_label *.
9368 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9369 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9370 "var_location" hook from debug_nothing_rtx to
9371 debug_nothing_rtx_insn.
9372
9373 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9374
9375 * recog.h (insn_output_fn): Update this function typedef to match
9376 the changes below to the generated output functions, strengthening
9377 the 2nd param from rtx to rtx_insn *.
9378
9379 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9380 insn when invoking an output function, to match the new signature
9381 of insn_output_fn with a stronger second param.
9382
9383 * genconditions.c (write_header): In the generated code for
9384 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9385 to match the other changes in this patch.
9386
9387 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9388 the generated "gen_" functions from rtx to rtx_insn * within their
9389 implementations.
9390
9391 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9392 the subfunctions within the generated "recog_", "split", "peephole2"
9393 function trees from rtx to rtx_insn *. For now, the top-level
9394 generated functions ("recog", "split", "peephole2") continue to
9395 take a plain rtx for "insn", to avoid introducing dependencies on
9396 other patches. Rename this 2nd param from "insn" to
9397 "uncast_insn", and reintroduce "insn" as a local variable of type
9398 rtx_insn *, initialized at the top of the generated function with
9399 a checked cast on "uncast_insn".
9400 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9401 the generated "gen_" functions from rtx to rtx_insn * within their
9402 prototypes.
9403
9404 * genoutput.c (process_template): Strengthen the 2nd param within
9405 the generated "output_" functions "insn" from rtx to rtx_insn *.
9406
9407 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9408
9409 * tree-profile.c (tree_profiling): Skip external functions
9410 when doing coverage instrumentation.
9411 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9412
9413 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9414
9415 * config/rs6000/altivec.h (vec_cpsgn): New #define.
9416 (vec_mergee): Likewise.
9417 (vec_mergeo): Likewise.
9418 (vec_cntlz): Likewise.
9419 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9420 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9421 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9422 VMRGEW, and VMRGOW.
9423 * doc/extend.texi: Document various forms of vec_cpsgn,
9424 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9425 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9426 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9427 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9428 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9429
9430 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9431
9432 * config/rs6000/rs6000.c (context.h): New include.
9433 (tree-pass.h): Likewise.
9434 (make_pass_analyze_swaps): New decl.
9435 (rs6000_option_override): Register pass_analyze_swaps.
9436 (swap_web_entry): New subsclass of web_entry_base (df.h).
9437 (special_handling_values): New enum.
9438 (union_defs): New function.
9439 (union_uses): Likewise.
9440 (insn_is_load_p): Likewise.
9441 (insn_is_store_p): Likewise.
9442 (insn_is_swap_p): Likewise.
9443 (rtx_is_swappable_p): Likewise.
9444 (insn_is_swappable_p): Likewise.
9445 (chain_purpose): New enum.
9446 (chain_contains_only_swaps): New function.
9447 (mark_swaps_for_removal): Likewise.
9448 (swap_const_vector_halves): Likewise.
9449 (adjust_subreg_index): Likewise.
9450 (permute_load): Likewise.
9451 (permute_store): Likewise.
9452 (handle_special_swappables): Likewise.
9453 (replace_swap_with_copy): Likewise.
9454 (dump_swap_insn_table): Likewise.
9455 (rs6000_analyze_swaps): Likewise.
9456 (pass_data_analyze_swaps): New pass_data.
9457 (pass_analyze_swaps): New rtl_opt_pass.
9458 (make_pass_analyze_swaps): New function.
9459 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9460
9461 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9462
9463 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9464 type from rtx to rtx_insn *.
9465 (create_copy_of_insn_rtx): Likewise.
9466 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9467 (create_copy_of_insn_rtx): Likewise, also for local "res".
9468
9469 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9470
9471 * rtl.h (find_first_parameter_load): Strengthen return type from
9472 rtx to rtx_insn *.
9473 * rtlanal.c (find_first_parameter_load): Strengthen return type
9474 from rtx to rtx_insn *. Add checked cast for now, to postpone
9475 strengthening the params.
9476
9477 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9478
9479 PR fortran/44054
9480 * diagnostic.c: Set default caret.
9481 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9482 line is needed.
9483 * diagnostic.h (struct diagnostic_context):
9484
9485 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9486
9487 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9488 (sel_bb_head): Strengthen return type insn_t (currently just an
9489 rtx) to rtx_insn *.
9490 (sel_bb_end): Likewise.
9491
9492 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9493 (sel_bb_head): Strengthen return type and local "head" from
9494 insn_t (currently just an rtx) to rtx_insn *.
9495 (sel_bb_end): Likewise for return type.
9496 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9497 working with insn.
9498
9499 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9500
9501 * basic-block.h (get_last_bb_insn): Strengthen return type from
9502 rtx to rtx_insn *.
9503 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9504 end".
9505
9506 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9507
9508 PR fortran/44054
9509 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9510 to here ...
9511 (diagnostic_report_diagnostic): ... from here.
9512 * toplev.c (general_init): Move code to c-family.
9513
9514 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9515
9516 * df.h (web_entry_base): Replace existing struct web_entry with a
9517 new class web_entry_base with only the predecessor member.
9518 (unionfind_root): Remove declaration and move to class member.
9519 (unionfind_union): Remove declaration and move to friend
9520 function.
9521 (union_defs): Remove declaration.
9522 * web.c (web_entry_base::unionfind_root): Modify to be member
9523 function and adjust accessors.
9524 (unionfind_union): Modify to be friend function and adjust
9525 accessors.
9526 (web_entry): New subclass of web_entry_base containing the reg
9527 member.
9528 (union_match_dups): Modify for struct -> class changes.
9529 (union_defs): Likewise.
9530 (entry_register): Likewise.
9531 (pass_web::execute): Likewise.
9532
9533 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9534
9535 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9536 builtin define __VEC_ELEMENT_REG_ORDER__.
9537
9538 2014-08-20 Martin Jambor <mjambor@suse.cz>
9539 Wei Mi <wmi@google.com>
9540
9541 PR ipa/60449
9542 PR middle-end/61776
9543 * tree-ssa-operands.c (update_stmt_operands): Remove
9544 MODIFIED_NORETURN_CALLS.
9545 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9546 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9547 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9548 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9549 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9550 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9551 (gimple_call_set_ctrl_altering): New func.
9552 (gimple_call_ctrl_altering_p): Ditto.
9553 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9554 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9555 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9556 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9557 remove MODIFIED_NORETURN_CALLS.
9558
9559 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9560
9561 * coverage.c (coverage_compute_profile_id): Return non-0;
9562 also handle symbols with unique name.
9563 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9564
9565 2014-08-20 Steve Ellcey <sellcey@mips.com>
9566
9567 PR middle-end/49191
9568 * doc/sourcebuild.texi (non_strict_align): New.
9569
9570 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9571
9572 * cgraphunit.c (ipa_passes, compile): Reshedule
9573 symtab_remove_unreachable_nodes passes; update comments.
9574 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9575 TODO_remove_functions before the pass; the functions ought to be
9576 already removed.
9577 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9578 TODO_remove_functions.
9579 * passes.c (pass_data_early_local_passes): Do not schedule function
9580 removal.
9581 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9582
9583 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9584
9585 PR c/59304
9586 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9587 before setting the option.
9588 * diagnostic.c (diagnostic_classify_diagnostic): Record
9589 command-line status.
9590
9591 2014-08-20 Richard Biener <rguenther@suse.de>
9592
9593 PR lto/62190
9594 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9595 to build uint{16,32,64}_type_node.
9596
9597 2014-08-20 Terry Guo <terry.guo@arm.com>
9598
9599 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9600 with immediate_operand.
9601
9602 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9603
9604 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9605 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9606 NULL.
9607
9608 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9609
9610 PR preprocessor/51303
9611 * incpath.c (remove_duplicates): Use cpp_warning.
9612
9613 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9614
9615 PR c/60975
9616 PR c/53063
9617 * doc/options.texi (CPP): Document it.
9618 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9619 * optc-gen.awk: Handle CPP.
9620 * opth-gen.awk: Likewise.
9621
9622 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9623
9624 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9625 rtx_insn *.
9626 (duplicate_insn_chain): Likewise.
9627 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9628 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9629 checked cast for now (until we can strengthen the params in the
9630 same way).
9631 (duplicate_insn_chain): Likewise.
9632
9633 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9634
9635 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9636 rtx_insn *.
9637 (prev_cc0_setter): Likewise.
9638
9639 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9640 rtx_insn *, adding checked casts for now as necessary.
9641 (prev_cc0_setter): Likewise.
9642
9643 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9644
9645 * expr.h (emit_move_insn): Strengthen return type from rtx to
9646 rtx_insn *.
9647 (emit_move_insn_1): Likewise.
9648 (emit_move_complex_push): Likewise.
9649 (emit_move_complex_parts): Likewise.
9650
9651 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9652 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9653 with insns.
9654 (emit_move_complex_push): Strengthen return type from rtx to
9655 rtx_insn *.
9656 (emit_move_complex): Likewise, also for local "ret".
9657 (emit_move_ccmode): Likewise.
9658 (emit_move_multi_word): Likewise for return type and locals
9659 "last_insn", "seq".
9660 (emit_move_insn_1): Likewise for return type and locals "result",
9661 "ret".
9662 (emit_move_insn): Likewise for return type and local "last_insn".
9663 (compress_float_constant): Likewise.
9664
9665 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9666
9667 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9668 from rtx to rtx_insn *.
9669
9670 * rtl.h (emit_insn_before): Likewise.
9671 (emit_insn_before_noloc): Likewise.
9672 (emit_insn_before_setloc): Likewise.
9673 (emit_jump_insn_before): Likewise.
9674 (emit_jump_insn_before_noloc): Likewise.
9675 (emit_jump_insn_before_setloc): Likewise.
9676 (emit_call_insn_before): Likewise.
9677 (emit_call_insn_before_noloc): Likewise.
9678 (emit_call_insn_before_setloc): Likewise.
9679 (emit_debug_insn_before): Likewise.
9680 (emit_debug_insn_before_noloc): Likewise.
9681 (emit_debug_insn_before_setloc): Likewise.
9682 (emit_label_before): Likewise.
9683 (emit_insn_after): Likewise.
9684 (emit_insn_after_noloc): Likewise.
9685 (emit_insn_after_setloc): Likewise.
9686 (emit_jump_insn_after): Likewise.
9687 (emit_jump_insn_after_noloc): Likewise.
9688 (emit_jump_insn_after_setloc): Likewise.
9689 (emit_call_insn_after): Likewise.
9690 (emit_call_insn_after_noloc): Likewise.
9691 (emit_call_insn_after_setloc): Likewise.
9692 (emit_debug_insn_after): Likewise.
9693 (emit_debug_insn_after_noloc): Likewise.
9694 (emit_debug_insn_after_setloc): Likewise.
9695 (emit_label_after): Likewise.
9696 (emit_insn): Likewise.
9697 (emit_debug_insn): Likewise.
9698 (emit_jump_insn): Likewise.
9699 (emit_call_insn): Likewise.
9700 (emit_label): Likewise.
9701 (gen_clobber): Likewise.
9702 (emit_clobber): Likewise.
9703 (gen_use): Likewise.
9704 (emit_use): Likewise.
9705 (emit): Likewise.
9706
9707 (emit_barrier_before): Strengthen return type from rtx to
9708 rtx_barrier *.
9709 (emit_barrier_after): Likewise.
9710 (emit_barrier): Likewise.
9711
9712 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9713 from rtx to rtx_insn *. Add checked casts for now when converting
9714 "last" from rtx to rtx_insn *.
9715 (emit_insn_before_noloc): Likewise for return type.
9716 (emit_jump_insn_before_noloc): Likewise.
9717 (emit_call_insn_before_noloc): Likewise.
9718 (emit_debug_insn_before_noloc): Likewise.
9719 (emit_barrier_before): Strengthen return type and local "insn"
9720 from rtx to rtx_barrier *.
9721 (emit_label_before): Strengthen return type from rtx to
9722 rtx_insn *. Add checked cast for now when returning param
9723 (emit_pattern_after_noloc): Strengthen return type from rtx to
9724 rtx_insn *. Add checked casts for now when converting "last" from
9725 rtx to rtx_insn *.
9726 (emit_insn_after_noloc): Strengthen return type from rtx to
9727 rtx_insn *.
9728 (emit_jump_insn_after_noloc): Likewise.
9729 (emit_call_insn_after_noloc): Likewise.
9730 (emit_debug_insn_after_noloc): Likewise.
9731 (emit_barrier_after): Strengthen return type from rtx to
9732 rtx_barrier *.
9733 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9734 Add checked cast for now when converting "label" from rtx to
9735 rtx_insn *.
9736 (emit_pattern_after_setloc): Strengthen return type from rtx to
9737 rtx_insn *. Add checked casts for now when converting "last" from
9738 rtx to rtx_insn *.
9739 (emit_pattern_after): Strengthen return type from rtx to
9740 rtx_insn *.
9741 (emit_insn_after_setloc): Likewise.
9742 (emit_insn_after): Likewise.
9743 (emit_jump_insn_after_setloc): Likewise.
9744 (emit_jump_insn_after): Likewise.
9745 (emit_call_insn_after_setloc): Likewise.
9746 (emit_call_insn_after): Likewise.
9747 (emit_debug_insn_after_setloc): Likewise.
9748 (emit_debug_insn_after): Likewise.
9749 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9750 when converting "last" from rtx to rtx_insn *.
9751 (emit_pattern_before): Strengthen return type from rtx to
9752 rtx_insn *.
9753 (emit_insn_before_setloc): Likewise.
9754 (emit_insn_before): Likewise.
9755 (emit_jump_insn_before_setloc): Likewise.
9756 (emit_jump_insn_before): Likewise.
9757 (emit_call_insn_before_setloc): Likewise.
9758 (emit_call_insn_before): Likewise.
9759 (emit_debug_insn_before_setloc): Likewise.
9760 (emit_debug_insn_before): Likewise.
9761 (emit_insn): Strengthen return type and locals "last", "insn",
9762 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9763 within cases where we know we have an insn.
9764 (emit_debug_insn): Likewise.
9765 (emit_jump_insn): Likewise.
9766 (emit_call_insn): Strengthen return type and local "insn" from rtx
9767 to rtx_insn *.
9768 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9769 a checked cast to rtx_insn * for now on "label".
9770 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9771 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9772 (emit_use): Likewise.
9773 (gen_use): Likewise, also for local "seq".
9774 (emit): Likewise for return type and local "insn".
9775 (rtx_insn): Likewise for return type and local "new_rtx".
9776
9777 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9778 from rtx to rtx_barrier *.
9779
9780 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9781 changed return type from rtx to rtx_insn *, we must update
9782 "emit_fn" type, and this in turn means updating...
9783 (frame_insn): ...this. Strengthen return type from rtx to
9784 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9785
9786 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9787
9788 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9789 rtx to rtx_jump_table_data *. Also for local.
9790 * rtl.h (emit_jump_table_data): Likewise.
9791
9792 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9793
9794 * basic-block.h (create_basic_block_structure): Strengthen third
9795 param "bb_note" from rtx to rtx_note *.
9796 * rtl.h (emit_note_before): Strengthen return type from rtx to
9797 rtx_note *.
9798 (emit_note_after): Likewise.
9799 (emit_note): Likewise.
9800 (emit_note_copy): Likewise. Also, strengthen param similarly.
9801 * function.h (struct rtl_data): Strengthen field
9802 "x_stack_check_probe_note" from rtx to rtx_note *.
9803
9804 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9805 from rtx to rtx_note *.
9806 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9807 "bb_note" from rtx to rtx_note *.
9808 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9809 when calling emit_note_copy.
9810 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9811 rtx_note *.
9812 (emit_note_after): Likewise.
9813 (emit_note_before): Likewise.
9814 (emit_note_copy): Likewise. Also, strengthen param similarly.
9815 (emit_note): Likewise.
9816 * except.c (emit_note_eh_region_end): Likewise for return type.
9817 Strengthen local "next" from rtx to rtx_insn *.
9818 (convert_to_eh_region_ranges): Strengthen local "note"
9819 from rtx to rtx_note *.
9820 * final.c (change_scope): Likewise.
9821 (reemit_insn_block_notes): Likewise, for both locals named "note".
9822 Also, strengthen local "insn" from rtx to rtx_insn *.
9823 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9824 rtx to rtx_note *.
9825 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9826 strengthen local "seq" from rtx to rtx_insn *.
9827 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9828 to rtx_note *.
9829 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9830 vec<rtx_note *>.
9831 (get_bb_note_from_pool): Strengthen return type from rtx to
9832 rtx_note *.
9833 (sel_create_basic_block): Strengthen local "new_bb_note" from
9834 insn_t to rtx_note *.
9835 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9836 "note" from rtx to rtx_note *.
9837 (emit_notes_in_bb): Likewise.
9838
9839 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9840
9841 * function.h (struct rtl_data): Strengthen field
9842 "x_parm_birth_insn" from rtx to rtx_insn *.
9843 * function.c (struct assign_parm_data_all): Strengthen fields
9844 "first_conversion_insn" and "last_conversion_insn" from rtx to
9845 rtx_insn *.
9846
9847 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9848
9849 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9850 to rtx_insn *; also for local "var_end_seq".
9851 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9852 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9853 "insn".
9854 (expand_gimple_cond): Likewise for locals "last2" and "last".
9855 (mark_transaction_restart_calls): Likewise for local "insn".
9856 (expand_gimple_stmt): Likewise for return type and locals "last"
9857 and "insn".
9858 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9859 (avoid_complex_debug_insns): Likewise for param "insn".
9860 (expand_debug_locations): Likewise for locals "insn", "last",
9861 "prev_insn" and "insn2".
9862 (expand_gimple_basic_block): Likewise for local "last".
9863 (construct_exit_block): Likewise for locals "head", "end",
9864 "orig_end".
9865 (pass_expand::execute): Likewise for locals "var_seq",
9866 "var_ret_seq", "next".
9867
9868 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9869
9870 * asan.h (asan_emit_stack_protection): Strengthen return type from
9871 rtx to rtx_insn *.
9872 * asan.c (asan_emit_stack_protection): Likewise. Add local
9873 "insns" to hold the return value.
9874
9875 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9876
9877 * basic-block.h (bb_note): Strengthen return type from rtx to
9878 rtx_note *.
9879 * sched-int.h (bb_note): Likewise.
9880 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9881
9882 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9883
9884 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9885 rtx_insn *.
9886
9887 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9888 "insn" from rtx to rtx_insn *.
9889 (make_debug_insn_raw): Strengthen return type from rtx to
9890 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9891 (make_jump_insn_raw): Strengthen return type from rtx to
9892 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9893 (make_call_insn_raw): Strengthen return type from rtx to
9894 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9895 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9896 callback from rtx to rtx_insn *; likewise for local "insn" and
9897 "next", adding a checked cast to rtx_insn in the relevant cases of
9898 the switch statement.
9899 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9900 callback from rtx to rtx_insn *.
9901 (emit_pattern_after_setloc): Likewise.
9902 (emit_pattern_after): Likewise.
9903 (emit_pattern_before_setloc): Likewise.
9904 (emit_pattern_before): Likewise.
9905
9906 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9907
9908 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9909 rtx_call_insn *.
9910 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9911 accepting an rtx_insn *.
9912 (last_call_insn): Strengthen return type from rtx to
9913 rtx_call_insn *.
9914
9915 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9916
9917 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9918 "insns" from rtx to rtx_insn *.
9919 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9920 locals "insn" and "prev".
9921
9922 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9923
9924 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9925 rtx_jump_table_data **.
9926
9927 * cfgbuild.c (make_edges): Introduce local "table", using it in
9928 place of "tmp" for jump table data.
9929 (find_bb_boundaries): Strengthen local "table" from rtx to
9930 rtx_jump_table_data *.
9931 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9932 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9933 (try_crossjump_to_edge): Likewise.
9934 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9935 "table".
9936 (patch_jump_insn): Introduce local "table", using it in place of
9937 "tmp" for jump table data.
9938 (force_nonfallthru_and_redirect): Introduce local "table", so that
9939 call to tablejump_p can receive an rtx_jump_table_data **. Update
9940 logic around the call to overwrite "note" appropriately if
9941 tablejump_p returns non-zero.
9942 (get_last_bb_insn): Introduce local "table", using it in place of
9943 "tmp" for jump table data.
9944 * dwarf2cfi.c (create_trace_edges): Likewise.
9945
9946 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9947 from rtx to rtx_jump_table_data *.
9948 (create_fix_barrier): Strengthen local "tmp" from rtx to
9949 rtx_jump_table_data *.
9950 (arm_reorg): Likewise for local "table".
9951
9952 * config/s390/s390.c (s390_chunkify_start): Likewise.
9953
9954 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9955
9956 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9957 rtx to rtx_jump_table_data *.
9958
9959 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9960 rtx_jump_table_data **. Add a checked cast when writing through
9961 the pointer: we know there that local "table" is non-NULL and that
9962 JUMP_TABLE_DATA_P (table) holds.
9963 (label_is_jump_target_p): Introduce local "table", using it in
9964 place of "tmp" for jump table data.
9965
9966 2014-08-19 Marek Polacek <polacek@redhat.com>
9967
9968 PR c++/62153
9969 * doc/invoke.texi: Document -Wbool-compare.
9970
9971 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9972
9973 * rtl.h (entry_of_function): Strengthen return type from rtx to
9974 rtx_insn *.
9975 * cfgrtl.c (entry_of_function): Likewise.
9976
9977 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9978
9979 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9980 rtx_insn *, adding a checked cast for now.
9981 (get_last_insn): Likewise.
9982
9983 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9984
9985 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9986 rtx_code_label *.
9987
9988 * emit-rtl.c (gen_label_rtx): Likewise.
9989
9990 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9991
9992 * rtl.h (previous_insn): Strengthen return type from rtx to
9993 rtx_insn *.
9994 (next_insn): Likewise.
9995 (prev_nonnote_insn): Likewise.
9996 (prev_nonnote_insn_bb): Likewise.
9997 (next_nonnote_insn): Likewise.
9998 (next_nonnote_insn_bb): Likewise.
9999 (prev_nondebug_insn): Likewise.
10000 (next_nondebug_insn): Likewise.
10001 (prev_nonnote_nondebug_insn): Likewise.
10002 (next_nonnote_nondebug_insn): Likewise.
10003 (prev_real_insn): Likewise.
10004 (next_real_insn): Likewise.
10005 (prev_active_insn): Likewise.
10006 (next_active_insn): Likewise.
10007
10008 * emit-rtl.c (next_insn): Strengthen return type from rtx to
10009 rtx_insn *, adding a checked cast.
10010 (previous_insn): Likewise.
10011 (next_nonnote_insn): Likewise.
10012 (next_nonnote_insn_bb): Likewise.
10013 (prev_nonnote_insn): Likewise.
10014 (prev_nonnote_insn_bb): Likewise.
10015 (next_nondebug_insn): Likewise.
10016 (prev_nondebug_insn): Likewise.
10017 (next_nonnote_nondebug_insn): Likewise.
10018 (prev_nonnote_nondebug_insn): Likewise.
10019 (next_real_insn): Likewise.
10020 (prev_real_insn): Likewise.
10021 (next_active_insn): Likewise.
10022 (prev_active_insn): Likewise.
10023
10024 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
10025 param "stepfunc" so that it returns an rtx_insn * rather than an
10026 rtx, to track the change to prev_nonnote_insn_bb, which is the
10027 only function this is called with.
10028 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
10029
10030 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
10031
10032 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
10033 assert.
10034
10035 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10036
10037 * coretypes.h (class rtx_debug_insn): Add forward declaration.
10038 (class rtx_nonjump_insn): Likewise.
10039 (class rtx_jump_insn): Likewise.
10040 (class rtx_call_insn): Likewise.
10041 (class rtx_jump_table_data): Likewise.
10042 (class rtx_barrier): Likewise.
10043 (class rtx_code_label): Likewise.
10044 (class rtx_note): Likewise.
10045
10046 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
10047 adding the invariant DEBUG_INSN_P (X).
10048 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
10049 the invariant NONJUMP_INSN_P (X).
10050 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
10051 the invariant JUMP_P (X).
10052 (class rtx_call_insn): New, a subclass of rtx_insn, adding
10053 the invariant CALL_P (X).
10054 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
10055 invariant JUMP_TABLE_DATA_P (X).
10056 (class rtx_barrier): New, a subclass of rtx_insn, adding the
10057 invariant BARRIER_P (X).
10058 (class rtx_code_label): New, a subclass of rtx_insn, adding
10059 the invariant LABEL_P (X).
10060 (class rtx_note): New, a subclass of rtx_insn, adding
10061 the invariant NOTE_P(X).
10062 (is_a_helper <rtx_debug_insn *>::test): New.
10063 (is_a_helper <rtx_nonjump_insn *>::test): New.
10064 (is_a_helper <rtx_jump_insn *>::test): New.
10065 (is_a_helper <rtx_call_insn *>::test): New.
10066 (is_a_helper <rtx_jump_table_data *>::test): New functions,
10067 overloaded for both rtx and rtx_insn *.
10068 (is_a_helper <rtx_barrier *>::test): New.
10069 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
10070 for both rtx and rtx_insn *.
10071 (is_a_helper <rtx_note *>::test): New.
10072
10073 2014-08-19 Marek Polacek <polacek@redhat.com>
10074
10075 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
10076 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10077 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
10078 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10079
10080 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10081
10082 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
10083 rtx_insn *. To help with transition, for now, convert from an
10084 access macro into a pair of functions: BND_TO, returning an
10085 rtx_insn *, and...
10086 (SET_BND_TO): New function, for use where BND_TO is used as an
10087 lvalue.
10088
10089 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
10090 SET_BND_TO.
10091 (BND_TO): New function, adding a checked cast.
10092 (SET_BND_TO): New function.
10093
10094 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
10095 SET_BND_TO.
10096 (compute_av_set_on_boundaries): Likewise.
10097
10098 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
10099
10100 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
10101 destination if it is used in source.
10102 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
10103 (*popcount<mode>2_falsedep_1): Likewise.
10104
10105 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
10106
10107 PR other/62168
10108 * configure.ac: Set install_gold_as_default to no first.
10109 * configure: Regenerated.
10110
10111 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10112
10113 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
10114 "note_list" field will eventually be an rtx_insn *. To help with
10115 transition, for now, convert from an access macro into a pair of
10116 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
10117 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
10118 used as an lvalue.
10119
10120 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
10121 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
10122
10123 * sel-sched-ir.c (init_bb): Likewise.
10124 (sel_restore_notes): Likewise.
10125 (move_bb_info): Likewise.
10126 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
10127 (SET_BB_NOTE_LIST): New function.
10128
10129 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10130
10131 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
10132 field will eventually be an rtx_insn *. To help with transition,
10133 for now, convert from an access macro into a pair of functions:
10134 VINSN_INSN_RTX, returning an rtx_insn *, and...
10135 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
10136 is used as an lvalue.
10137
10138 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
10139 SET_VINSN_INSN_RTX where it's used as an lvalue.
10140 (VINSN_INSN_RTX): New function.
10141 (SET_VINSN_INSN_RTX): New function.
10142
10143 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10144
10145 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
10146 eventually be rtx_insn *, but to help with transition, for now,
10147 convert from an access macro into a pair of functions: DEP_PRO
10148 returning an rtx_insn * and...
10149 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
10150 lvalue, returning an rtx&.
10151 (DEP_CON): Analogous changes to DEP_PRO above.
10152 (SET_DEP_CON): Likewise.
10153
10154 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
10155 an lvalue to SET_DEP_CON.
10156 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
10157 (sd_copy_back_deps): Likewise for DEP_CON.
10158 (DEP_PRO): New function, adding a checked cast for now.
10159 (DEP_CON): Likewise.
10160 (SET_DEP_PRO): New function.
10161 (SET_DEP_CON): Likewise.
10162
10163 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
10164
10165 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
10166 (extra_options): Add i386/cygwin.opt.
10167 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
10168 (CPP_SPEC): Accept -pthread.
10169 (LINK_SPEC): Ditto.
10170 (GOMP_SELF_SPECS): Update comment.
10171 * config/i386/cygwin.opt: New file for -pthread flag.
10172
10173 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10174
10175 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
10176 * df.h (DF_REF_INSN): Convert from a macro to a function, so
10177 that we can return an rtx_insn *.
10178
10179 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
10180
10181 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
10182 when building executables, not DLLs. Add --large-address-aware
10183 under the same conditions.
10184 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
10185 when building executables, not DLLs. Add --large-address-aware
10186 under the same conditions when using -m32.
10187
10188 * config/i386/cygwin-stdint.h: Throughout, make type
10189 definitions dependent on target architecture, not host.
10190
10191 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10192
10193 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
10194 the return type from rtx to rtx_insn *, which will enable various
10195 conversions in followup patches. For now this is is done by a
10196 checked cast.
10197 (NEXT_INSN): Likewise.
10198 (SET_PREV_INSN): Convert to an inline function. This is intended
10199 for use as an lvalue, and so returns an rtx& to allow in-place
10200 modification.
10201 (SET_NEXT_INSN): Likewise.
10202
10203 2014-07-08 Mark Wielaard <mjw@redhat.com>
10204
10205 PR debug/59051
10206 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
10207
10208 2014-08-19 Marek Polacek <polacek@redhat.com>
10209
10210 PR c/61271
10211 * cgraphunit.c (handle_alias_pairs): Fix condition.
10212
10213 2014-08-19 Richard Biener <rguenther@suse.de>
10214
10215 * gimple-fold.c (fold_gimple_assign): Properly build a
10216 null-pointer constant when devirtualizing addresses.
10217
10218 2014-07-07 Mark Wielaard <mjw@redhat.com>
10219
10220 * dwarf2out.c (decl_quals): New function.
10221 (modified_type_die): Take one cv_quals argument instead of two,
10222 one for const and one for volatile.
10223 (add_type_attribute): Likewise.
10224 (generic_parameter_die): Call add_type_attribute with one modifier
10225 argument.
10226 (base_type_for_mode): Likewise.
10227 (add_bounds_info): Likewise.
10228 (add_subscript_info): Likewise.
10229 (gen_array_type_die): Likewise.
10230 (gen_descr_array_type_die): Likewise.
10231 (gen_entry_point_die): Likewise.
10232 (gen_enumeration_type_die): Likewise.
10233 (gen_formal_parameter_die): Likewise.
10234 (gen_subprogram_die): Likewise.
10235 (gen_variable_die): Likewise.
10236 (gen_const_die): Likewise.
10237 (gen_field_die): Likewise.
10238 (gen_pointer_type_die): Likewise.
10239 (gen_reference_type_die): Likewise.
10240 (gen_ptr_to_mbr_type_die): Likewise.
10241 (gen_inheritance_die): Likewise.
10242 (gen_subroutine_type_die): Likewise.
10243 (gen_typedef_die): Likewise.
10244 (force_type_die): Likewise.
10245
10246 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10247
10248 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
10249 if unset.
10250 * configure: Regenerate.
10251
10252 2014-08-19 Richard Biener <rguenther@suse.de>
10253
10254 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
10255 DECL_EXTERNALs in BLOCKs as non-references.
10256 * tree-streamer-out.c (streamer_write_chain): Likewise.
10257
10258 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
10259 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10260 Anna Tikhonova <anna.tikhonova@intel.com>
10261 Ilya Tocar <ilya.tocar@intel.com>
10262 Andrey Turetskiy <andrey.turetskiy@intel.com>
10263 Ilya Verbin <ilya.verbin@intel.com>
10264 Kirill Yukhin <kirill.yukhin@intel.com>
10265 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10266
10267 * config/i386/sse.md
10268 (define_mode_iterator VI48_AVX512F): Delete.
10269 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
10270 (define_mode_iterator VI2_AVX512VL): Ditto.
10271 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
10272 Delete.
10273 (define_insn
10274 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
10275 New.
10276 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
10277 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
10278 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10279 with VI48_AVX512F_AVX512VL): New.
10280 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10281 with VI2_AVX512VL): Ditto.
10282
10283 2014-08-19 Marek Polacek <polacek@redhat.com>
10284
10285 * doc/invoke.texi: Document -Wc99-c11-compat.
10286
10287 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10288
10289 * rtl.h (PREV_INSN): Split macro in two: the existing one,
10290 for rvalues, and...
10291 (SET_PREV_INSN): New macro, for use as an lvalue.
10292 (NEXT_INSN, SET_NEXT_INSN): Likewise.
10293
10294 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
10295 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
10296 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10297 (fixup_abnormal_edges): Likewise.
10298 (unlink_insn_chain): Likewise.
10299 (fixup_reorder_chain): Likewise.
10300 (cfg_layout_delete_block): Likewise.
10301 (cfg_layout_merge_blocks): Likewise.
10302 * combine.c (update_cfg_for_uncondjump): Likewise.
10303 * emit-rtl.c (link_insn_into_chain): Likewise.
10304 (remove_insn): Likewise.
10305 (delete_insns_since): Likewise.
10306 (reorder_insns_nobb): Likewise.
10307 (emit_insn_after_1): Likewise.
10308 * final.c (rest_of_clean_state): Likewise.
10309 (final_scan_insn): Likewise.
10310 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
10311 * haifa-sched.c (concat_note_lists): Likewise.
10312 (remove_notes): Likewise.
10313 (restore_other_notes): Likewise.
10314 (move_insn): Likewise.
10315 (unlink_bb_notes): Likewise.
10316 (restore_bb_notes): Likewise.
10317 * jump.c (delete_for_peephole): Likewise.
10318 * optabs.c (emit_libcall_block_1): Likewise.
10319 * reorg.c (emit_delay_sequence): Likewise.
10320 (fill_simple_delay_slots): Likewise.
10321 * sel-sched-ir.c (sel_move_insn): Likewise.
10322 (sel_remove_insn): Likewise.
10323 (get_bb_note_from_pool): Likewise.
10324 * sel-sched.c (move_nop_to_previous_block): Likewise.
10325
10326 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
10327 * config/c6x/c6x.c (gen_one_bundle): Likewise.
10328 (c6x_gen_bundles): Likewise.
10329 (hwloop_optimize): Likewise.
10330 * config/frv/frv.c (frv_function_prologue): Likewise.
10331 (frv_register_nop): Likewise.
10332 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10333 (ia64_reorg): Likewise.
10334 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10335 (mep_make_bundle): Likewise.
10336 (mep_bundle_insns): Likewise.
10337 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10338 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10339 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10340
10341 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10342
10343 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
10344 return type from rtx to rtx_insn *.
10345 (BB_END): Likewise.
10346 (BB_HEADER): Likewise.
10347 (BB_FOOTER): Likewise.
10348 (SET_BB_HEAD): Convert to a function.
10349 (SET_BB_END): Likewise.
10350 (SET_BB_HEADER): Likewise.
10351 (SET_BB_FOOTER): Likewise.
10352
10353 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10354 Strengthen the return type from rtx to rtx_insn *. For now, this
10355 is done by adding a checked cast, but this will eventually
10356 become a field lookup.
10357 (BB_END): Likewise.
10358 (BB_HEADER): Likewise.
10359 (BB_FOOTER): Likewise.
10360 (SET_BB_HEAD): New function, from macro of same name. This is
10361 intended for use as an lvalue, and so returns an rtx& to allow
10362 in-place modification.
10363 (SET_BB_END): Likewise.
10364 (SET_BB_HEADER): Likewise.
10365 (SET_BB_FOOTER): Likewise.
10366
10367 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10368
10369 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10370 for rvalues, and...
10371 (SET_BB_HEAD): New macro, for use as a lvalue.
10372 (BB_END, SET_BB_END): Likewise.
10373 (BB_HEADER, SET_BB_HEADER): Likewise.
10374 (BB_FOOTER, SET_BB_FOOTER): Likewise.
10375
10376 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10377 of BB_* macros into SET_BB_* macros.
10378 (fix_crossing_unconditional_branches): Likewise.
10379 * caller-save.c (save_call_clobbered_regs): Likewise.
10380 (insert_one_insn): Likewise.
10381 * cfgbuild.c (find_bb_boundaries): Likewise.
10382 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10383 (outgoing_edges_match): Likewise.
10384 (try_optimize_cfg): Likewise.
10385 * cfgexpand.c (expand_gimple_cond): Likewise.
10386 (expand_gimple_tailcall): Likewise.
10387 (expand_gimple_basic_block): Likewise.
10388 (construct_exit_block): Likewise.
10389 * cfgrtl.c (delete_insn): Likewise.
10390 (create_basic_block_structure): Likewise.
10391 (rtl_delete_block): Likewise.
10392 (rtl_split_block): Likewise.
10393 (emit_nop_for_unique_locus_between): Likewise.
10394 (rtl_merge_blocks): Likewise.
10395 (block_label): Likewise.
10396 (try_redirect_by_replacing_jump): Likewise.
10397 (emit_barrier_after_bb): Likewise.
10398 (fixup_abnormal_edges): Likewise.
10399 (record_effective_endpoints): Likewise.
10400 (relink_block_chain): Likewise.
10401 (fixup_reorder_chain): Likewise.
10402 (fixup_fallthru_exit_predecessor): Likewise.
10403 (cfg_layout_duplicate_bb): Likewise.
10404 (cfg_layout_split_block): Likewise.
10405 (cfg_layout_delete_block): Likewise.
10406 (cfg_layout_merge_blocks): Likewise.
10407 * combine.c (update_cfg_for_uncondjump): Likewise.
10408 * emit-rtl.c (add_insn_after): Likewise.
10409 (remove_insn): Likewise.
10410 (reorder_insns): Likewise.
10411 (emit_insn_after_1): Likewise.
10412 * haifa-sched.c (get_ebb_head_tail): Likewise.
10413 (restore_other_notes): Likewise.
10414 (move_insn): Likewise.
10415 (sched_extend_bb): Likewise.
10416 (fix_jump_move): Likewise.
10417 * ifcvt.c (noce_process_if_block): Likewise.
10418 (dead_or_predicable): Likewise.
10419 * ira.c (update_equiv_regs): Likewise.
10420 * reg-stack.c (change_stack): Likewise.
10421 * sel-sched-ir.c (sel_move_insn): Likewise.
10422 * sel-sched.c (move_nop_to_previous_block): Likewise.
10423
10424 * config/c6x/c6x.c (hwloop_optimize): Likewise.
10425 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10426
10427 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10428
10429 * rtl.h (for_each_rtx_in_insn): New function.
10430 * rtlanal.c (for_each_rtx_in_insn): Likewise.
10431
10432 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10433
10434 * coretypes.h (class rtx_insn): Add forward declaration.
10435
10436 * rtl.h: Include is-a.h.
10437 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10438 workaround to ensure gengtype knows inheritance is occurring,
10439 whilst continuing to use the pre-existing special-casing for
10440 rtx_def.
10441 (class rtx_insn): New subclass of rtx_def, adding the
10442 invariant that we're dealing with something we can sanely use
10443 INSN_UID, NEXT_INSN, PREV_INSN on.
10444 (is_a_helper <rtx_insn *>::test): New.
10445 (is_a_helper <const rtx_insn *>::test): New.
10446
10447 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10448
10449 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10450
10451 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10452
10453 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10454 comdats as extern.
10455
10456 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10457
10458 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10459 to BUILT_IN_UNREACHABLE.
10460
10461 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
10462
10463 PR target/62011
10464 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10465 New tune flag.
10466 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10467 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10468 (ffs<mode>2): Do not expand with tzcnt for
10469 TARGET_AVOID_FALSE_DEP_FOR_BMI.
10470 (ffssi2_no_cmove): Ditto.
10471 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10472 (ctz<mode>2): New expander.
10473 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10474 (*ctz<mode>2_falsedep): New insn.
10475 (*ctz<mode>2): Rename from ctz<mode>2.
10476 (clz<mode>2_lzcnt): New expander.
10477 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10478 (*clz<mode>2_lzcnt_falsedep): New insn.
10479 (*clz<mode>2): Rename from ctz<mode>2.
10480 (popcount<mode>2): New expander.
10481 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10482 (*popcount<mode>2_falsedep): New insn.
10483 (*popcount<mode>2): Rename from ctz<mode>2.
10484 (*popcount<mode>2_cmp): Remove.
10485 (*popcountsi2_cmp_zext): Ditto.
10486
10487 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
10488
10489 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10490 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10491 * config/microblaze/microblaze.h
10492 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10493
10494 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
10495
10496 PR other/62168
10497 * configure.ac: Set install_gold_as_default to no for
10498 --enable-gold=no.
10499 * configure: Regenerated.
10500
10501 2014-08-18 Roman Gareev <gareevroman@gmail.com>
10502
10503 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10504 * config.in: Add undef of HAVE_isl.
10505 * configure: Regenerate.
10506 * configure.ac: Add definition of HAVE_isl.
10507 * graphite-blocking.c: Add checking of HAVE_isl.
10508 * graphite-dependences.c: Likewise.
10509 * graphite-interchange.c: Likewise.
10510 * graphite-isl-ast-to-gimple.c: Likewise.
10511 * graphite-optimize-isl.c: Likewise.
10512 * graphite-poly.c: Likewise.
10513 * graphite-scop-detection.c: Likewise.
10514 * graphite-sese-to-poly.c: Likewise.
10515 * graphite.c: Likewise.
10516 * toplev.c: Replace the checking of HAVE_cloog with the checking
10517 of HAVE_isl.
10518
10519 2014-08-18 Richard Biener <rguenther@suse.de>
10520
10521 PR tree-optimization/62090
10522 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10523 (fold_builtin_3): Do not fold snprintf.
10524 (fold_builtin_4): Likewise.
10525 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10526 moved from builtins.c.
10527 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10528 (gimple_fold_builtin): Do not fold sprintf here.
10529
10530 2014-08-18 Richard Biener <rguenther@suse.de>
10531
10532 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10533 code to ...
10534 (maybe_canonicalize_mem_ref_addr): ... this function.
10535 (fold_stmt_1): Apply it here before all simplification.
10536
10537 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10538
10539 PR ipa/61800
10540 * cgraph.h (cgraph_node::create_indirect_edge): Add
10541 compute_indirect_info param.
10542 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10543 indirect_info only when it is required.
10544 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10545 indirect_info fore cloned indirect edge.
10546
10547 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10548 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10549 Anna Tikhonova <anna.tikhonova@intel.com>
10550 Ilya Tocar <ilya.tocar@intel.com>
10551 Andrey Turetskiy <andrey.turetskiy@intel.com>
10552 Ilya Verbin <ilya.verbin@intel.com>
10553 Kirill Yukhin <kirill.yukhin@intel.com>
10554 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10555
10556 * config/i386/sse.md
10557 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10558 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10559
10560 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10561 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10562 Anna Tikhonova <anna.tikhonova@intel.com>
10563 Ilya Tocar <ilya.tocar@intel.com>
10564 Andrey Turetskiy <andrey.turetskiy@intel.com>
10565 Ilya Verbin <ilya.verbin@intel.com>
10566 Kirill Yukhin <kirill.yukhin@intel.com>
10567 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10568
10569 * config/i386/sse.md
10570 (define_mode_iterator VF1_AVX512VL): New.
10571 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10572 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10573 New.
10574
10575 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10576 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10577 Anna Tikhonova <anna.tikhonova@intel.com>
10578 Ilya Tocar <ilya.tocar@intel.com>
10579 Andrey Turetskiy <andrey.turetskiy@intel.com>
10580 Ilya Verbin <ilya.verbin@intel.com>
10581 Kirill Yukhin <kirill.yukhin@intel.com>
10582 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10583
10584 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10585 * config/i386/i386.md
10586 (define_code_iterator any_float): New.
10587 (define_code_attr floatsuffix): New.
10588 * config/i386/sse.md
10589 (define_mode_iterator VF1_128_256VL): New.
10590 (define_mode_iterator VF2_512_256VL): New.
10591 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10592 TARGET check.
10593 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10594 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10595 New.
10596 (define_mode_attr qq2pssuff): New.
10597 (define_mode_attr sselongvecmode): New.
10598 (define_mode_attr sselongvecmodelower): New.
10599 (define_mode_attr sseintvecmode3): New.
10600 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10601 New.
10602 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10603 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10604 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10605 (define_insn "ufloatv2siv2df2<mask_name>"): New.
10606
10607 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10608 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10609 Anna Tikhonova <anna.tikhonova@intel.com>
10610 Ilya Tocar <ilya.tocar@intel.com>
10611 Andrey Turetskiy <andrey.turetskiy@intel.com>
10612 Ilya Verbin <ilya.verbin@intel.com>
10613 Kirill Yukhin <kirill.yukhin@intel.com>
10614 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10615
10616 * config/i386/sse.md
10617 (define_mode_iterator VF2_AVX512VL): New.
10618 (define_mode_attr sseintvecmode2): New.
10619 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10620 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10621 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10622 (define_insn
10623 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10624 Ditto.
10625 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10626 Ditto.
10627 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10628 Ditto.
10629
10630 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10631 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10632 Anna Tikhonova <anna.tikhonova@intel.com>
10633 Ilya Tocar <ilya.tocar@intel.com>
10634 Andrey Turetskiy <andrey.turetskiy@intel.com>
10635 Ilya Verbin <ilya.verbin@intel.com>
10636 Kirill Yukhin <kirill.yukhin@intel.com>
10637 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10638
10639 * config/i386/i386.md
10640 (define_insn "*movoi_internal_avx"): Add evex version.
10641 (define_insn "*movti_internal"): Ditto.
10642
10643 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10644 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10645 Anna Tikhonova <anna.tikhonova@intel.com>
10646 Ilya Tocar <ilya.tocar@intel.com>
10647 Andrey Turetskiy <andrey.turetskiy@intel.com>
10648 Ilya Verbin <ilya.verbin@intel.com>
10649 Kirill Yukhin <kirill.yukhin@intel.com>
10650 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10651
10652 * config/i386/i386.md
10653 (define_attr "isa"): Add avx512dq, noavx512dq.
10654 (define_attr "enabled"): Ditto.
10655 * config/i386/sse.md
10656 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10657
10658 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10660 Anna Tikhonova <anna.tikhonova@intel.com>
10661 Ilya Tocar <ilya.tocar@intel.com>
10662 Andrey Turetskiy <andrey.turetskiy@intel.com>
10663 Ilya Verbin <ilya.verbin@intel.com>
10664 Kirill Yukhin <kirill.yukhin@intel.com>
10665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10666
10667 * config/i386/i386.c
10668 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10669 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10670 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10671 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10672 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10673 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10674 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10675 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10676 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10677 * config/i386/sse.md
10678 (define_mode_iterator VMOVE): Allow V4TI mode.
10679 (define_mode_iterator V_AVX512VL): New.
10680 (define_mode_iterator V): New handling for AVX512VL.
10681 (define_insn "avx512f_load<mode>_mask"): Delete.
10682 (define_insn "<avx512>_load<mode>_mask"): New.
10683 (define_insn "avx512f_store<mode>_mask"): Delete.
10684 (define_insn "<avx512>_store<mode>_mask"): New.
10685
10686
10687 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10688
10689 PR sanitizer/62089
10690 * asan.c (instrument_derefs): Fix bitfield check.
10691
10692 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10693
10694 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10695 * config/rs6000/htm.md (ttest): Remove clobber.
10696 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10697 (and_operand): Reformat.
10698 (and_2rld_operand): New predicate.
10699 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10700 parameter.
10701 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10702 parameter. Handle AND directly.
10703 (rs6000_split_logical_di): Remove last parameter.
10704 (rs6000_split_logical): Remove last parameter. Remove obsolete
10705 comment.
10706 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10707 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10708 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10709 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10710 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10711 and 5 anonymous splitters): Delete.
10712 (and<mode>3): New expander.
10713 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10714 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10715 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10716 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10717 (floatdisf2_internal1): Remove clobbers.
10718 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10719 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10720 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10721 (and<mode>3 for BOOL_128): Remove clobber.
10722 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10723 rs6000_split_logical.
10724 (*bool<mode>3_internal for BOOL_128): Adjust call of
10725 rs6000_split_logical.
10726 (*boolc<mode>3_internal1 for BOOL_128,
10727 *boolc<mode>3_internal2 for BOOL_128,
10728 *boolcc<mode>3_internal1 for BOOL_128,
10729 *boolcc<mode>3_internal2 for BOOL_128,
10730 *eqv<mode>3_internal1 for BOOL_128,
10731 *eqv<mode>3_internal2 for BOOL_128,
10732 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10733 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10734 clobber.
10735 (*vec_reload_and_reg_<mptrsize>): Delete.
10736
10737 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10738
10739 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10740 and split, *boolccsi3_internal3 and split): Delete.
10741 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10742 *boolccdi3_internal3 and split): Delete.
10743 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10744 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10745
10746 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10747
10748 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10749 and split, *boolcsi3_internal3 and split): Delete.
10750 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10751 *boolcdi3_internal3 and split): Delete.
10752 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10753
10754 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10755
10756 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10757 <'u'>: Also support printing the low-order 16 bits.
10758 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10759 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10760 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10761 *booldi3_internal3 and split): Delete.
10762 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10763 *bool<mode>3_dot2): New.
10764 (two anonymous define_splits for non_logical_cint_operand): Merge.
10765
10766 2014-08-17 Marek Polacek <polacek@redhat.com>
10767 Manuel López-Ibáñez <manu@gcc.gnu.org>
10768
10769 PR c/62059
10770 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10771 (diagnostic_show_locus): Don't print caret diagnostic
10772 if a column is larger than the line_width.
10773
10774 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10775
10776 * common.opt: Make the ISL AST generator to be the main code generator
10777 of Graphite.
10778
10779 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10780
10781 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10782
10783 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10784
10785 PR target/61641
10786 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10787 Declare.
10788 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10789 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10790 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10791 Define.
10792 * config/pa/pa.md (begin_brtab): Delete insn.
10793 (end_brtab): Likewise.
10794
10795 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10796
10797 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10798
10799 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10800
10801 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10802 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10803 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10804 (get_dynamic_type): Remove.
10805 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10806 (clear_speculation): Bring to ipa-deivrt.h
10807 (get_class_context): Rename to ...
10808 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10809 (contains_type_p): Update.
10810 (get_dynamic_type): Rename to ...
10811 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10812 (possible_polymorphic_call_targets): UPdate.
10813 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10814 * ipa-prop.c (ipa_analyze_call_uses): Update.
10815
10816 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10817
10818 * doc/invoke.texi (SH options): Document missing processor variant
10819 options. Remove references to Hitachi. Undocument deprecated mspace
10820 option.
10821
10822 2014-08-15 Jason Merrill <jason@redhat.com>
10823
10824 * tree.c (type_hash_canon): Uncomment assert.
10825
10826 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10827
10828 * input.h (in_system_header_at): Add comment.
10829
10830 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10831
10832 PR fortran/44054
10833 * diagnostic.c (build_message_string): Make it extern.
10834 * diagnostic.h (build_message_string): Make it extern.
10835
10836 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10837
10838 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10839 load/store from/to non-floating class pseudo.
10840
10841 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10842
10843 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10844
10845 2014-08-15 Richard Biener <rguenther@suse.de>
10846
10847 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10848 (get_constraint_for_ssa_var): Remove dead code.
10849 (get_constraint_for_1): Adjust.
10850 (find_what_var_points_to): Likewise.
10851 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10852
10853 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10854
10855 PR target/61878
10856 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10857 (_mm512_mask_cmpge_epu32_mask): Ditto.
10858 (_mm512_cmpge_epu32_mask): Ditto.
10859 (_mm512_mask_cmpge_epi64_mask): Ditto.
10860 (_mm512_cmpge_epi64_mask): Ditto.
10861 (_mm512_mask_cmpge_epu64_mask): Ditto.
10862 (_mm512_cmpge_epu64_mask): Ditto.
10863 (_mm512_mask_cmple_epi32_mask): Ditto.
10864 (_mm512_cmple_epi32_mask): Ditto.
10865 (_mm512_mask_cmple_epu32_mask): Ditto.
10866 (_mm512_cmple_epu32_mask): Ditto.
10867 (_mm512_mask_cmple_epi64_mask): Ditto.
10868 (_mm512_cmple_epi64_mask): Ditto.
10869 (_mm512_mask_cmple_epu64_mask): Ditto.
10870 (_mm512_cmple_epu64_mask): Ditto.
10871 (_mm512_mask_cmplt_epi32_mask): Ditto.
10872 (_mm512_cmplt_epi32_mask): Ditto.
10873 (_mm512_mask_cmplt_epu32_mask): Ditto.
10874 (_mm512_cmplt_epu32_mask): Ditto.
10875 (_mm512_mask_cmplt_epi64_mask): Ditto.
10876 (_mm512_cmplt_epi64_mask): Ditto.
10877 (_mm512_mask_cmplt_epu64_mask): Ditto.
10878 (_mm512_cmplt_epu64_mask): Ditto.
10879 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10880 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10881 (_mm512_cmpneq_epu32_mask): Ditto.
10882 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10883 (_mm512_cmpneq_epi64_mask): Ditto.
10884 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10885 (_mm512_cmpneq_epu64_mask): Ditto.
10886 (_mm512_castpd_ps): Ditto.
10887 (_mm512_castpd_si512): Ditto.
10888 (_mm512_castps_pd): Ditto.
10889 (_mm512_castps_si512): Ditto.
10890 (_mm512_castsi512_ps): Ditto.
10891 (_mm512_castsi512_pd): Ditto.
10892 (_mm512_castpd512_pd128): Ditto.
10893 (_mm512_castps512_ps128): Ditto.
10894 (_mm512_castsi512_si128): Ditto.
10895 (_mm512_castpd512_pd256): Ditto.
10896 (_mm512_castps512_ps256): Ditto.
10897 (_mm512_castsi512_si256): Ditto.
10898 (_mm512_castpd128_pd512): Ditto.
10899 (_mm512_castps128_ps512): Ditto.
10900 (_mm512_castsi128_si512): Ditto.
10901 (_mm512_castpd256_pd512): Ditto.
10902 (_mm512_castps256_ps512): Ditto.
10903 (_mm512_castsi256_si512): Ditto.
10904 (_mm512_cmpeq_epu32_mask): Ditto.
10905 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10906 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10907 (_mm512_cmpeq_epu64_mask): Ditto.
10908 (_mm512_cmpgt_epu32_mask): Ditto.
10909 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10910 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10911 (_mm512_cmpgt_epu64_mask): Ditto.
10912 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10913 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10914 * config/i386/i386.c (enum ix86_builtins): Add
10915 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10916 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10917 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10918 (bdesc_args): Add __builtin_ia32_si512_256si,
10919 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10920 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10921 __builtin_ia32_pd512_pd.
10922 (ix86_expand_args_builtin): Handle new FTYPEs.
10923 * config/i386/sse.md (castmode): Add 512-bit modes.
10924 (AVX512MODE2P): New.
10925 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10926 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10927
10928 2014-08-15 Richard Biener <rguenther@suse.de>
10929
10930 * fold-const.c (tree_swap_operands_p): Put all constants
10931 last, also strip sign-changing NOPs when considering further
10932 canonicalization. Canonicalize also when optimizing for size.
10933
10934 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10935
10936 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10937 one_match > zero_match case to just before simple_sequence.
10938
10939 2014-08-15 Richard Biener <rguenther@suse.de>
10940
10941 * data-streamer.h (streamer_string_index, string_for_index):
10942 Remove.
10943 * data-streamer-out.c (streamer_string_index): Make static.
10944 * data-streamer-in.c (string_for_index): Likewise.
10945 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10946 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10947
10948 2014-08-15 Richard Biener <rguenther@suse.de>
10949
10950 PR tree-optimization/62031
10951 * tree-data-ref.c (dr_analyze_indices): Do not set
10952 DR_UNCONSTRAINED_BASE.
10953 (dr_may_alias_p): All indirect accesses have to go the
10954 formerly DR_UNCONSTRAINED_BASE path.
10955 * tree-data-ref.h (struct indices): Remove
10956 unconstrained_base member.
10957 (DR_UNCONSTRAINED_BASE): Remove.
10958
10959 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10960
10961 PR middle-end/62092
10962 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10963 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10964 in OMP_CLAUSE_MAP in some outer target region.
10965
10966 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10967
10968 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10969 name_expansion_cache.
10970 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10971 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10972 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10973 (difference_cannot_overflow_p): New parameter. Use affine
10974 expansion for equality check.
10975 (iv_elimination_compare_lt): Pass new argument.
10976
10977 2014-08-14 DJ Delorie <dj@redhat.com>
10978
10979 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10980 variables to the accumulator.
10981
10982 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10983 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10984 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10985 with far-far moves.
10986
10987 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10988 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10989 (umulqihi3_virt): Likewise.
10990 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10991 (umulqihi3_real): Likewise.
10992
10993 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10994
10995 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10996
10997 PR tree-optimization/62091
10998 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10999 function_entry_reached.
11000 (walk_aliased_vdefs): Clear it here.
11001 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
11002
11003 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
11004
11005 * ipa-utils.h (compare_virtual_tables): Declare.
11006 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
11007
11008 2014-08-14 Marek Polacek <polacek@redhat.com>
11009
11010 DR 458
11011 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
11012 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
11013
11014 2014-08-14 Tom de Vries <tom@codesourcery.com>
11015
11016 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
11017
11018 2014-08-14 Tom de Vries <tom@codesourcery.com>
11019
11020 PR rtl-optimization/62004
11021 PR rtl-optimization/62030
11022 * ifcvt.c (rtx_interchangeable_p): New function.
11023 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
11024 * emit-rtl.h (mem_attrs_eq_p): Declare.
11025
11026 2014-08-14 Roman Gareev <gareevroman@gmail.com>
11027
11028 * graphite-scop-detection.c:
11029 Add inclusion of cp-tree.h.
11030 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
11031 in case they are pointers to object types
11032
11033 2014-08-14 Richard Biener <rguenther@suse.de>
11034
11035 * BASE-VER: Change to 5.0.0
11036
11037 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11038 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11039 Anna Tikhonova <anna.tikhonova@intel.com>
11040 Ilya Tocar <ilya.tocar@intel.com>
11041 Andrey Turetskiy <andrey.turetskiy@intel.com>
11042 Ilya Verbin <ilya.verbin@intel.com>
11043 Kirill Yukhin <kirill.yukhin@intel.com>
11044 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11045
11046 * config/i386/sse.md (define_mode_attr avx512): New.
11047 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
11048 V4DI modes.
11049 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
11050 (define_mode_attr ssse3_avx2): Ditto.
11051 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
11052 (define_mode_attr avx2_avx512bw): New.
11053 (define_mode_attr ssedoublemodelower): New.
11054 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
11055 V32HI, V64QI modes.
11056 (define_mode_attr ssebytemode): Allow V8DI modes.
11057 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
11058 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
11059 (define_mode_attr ssePSmode2): New.
11060 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
11061 V16HI, V32HI modes.
11062 (define_mode_attr dbpsadbwmode): New.
11063 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
11064 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
11065 (vi8_sse4_1_avx2_avx512): New.
11066 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
11067 mode attribute.
11068 (define_mode_attr blendbits): Move before its immediate use.
11069
11070 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11071 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11072 Anna Tikhonova <anna.tikhonova@intel.com>
11073 Ilya Tocar <ilya.tocar@intel.com>
11074 Andrey Turetskiy <andrey.turetskiy@intel.com>
11075 Ilya Verbin <ilya.verbin@intel.com>
11076 Kirill Yukhin <kirill.yukhin@intel.com>
11077 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11078
11079 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
11080 * config/i386/subst.md
11081 (define_mode_iterator SUBST_V): Update.
11082 (define_mode_iterator SUBST_A): Ditto.
11083 (define_subst_attr "mask_operand7"): New.
11084 (define_subst_attr "mask_operand10"): New.
11085 (define_subst_attr "mask_operand_arg34") : New.
11086 (define_subst_attr "mask_expand_op3"): New.
11087 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
11088 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
11089 (define_subst_attr "mask_avx512vl_condition"): New.
11090 (define_subst_attr "round_mask_operand4"): Ditto.
11091 (define_subst_attr "round_mask_scalar_op3"): Delete.
11092 (define_subst_attr "round_mask_op4"): New.
11093 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
11094 V16SImode.
11095 (define_subst_attr "round_modev8sf_condition"): New.
11096 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
11097 <MODE>mode.
11098 (define_subst_attr "round_saeonly_mask_operand4"): New.
11099 (define_subst_attr "round_saeonly_mask_op4"): New.
11100 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
11101 V8DImode, V16SImode.
11102 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
11103 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
11104 (define_subst_attr "mask_expand4_args"): New.
11105 (define_subst "mask_expand4"): New.
11106
11107 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11108 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11109 Anna Tikhonova <anna.tikhonova@intel.com>
11110 Ilya Tocar <ilya.tocar@intel.com>
11111 Andrey Turetskiy <andrey.turetskiy@intel.com>
11112 Ilya Verbin <ilya.verbin@intel.com>
11113 Kirill Yukhin <kirill.yukhin@intel.com>
11114 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11115
11116 * config/i386/i386.md
11117 (define_attr "isa"): Add avx512bw,noavx512bw.
11118 (define_attr "enabled"): Ditto.
11119 (define_split): Add 32/64-bit mask logic.
11120 (define_insn "*k<logic>qi"): New.
11121 (define_insn "*k<logic>hi"): New.
11122 (define_insn "*anddi_1"): Add mask version.
11123 (define_insn "*andsi_1"): Ditto.
11124 (define_insn "*<code><mode>_1"): Ditto.
11125 (define_insn "*<code>hi_1"): Ditto.
11126 (define_insn "kxnor<mode>"): New.
11127 (define_insn "kunpcksi"): New.
11128 (define_insn "kunpckdi"): New.
11129 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
11130 (define_insn "*one_cmplhi2_1"): Ditto.
11131
11132 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11133 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11134 Anna Tikhonova <anna.tikhonova@intel.com>
11135 Ilya Tocar <ilya.tocar@intel.com>
11136 Andrey Turetskiy <andrey.turetskiy@intel.com>
11137 Ilya Verbin <ilya.verbin@intel.com>
11138 Kirill Yukhin <kirill.yukhin@intel.com>
11139 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11140
11141 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
11142 V32HImode.
11143
11144 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11145 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11146 Anna Tikhonova <anna.tikhonova@intel.com>
11147 Ilya Tocar <ilya.tocar@intel.com>
11148 Andrey Turetskiy <andrey.turetskiy@intel.com>
11149 Ilya Verbin <ilya.verbin@intel.com>
11150 Kirill Yukhin <kirill.yukhin@intel.com>
11151 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11152
11153 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
11154 registers.
11155 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
11156 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
11157 xmm/ymm16+ when availble.
11158 * config/i386/i386.h
11159 (HARD_REGNO_NREGS): Add mask regs.
11160 (VALID_AVX512F_REG_MODE): Ditto.
11161 (VALID_AVX512F_REG_MODE) : Define.
11162 (VALID_MASK_AVX512BW_MODE): Ditto.
11163 (reg_class) (MASK_REG_P(X)): Define.
11164 * config/i386/i386.md: Do not split long moves with mask register,
11165 use kmovb if avx512bw is availible.
11166 (movdi_internal): Handle mask registers.
11167
11168 2014-08-14 Richard Biener <rguenther@suse.de>
11169
11170 PR tree-optimization/62081
11171 * tree-ssa-loop.c (pass_fix_loops): New pass.
11172 (pass_tree_loop::gate): Do not fixup loops here.
11173 * tree-pass.h (make_pass_fix_loops): Declare.
11174 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
11175
11176 2014-08-14 Richard Biener <rguenther@suse.de>
11177
11178 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
11179 (type_hash_canon): ... this and avoid 2nd lookup for the add.
11180
11181 2014-08-14 Richard Biener <rguenther@suse.de>
11182
11183 PR tree-optimization/62090
11184 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
11185 (fold_builtin_2): Do not fold sprintf.
11186 (fold_builtin_3): Likewise.
11187 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
11188 moved from builtins.c.
11189 (gimple_fold_builtin): Fold sprintf.
11190
11191 2014-08-14 Richard Biener <rguenther@suse.de>
11192
11193 PR rtl-optimization/62079
11194 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
11195 run cleanup_cfg.
11196
11197 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
11198
11199 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
11200 current_function_decl.
11201
11202 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
11203
11204 * cgraph.c (cgraph_node::function_symbol): Fix wrong
11205 cgraph_function_node to cgraph_node::function_symbol
11206 refactoring.
11207
11208 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
11209
11210 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
11211 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
11212
11213 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
11214
11215 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
11216 warning.
11217
11218 2014-08-13 Roman Gareev <gareevroman@gmail.com>
11219
11220 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
11221 generator.
11222
11223 2014-08-12 Jakub Jelinek <jakub@redhat.com>
11224
11225 PR target/62025
11226 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
11227 any registers that are used in mem_insn.
11228
11229 2014-08-12 Steve Ellcey <sellcey@mips.com>
11230
11231 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
11232
11233 2014-08-12 Steve Ellcey <sellcey@mips.com>
11234
11235 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
11236 (MULTILIB_DIRNAMES): Ditto.
11237 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
11238 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
11239 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
11240 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
11241 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
11242 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
11243
11244 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11245
11246 PR target/61413
11247 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
11248 of __ARM_SIZEOF_WCHAR_T.
11249
11250 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11251
11252 PR target/62098
11253 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
11254 Remove unnecessary attributes.
11255
11256 2014-08-12 Yury Gribov <y.gribov@samsung.com>
11257
11258 * internal-fn.c (init_internal_fns): Fix off-by-one.
11259
11260 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
11261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11262 Anna Tikhonova <anna.tikhonova@intel.com>
11263 Ilya Tocar <ilya.tocar@intel.com>
11264 Andrey Turetskiy <andrey.turetskiy@intel.com>
11265 Ilya Verbin <ilya.verbin@intel.com>
11266 Kirill Yukhin <kirill.yukhin@intel.com>
11267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11268
11269 * config/i386/i386.c (standard_sse_constant_opcode): Use
11270 vpxord/vpternlog if avx512 is availible.
11271
11272 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11273
11274 PR middle-end/62103
11275 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
11276 bitfields, that is when size doesn't match the size of type or the
11277 size of the constructor.
11278
11279 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11280
11281 * config/rs6000/constraints.md (wh constraint): New constraint,
11282 for FP registers if direct move is available.
11283 (wi constraint): New constraint, for VSX/FP registers that can
11284 handle 64-bit integers.
11285 (wj constraint): New constraint for VSX/FP registers that can
11286 handle 64-bit integers for direct moves.
11287 (wk constraint): New constraint for VSX/FP registers that can
11288 handle 64-bit doubles for direct moves.
11289 (wy constraint): Make documentation match implementation.
11290
11291 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
11292 scalar_in_vmx_p field to simplify tests of whether SFmode or
11293 DFmode can go in the Altivec registers.
11294 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
11295 (rs6000_setup_reg_addr_masks): Likewise.
11296 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
11297 field, and wh/wi/wj/wk constraints.
11298 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
11299 the wh/wi/wj/wk constraints.
11300 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
11301 upper registers, prefer VSX registers unless the operation is a
11302 memory operation with REG+OFFSET addressing.
11303
11304 * config/rs6000/vsx.md (VSr mode attribute): Add support for
11305 DImode. Change SFmode to use ww constraint instead of d to allow
11306 SF registers in the upper registers.
11307 (VSr2): Likewise.
11308 (VSr3): Likewise.
11309 (VSr5): Fix thinko in comment.
11310 (VSa): New mode attribute that is an alternative to wa, that
11311 returns the VSX register class that a mode can go in, but may not
11312 be the preferred register class.
11313 (VS_64dm): New mode attribute for appropriate register classes for
11314 referencing 64-bit elements of vectors for direct moves and normal
11315 moves.
11316 (VS_64reg): Likewise.
11317 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
11318 register allocator to only registers the data type can handle.
11319 (vsx_le_perm_load_<mode>): Likewise.
11320 (vsx_le_perm_store_<mode>): Likewise.
11321 (vsx_xxpermdi2_le_<mode>): Likewise.
11322 (vsx_xxpermdi4_le_<mode>): Likewise.
11323 (vsx_lxvd2x2_le_<mode>): Likewise.
11324 (vsx_lxvd2x4_le_<mode>): Likewise.
11325 (vsx_stxvd2x2_le_<mode>): Likewise.
11326 (vsx_add<mode>3): Likewise.
11327 (vsx_sub<mode>3): Likewise.
11328 (vsx_mul<mode>3): Likewise.
11329 (vsx_div<mode>3): Likewise.
11330 (vsx_tdiv<mode>3_internal): Likewise.
11331 (vsx_fre<mode>2): Likewise.
11332 (vsx_neg<mode>2): Likewise.
11333 (vsx_abs<mode>2): Likewise.
11334 (vsx_nabs<mode>2): Likewise.
11335 (vsx_smax<mode>3): Likewise.
11336 (vsx_smin<mode>3): Likewise.
11337 (vsx_sqrt<mode>2): Likewise.
11338 (vsx_rsqrte<mode>2): Likewise.
11339 (vsx_tsqrt<mode>2_internal): Likewise.
11340 (vsx_fms<mode>4): Likewise.
11341 (vsx_nfma<mode>4): Likewise.
11342 (vsx_eq<mode>): Likewise.
11343 (vsx_gt<mode>): Likewise.
11344 (vsx_ge<mode>): Likewise.
11345 (vsx_eq<mode>_p): Likewise.
11346 (vsx_gt<mode>_p): Likewise.
11347 (vsx_ge<mode>_p): Likewise.
11348 (vsx_xxsel<mode>): Likewise.
11349 (vsx_xxsel<mode>_uns): Likewise.
11350 (vsx_copysign<mode>3): Likewise.
11351 (vsx_float<VSi><mode>2): Likewise.
11352 (vsx_floatuns<VSi><mode>2): Likewise.
11353 (vsx_fix_trunc<mode><VSi>2): Likewise.
11354 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11355 (vsx_x<VSv>r<VSs>i): Likewise.
11356 (vsx_x<VSv>r<VSs>ic): Likewise.
11357 (vsx_btrunc<mode>2): Likewise.
11358 (vsx_b2trunc<mode>2): Likewise.
11359 (vsx_floor<mode>2): Likewise.
11360 (vsx_ceil<mode>2): Likewise.
11361 (vsx_<VS_spdp_insn>): Likewise.
11362 (vsx_xscvspdp): Likewise.
11363 (vsx_xvcvspuxds): Likewise.
11364 (vsx_float_fix_<mode>2): Likewise.
11365 (vsx_set_<mode>): Likewise.
11366 (vsx_extract_<mode>_internal1): Likewise.
11367 (vsx_extract_<mode>_internal2): Likewise.
11368 (vsx_extract_<mode>_load): Likewise.
11369 (vsx_extract_<mode>_store): Likewise.
11370 (vsx_splat_<mode>): Likewise.
11371 (vsx_xxspltw_<mode>): Likewise.
11372 (vsx_xxspltw_<mode>_direct): Likewise.
11373 (vsx_xxmrghw_<mode>): Likewise.
11374 (vsx_xxmrglw_<mode>): Likewise.
11375 (vsx_xxsldwi_<mode>): Likewise.
11376 (vsx_xscvdpspn): Tighten constraints to only use register classes
11377 the types use.
11378 (vsx_xscvspdpn): Likewise.
11379 (vsx_xscvdpspn_scalar): Likewise.
11380
11381 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11382 wj, and wk constraints.
11383 (GPR_REG_CLASS_P): New helper macro for register classes targeting
11384 general purpose registers.
11385
11386 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11387 direct moves.
11388 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11389 DImode instead of wm. Use wk constraint for direct move of DFmode
11390 instead of wm.
11391 (extendsidi2_lfiwax): Likewise.
11392 (lfiwax): Likewise.
11393 (lfiwzx): Likewise.
11394 (movdi_internal64): Likewise.
11395
11396 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11397 wk constraints. Make the wy constraint documentation match them
11398 implementation.
11399
11400 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
11401
11402 Replacement of isl_int by isl_val
11403 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11404 (compute_bounds_for_param): use isl_val instead of isl_int
11405 (compute_bounds_for_loop): likewise
11406 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11407 (build_linearized_memory_access): use isl_val instead of isl_int
11408 (pdr_stride_in_loop): likewise
11409 * graphite-optimize-isl.c:
11410 (getPrevectorMap): use isl_val instead of isl_int
11411 * graphite-poly.c:
11412 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11413 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11414 (extern the_isl_ctx): declare
11415 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11416 (extract_affine_gmp): likewise
11417 (wrap): likewise
11418 (build_loop_iteration_domains): likewise
11419 (add_param_constraints): likewise
11420
11421 2014-08-11 Richard Biener <rguenther@suse.de>
11422
11423 PR tree-optimization/62075
11424 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11425 handle uses in patterns.
11426
11427 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11428 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11429 Anna Tikhonova <anna.tikhonova@intel.com>
11430 Ilya Tocar <ilya.tocar@intel.com>
11431 Andrey Turetskiy <andrey.turetskiy@intel.com>
11432 Ilya Verbin <ilya.verbin@intel.com>
11433 Kirill Yukhin <kirill.yukhin@intel.com>
11434 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11435
11436 * common/config/i386/i386-common.c
11437 (OPTION_MASK_ISA_AVX512VL_SET): Define.
11438 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11439 (ix86_handle_option): Handle OPT_mavx512vl.
11440 * config/i386/cpuid.h (bit_AVX512VL): Define.
11441 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11442 set -mavx512vl accordingly.
11443 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11444 OPTION_MASK_ISA_AVX512VL.
11445 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11446 (ix86_option_override_internal): Define PTA_AVX512VL, handle
11447 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11448 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11449 * config/i386/i386.h (TARGET_AVX512VL): Define.
11450 (TARGET_AVX512VL_P(x)): Ditto.
11451 * config/i386/i386.opt: Add mavx512vl.
11452
11453 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
11454
11455 PR tree-optimization/62073
11456 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11457 a basic block.
11458
11459 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11460 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11461 Anna Tikhonova <anna.tikhonova@intel.com>
11462 Ilya Tocar <ilya.tocar@intel.com>
11463 Andrey Turetskiy <andrey.turetskiy@intel.com>
11464 Ilya Verbin <ilya.verbin@intel.com>
11465 Kirill Yukhin <kirill.yukhin@intel.com>
11466 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11467
11468 * common/config/i386/i386-common.c
11469 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11470 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11471 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11472 (ix86_handle_option): Handle OPT_mavx512bw.
11473 * config/i386/cpuid.h (bit_AVX512BW): Define.
11474 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11475 set -mavx512bw accordingly.
11476 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11477 OPTION_MASK_ISA_AVX512BW.
11478 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11479 (ix86_option_override_internal): Define PTA_AVX512BW, handle
11480 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11481 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11482 * config/i386/i386.h (TARGET_AVX512BW): Define.
11483 (TARGET_AVX512BW_P(x)): Ditto.
11484 * config/i386/i386.opt: Add mavx512bw.
11485
11486 2014-08-11 Richard Biener <rguenther@suse.de>
11487
11488 PR tree-optimization/62070
11489 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11490 Remove SSA checking.
11491
11492 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11493
11494 * asan.c (asan_check_flags): New enum.
11495 (build_check_stmt_with_calls): Removed function.
11496 (build_check_stmt): Split inlining logic to
11497 asan_expand_check_ifn.
11498 (instrument_derefs): Rename parameter.
11499 (instrument_mem_region_access): Rename parameter.
11500 (instrument_strlen_call): Likewise.
11501 (asan_expand_check_ifn): New function.
11502 (asan_instrument): Remove old code.
11503 (pass_sanopt::execute): Change handling of
11504 asan-instrumentation-with-call-threshold.
11505 (asan_clear_shadow): Fix formatting.
11506 (asan_function_start): Likewise.
11507 (asan_emit_stack_protection): Likewise.
11508 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11509 Update description.
11510 * internal-fn.c (expand_ASAN_CHECK): New function.
11511 * internal-fn.def (ASAN_CHECK): New internal function.
11512 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11513 Update description.
11514 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11515 * tree.c: Small comment fix.
11516
11517 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11518
11519 * gimple.c (gimple_call_fnspec): Support internal functions.
11520 (gimple_call_return_flags): Use const.
11521 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11522 * internal-fn.def: Add fnspec information.
11523 * internal-fn.h (internal_fn_fnspec): New function.
11524 (init_internal_fns): Declare new function.
11525 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11526 (init_internal_fns): New function.
11527 * tree-core.h: Update macro call.
11528 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11529
11530 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11531
11532 * lto-streamer.h (struct output_block::symbol): Change from
11533 struct symtab_node to plain symtab_node.
11534 (referenced_from_this_partition_p): Change first parameter
11535 from struct symtab_node to plain symtab_node.
11536
11537 2014-08-10 Marek Polacek <polacek@redhat.com>
11538
11539 PR c/51849
11540 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11541
11542 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11543
11544 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11545 DECL correctly; do not give up on types in static storage.
11546
11547 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11548
11549 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11550
11551 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11552
11553 * graphite-isl-ast-to-gimple.c:
11554 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11555
11556 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11557
11558 2014-08-08 Guozhi Wei <carrot@google.com>
11559
11560 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11561
11562 2014-08-08 Cary Coutant <ccoutant@google.com>
11563
11564 * dwarf2out.c (get_skeleton_type_unit): Remove.
11565 (output_skeleton_debug_sections): Remove skeleton type units.
11566 (output_comdat_type_unit): Likewise.
11567 (dwarf2out_finish): Likewise.
11568
11569 2014-08-07 Yi Yang <ahyangyi@google.com>
11570
11571 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11572
11573 2014-08-08 Richard Biener <rguenther@suse.de>
11574
11575 * lto-streamer.h (struct lto_input_block): Make it a class
11576 with a constructor.
11577 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11578 (struct lto_function_header, struct lto_simple_header,
11579 struct lto_simple_header_with_strings,
11580 struct lto_decl_header, struct lto_function_header): Make
11581 a simple inheritance hieararchy. Remove unused fields.
11582 (struct lto_asm_header): Remove.
11583 * lto-streamer-out.c (produce_asm): Adjust.
11584 (lto_output_toplevel_asms): Likewise.
11585 (produce_asm_for_decls): Likewise.
11586 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11587 * data-streamer-in.c (string_for_index): Likewise.
11588 * ipa-inline-analysis.c (inline_read_section): Likewise.
11589 * ipa-prop.c (ipa_prop_read_section): Likewise.
11590 (read_replacements_section): Likewise.
11591 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11592 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11593 (lto_destroy_simple_input_block): Likewise.
11594 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11595 (lto_input_toplevel_asms): Likewise.
11596
11597 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11598 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11599 Anna Tikhonova <anna.tikhonova@intel.com>
11600 Ilya Tocar <ilya.tocar@intel.com>
11601 Andrey Turetskiy <andrey.turetskiy@intel.com>
11602 Ilya Verbin <ilya.verbin@intel.com>
11603 Kirill Yukhin <kirill.yukhin@intel.com>
11604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11605
11606 * common/config/i386/i386-common.c
11607 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11608 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11609 (ix86_handle_option): Handle OPT_mavx512dq.
11610 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11611 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11612 set -mavx512dq accordingly.
11613 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11614 OPTION_MASK_ISA_AVX512DQ.
11615 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11616 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11617 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11618 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11619 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11620 (TARGET_AVX512DQ_P(x)): Ditto.
11621 * config/i386/i386.opt: Add mavx512dq.
11622
11623 2014-08-08 Richard Biener <rguenther@suse.de>
11624
11625 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11626 target_percent, target_percent_s): Export.
11627 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11628 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11629 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11630 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11631 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11632 Move to gimple-fold.c.
11633 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11634 strcat and strcpy.
11635 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11636 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11637 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11638 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11639 (rewrite_call_expr_array): Remove.
11640 (fold_builtin_sprintf_chk): Likewise.
11641 (fold_builtin_snprintf_chk): Likewise.
11642 (fold_builtin_varargs): Remove handling of sprintf_chk,
11643 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11644 (gimple_fold_builtin_sprintf_chk): Remove.
11645 (gimple_fold_builtin_snprintf_chk): Likewise.
11646 (gimple_fold_builtin_varargs): Likewise.
11647 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11648 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11649 * gimple.c (gimple_seq_add_seq_without_update): New function.
11650 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11651 * gimple-fold.c: Include output.h.
11652 (gsi_replace_with_seq_vops): New function, split out from ...
11653 (gimplify_and_update_call_from_tree): ... here.
11654 (replace_call_with_value): New function.
11655 (replace_call_with_call_and_fold): Likewise.
11656 (var_decl_component_p): Moved from builtins.c.
11657 (gimple_fold_builtin_memory_op): Moved from builtins.c
11658 fold_builtin_memory_op and rewritten to GIMPLE.
11659 (gimple_fold_builtin_memset): Likewise.
11660 (gimple_fold_builtin_strcpy): Likewise.
11661 (gimple_fold_builtin_strncpy): Likewise.
11662 (gimple_fold_builtin_strcat): Likewise.
11663 (gimple_fold_builtin_fputs): Likewise.
11664 (gimple_fold_builtin_memory_chk): Likewise.
11665 (gimple_fold_builtin_stxcpy_chk): Likewise.
11666 (gimple_fold_builtin_stxncpy_chk): Likewise.
11667 (gimple_fold_builtin_snprintf_chk): Likewise.
11668 (gimple_fold_builtin_sprintf_chk): Likewise.
11669 (gimple_fold_builtin_strlen): New function.
11670 (gimple_fold_builtin_with_strlen): New function split out from
11671 gimple_fold_builtin.
11672 (gimple_fold_builtin): Change signature and handle
11673 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11674 here. Call gimple_fold_builtin_with_strlen.
11675 (gimple_fold_call): Adjust.
11676
11677 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11678
11679 * calls.c (precompute_arguments): Check
11680 promoted_for_signed_and_unsigned_p and set the promoted mode.
11681 (promoted_for_signed_and_unsigned_p): New function.
11682 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11683 and set the promoted mode.
11684 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11685 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11686 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11687
11688
11689 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11690
11691 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11692 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11693 (expand_call): Likewise.
11694 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11695 to get promoted mode.
11696 * combine.c (record_promoted_value): Skip > 0 comparison with
11697 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11698 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11699 of SUBREG_PROMOTED_UNSIGNED_P.
11700 (convert_modes): Likewise.
11701 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11702 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11703 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11704 SUBREG_PROMOTED_UNSIGNED_SET.
11705 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11706 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11707 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11708 SUBREG_PROMOTED_SET.
11709 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11710 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11711 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11712 of SUBREG_PROMOTED_UNSIGNED_P.
11713 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11714 (SUBREG_PROMOTED_SET): New define.
11715 (SUBREG_PROMOTED_GET): Likewise.
11716 (SUBREG_PROMOTED_SIGN): Likewise.
11717 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11718 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11719 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11720 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11721 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11722 (nonzero_bits1): Skip > 0 comparison with the results as
11723 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11724 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11725 of !SUBREG_PROMOTED_UNSIGNED_P.
11726 * simplify-rtx.c (simplify_unary_operation_1): Use new
11727 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11728 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11729 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11730 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11731
11732 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11733
11734 * ipa-devirt.c: Include gimple-pretty-print.h
11735 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11736 further tests.
11737 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11738 (get_polymorphic_call_info): Fix return value
11739 (type_change_info): New sturcture based on ipa-prop
11740 variant.
11741 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11742 based on ipa-prop variant.
11743 (extr_type_from_vtbl_ptr_store): New function
11744 based on ipa-prop variant.
11745 (record_known_type): New function.
11746 (check_stmt_for_type_change): New function.
11747 (get_dynamic_type): New function.
11748 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11749 * tree-ssa-pre.c: ipa-utils.h
11750 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11751 machinery; sanity check with ipa-prop devirtualization.
11752 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11753 polymorphic flag.
11754
11755 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11756
11757 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11758 * alias.c, cfgexpand.c, cgraphbuild.c,
11759 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11760 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11761 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11762 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11763 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11764 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11765 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11766 dse.c, except.c, gengtype.c, gimple-expr.c,
11767 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11768 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11769 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11770 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11771 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11772 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11773 pointer-set.h.
11774 * pointer-set.c: Remove file.
11775 * pointer-set.h: Remove file.
11776
11777 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11778
11779 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11780 * config/arm/types.md (f_sels, f_seld): Delete.
11781
11782 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11783
11784 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11785 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11786 (aarch64_movdi_<mode>high): Likewise.
11787 (aarch64_mov<mode>high_di): Likewise.
11788 (aarch64_movdi_<mode>low): Likewise.
11789 (aarch64_mov<mode>low_di): Likewise.
11790 (aarch64_movtilow_tilow): Likewise.
11791 Add comment explaining usage of fp,simd attributes and of
11792 TARGET_FLOAT and TARGET_SIMD.
11793
11794 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11795 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11796
11797 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11798 Use MOVN when one of the half-words is 0xffff.
11799
11800 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11801
11802 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11803
11804 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11805
11806 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11807 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11808 (rfs_str): String corresponding to RFS_* constants.
11809 (rank_for_schedule_stats_t): New typedef.
11810 (rank_for_schedule_stats): New static variable.
11811 (rfs_result): New static function.
11812 (rank_for_schedule): Track statistics for deciding heuristics.
11813 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11814 static functions.
11815 (ready_sort): Use them for debug printouts.
11816 (schedule_block): Init statistics state. Print statistics on
11817 rank_for_schedule decisions.
11818
11819 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11820
11821 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11822
11823 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11824
11825 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11826 constraint.
11827
11828 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11829
11830 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11831 function to not conflict.
11832 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11833 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11834 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11835 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11836 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11837 of pointer_map.
11838
11839 2014-08-07 Marek Polacek <polacek@redhat.com>
11840
11841 * fold-const.c (fold_binary_loc): Add folding of
11842 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11843
11844 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11845
11846 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11847 instead of type size.
11848 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11849
11850 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11851
11852 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11853 (*thumb1_movqi_insn): Likewise.
11854 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11855
11856 2014-08-07 Tom de Vries <tom@codesourcery.com>
11857
11858 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11859 (glibc_2_11_or_earlier): Remove effective-target keywords.
11860
11861 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11862
11863 * config/arm/arm.c (bdesc_2arg): Fix typo.
11864 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11865
11866 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11867
11868 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11869
11870 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11871
11872 PR debug/61923
11873 * haifa-sched.c (advance_one_cycle): Fix dump.
11874 (schedule_block): Don't advance cycle if we are already at the
11875 beginning of the cycle.
11876
11877 2014-08-06 Martin Jambor <mjambor@suse.cz>
11878
11879 PR ipa/61393
11880 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11881
11882 2014-08-06 Richard Biener <rguenther@suse.de>
11883
11884 PR lto/62034
11885 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11886 SCCs here.
11887 (lto_input_tree): Pop SCCs here.
11888
11889 2014-08-06 Richard Biener <rguenther@suse.de>
11890
11891 PR tree-optimization/61320
11892 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11893 handle misaligned loads.
11894
11895 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11896
11897 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11898 (aarch64_expand_vec_perm_const): Check for dup before zip.
11899
11900 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11901
11902 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11903 CONST_INT_P instead of GET_CODE and compare.
11904 (aarch64_select_cc_mode): Likewise.
11905 (aarch64_print_operand): Likewise.
11906 (aarch64_rtx_costs): Likewise.
11907 (aarch64_simd_valid_immediate): Likewise.
11908 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11909 (aarch64_simd_emit_pair_result_insn): Likewise.
11910
11911 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11912
11913 * gdbhooks.py (find_gcc_source_dir): New helper function.
11914 (class PassNames): New class, locating and parsing passes.def.
11915 (class BreakOnPass): New command "break-on-pass".
11916
11917 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11918
11919 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11920 getting olde.
11921
11922 2014-08-05 Richard Biener <rguenther@suse.de>
11923
11924 PR rtl-optimization/61672
11925 * emit-rtl.h (mem_attrs_eq_p): Declare.
11926 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11927 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11928 * cfgcleanup.c (merge_memattrs): Likewise.
11929 Include emit-rtl.h.
11930
11931 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11932
11933 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11934 rather than singleton vectors.
11935 (vqdmlsls_lane_s32): Likewise.
11936
11937 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11938
11939 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11940 Use VSDQ_HSI mode iterator.
11941 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11942 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11943 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11944 Use BUILTIN_VDQHS macro.
11945 (sqrdmulh_laneq): Likewise.
11946 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11947 (vqdmlals_laneq_s32): Likewise.
11948 (vqdmlslh_laneq_s16): Likewise.
11949 (vqdmlsls_laneq_s32): Likewise.
11950 (vqdmulhh_laneq_s16): Likewise.
11951 (vqdmulhs_laneq_s32): Likewise.
11952 (vqrdmulhh_laneq_s16): Likewise.
11953 (vqrdmulhs_laneq_s32): Likewise.
11954
11955 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11956
11957 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11958 (vmuld_laneq_f64): Likewise.
11959 (vmuls_laneq_f32): Likewise.
11960 (vmul_n_f64): Likewise.
11961 (vmuld_lane_f64): Reimplement in C.
11962 (vmuls_lane_f32): Likewise.
11963
11964 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11965
11966 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11967 to reservation.
11968 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11969
11970 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11971
11972 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11973 (rbitsi2): Likewise.
11974 (*arm_rev): Set predicable and predicable_short_it attributes.
11975
11976 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11977
11978 * convert.c (convert_to_integer): Guard transformation to lrint by
11979 -fno-math-errno.
11980
11981 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11982
11983 * config/aarch64/aarch64-builtins.c
11984 (aarch64_simd_builtin_type_mode): Delete.
11985 (v8qi_UP): Remap to V8QImode.
11986 (v4hi_UP): Remap to V4HImode.
11987 (v2si_UP): Remap to V2SImode.
11988 (v2sf_UP): Remap to V2SFmode.
11989 (v1df_UP): Remap to V1DFmode.
11990 (di_UP): Remap to DImode.
11991 (df_UP): Remap to DFmode.
11992 (v16qi_UP):V16QImode.
11993 (v8hi_UP): Remap to V8HImode.
11994 (v4si_UP): Remap to V4SImode.
11995 (v4sf_UP): Remap to V4SFmode.
11996 (v2di_UP): Remap to V2DImode.
11997 (v2df_UP): Remap to V2DFmode.
11998 (ti_UP): Remap to TImode.
11999 (ei_UP): Remap to EImode.
12000 (oi_UP): Remap to OImode.
12001 (ci_UP): Map to CImode.
12002 (xi_UP): Remap to XImode.
12003 (si_UP): Remap to SImode.
12004 (sf_UP): Remap to SFmode.
12005 (hi_UP): Remap to HImode.
12006 (qi_UP): Remap to QImode.
12007 (aarch64_simd_builtin_datum): Make mode a machine_mode.
12008 (VAR1): Build builtin name.
12009 (aarch64_init_simd_builtins): Remove dead code.
12010
12011 2014-08-05 Roman Gareev <gareevroman@gmail.com>
12012
12013 * graphite-isl-ast-to-gimple.c:
12014 (set_options): New function.
12015 (scop_to_isl_ast): Add calling of set_options.
12016
12017 2014-08-05 Jakub Jelinek <jakub@redhat.com>
12018
12019 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
12020 (analyze_iv_to_split_insn): Don't initialize them.
12021 (get_ivts_expr): Removed.
12022 (allocate_basic_variable, insert_base_initialization): Use
12023 SET_SRC instead of *get_ivts_expr.
12024 (split_iv): Use &SET_SRC instead of get_ivts_expr.
12025
12026 2014-08-05 Roman Gareev <gareevroman@gmail.com>
12027
12028 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
12029 (translate_isl_ast_for_loop): Add checking of the
12030 flag_loop_parallelize_all.
12031 (ast_build_before_for): New function.
12032 (scop_to_isl_ast): Add checking of the
12033 flag_loop_parallelize_all.
12034 * graphite-dependences.c: Move the defenition of the
12035 scop_get_dependences from graphite-optimize-isl.c to this file.
12036 (apply_schedule_on_deps): Add checking of the ux's emptiness.
12037 (carries_deps): Add checking of the x's value.
12038 * graphite-optimize-isl.c: Move the defenition of the
12039 scop_get_dependences to graphite-dependences.c.
12040 * graphite-poly.h: Add declarations of scop_get_dependences
12041 and carries_deps.
12042
12043 2014-08-04 Rohit <rohitarulraj@freescale.com>
12044
12045 PR target/60102
12046 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
12047 names.
12048 (alt_reg_names): Likewise.
12049 (rs6000_dwarf_register_span): For SPE high registers, replace
12050 dwarf register numbers with GCC hard register numbers.
12051 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
12052 (rs6000_dbx_register_number): For SPE high registers, return dwarf
12053 register number for the corresponding GCC hard register number.
12054 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
12055 newly added GCC hard register numbers for SPE high registers.
12056 (DWARF_FRAME_REGISTERS): Likewise.
12057 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
12058 (DWARF_FRAME_REGNUM): Likewise.
12059 (FIXED_REGISTERS): Likewise.
12060 (CALL_USED_REGISTERS): Likewise.
12061 (CALL_REALLY_USED_REGISTERS): Likewise.
12062 (REG_ALLOC_ORDER): Likewise.
12063 (enum reg_class): Likewise.
12064 (REG_CLASS_NAMES): Likewise.
12065 (REG_CLASS_CONTENTS): Likewise.
12066 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
12067
12068 2014-08-04 Richard Biener <rguenther@suse.de>
12069
12070 * gimple-fold.h (gimple_fold_builtin): Remove.
12071 * gimple-fold.c (gimple_fold_builtin): Make static.
12072 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
12073 fold_stmt, not gimple_fold_builtin.
12074
12075 2014-08-04 Martin Liska <mliska@suse.cz>
12076
12077 * cgraph.h (csi_end_p): Removed.
12078 (csi_next): Likewise.
12079 (csi_node): Likewise.
12080 (csi_start): Likewise.
12081 (cgraph_node_in_set_p): Likewise.
12082 (cgraph_node_set_size): Likewise.
12083 (vsi_end_p): Likewise.
12084 (vsi_next): Likewise.
12085 (vsi_node): Likewise.
12086 (vsi_start): Likewise.
12087 (varpool_node_set_size): Likewise.
12088 (cgraph_node_set_nonempty_p): Likewise.
12089 (varpool_node_set_nonempty_p): Likewise.
12090 * cgraphunit.c (cgraph_process_new_functions): vec replaces
12091 cgraph_node_set.
12092 * ipa-inline-transform.c: Likewise.
12093 * ipa-utils.c (cgraph_node_set_new): Removed.
12094 (cgraph_node_set_add): Likewise.
12095 (cgraph_node_set_remove): Likewise.
12096 (cgraph_node_set_find): Likewise.
12097 (dump_cgraph_node_set): Likewise.
12098 (debug_cgraph_node_set): Likewise.
12099 (free_cgraph_node_set): Likewise.
12100 (varpool_node_set_new): Likewise.
12101 (varpool_node_set_add): Likewise.
12102 (varpool_node_set_remove): Likewise.
12103 (varpool_node_set_find): Likewise.
12104 (dump_varpool_node_set): Likewise.
12105 (free_varpool_node_set): Likewise.
12106 (debug_varpool_node_set): Likewise.
12107 * tree-emutls.c (struct tls_var_data):
12108 (emutls_index): Removed.
12109 (emutls_decl): Likewise.
12110 (gen_emutls_addr): Function implementation uses newly added
12111 hash_map<varpool_node *, tls_var_data>.
12112 (clear_access_vars): Likewise.
12113 (create_emultls_var): Likewise.
12114 (ipa_lower_emutls): Likewise.
12115 (reset_access): New function.
12116
12117 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12118
12119 * config/i386/i386.c (ix86_option_override_internal): Add
12120 PTA_RDRND and PTA_MOVBE for bdver4.
12121
12122 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12123 James Greenhalgh <james.greenhalgh@arm.com>
12124
12125 * doc/md.texi (clrsb): Document.
12126 (clz): Change reference to x into operand 1.
12127 (ctz): Likewise.
12128 (popcount): Likewise.
12129
12130 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12131
12132 PR target/61713
12133 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
12134 move to subtarget in serial version if result is ignored.
12135
12136 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12137 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12138
12139 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
12140 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
12141 (sched_analyze_insn): Update use of try_group_insn to
12142 sched_macro_fuse_insns.
12143 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
12144 arguments that are not conditional jumps.
12145
12146 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12147
12148 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
12149 family information. Handle BTVER2 cpu with cpuid family value.
12150
12151 2014-08-04 Tom de Vries <tom@codesourcery.com>
12152
12153 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12154 (glibc_2_11_or_earlier): Document effective-target keywords.
12155
12156 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
12157
12158 * ipa-devirt.c (odr_type_warn_count): Add type.
12159 (possible_polymorphic_call_targets): Set it.
12160 (ipa_devirt): Use it.
12161
12162 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
12163
12164 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
12165 Document.
12166 * ipa-devirt.c: Include hash-map.h
12167 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
12168 (clear_speculation): Break out of ...
12169 (get_class_context): ... here; speed up handling obviously useless
12170 speculations.
12171 (odr_type_warn_count, decl_warn_count): New structures.
12172 (final_warning_record): New structure.
12173 (final_warning_records): New static variable.
12174 (possible_polymorphic_call_targets): Cleanup handling of
12175 speculative info; do not build speculation when user do not care;
12176 record info about warnings when asked for.
12177 (add_decl_warning): New function.
12178 (type_warning_cmp): New function.
12179 (decl_warning_cmp): New function.
12180 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
12181 (gate): Enable pass when warnings are requested.
12182 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
12183 options.
12184
12185 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
12186
12187 * hash-map.h (default_hashmap_traits::mark_key_deleted):
12188 Fix cast.
12189 (hash_map::remove): New method.
12190 (hash_map::traverse): New method.
12191 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
12192 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
12193 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
12194 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
12195 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
12196 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
12197 pointer_map.
12198
12199 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
12200
12201 * hash-set.h: new File.
12202 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
12203 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
12204 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
12205 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
12206 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
12207 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
12208 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
12209 varpool.c: Use hash_set instead of pointer_set.
12210
12211 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
12212
12213 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
12214
12215 2014-08-01 Jiong Wang <jiong.wang@arm.com>
12216
12217 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
12218 for frame access when strict_p is false.
12219
12220 2014-08-01 Renlin Li <renlin.li@arm.com>
12221 2014-08-01 Jiong Wang <jiong.wang@arm.com>
12222
12223 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
12224 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
12225 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
12226 Declaration.
12227 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
12228 predicate.
12229 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
12230 aarch64_mem_pair_offset.
12231
12232 2014-08-01 Jiong Wang <jiong.wang@arm.com>
12233
12234 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
12235 offset.
12236 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
12237 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
12238
12239 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
12240
12241 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
12242
12243 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
12244
12245 PR regression/61510
12246 * cgraphunit.c (analyze_functions): Use get_create rather than get
12247 for decls which are clones of abstract functions.
12248
12249 2014-08-01 Martin Liska <mliska@suse.cz>
12250
12251 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
12252 * ipa-prop.h (count_formal_params): Global function created from static.
12253 * ipa-prop.c (count_formal_params): Likewise.
12254 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
12255 profiles for semantically equivalent functions.
12256 * passes.c (do_per_function): If we load body of a function
12257 during WPA, this condition should behave same.
12258 * varpool.c (ctor_for_folding): More tolerant assert for variable
12259 aliases created during WPA.
12260
12261 2014-08-01 Martin Liska <mliska@suse.cz>
12262
12263 * doc/invoke.texi (Options That Control Optimization): Documentation
12264 for -foptimize-strlen introduced. Optimization levels default options
12265 fixed.
12266
12267 2014-08-01 Jakub Jelinek <jakub@redhat.com>
12268
12269 * opts.c (common_handle_option): Handle -fsanitize=alignment.
12270 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
12271 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
12272 type to bool.
12273 * stor-layout.h (min_align_of_type): New prototype.
12274 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
12275 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
12276 check.
12277 * ubsan.c: Include builtins.h.
12278 (ubsan_expand_bounds_ifn): Change return type to bool,
12279 always return true.
12280 (ubsan_expand_null_ifn): Change return type to bool, change
12281 argument to gimple_stmt_iterator *. Handle both null and alignment
12282 sanitization, take type from ckind argument's type rather than
12283 first argument.
12284 (instrument_member_call): Removed.
12285 (instrument_mem_ref): Remove t argument, add mem and base arguments.
12286 Handle both null and alignment sanitization, don't say whole
12287 struct access is member access. Build 3 argument IFN_UBSAN_NULL
12288 call instead of 2 argument.
12289 (instrument_null): Adjust instrument_mem_ref caller. Don't
12290 instrument calls here.
12291 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
12292 like SANITIZE_NULL.
12293 * stor-layout.c (min_align_of_type): New function.
12294 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
12295 Or it into SANITIZE_UNDEFINED.
12296 * doc/invoke.texi (-fsanitize=alignment): Document.
12297
12298 2014-07-31 Andi Kleen <ak@linux.intel.com>
12299
12300 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
12301
12302 2014-07-31 Andi Kleen <ak@linux.intel.com>
12303
12304 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
12305 inchash.
12306 (vn_reference_compute_hash): Dito.
12307 (vn_nary_op_compute_hash): Dito.
12308 (vn_phi_compute_hash): Dito.
12309 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
12310
12311 2014-07-31 Andi Kleen <ak@linux.intel.com>
12312
12313 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
12314 Rename to inchash:add_expr_commutative. Convert to inchash.
12315 (iterative_hash_hashable_expr): Rename to
12316 inchash:add_hashable_expr. Convert to inchash.
12317 (avail_expr_hash): Dito.
12318
12319 2014-07-31 Andi Kleen <ak@linux.intel.com>
12320
12321 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
12322 Convert to inchash.
12323
12324 2014-07-31 Andi Kleen <ak@linux.intel.com>
12325
12326 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
12327
12328 2014-07-31 Andi Kleen <ak@linux.intel.com>
12329
12330 * Makefile.in (OBJS): Add rtlhash.o
12331 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12332 (loc_checksum): Dito.
12333 (loc_checksum_ordered): Dito.
12334 (hash_loc_operands): Dito.
12335 (hash_locs): Dito.
12336 (hash_loc_list): Dito.
12337 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12338 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12339 * rtlhash.c: New file.
12340 * rtlhash.h: New file.
12341
12342 2014-07-31 Andi Kleen <ak@linux.intel.com>
12343
12344 * inchash.h (inchash): Change inchash class to namespace.
12345 (class hash): ... Rename from inchash.
12346 (add_object): Move from macro to class template.
12347 * lto-streamer-out.c (hash_tree): Change inchash
12348 to inchash::hash.
12349 * tree.c (build_type_attribute_qual_variant): Dito.
12350 (type_hash_list): Dito.
12351 (attribute_hash_list): Dito.
12352 (iterative_hstate_expr): Rename to inchash::add_expr
12353 (build_range_type_1): Change inchash to inchash::hash
12354 and use hash::add_expr.
12355 (build_array_type_1): Dito.
12356 (build_function_type): Dito
12357 (build_method_type_directly): Dito.
12358 (build_offset_type): Dito.
12359 (build_complex_type): Dito.
12360 (make_vector_type): Dito.
12361 * tree.h (iterative_hash_expr): Dito.
12362
12363 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
12364
12365 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12366
12367 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12368
12369 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12370 correct alphabetical position.
12371 (vpaddd_f64): Rewrite using builtins.
12372 (vpaddd_s64): Move to correct alphabetical position.
12373 (vpaddd_u64): New.
12374
12375 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
12376
12377 PR target/61844
12378 * config/sh/sh.c (sh_legitimate_address_p,
12379 sh_legitimize_reload_address): Handle reg+reg address modes when
12380 ALLOW_INDEXED_ADDRESS is false.
12381 * config/sh/predicates.md (general_movsrc_operand,
12382 general_movdst_operand): Likewise.
12383
12384 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12385
12386 * config/aarch64/aarch64-builtins.c
12387 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12388 BYTES_BIG_ENDIAN.
12389
12390 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12391
12392 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12393 the generated mask based on BYTES_BIG_ENDIAN.
12394 (aarch64_simd_check_vect_par_cnst_half): New.
12395 * config/aarch64/aarch64-protos.h
12396 (aarch64_simd_check_vect_par_cnst_half): New.
12397 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12398 the check out to aarch64_simd_check_vect_par_cnst_half.
12399 (vect_par_cnst_lo_half): Likewise.
12400 * config/aarch64/aarch64-simd.md
12401 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12402 (move_hi_quad_<mode>): Always generate a low mask.
12403
12404 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12405
12406 * doc/invoke.texi (AVR Options): Add documentation about
12407 __AVR_DEVICE_NAME__ built-in macro.
12408
12409 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
12410
12411 PR target/61948
12412 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12413 constraints are satisfied.
12414 (<shift>di3_neon): Likewise.
12415
12416 2014-07-31 Richard Biener <rguenther@suse.de>
12417
12418 PR tree-optimization/61964
12419 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12420 by structural equality.
12421
12422 2014-07-31 Yury Gribov <y.gribov@samsung.com>
12423
12424 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12425 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12426 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12427 New enums.
12428 * gcc.c (sanitize_spec_function): Support new option.
12429 (SANITIZER_SPEC): Remove now redundant check.
12430 * opts.c (common_handle_option): Support new option.
12431 (finish_options): Check for incompatibilities.
12432 * toplev.c (process_options): Split userspace-specific checks.
12433
12434 2014-07-31 Richard Biener <rguenther@suse.de>
12435
12436 * lto-streamer.h (struct output_block): Remove global.
12437 (struct data_in): Remove labels, num_named_labels and
12438 num_unnamed_labels.
12439 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12440 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12441
12442 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
12443
12444 PR c++/60517
12445 * common.opt (-Wreturn-local-addr): Moved from c.opt.
12446 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12447 (isolate_path): New argument to avoid inserting a trap.
12448 (find_implicit_erroneous_behaviour): Handle returning the address
12449 of a local variable.
12450 (find_explicit_erroneous_behaviour): Likewise.
12451
12452 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
12453
12454 PR lto/61868
12455 * toplev.c (init_random_seed): Move piece of code never called to
12456 set_random_seed.
12457 (set_random_seed): see above.
12458
12459 2014-07-31 Tom de Vries <tom@codesourcery.com>
12460
12461 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12462
12463 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12464
12465 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12466 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12467
12468 2014-07-31 Richard Biener <rguenther@suse.de>
12469
12470 * data-streamer.h (streamer_write_data_stream): Declare here,
12471 renamed from ...
12472 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
12473 * lto-cgraph.c (lto_output_node): Adjust.
12474 (lto_output_varpool_node): Likewise.
12475 * data-streamer-out.c (streamer_string_index): Likewise.
12476 (streamer_write_data_stream, lto_append_block): Move from ...
12477 * lto-section-out.c (lto_output_data_stream,
12478 lto_append_block): ... here.
12479
12480 2014-07-30 Mike Stump <mikestump@comcast.net>
12481
12482 * configure.ac: Also check for popen.
12483 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12484 * configure: Regenerate.
12485 * config.in: Regenerate.
12486
12487 2014-07-30 Martin Jambor <mjambor@suse.cz>
12488
12489 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12490 parameter to gimple.
12491
12492 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12493
12494 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12495 address as second parameter to __tpf_eh_return routine.
12496
12497 2014-07-30 Jiong Wang <jiong.wang@arm.com>
12498
12499 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12500 Thumb2.
12501
12502 2014-07-30 Tom Tromey <tromey@redhat.com>
12503
12504 PR c/59855
12505 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12506 * doc/extend.texi (Type Attributes): Document designated_init
12507 attribute.
12508
12509 2014-07-30 Roman Gareev <gareevroman@gmail.com>
12510
12511 * graphite-isl-ast-to-gimple.c:
12512 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12513 (gcc_expression_from_isl_expression): Pass type to
12514 gcc_expression_from_isl_ast_expr_id.
12515
12516 2014-07-30 Richard Biener <rguenther@suse.de>
12517
12518 * lto-streamer.h (lto_write_data): New function.
12519 * langhooks.c (lhd_append_data): Do not free block.
12520 * lto-section-out.c (lto_write_data): New function writing
12521 raw data to the current section.
12522 (lto_write_stream): Adjust for langhook semantic change.
12523 (lto_destroy_simple_output_block): Write header directly.
12524 * lto-opts.c (lto_write_options): Write options directly.
12525 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12526 (lto_output_toplevel_asms): Likewise.
12527 (copy_function_or_variable): Copy data directly.
12528 (write_global_references): Output index table directly.
12529 (lto_output_decl_state_refs): Likewise.
12530 (write_symbol): Write data directly.
12531 (produce_symtab): Adjust.
12532 (produce_asm_for_decls): Output header and refs directly.
12533
12534 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12535
12536 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12537 to speculative_targets
12538 (get_class_context): Fix handling of contextes without outer type;
12539 avoid matching non-polymorphic types in LTO.
12540 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12541 parameter to speculative_targetsp; handle speculation.
12542 (dump_possible_polymorphic_call_targets): Update dumping.
12543
12544 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12545
12546 * common.opt (Wodr): Enable by default.
12547
12548 2014-07-29 Olivier Hainque <hainque@adacore.com>
12549
12550 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12551
12552 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12553
12554 PR bootstrap/61914
12555 * gengtype.c (strtoken): New function.
12556 (create_user_defined_type): Replace strtok with strtoken.
12557
12558 2014-07-29 Nathan Sidwell <nathan@acm.org>
12559
12560 * gcov-io.c (gcov_var): Make hidden.
12561 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12562 (gcov_do_dump): Declare.
12563 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12564
12565 2014-07-29 Martin Jambor <mjambor@suse.cz>
12566
12567 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12568 parameter to gimple.
12569 (sra_modify_assign): Likewise.
12570
12571 2014-07-29 Richard Biener <rguenther@suse.de>
12572
12573 PR middle-end/52478
12574 * expr.c (expand_expr_real_2): Revert last change.
12575
12576 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12577
12578 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12579 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12580 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12581 call.
12582 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12583 (contains_type_p): Forward declare.
12584 (polymorphic_call_target_hasher::hash): Hash speculative info.
12585 (polymorphic_call_target_hasher::equal): Compare speculative info.
12586 (get_class_context): Handle speuclation.
12587 (contains_type_p): Update.
12588 (get_polymorphic_call_info_for_decl): Update.
12589 (walk_ssa_copies): Break out from ...
12590 (get_polymorphic_call_info): ... here; set speculative context
12591 before giving up.
12592 * ipa-prop.c (ipa_write_indirect_edge_info,
12593 ipa_read_indirect_edge_info): Stream speculative context.
12594 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12595 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12596 SPECULATIVE_MAYBE_DERIVED_TYPE).
12597 (possible_polymorphic_call_targets overriders): Update.
12598 (dump_possible_polymorphic_call_targets overriders): Update.
12599 (dump_possible_polymorphic_call_target_p overriders): Update.
12600
12601 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12602
12603 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12604 ipa-devirt path; fix thinko there.
12605
12606 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12607
12608 * config/i386/i386.c (ix86_return_in_memory): Replace one
12609 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12610
12611 2014-07-28 Marek Polacek <polacek@redhat.com>
12612
12613 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12614
12615 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12616
12617 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12618 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12619 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12620 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12621 (USE_LD_AS_NEEDED): Likewise.
12622 (ASM_APP_ON): Likewise.
12623 (ASM_APP_OFF): Likewise.
12624 (TARGET_POSIX_IO): Likewise.
12625 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12626 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12627 (USE_LD_AS_NEEDED): Likewise.
12628 (ASM_APP_ON): Likewise.
12629 (ASM_APP_OFF): Likewise.
12630 (TARGET_POSIX_IO): Likewise.
12631
12632 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12633
12634 PR middle-end/61734
12635 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12636 operators other than the equality operators.
12637
12638 2014-07-28 Richard Biener <rguenther@suse.de>
12639
12640 PR middle-end/52478
12641 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12642 sure to register SImode ones, not only >= word_mode ones.
12643 * expr.c (expand_expr_real_2): When expanding -ftrapv
12644 binops do not use OPTAB_LIB_WIDEN.
12645
12646 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12647
12648 PR middle-end/61919
12649 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12650 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12651 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12652 inserting them in the insn stream.
12653
12654 2014-07-28 Marek Polacek <polacek@redhat.com>
12655
12656 PR middle-end/61913
12657 * common.opt (Wodr): Add Var.
12658
12659 2014-07-28 Richard Biener <rguenther@suse.de>
12660
12661 PR tree-optimization/61921
12662 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12663 if there is a varpool node before dereferencing it.
12664
12665 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12666
12667 * graphite-sese-to-poly.c:
12668 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12669 id of the pbb), which contains pointer to the pbb1.
12670
12671 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12672
12673 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12674
12675 * graphite-isl-ast-to-gimple.c:
12676 (graphite_create_new_guard): New function.
12677 (translate_isl_ast_node_if): New function.
12678 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12679
12680 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12681
12682 2014-07-27 Anthony Green <green@moxielogic.com>
12683
12684 * config.gcc: Add moxie-*-moxiebox* configuration.
12685 * config/moxie/moxiebox.h: New file.
12686
12687 2014-07-26 Andrew Pinski <apinski@cavium.com>
12688
12689 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12690 from the read only register.
12691
12692 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12693
12694 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12695 as the allocation class if it isn't likely to be spilled.
12696
12697 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12698
12699 * rtl.h (tls_referenced_p): Declare.
12700 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12701 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12702 (mips_cannot_force_const_mem): Use tls_referenced_p.
12703 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12704 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12705 instead of pa_tls_referenced_p.
12706 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12707 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12708 (pa_legitimate_constant_p): Likewise.
12709 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12710 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12711 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12712 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12713 rs6000_tls_referenced_p.
12714 (rs6000_tls_symbol_ref_1): Delete.
12715
12716 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12717
12718 PR target/44551
12719 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12720 Optimize inverse of a VEC_CONCAT.
12721
12722 2014-07-25 Xinliang David Li <davidxl@google.com>
12723
12724 * params.def: New parameter.
12725 * coverage.c (get_coverage_counts): Check new flag.
12726 (coverage_compute_profile_id): Check new flag.
12727 (coverage_begin_function): Check new flag.
12728 (coverage_end_function): Check new flag.
12729 * value-prof.c (coverage_node_map_initialized_p): New function.
12730 (init_node_map): Populate map with all functions.
12731 * doc/invoke.texi: Document new parameter.
12732
12733 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12734 Richard Biener <rguenther@suse.de>
12735
12736 * lto-streamer-out.c (struct sccs): Turn to ...
12737 (class DFS): ... this one; refactor the DFS walk so it can
12738 be re-done on per-SCC basis.
12739 (DFS::DFS): New constructor.
12740 (DFS::~DFS): New destructor.
12741 (hash_tree): Add new MAP argument holding in-SCC hash values;
12742 remove POINTER_TYPE hashing hack.
12743 (scc_entry_compare): Rename to ...
12744 (DFS::scc_entry_compare): ... this one.
12745 (hash_scc): Rename to ...
12746 (DFS::hash_scc): ... this one; pass output_block instead
12747 of streamer_cache; work harder to get unique and stable SCC
12748 hashes.
12749 (DFS_write_tree): Rename to ...
12750 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12751 (lto_output_tree): Update.
12752
12753 2014-07-25 Andi Kleen <ak@linux.intel.com>
12754
12755 * lto-streamer-out.c (hash_tree): Convert to inchash.
12756
12757 2014-07-25 Andi Kleen <ak@linux.intel.com>
12758
12759 * tree.c (build_type_attribute_qual_variant): Use inchash.
12760 (type_hash_list): Dito.
12761 (attribute_hash_list): Dito
12762 (iterative_hstate_expr): Dito.
12763 (iterative_hash_expr): Dito.
12764 (build_range_type_1): Dito.
12765 (build_array_type_1): Dito.
12766 (build_function_type): Dito.
12767 (build_method_type_directly): Dito.
12768 (build_offset_type): Dito.
12769 (build_complex_type): Dito.
12770 (make_vector_type): Dito.
12771 * tree.h (iterative_hash_expr): Add compat wrapper.
12772 (iterative_hstate_expr): Add.
12773
12774 2014-07-25 Andi Kleen <ak@linux.intel.com>
12775
12776 * Makefile.in (OBJS): Add inchash.o.
12777 (PLUGIN_HEADERS): Add inchash.h.
12778 * ipa-devirt.c: Include inchash.h.
12779 * lto-streamer-out.c: Dito.
12780 * tree-ssa-dom.c: Dito.
12781 * tree-ssa-pre.c: Dito.
12782 * tree-ssa-sccvn.c: Dito.
12783 * tree-ssa-tail-merge.c: Dito.
12784 * asan.c: Dito.
12785 * tree.c (iterative_hash_hashval_t): Move to ...
12786 (iterative_hash_host_wide_int): Move to ...
12787 * inchash.c: Here. New file.
12788 * tree.h (iterative_hash_hashval_t): Move to ...
12789 (iterative_hash_host_wide_int): Move to ...
12790 * inchash.h: Here. New file.
12791
12792 2014-07-25 Richard Biener <rguenther@suse.de>
12793
12794 PR middle-end/61762
12795 PR middle-end/61894
12796 * fold-const.c (native_encode_int): Add and handle offset
12797 parameter to do partial encodings of expr.
12798 (native_encode_fixed): Likewise.
12799 (native_encode_real): Likewise.
12800 (native_encode_complex): Likewise.
12801 (native_encode_vector): Likewise.
12802 (native_encode_string): Likewise.
12803 (native_encode_expr): Likewise.
12804 * fold-const.c (native_encode_expr): Add offset parameter
12805 defaulting to -1.
12806 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12807 (fold_ctor_reference): Handle all reads from tcc_constant
12808 ctors.
12809
12810 2014-07-25 Richard Biener <rguenther@suse.de>
12811
12812 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12813 as possibly unused.
12814
12815 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12816
12817 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12818
12819 2014-07-24 Kyle McMartin <kyle@redhat.com>
12820
12821 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12822
12823 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12824
12825 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12826 Add prototype.
12827 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12828 function.
12829 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12830 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12831 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12832
12833 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12834
12835 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12836 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12837 aggregate types. Instead, *all* aggregate types, except for single-
12838 element or homogeneous float/vector aggregates, are quadword-aligned
12839 if required by their type alignment. Issue -Wpsabi note when a type
12840 is now treated differently than before.
12841
12842 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12843
12844 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12845 does not fit fully into floating-point registers, and there is still
12846 space in the register parameter area, use GPRs to pass those parts
12847 of the argument. Issue -Wpsabi note if any parameter is now treated
12848 differently than before.
12849 (rs6000_arg_partial_bytes): Update.
12850
12851 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12852
12853 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12854
12855 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12856
12857 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12858 * toplev.c (initialize_rtl): Don't use it. Move previously
12859 "language-dependent" calls to...
12860 (backend_init): ...here.
12861 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12862 Assert that RTL initialization hasn't happend yet.
12863
12864 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12865
12866 PR rtl-optimization/61629
12867 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12868 they have already been initialized.
12869
12870 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12871
12872 PR middle-end/61268
12873 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12874 DECL_INCOMING_RTL and entry_parm.
12875 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12876 * calls.c (load_register_parameters): Likewise argument values.
12877 (emit_library_call_value_1, store_one_arg): Likewise argument
12878 save areas.
12879 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12880 stack slot.
12881 * explow.c (validize_mem): Modify the argument in-place.
12882
12883 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12884
12885 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12886 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12887
12888 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12889
12890 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12891 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12892
12893 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12894
12895 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12896 (aarch64_save_callee_saves): New parameter "skip_wb".
12897 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12898
12899 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12900
12901 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12902 "wb_candidate2".
12903 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12904
12905 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12906
12907 * graphite-isl-ast-to-gimple.c:
12908 (graphite_create_new_loop): Add calling of isl_id_free to properly
12909 decrement reference counts.
12910
12911 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12912
12913 2014-07-24 Martin Liska <mliska@suse.cz>
12914 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12915 function used.
12916 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12917 (rs6000_code_end): Likewise.
12918
12919 2014-07-24 Martin Liska <mliska@suse.cz>
12920
12921 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12922 symtab_node funtion used.
12923 (rs6000_xcoff_declare_object_name): Likewise.
12924
12925 2014-07-24 Martin Liska <mliska@suse.cz>
12926
12927 * cgraphunit.c (compile): Correct function used.
12928
12929 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12930
12931 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12932 as non-indexable.
12933
12934 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12935
12936 PR lto/61802
12937 * varasm.c (bss_initializer_p): Handle offlined ctors.
12938 (align_variable, get_variable_align): Likewise.
12939 (make_decl_one_only): Likewise.
12940 (default_binds_local_p_1): Likewise.
12941 (decl_binds_to_current_def_p): Likewise.
12942 (get_variable_section): Get constructor if it is offlined.
12943 (assemble_variable_contents): Sanity check that the caller
12944 streamed in the ctor in LTO.
12945
12946 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12947
12948 * graphite-isl-ast-to-gimple.c:
12949 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12950 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12951 isl_ast_op_pdiv_r to the different case.
12952
12953 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12954
12955 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12956
12957 PR middle-end/61876
12958 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12959 when flag_errno_math is on.
12960
12961 2014-07-24 Martin Liska <mliska@suse.cz>
12962
12963 * cgraph.h (varpool_node):
12964 (availability get_availability (void)):
12965 created from cgraph_variable_initializer_availability
12966 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12967 created from: cgraph_variable_initializer_availability
12968 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12969 (void finalize_named_section_flags (void)):
12970 created from varpool_finalize_named_section_flags
12971 (bool assemble_decl (void)): created from varpool_assemble_decl
12972 (void analyze (void)): created from varpool_analyze_node
12973 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12974 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12975 (void remove_initializer (void)): created from varpool_remove_initializer
12976 (tree get_constructor (void)): created from varpool_get_constructor
12977 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12978 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12979 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12980 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12981 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12982 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12983 (static bool output_variables (void)): created from varpool_output_variables
12984 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12985 created from varpool_extra_name_alias
12986 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12987 (static void dump_varpool (FILE *f)): created from dump_varpool
12988 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12989 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12990 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12991 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12992 (void assemble_aliases (void)): created from assemble_aliases
12993
12994 2014-07-24 Martin Liska <mliska@suse.cz>
12995
12996 * cgraph.h (symtab_node):
12997 (void register_symbol (void)): created from symtab_register_node
12998 (void remove (void)): created from symtab_remove_node
12999 (void dump (FILE *f)): created from dump_symtab_node
13000 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
13001 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
13002 (struct ipa_ref *add_reference (symtab_node *referred_node,
13003 enum ipa_ref_use use_type)): created from add_reference
13004 (struct ipa_ref *add_reference (symtab_node *referred_node,
13005 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
13006 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
13007 gimple stmt)): created from maybe_add_reference
13008 (bool semantically_equivalent_p (symtab_node *target)): created from
13009 symtab_semantically_equivalent_p
13010 (void remove_from_same_comdat_group (void)): created from
13011 remove_from_same_comdat_group
13012 (void add_to_same_comdat_group (symtab_node *old_node)): created from
13013 symtab_add_to_same_comdat_group
13014 (void dissolve_same_comdat_group_list (void)): created from
13015 symtab_dissolve_same_comdat_group_list
13016 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
13017 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
13018 created from symtab_alias_ultimate_target
13019 (inline symtab_node *next_defined_symbol (void)): created from
13020 symtab_next_defined_symbol
13021 (bool resolve_alias (symtab_node *target)): created from
13022 symtab_resolve_alias
13023 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
13024 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
13025 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
13026 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
13027 (void set_section (const char *section)): created from set_section_1
13028 (enum availability get_availability (void)): created from symtab_node_availability
13029 (void make_decl_local (void)): created from symtab_make_decl_local
13030 (bool real_symbol_p (void)): created from symtab_read_node
13031 (can_be_discarded_p (void)): created from symtab_can_be_discarded
13032 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
13033 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
13034 symtab_in_same_comdat_p;
13035 (bool address_taken_from_non_vtable_p (void)): created from
13036 address_taken_from_non_vtable_p
13037 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
13038 (static void dump_table (FILE *)): created from dump_symtab
13039 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
13040 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
13041 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
13042 symtab_used_from_object_file_p
13043 (void dump_base (FILE *)): created from dump_symtab_base
13044 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
13045 (void unregister (void)): created from symtab_unregister_node
13046 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
13047 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
13048 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
13049 symtab_nonoverwritable_alias_1
13050 * cgraph.h (cgraph_node):
13051 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
13052 created from cgraph_remove_node_and_inline_clones
13053 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
13054 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
13055 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
13056 (cgraph_node *function_symbol (enum availability *avail = NULL)):
13057 created from cgraph_function_node
13058 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
13059 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
13060 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
13061 created from cgraph_create_clone
13062 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
13063 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
13064 created from cgraph_create_virtual_clone
13065 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
13066 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
13067 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
13068 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
13069 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
13070 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
13071 created from cgraph_function_version_info
13072 (struct cgraph_function_version_info *insert_new_function_version (void)):
13073 created from insert_new_cgraph_node_version
13074 (struct cgraph_function_version_info *function_version (void)): created from
13075 get_cgraph_node_version
13076 (void analyze (void)): created from analyze_function
13077 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
13078 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
13079 tree real_alias) cgraph_add_thunk
13080 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
13081 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
13082 created from cgraph_function_or_thunk_node
13083 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
13084 created from expand_thunk
13085 (void reset (void)): created from cgraph_reset_node
13086 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
13087 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
13088 (void remove (void)): created from cgraph_remove_node
13089 (void dump (FILE *f)): created from dump_cgraph_node
13090 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
13091 (bool get_body (void)): created from cgraph_get_body
13092 (void release_body (void)): created from cgraph_release_function_body
13093 (void unnest (void)): created from cgraph_unnest_node
13094 (void make_local (void)): created from cgraph_make_node_local
13095 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
13096 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
13097 gcov_type count, int freq)): created from cgraph_create_edge
13098 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
13099 gcov_type count, int freq)): created from cgraph_create_indirect_edge
13100 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
13101 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
13102 created from cgraph_create_edge_including_clones
13103 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
13104 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
13105 (void remove_callers (void)): created from cgraph_node_remove_callers
13106 (void remove_callees (void)): created from cgraph_node_remove_callees
13107 (enum availability get_availability (void)): created from cgraph_function_body_availability
13108 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
13109 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
13110 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
13111 (void call_duplication_hooks (cgraph_node *node2)): created from
13112 cgraph_call_node_duplication_hooks
13113 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
13114 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
13115 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
13116 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
13117 (void call_function_insertion_hooks (void)):
13118 created from cgraph_call_function_insertion_hooks
13119 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
13120 (bool local_p (void)): created from cgraph_local_node
13121 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
13122 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
13123 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
13124 (inline bool only_called_directly_or_aliased_p (void)):
13125 created from cgraph_only_called_directly_or_aliased_p
13126 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
13127 created from cgraph_will_be_removed_from_program_if_no_direct_calls
13128 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
13129 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
13130 (bool can_remove_if_no_direct_calls_p (void)):
13131 created from cgraph_can_remove_if_no_direct_calls_p
13132 (inline bool has_gimple_body_p (void)):
13133 created from cgraph_function_with_gimple_body_p
13134 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
13135 (static void dump_cgraph (FILE *f)): created from dump_cgraph
13136 (static inline void debug_cgraph (void)): created from debug_cgraph
13137 (static void record_function_versions (tree decl1, tree decl2)):
13138 created from record_function_versions
13139 (static void delete_function_version (tree decl)):
13140 created from delete_function_version
13141 (static void add_new_function (tree fndecl, bool lowered)):
13142 created from cgraph_add_new_function
13143 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
13144 (static cgraph_node * create (tree decl)): created from cgraph_create_node
13145 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
13146 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
13147 (static cgraph_node *get_for_asmname (tree asmname)):
13148 created from cgraph_node_for_asm
13149 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
13150 created from cgraph_same_body_alias
13151 (static bool used_from_object_file_p_worker (cgraph_node *node,
13152 void *): new function
13153 (static bool non_local_p (cgraph_node *node, void *)):
13154 created from cgraph_non_local_node_p_1
13155 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
13156 created from verify_cgraph
13157 (static bool make_local (cgraph_node *node, void *)):
13158 created from cgraph_make_node_local
13159 (static cgraph_node *create_alias (tree alias, tree target)):
13160 created from cgraph_create_function_alias
13161 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
13162 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
13163 created from cgraph_create_edge_1
13164 * cgraph.h (varpool_node):
13165 (void remove (void)): created from varpool_remove_node
13166 (void dump (FILE *f)): created from dump_varpool_node
13167
13168 2014-07-24 Richard Biener <rguenther@suse.de>
13169
13170 PR ipa/61823
13171 * tree-ssa-structalias.c (create_variable_info_for_1):
13172 Use varpool_get_constructor.
13173 (create_variable_info_for): Likewise.
13174
13175 2014-07-24 Jiong Wang <jiong.wang@arm.com>
13176
13177 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
13178 subtract outgoing area size when restoring stack_pointer_rtx.
13179
13180 2014-07-24 Nick Clifton <nickc@redhat.com>
13181
13182 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
13183 that operations are taking place in parallel.
13184 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
13185
13186 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
13187
13188 * omp-low.c (extract_omp_for_data): Add missing break statement.
13189
13190 2014-07-24 Richard Biener <rguenther@suse.de>
13191
13192 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
13193 * tree-inline.c (estimate_move_cost): Add speed_p parameter
13194 and adjust MOVE_RATIO query accordingly.
13195 (estimate_num_insns): Adjust callers.
13196 * ipa-prop.c (ipa_populate_param_decls): Likewise.
13197 * ipa-cp.c (gather_context_independent_values,
13198 estimate_local_effects): Likewise.
13199 * ipa-split.c (consider_split): Likewise.
13200
13201 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
13202
13203 * config/i386/driver-i386.c: Remove names of unused arguments and
13204 unnecessary unused attributes.
13205 * config/i386/host-mingw32.c: Likewise.
13206 * config/i386/i386.c: Likewise.
13207 * config/i386/winnt-stubs.c: Likewise.
13208 * config/i386/winnt.c: Likewise.
13209
13210 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13211
13212 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
13213 (aarch64_gen_loadwb_pair): New helper function.
13214 (aarch64_expand_epilogue): Simplify code using new helper functions.
13215 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
13216
13217 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13218
13219 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
13220 (aarch64_gen_storewb_pair): New helper function.
13221 (aarch64_expand_prologue): Simplify code using new helper functions.
13222 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
13223
13224 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13225
13226 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
13227 Rename to aarch64_save_callee_saves, remove restore code.
13228 (aarch64_restore_callee_saves): New function.
13229
13230 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13231
13232 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
13233 (aarch64_save_callee_saves): New function to handle reg save
13234 for both core and vectore regs.
13235
13236 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13237
13238 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
13239 (aarch64_gen_store_pair): New helper function.
13240 (aarch64_save_or_restore_callee_save_registers)
13241 (aarch64_save_or_restore_fprs): Use new helper functions.
13242
13243 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13244
13245 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
13246 (aarch64_save_or_restore_callee_save_registers)
13247 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
13248
13249 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13250
13251 * config/aarch64/aarch64.c
13252 (aarch64_save_or_restore_callee_save_registers)
13253 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
13254
13255 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13256
13257 * config/aarch64/aarch64.c
13258 (aarch64_save_or_restore_callee_save_registers)
13259 (aarch64_save_or_restore_fprs): Remove 'increment'.
13260
13261 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13262
13263 * config/aarch64/aarch64.c
13264 (aarch64_save_or_restore_callee_save_registers)
13265 (aarch64_save_or_restore_fprs): Use register offset in
13266 cfun->machine->frame.reg_offset.
13267
13268 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13269
13270 * config/aarch64/aarch64.c
13271 (aarch64_save_or_restore_callee_save_registers)
13272 (aarch64_save_or_restore_fprs): Remove base_rtx.
13273
13274 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13275
13276 * config/aarch64/aarch64.c
13277 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
13278 to 'start_offset'. Remove local variable 'start_offset'.
13279
13280 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13281
13282 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
13283 type to HOST_WIDE_INT.
13284
13285 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13286
13287 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13288 (aarch64_save_or_restore_fprs)
13289 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
13290
13291 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
13292
13293 * config/arm/t-rtems-eabi: Add
13294 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
13295 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
13296 mbig-endian/mthumb/march=armv7-r, and
13297 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
13298 multilibs.
13299
13300 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
13301 Chris Johns <chrisj@rtems.org>
13302 Joel Sherrill <joel.sherrill@oarcorp.com>
13303
13304 * config.gcc: Add nios2-*-rtems*.
13305 * config/nios2/rtems.h: New file.
13306 * gcc/config/nios2/t-rtems: New file.
13307
13308 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13309
13310 PR target/61396
13311 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
13312 constant numbers, not general constants.
13313 (rs6000_expand_vector_init): Ditto.
13314
13315 2014-07-23 Nathan Sidwell <nathan@acm.org>
13316
13317 * gcov-tool.c (gcov_list): Declare here.
13318 (set_gcov_list): Remove.
13319 (gcov_output_files): Set gcov_list directly.
13320
13321 2014-07-23 Host Schirmeier <horst@schirmeier.com>
13322
13323 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
13324
13325 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13326
13327 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
13328 callee-saved registers are available for padding purpose
13329 and r3 is not mandatory, then prefer use those callee-saved
13330 instead of r3.
13331
13332 2014-07-23 Richard Biener <rguenther@suse.de>
13333
13334 * params.def (PARAM_MAX_COMBINE_INSNS): New.
13335 * combine.c: Include statistics.h and params.h.
13336 (combine_instructions): Guard three and four insn combines
13337 with max-combine-insns value. Record statistics for combines
13338 performed.
13339 * doc/invoke.texi (max-combine-insns): Document new param.
13340
13341 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13342
13343 * graphite-isl-ast-to-gimple.c:
13344 (translate_isl_ast_node_block): New function.
13345 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13346
13347 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13348 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13349
13350 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13351
13352 * graphite-isl-ast-to-gimple.c:
13353 (get_max_schedule_dimensions): New function.
13354 (extend_schedule): Likewise.
13355 (generate_isl_schedule): Add calling of extend_schedule and
13356 get_max_schedule_dimensions.
13357
13358 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13359
13360 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13361 (case UNSPEC): Handle UNSPEC_RBIT.
13362
13363 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13364
13365 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13366 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13367
13368 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13369
13370 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13371
13372 2014-07-22 Roman Gareev <gareevroman@gmail.com>
13373
13374 * graphite-isl-ast-to-gimple.c:
13375 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13376 (ivs_params_clear):
13377 (build_iv_mapping): New function.
13378 (translate_isl_ast_node_user): Likewise.
13379 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13380
13381 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13382 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13383 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13384
13385 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13386
13387 PR target/55701
13388 * config/arm/arm.md (setmem): New pattern.
13389 * config/arm/arm-protos.h (struct tune_params): New fields.
13390 (arm_gen_setmem): New prototype.
13391 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13392 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13393 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13394 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13395 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13396 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13397 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13398 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13399 (arm_const_inline_cost): New function.
13400 (arm_block_set_max_insns): New function.
13401 (arm_block_set_non_vect_profit_p): New function.
13402 (arm_block_set_vect_profit_p): New function.
13403 (arm_block_set_unaligned_vect): New function.
13404 (arm_block_set_aligned_vect): New function.
13405 (arm_block_set_unaligned_non_vect): New function.
13406 (arm_block_set_aligned_non_vect): New function.
13407 (arm_block_set_vect, arm_gen_setmem): New functions.
13408
13409 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13410
13411 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13412
13413 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
13414
13415 PR target/61855
13416 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13417 out of #ifdef __OPTIMIZE__.
13418
13419 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13420
13421 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13422 different trapping status if -fnon-call-exceptions is enabled.
13423
13424 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13425
13426 * expr.c (store_field): Handle VOIDmode for calls that return values
13427 in multiple locations.
13428
13429 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13430
13431 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
13432 (altivec_vsldoi_<mode>): Likewise.
13433
13434 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13435
13436 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13437 to the number of characters in the line.
13438
13439 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13440
13441 * graphite-isl-ast-to-gimple.c: Add using of
13442 build_nonstandard_integer_type instead of int128_integer_type_node.
13443
13444 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
13445
13446 * toplev.c (output_stack_usage): Adjust the location of the warning.
13447
13448 2014-07-19 Daniel Cederman <cederman@gaisler.com>
13449
13450 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13451 (*membar_storeload): Disable for LEON3.
13452
13453 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13454
13455 PR rtl-optimization/61461
13456 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13457
13458 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
13459
13460 PR target/61794
13461 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13462 Fix instruction constraint.
13463 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13464
13465 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
13466
13467 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13468
13469 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
13470
13471 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13472 GNU coding standards.
13473 (nds32_register_move_cost): Likewise.
13474 (nds32_memory_move_cost): Likewise.
13475 (nds32_address_cost): Likewise.
13476
13477 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13478
13479 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13480
13481 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
13482
13483 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13484 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13485 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13486 (HAVE_sync_compare_and_swapqi): Define.
13487 (HAVE_sync_compare_and_swaphi): Likewise.
13488 (HAVE_sync_compare_and_swapsi): Likewise.
13489
13490 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
13491
13492 * config/mips/p5600.md: Add missing cpu tests.
13493
13494 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13495
13496 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13497 (vmla_f64): Likewise.
13498 (vfms_f64): Likewise.
13499 (vmls_f64): Likewise.
13500
13501 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13502
13503 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13504 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13505
13506 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13507
13508 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13509 (vmlal_high_lane_s32): Likewise.
13510 (vmlal_high_lane_u16): Likewise.
13511 (vmlal_high_lane_u32): Likewise.
13512 (vmlsl_high_lane_s16): Likewise.
13513 (vmlsl_high_lane_s32): Likewise.
13514 (vmlsl_high_lane_u16): Likewise.
13515 (vmlsl_high_lane_u32): Likewise.
13516
13517 2014-07-17 Terry Guo <terry.guo@arm.com>
13518
13519 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13520 (alus_reg): Renamed to alus_sreg.
13521 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13522 from alu_reg to alu_sreg. Change type of dsp instructions from
13523 alu_reg to alu_dsp_reg.
13524 * config/arm/thumb1.md: Likewise.
13525 * config/arm/thumb2.md: Likewise.
13526 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13527 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13528 with alu_sreg and alus_sreg.
13529 * config/arm/arm1026ejs.md (alu_op): Likewise.
13530 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13531 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13532 * config/arm/fa526.md (526_alu_op): Likewise.
13533 * config/arm/fa606te.md (606te_alu_op): Likewise.
13534 * config/arm/fa626te.md (626te_alu_op): Likewise.
13535 * config/arm/fa726te.md (726te_alu_op): Likewise.
13536 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13537 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13538 alu_sreg, alu_dsp_reg and alus_sreg.
13539 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13540 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13541 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13542 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13543 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13544 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13545 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13546 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13547 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13548 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13549 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13550 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13551 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13552 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13553 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13554 alus_reg to alus_sreg.
13555
13556 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13557
13558 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13559 infinity format.
13560
13561 2014-07-17 Richard Biener <rguenther@suse.de>
13562
13563 PR rtl-optimization/61801
13564 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13565 don't set reg_pending_barrier if it appears in a debug-insn.
13566
13567 2014-07-16 DJ Delorie <dj@redhat.com>
13568
13569 * config/rx/rx.c (rx_option_override): Fix alignment values.
13570 (rx_align_for_label): Likewise.
13571
13572 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13573
13574 PR target/61737.
13575 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13576 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13577 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13578 functions.
13579 (cris_print_index, cris_print_operand, cris_constant_index_p)
13580 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13581 (cris_address_cost): Ditto last CONSTANT_P.
13582 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13583 callers changed. Yield cris_offsettable_symbol for non-PIC
13584 constant symbolic expressions including labels. Yield cris_unspec
13585 for all unspecs.
13586 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13587 target to pic_offset_table_rtx for calls that will likely go
13588 through PLT, const0_rtx when they can't. All callers changed.
13589 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13590 symbolic expressions to be PICified. Remove second, redundant,
13591 assert on can_create_pseudo_p returning non-zero. Use
13592 replace_equiv_address_nv, not replace_equiv_address, for final
13593 operand update.
13594 * config/cris/cris.md ("movsi"): Move variable t to pattern
13595 toplevel. Adjust assert for new cris_symbol_type member. Use
13596 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13597 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13598 for lapc stricter.
13599 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13600 ("call", "call_value"): Use second incoming operand as a marker
13601 for pic-offset-table-register being used.
13602 ("*expanded_call_non_v32", "*expanded_call_v32")
13603 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13604 second incoming operand to CALL, match cris_call_type_marker.
13605 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13606 ("*expanded_call_side"): Ditto. Fix typo in comment.
13607 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13608 CONSTANT_P.
13609 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13610 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13611 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13612 users changed. Add members cris_offsettable_symbol and cris_unspec.
13613 (cris_symbol_type): Rename from cris_pic_symbol_type.
13614 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13615 just CONSTANT_P.
13616 * config/cris/cris-protos.h (cris_symbol_type_of,
13617 cris_expand_pic_call_address): Adjust prototypes.
13618 (cris_legitimate_constant_p): New prototype.
13619
13620 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13621 an existing tmake_file. Don't add t-slibgcc and t-linux.
13622
13623 2014-07-17 Jason Merrill <jason@redhat.com>
13624
13625 PR c++/61623
13626 * symtab.c (symtab_remove_from_same_comdat_group): Also
13627 set_comdat_group to NULL_TREE.
13628 (verify_symtab): Fix diagnostic.
13629
13630 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13631
13632 PR target/61662
13633 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13634
13635 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13636
13637 Support location tracking for built-in macro tokens
13638 * input.h (is_location_from_builtin_token): New function declaration.
13639 * input.c (is_location_from_builtin_token): New function definition.
13640 * toplev.c (general_init): Tell libcpp what the pre-defined
13641 spelling location for built-in tokens is.
13642
13643 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13644
13645 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13646 on the FUNCTION_DECL.
13647
13648 2014-07-16 Richard Biener <rguenther@suse.de>
13649
13650 PR other/61782
13651 * doc/extend.texi (always_inline): Clarify.
13652
13653 2014-07-15 Eric Christopher <echristo@gmail.com>
13654
13655 * doc/invoke.texi (Link Options): Document -z option.
13656
13657 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13658
13659 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13660 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13661
13662 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13663
13664 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13665
13666 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13667
13668 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13669 varpool_assemble_decl.
13670 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13671 true.
13672
13673 2014-07-15 Michael Matz <matz@suse.de>
13674
13675 PR rtl-optimization/61772
13676 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13677
13678 2014-07-15 Richard Biener <rguenther@suse.de>
13679
13680 * opts.c (default_options_table): Disable bit-ccp at -Og.
13681
13682 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13683
13684 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13685
13686 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13687
13688 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13689 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13690 call langhook for unknown declaration.
13691 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13692 * tree.h (DECL_ARGUMENTS): Update.
13693 * print-tree.c (print_node): Update.
13694 * tree-core.h (tree_decl_non_common): Remove arguments.
13695 (tree_function_decl): Add arguments.
13696
13697 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13698
13699 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13700
13701 2014-07-14 Richard Biener <rguenther@suse.de>
13702
13703 PR tree-optimization/61779
13704 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13705 simplifying a condition.
13706
13707 2014-07-14 Richard Biener <rguenther@suse.de>
13708
13709 * builtins.c (c_strlen): Make only_value == 2 really only
13710 affect warning generation.
13711
13712 2014-07-14 Richard Biener <rguenther@suse.de>
13713
13714 PR tree-optimization/61757
13715 PR tree-optimization/61783
13716 PR tree-optimization/61787
13717 * tree-ssa-dom.c (record_equality): Revert canonicalization
13718 change and add comment.
13719 (propagate_rhs_into_lhs): Revert previous fix, removing
13720 loop depth restriction again.
13721
13722 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13723
13724 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13725 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13726 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13727 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13728 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13729 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13730 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13731
13732 2014-07-14 Richard Biener <rguenther@suse.de>
13733
13734 * cgraph.h (decl_in_symtab_p): Make inline.
13735
13736 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13737
13738 PR middle-end/61294
13739 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13740
13741 PR target/61656
13742 * config/i386/i386.c (classify_argument): Don't merge classes above
13743 number of words.
13744
13745 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13746
13747 * cgraph.h (symtab_node): Add nonzero_address.
13748 (decl_in_symtab_p): Break out from ...
13749 (symtab_get_node): ... here.
13750 * fold-const.c: Include cgraph.h
13751 (tree_single_nonzero_warnv_p): Use symtab to determine
13752 if symbol is non-zero.
13753 * symtab.c (symtab_node::nonzero_address): New method.
13754
13755 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13756
13757 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13758 forgotten in previous commit.
13759
13760 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13761
13762 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13763 on builtin types.
13764 * ipa-devirt.c: Include stor-layout.h and intl.h
13765 (odr_subtypes_equivalent_p): New function.
13766 (warn_odr): New function.
13767 (warn_type_mismatch): New function.
13768 (odr_types_equivalent_p): New function.
13769 (add_type_duplicate): Use it.
13770 * common.opt (Wodr): New flag.
13771 * doc/invoke.texi (Wodr): Document new warning.
13772
13773 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13774
13775 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13776 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13777 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13778 (varpool_get_constructor): Push CTORS_IN timevar.
13779 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13780
13781 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13782
13783 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13784 Remove VOID_FTYPE_PUSHORT.
13785 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13786 Change code to USHORT_FTYPE_VOID.
13787 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13788 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13789 (ix86_atomic_assign_expand_fenv): Update for
13790 __builtin_ia32_fnstsw changes.
13791 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13792 (fnstsw): Change operand 0 to nonimmediate operand.
13793
13794 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13795
13796 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13797 (varpool_get_constructor): New function.
13798 (varpool_ctor_useable_for_folding_p): Break out from ...
13799 (ctor_for_folding): ... here; use varpool_get_constructor.
13800 (varpool_assemble_decl): Likewise.
13801 * lto-streamer.h (struct output_block): Turn cgraph_node
13802 to symbol filed.
13803 (lto_input_variable_constructor): Declare.
13804 * ipa-visibility.c (function_and_variable_visibility): Use
13805 varpool_get_constructor.
13806 * cgraph.h (varpool_get_constructor): Declare.
13807 (varpool_ctor_useable_for_folding_p): New function.
13808 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13809 parameter; return error_mark_node for non-trivial constructors.
13810 (lto_write_tree_1, DFS_write_tree): Update use of
13811 get_symbol_initial_value.
13812 (output_function): Update initialization of symbol.
13813 (output_constructor): New function.
13814 (copy_function): Rename to ..
13815 (copy_function_or_variable): ... this one; handle vars too.
13816 (lto_output): Output variable sections.
13817 * lto-streamer-in.c (input_constructor): New function.
13818 (lto_read_body): Rename from ...
13819 (lto_read_body_or_constructor): ... this one; handle vars too.
13820 (lto_input_variable_constructor): New function.
13821 * ipa-prop.c (ipa_prop_write_jump_functions,
13822 ipa_prop_write_all_agg_replacement): Update.
13823 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13824 (output_cgraph_opt_summary): Set symbol to NULL.
13825
13826 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13827
13828 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13829 non-polymorphic types.
13830 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13831 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13832 of types is not polymorphic.
13833
13834 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13835
13836 * lra-constraints.c (remove_inheritance_pseudos): Process
13837 destination pseudo too.
13838
13839 2014-07-11 Rong Xu <xur@google.com>
13840
13841 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13842 commit r212448.
13843
13844 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13845
13846 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13847 * config/avr/avr-devices.c (AVR_MCU): Same.
13848 (avr_mcu_types): add text start value to end of device list.
13849 * config/avr/avr-mcus.def: Add text section start for all devices.
13850 (ata5782): Add new avr5 device.
13851 (ata5831): Same.
13852 * config/avr/avr-tables.opt: Regenerate.
13853 * config/avr/avr.h: Add declaration for text section start handler.
13854 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13855 SPEC functions.
13856 (LINK_SPEC): Include text section start handler to linker spec.
13857 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13858 pass -Ttext option to linker if the text section start for the device
13859 is not zero.
13860 * config/avr/t-multilib: Regenerate.
13861 * doc/avr-mmcu.texi: Regenerate.
13862
13863 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13864
13865 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13866 * config/rs6000/aix52.h (LINK_SPEC): Same.
13867 * config/rs6000/aix53.h (LINK_SPEC): Same.
13868 * config/rs6000/aix61.h (LINK_SPEC): Same.
13869 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13870
13871 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13872
13873 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13874 (graphite_verify): New function.
13875 (ivs_params_clear): New function.
13876 (gcc_expression_from_isl_ast_expr_id): New function.
13877 (gcc_expression_from_isl_expr_int): New function.
13878 (binary_op_to_tree): New function.
13879 (ternary_op_to_tree): New function.
13880 (unary_op_to_tree): New function.
13881 (nary_op_to_tree): New function.
13882 (gcc_expression_from_isl_expr_op): New function.
13883 (gcc_expression_from_isl_expression): New function.
13884 (graphite_create_new_loop): New function.
13885 (translate_isl_ast_for_loop): New function.
13886 (get_upper_bound): New function.
13887 (graphite_create_new_loop_guard): New function.
13888 (translate_isl_ast_node_for): New function.
13889 (translate_isl_ast): New function.
13890 (add_parameters_to_ivs_params): New function.
13891 (scop_to_isl_ast): New parameter ip.
13892 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13893
13894 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13895
13896 * config/xtensa/predicates.md (call expander): Update for
13897 DECL_SECTION_NAME being string.
13898
13899 2014-07-11 Richard Biener <rguenther@suse.de>
13900
13901 PR middle-end/61473
13902 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13903 can be implemented with a single load followed by a single store.
13904 (c_strlen): Only warn when only_value is not 2.
13905
13906 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13907
13908 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13909
13910 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13911
13912 PR target/61561
13913 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13914 (*movhi_bytes): Likewise.
13915 (*arm_movqi_insn): Likewise.
13916
13917 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13918
13919 PR target/56858
13920 * config/alpha/alpha.c: Include tree-pass.h, context.h
13921 and pass_manager.h.
13922 (pass_data_handle_trap_shadows): New pass.
13923 (pass_handle_trap_shadows::gate): New pass gate function.
13924 (make_pass_handle_trap_shadows): New function.
13925 (rest_of_handle_trap_shadows): Ditto.
13926
13927 (alpha_align_insns_1): Rename from alpha_align_insns.
13928 (pass_data_align_insns): New pass.
13929 (pass_align_insns::gate): New pass gate function.
13930 (make_pass_aling_insns): New function.
13931 (rest_of_align_insns): Ditto.
13932 (alpha_align_insns): Ditto.
13933
13934 (alpha_option_override): Declare handle_trap_shadows info
13935 and align_insns_info. Register handle_trap_shadows and align_insns
13936 passes here.
13937 (alpha_reorg): Do not call alpha_trap_shadows and
13938 alpha_align_insn from here.
13939
13940 (alpha_pad_function_end): Do not skip BARRIERs.
13941
13942 2014-07-10 Rong Xu <xur@google.com>
13943
13944 Add gcov-tool: an offline gcda profile processing tool support.
13945 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13946 (gcov_is_error): Ditto.
13947 (gcov_read_string): Ditto.
13948 (gcov_read_sync): Ditto.
13949 * gcov-io.h: Move counter defines to gcov-counter.def.
13950 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13951 * coverage.c: Ditto.
13952 * gcov-tool.c: Offline gcda profile processing tool.
13953 (unlink_gcda_file): Remove one gcda file.
13954 (unlink_profile_dir): Remove gcda files from the profile path.
13955 (gcov_output_files): Output gcda files to an output dir.
13956 (profile_merge): Merge two profiles in directory.
13957 (print_merge_usage_message): Print merge usage.
13958 (merge_usage): Print merge usage and exit.
13959 (do_merge): Driver for profile merge sub-command.
13960 (profile_rewrite): Rewrite profile.
13961 (print_rewrite_usage_message): Print rewrite usage.
13962 (rewrite_usage): Print rewrite usage and exit.
13963 (do_rewrite): Driver for profile rewrite sub-command.
13964 (print_usage): Print gcov-info usage and exit.
13965 (print_version): Print gcov-info version.
13966 (process_args): Process arguments.
13967 (main): Main routine for gcov-tool.
13968 * Makefile.in: Build and install gcov-tool.
13969 * gcov-counter.def: New file split from gcov-io.h.
13970 * doc/gcc.texi: Include gcov-tool.texi.
13971 * doc/gcov-tool.texi: Document for gcov-tool.
13972
13973 2014-07-10 Richard Biener <rguenther@suse.de>
13974
13975 PR tree-optimization/61757
13976 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13977 (propagate_rhs_into_lhs): Revert part of last change.
13978
13979 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13980
13981 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13982 FUNCTION_DECLs.
13983
13984 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13985
13986 PR middle-end/53590
13987 * function.c (allocate_struct_function): Revert r188667 change.
13988
13989 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13990
13991 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13992
13993 * doc/install.texi: Remove links to defunct package providers for
13994 Solaris.
13995
13996 2014-07-09 Tom de Vries <tom@codesourcery.com>
13997
13998 * final.c (get_call_fndecl): Declare.
13999 (self_recursive_call_p): New function.
14000 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
14001
14002 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14003
14004 * ipa-devirt.c (record_node): Walk through aliases.
14005
14006 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14007
14008 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
14009
14010 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14011
14012 Revert:
14013 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14014
14015 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14016
14017 * ipa-visibility.c (function_and_variable_visibility): Remove
14018 temporary hack disabling local aliases on AIX.
14019
14020 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14021
14022 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
14023 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
14024
14025 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14026
14027 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
14028 * rs6000/rs6000.c: Inline output of .set instruction.
14029 (declare_alias_data): New struct.
14030 (rs6000_declare_alias): New function.
14031 (rs6000_xcoff_declare_function_name): Use it.
14032 (rs6000_xcoff_declare_object_name): New function.
14033 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
14034 (ASM_OUTPUT_DEF): Turn to empty definition.
14035
14036 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
14037
14038 PR bootstrap/61679
14039 * hash-table.h: use hash_table::value_type instead of
14040 Descriptor::value_type in the return types of several methods.
14041
14042 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
14043
14044 * tree-pass.h (pass_data): Remove has_execute member.
14045 * passes.c (execute_one_pass): Don't check pass->has_execute.
14046 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
14047 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
14048 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
14049 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
14050 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
14051 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
14052 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
14053 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
14054 gimple-low.c, gimple-ssa-isolate-paths.c,
14055 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
14056 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
14057 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
14058 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
14059 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
14060 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
14061 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
14062 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
14063 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
14064 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
14065 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
14066 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14067 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14068 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14069 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14070 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
14071 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
14072 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14073 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14074 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
14075 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
14076 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
14077 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
14078 web.c: Remove initializer for pass_data::has_execute.
14079
14080 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
14081
14082 * graphite-htab.h: Use hash_map instead of hash_table.
14083 * graphite-clast-to-gimple.c: Adjust.
14084 * passes.c: Use hash_map instead of hash_table.
14085 * sese.c: Likewise.
14086 * sese.h: Remove now unused code.
14087
14088 2014-07-08 Sriraman Tallam <tmsriram@google.com>
14089
14090 PR target/61599
14091 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
14092 than zero.
14093
14094 2014-07-08 Jakub Jelinek <jakub@redhat.com>
14095
14096 PR rtl-optimization/61673
14097 * combine.c (simplify_comparison): Test just mode's sign bit
14098 in tmode rather than the sign bit and any bits above it.
14099
14100 2014-07-08 Roman Gareev <gareevroman@gmail.com>
14101
14102 * graphite-isl-ast-to-gimple.c (generate_isl_context):
14103 Add __isl_give to the declaration.
14104 (generate_isl_schedule): Likewise.
14105 (scop_to_isl_ast): Likewise.
14106
14107 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14108
14109 * config/arm/arm.c (cortexa5_extra_costs): New table.
14110 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
14111
14112 2014-07-08 Jakub Jelinek <jakub@redhat.com>
14113
14114 PR tree-optimization/61725
14115 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
14116 range, use range_includes_zerop_p instead of integer_zerop on
14117 vr0->min, only use log2 of max if min is not negative.
14118
14119 2014-07-08 Richard Biener <rguenther@suse.de>
14120
14121 * tree-ssa-dom.h (loop_depth_of_name): Remove.
14122 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
14123 restriction on loop depth difference.
14124 (record_equality): Likewise.
14125 (propagate_rhs_into_lhs): Likewise. Simplify condition.
14126 (loop_depth_of_name): Remove.
14127 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
14128 restriction on loop depth difference.
14129 (init_copy_prop): Likewise.
14130
14131 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14132
14133 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
14134 parameter.
14135 (walk_aliased_vdefs): Likewise.
14136 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
14137 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
14138 (detect_type_change_from_memory_writes): Check if entry was reached.
14139
14140 2014-07-08 Richard Biener <rguenther@suse.de>
14141
14142 PR tree-optimization/61681
14143 * tree-ssa-structalias.c (find_what_var_points_to): Expand
14144 NONLOCAL inside ESCAPED.
14145
14146 2014-07-08 Richard Biener <rguenther@suse.de>
14147
14148 PR tree-optimization/61680
14149 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14150 Handle properly all read-write dependences with group accesses.
14151
14152 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
14153
14154 PR tree-optimization/61576
14155 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
14156 block containing reduction statement is predecessor of phi basi block.
14157
14158 2014-07-08 Marek Polacek <polacek@redhat.com>
14159
14160 PR c/60226
14161 * fold-const.c (round_up_loc): Change the parameter type.
14162 Remove assert.
14163 * fold-const.h (round_up_loc): Adjust declaration.
14164 * stor-layout.c (finalize_record_size): Check for too large types.
14165
14166 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
14167
14168 * symtab.c: Include calls.h.
14169 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
14170
14171 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
14172
14173 * config/rs6000/rs6000.c (output_vec_const_move): Handle
14174 little-endian code generation.
14175 * config/rs6000/spe.md (spe_evmergehi): Rename to...
14176 (vec_perm00_v2si): ... this. Handle little-endian code generation.
14177 (spe_evmergehilo): Rename to...
14178 (vec_perm01_v2si): ... this. Handle little-endian code generation.
14179 (spe_evmergelo): Rename to...
14180 (vec_perm11_v2si): ... this. Handle little-endian code generation.
14181 (spe_evmergelohi): Rename to...
14182 (vec_perm10_v2si): ... this. Handle little-endian code generation.
14183 (spe_evmergehi, spe_evmergehilo): New expanders.
14184 (spe_evmergelo, spe_evmergelohi): Likewise.
14185 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
14186 (*frob_tf_ti): Likewise.
14187 (*frob_<mode>_di_2): Likewise.
14188 (*frob_tf_di_8_2): Likewise.
14189 (*frob_di_<mode>): Likewise.
14190 (*frob_ti_tf): Likewise.
14191 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
14192 (*frob_ti_<mode>_8_2): Likewise.
14193 (*frob_ti_tf_2): Likewise.
14194 (mov_si<mode>_e500_subreg0): Rename to...
14195 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
14196 endianness only.
14197 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
14198 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
14199 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
14200 the big endianness only.
14201 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
14202 (*mov_si<mode>_e500_subreg0_2): Rename to...
14203 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
14204 big big endianness only.
14205 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
14206 (*mov_si<mode>_e500_subreg4): Rename to...
14207 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
14208 endianness only.
14209 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
14210 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
14211 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
14212 the big endianness only.
14213 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
14214 pattern.
14215 (*mov_si<mode>_e500_subreg4_2): Rename to...
14216 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
14217 endianness only.
14218 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
14219 (*mov_sitf_e500_subreg8): Rename to...
14220 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
14221 endianness only.
14222 (*mov_sitf_e500_subreg8_le): New instruction pattern.
14223 (*mov_sitf_e500_subreg8_2): Rename to...
14224 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
14225 endianness only.
14226 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
14227 (*mov_sitf_e500_subreg12): Rename to...
14228 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
14229 endianness only.
14230 (*mov_sitf_e500_subreg12_le): New instruction pattern.
14231 (*mov_sitf_e500_subreg12_2): Rename to...
14232 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
14233 endianness only.
14234 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
14235
14236 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
14237
14238 * asan.c (instrument_strlen_call): Do not instrument first byte
14239 in strlen if already instrumented.
14240
14241 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14242
14243 * config/arm/arm.opt (mwords-little-endian): Delete.
14244 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
14245 of TARGET_LITTLE_WORDS.
14246 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
14247 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
14248 warning.
14249 * doc/invoke.texi: Remove references to -mwords-little-endian.
14250
14251 2014-07-07 Jakub Jelinek <jakub@redhat.com>
14252
14253 * expmed.c (struct init_expmed_rtl): Change all fields but
14254 pow2 and cint from struct rtx_def to rtx.
14255 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
14256 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
14257 at the end again.
14258
14259 2014-07-06 Marek Polacek <polacek@redhat.com>
14260
14261 PR c/6940
14262 * doc/invoke.texi: Document -Wsizeof-array-argument.
14263
14264 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
14265
14266 * wide-int.h (wide_int_storage): Change declaration from struct
14267 to class.
14268
14269 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
14270
14271 * cgraph.c (cgraph_create_indirect_edge): Update call of
14272 get_polymorphic_call_info.
14273 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
14274 (possible_polymorphic_call_targets): Add parameter call.
14275 (decl_maybe_in_construction_p): New predicate.
14276 (get_polymorphic_call_info): Add parameter call;
14277 use decl_maybe_in_construction_p.
14278 * gimple-fold.c (fold_gimple_assign): Update use of
14279 possible_polymorphic_call_targets.
14280 (gimple_fold_call): Likewise.
14281 * ipa-prop.c: Inlcude calls.h
14282 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
14283 (param_type_may_change_p): New predicate.
14284 (detect_type_change_from_memory_writes): Break out from ...
14285 (detect_type_change): ... this one; use param_type_may_change_p.
14286 (detect_type_change_ssa): Use param_type_may_change_p.
14287 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
14288
14289 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
14290
14291 PR target/49423
14292 * config/arm/arm-protos.h (arm_legitimate_address_p,
14293 arm_is_constant_pool_ref): Add prototypes.
14294 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
14295 (arm_is_constant_pool_ref) New function.
14296 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
14297 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
14298 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
14299 operand. Remove pool_range and neg_pool_range attributes.
14300 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
14301 pool_range and neg_pool_range attributes.
14302 * config/arm/constraints.md (Uh): New constraint.
14303 (Uq): Don't allow constant pool references.
14304
14305 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
14306
14307 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
14308 (move_lo_quad_internal_be_<mode>): Likewise.
14309 (move_lo_quad_<mode>): Convert to define_expand.
14310 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
14311 (aarch64_simd_move_hi_quad_be_<mode>): New.
14312 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
14313 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
14314 (aarch64_combinez_be<mode>): New.
14315 (aarch64_combine<mode>): Convert to define_expand.
14316 (aarch64_combine_internal<mode>): New.
14317 (aarch64_simd_combine<mode>): Remove bogus RTL description.
14318
14319 2014-07-04 Tom de Vries <tom@codesourcery.com>
14320
14321 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
14322 combination of earlyclobber and read/write modifiers.
14323
14324 2014-07-04 Tom de Vries <tom@codesourcery.com>
14325
14326 * config/aarch64/aarch64-simd.md
14327 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
14328
14329 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
14330
14331 PR target/61714
14332 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14333
14334 2014-07-04 Jakub Jelinek <jakub@redhat.com>
14335
14336 PR middle-end/61654
14337 * cgraphunit.c (expand_thunk): Call free_dominance_info.
14338
14339 PR tree-optimization/61684
14340 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14341 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14342
14343 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14344 Kito Cheng <kito@0xlab.org>
14345 Monk Chiang <sh.chiang04@gmail.com>
14346
14347 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14348 (nds32_symbol_load_store_p): Move to ...
14349 (nds32_fp_as_gp_check_available): Move to ...
14350 * config/nds32/nds32-fp-as-gp.c: ... here.
14351 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14352 extern declaration.
14353
14354 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14355 Kito Cheng <kito@0xlab.org>
14356 Monk Chiang <sh.chiang04@gmail.com>
14357
14358 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14359 (nds32_expand_store_multiple): Move to ...
14360 (nds32_expand_movmemqi): Move to ...
14361 * config/nds32/nds32-memory-manipulation.c: ... here.
14362
14363 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14364 Kito Cheng <kito@0xlab.org>
14365 Monk Chiang <sh.chiang04@gmail.com>
14366
14367 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14368 (nds32_output_casesi_pc_relative): Move to ...
14369 (nds32_output_casesi): Move to ...
14370 (nds32_mem_format): Move to ...
14371 (nds32_output_16bit_store): Move to ...
14372 (nds32_output_16bit_load): Move to ...
14373 (nds32_output_32bit_store): Move to ...
14374 (nds32_output_32bit_load): Move to ...
14375 (nds32_output_32bit_load_s): Move to ...
14376 (nds32_output_stack_push): Move to ...
14377 (nds32_output_stack_pop): Move to ...
14378 * config/nds32/nds32-md-auxiliary.c: ... here.
14379
14380 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14381 Ling-Hua Tseng <uranus@tinlans.org>
14382
14383 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14384 the purpose of this file.
14385
14386 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14387 Kito Cheng <kito@0xlab.org>
14388 Monk Chiang <sh.chiang04@gmail.com>
14389
14390 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14391 (nds32_address_cost): Move implementation to ...
14392 * config/nds32/nds32-cost.c: ... here.
14393 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14394 (nds32_address_cost_impl): Declare.
14395
14396 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14397 Kito Cheng <kito@0xlab.org>
14398 Monk Chiang <sh.chiang04@gmail.com>
14399
14400 * config/nds32/nds32.c
14401 (nds32_consecutive_registers_load_store_p): Move to ...
14402 (nds32_valid_multiple_load_store): Move to ...
14403 (nds32_valid_stack_push_pop): Move to ...
14404 (nds32_can_use_bclr_p): Move to ...
14405 (nds32_can_use_bset_p): Move to ...
14406 (nds32_can_use_btgl_p): Move to ...
14407 (nds32_can_use_bitci_p): Move to ...
14408 * config/nds32/nds32-predicates.c: ... here.
14409
14410 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14411 Kito Cheng <kito@0xlab.org>
14412 Monk Chiang <sh.chiang04@gmail.com>
14413
14414 * config/nds32/nds32.c
14415 (nds32_expand_builtin_null_ftype_reg): Move to ...
14416 (nds32_expand_builtin_reg_ftype_imm): Move to ...
14417 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14418 (nds32_init_builtins): Move implementation to ...
14419 (nds32_expand_builtin): Move implementation to ...
14420 * config/nds32/nds32-intrinsic.c: ... here.
14421 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14422 (nds32_expand_builtin_impl): Declare.
14423
14424 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14425 Kito Cheng <kito@0xlab.org>
14426 Monk Chiang <sh.chiang04@gmail.com>
14427
14428 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14429 (nds32_emit_section_tail_template): Move to ...
14430 (nds32_emit_isr_jmptbl_section): Move to ...
14431 (nds32_emit_isr_vector_section): Move to ...
14432 (nds32_emit_isr_reset_conten): Move to ...
14433 (nds32_check_isr_attrs_conflict): Move to ...
14434 (nds32_construct_isr_vectors_information): Move to ...
14435 (nds32_asm_file_start): Move implementation to ...
14436 (nds32_asm_file_end): Move implementation to ...
14437 * config/nds32/nds32-isr.c: ... here.
14438 * config/nds32/nds32-protos.h
14439 (nds32_check_isr_attrs_conflict): Declare.
14440 (nds32_construct_isr_vectors_information): Declare.
14441 (nds32_asm_file_start_for_isr): Declare.
14442 (nds32_asm_file_end_for_isr): Declare.
14443
14444 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14445 Kito Cheng <kito@0xlab.org>
14446 Monk Chiang <sh.chiang04@gmail.com>
14447
14448 * config.gcc (nds32*): Add new modules to extra_objs.
14449 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14450 (nds32be-*-*): Likewise.
14451 * config/nds32/nds32-cost.c: New file.
14452 * config/nds32/nds32-fp-as-gp.c: New file.
14453 * config/nds32/nds32-intrinsic.c: New file.
14454 * config/nds32/nds32-isr.c: New file.
14455 * config/nds32/nds32-md-auxiliary.c: New file.
14456 * config/nds32/nds32-memory-manipulation.c: New file.
14457 * config/nds32/nds32-pipelines-auxiliary.c: New file.
14458 * config/nds32/nds32-predicates.c: New file.
14459 * config/nds32/t-nds32: New file.
14460
14461 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14462
14463 PR tree-optimization/61682
14464 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14465 using cases and when one of the operands is equal to 1.
14466
14467 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
14468
14469 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14470 ashr<mode>3): Correct mode of operands[2].
14471 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14472 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14473 Correct mode of operands[2]. Fix split condition.
14474
14475 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
14476
14477 * arm.md (arch): Add armv6_or_vfpv3.
14478 (arch_enabled): Add test for the above.
14479 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14480 on VFP9.
14481 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14482
14483 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14484
14485 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14486 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14487 HWI 1 and negate the unsigned value.
14488 * expmed.c (expand_sdiv_pow2): For modes wider than word always
14489 use AND instead of shift.
14490 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14491
14492 2014-07-03 Marek Polacek <polacek@redhat.com>
14493
14494 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14495 (-fsanitize=float-divide-by-zero): Move to the table with
14496 -fsanitize=undefined suboptions.
14497 (-fsanitize=float-cast-overflow): Likewise.
14498
14499 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
14500
14501 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14502 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14503 endianness.
14504
14505 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14506
14507 * loop-invariant.c (struct invariant): Add a new member: eqno;
14508 (find_identical_invariants): Update eqno;
14509 (create_new_invariant): Init eqno;
14510 (get_inv_cost): Compute comp_cost with eqno;
14511
14512 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14513
14514 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14515 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14516 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14517 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14518 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14519
14520 2014-07-02 Christian Bruel <christian.bruel@st.com>
14521
14522 PR target/29349
14523 PR target/53513
14524 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14525 (make_preds_opaque): Delete.
14526 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14527 (commit_mode_sets): New function.
14528 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14529 Process all modes at once.
14530 * basic-block.h (pre_edge_lcm_avs): Declare.
14531 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14532 Call clear_aux_for_edges. Fix comments.
14533 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14534 (pre_edge_rev_lcm): Idem.
14535 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14536 parameter.
14537 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14538 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14539 Idem.
14540 * config/i386/i386.c (x96_emit_mode_set): Idem.
14541 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14542 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14543 (fpscr_toggle) Disallow from delay slot.
14544 * target.def (emit_mode_set): Add prev_mode parameter.
14545 * doc/tm.texi: Regenerate.
14546
14547 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14548
14549 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14550 variable i.
14551
14552 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14553
14554 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14555 vtable_pointer_value_to_vtable): Constify.
14556 (contains_polymorphic_type_p): Declare.
14557 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14558 vtable_pointer_value_to_vtable): Constify.
14559 (contains_polymorphic_type_p): New predicate.
14560 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14561 polymorphic types.
14562 (ipa_set_ancestor_jf): Likewise.
14563 (detect_type_change): Return false in easy cases.
14564 (compute_complex_assign_jump_func): Require type to contain
14565 polymorphic type.
14566 (compute_known_type_jump_func): Likewise.
14567
14568 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14569
14570 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14571 Remove.
14572 (type_in_anonymous_namespace_p): Constify argument.
14573 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14574 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14575 (main_odr_variant): New function.
14576 (hash_type_name): Make static; update assert; do not ICE on
14577 non-records.
14578 (types_same_for_odr): Bring here from tree.c; simplify and remove
14579 old structural comparing code that doesn't work for templates.
14580 (odr_hasher::equal): Update assert.
14581 (add_type_duplicate): Return true when bases should be computed;
14582 replace incomplete loader by complete; do not output duplicated
14583 warnings; do not ICE on non-records; set odr_violated flag.
14584 (get_odr_type): Be ready to replace incomplete type by complete
14585 one; work on ODR variants instead of main variants; reorder item
14586 in array so bases have still smaller indexes.
14587 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14588 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14589
14590 2014-07-01 Cary Coutant <ccoutant@google.com>
14591
14592 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14593 lookup.
14594 (resolve_addr_in_expr): When replacing the rtx in a location list
14595 entry, get a new address table entry.
14596 (dwarf2out_finish): Call index_location_lists even if there are no
14597 addr_index_table entries yet.
14598
14599 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14600
14601 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14602 change for not being obvious.
14603
14604 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14605
14606 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14607 unused argument.
14608
14609 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14610
14611 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14612 (vcagt_f64): Likewise.
14613 (vcale_f64): Likewise.
14614 (vcaled_f64): Likewise.
14615 (vcales_f32): Likewise.
14616 (vcalt_f64): Likewise.
14617 (vcaltd_f64): Likewise.
14618 (vcalts_f32): Likewise.
14619
14620 2014-07-01 Marek Polacek <polacek@redhat.com>
14621
14622 * doc/invoke.texi: Document -Wint-conversion.
14623
14624 2014-07-01 Marek Polacek <polacek@redhat.com>
14625
14626 PR c/58286
14627 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14628
14629 2014-07-01 Martin Liska <mliska@suse.cz>
14630
14631 IPA REF alias refactoring
14632 * cgraph.h (iterate_direct_aliases): New function.
14633 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14634 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14635 FOR_EACH_ALIAS added.
14636 (cgraph_for_node_and_aliases): Likewise.
14637 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14638 * ipa-inline.c (reset_edge_caches): Likewise.
14639 (update_caller_keys): Likewise.
14640 * trans-mem.c (ipa_tm_execute): Likewise.
14641 *varpool.c (varpool_analyze_node): Likewise.
14642 (varpool_for_node_and_aliases): Likewise.
14643 * ipa-ref.h (first_alias): New function.
14644 (last_alias): Likewise.
14645 (has_aliases_p): Likewise.
14646 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14647 is sensitive to IPA_REF_ALIASes.
14648 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14649 are put at the beginning of the list.
14650 (symtab_node::iterate_direct_aliases): New function.
14651
14652 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14653
14654 Revert:
14655 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14656 type is complete.
14657 (write_ts_type_common_tree_pointers): Do not stream fields not set
14658 for incomplete types; do not stream duplicated fields for variants;
14659 sanity check that variant and type match.
14660 (write_ts_type_non_common_tree_pointers): Likewise.
14661 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14662 TYPE_SIZE whether type is complete.
14663 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14664 write_ts_type_common_tree_pointers
14665 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14666
14667 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14668
14669 * var-tracking.c (add_stores): Return instead of asserting if old
14670 and new values for conditional store are the same.
14671
14672 2014-06-30 Richard Henderson <rth@redhat.com>
14673
14674 PR rtl-opt/61608
14675 PR target/39284
14676 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14677 the cfg if there were any changes.
14678 * passes.def: Revert move of peephole2 after reorder_blocks;
14679 move duplicate_computed_gotos before peephole2.
14680
14681 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14682
14683 * except.c (emit_note_eh_region_end): New helper function.
14684 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14685 emit EH_REGION_END note.
14686 * jump.c (cleanup_barriers): Do not split a call and its
14687 corresponding CALL_ARG_LOCATION note.
14688
14689 2014-06-30 Jeff Law <law@redhat.com>
14690
14691 PR tree-optimization/61607
14692 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14693 deeper into the SSA_NAME_VALUE chain.
14694
14695 2014-06-30 Marek Polacek <polacek@redhat.com>
14696
14697 * convert.c (convert_to_integer): Don't instrument conversions if the
14698 function has no_sanitize_undefined attribute.
14699 * ubsan.c: Don't run the ubsan pass if the function has
14700 no_sanitize_undefined attribute.
14701
14702 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14703
14704 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14705 -fsanitize=undefined suboptions.
14706
14707 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14708
14709 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14710 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14711 against bigendian and adjust indices.
14712
14713 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14714
14715 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14716
14717 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14718
14719 PR target/61633
14720 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14721 Add alternative; make early clobber. Adjust both split patterns
14722 to use operand 0 as the working register.
14723
14724 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14725
14726 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14727 as ira_object_id_map might be NULL, or 1.
14728
14729 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14730
14731 * loop-invariant.c (get_inv_cost): Handle register class.
14732 (gain_for_invariant): Check the register pressure of the inv
14733 and its overlapped register class, other than all.
14734
14735 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14736
14737 * doc/invoke.texi (Optimize Options): Fix descriptions of
14738 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14739
14740 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14741
14742 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14743 documentation.
14744
14745 2014-06-29 Tobias Grosser <tobias@grosser.es>
14746
14747 PR bootstrap/61650
14748 * graphite-isl-ast-to-gimple.c: Add missing guards.
14749
14750 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14751
14752 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14753 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14754 * flag-types.h: Add new enum fgraphite_generator.
14755 * graphite-isl-ast-to-gimple.c: New.
14756 * graphite-isl-ast-to-gimple.h: New.
14757 * graphite.c (graphite_transform_loops): Add choice of Graphite
14758 code generator, which depends on flag_graphite_code_gen.
14759
14760 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14761
14762 * graphite-dependences.c (subtract_commutative_associative_deps):
14763 Add NULL checking of the following variables: must_raw_no_source,
14764 may_raw_no_source, must_war_no_source, may_war_no_source,
14765 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14766 must_war, may_war, must_waw, may_waw.
14767
14768 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14769
14770 * graphite-clast-to-gimple.c: gloog is renamed to
14771 graphite_regenerate_ast_cloog. gloog_error is renamed to
14772 graphite_regenerate_error.
14773 * graphite-clast-to-gimple.h: The definition of the struct
14774 bb_pbb_def is moved to graphite-htab.h.
14775 Add inclusion of the hash-table.h.
14776 * graphite-htab.h: The declaration of the function gloog is moved
14777 to graphite-clast-to-gimple.h and renamed to
14778 graphite_regenerate_ast_cloog.
14779 * graphite.c (graphite_transform_loops): gloog is renamed
14780 to graphite_regenerate_ast_cloog.
14781
14782 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14783
14784 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14785 type is complete.
14786 (write_ts_type_common_tree_pointers): Do not stream fields not set
14787 for incomplete types; do not stream duplicated fields for variants;
14788 sanity check that variant and type match.
14789 (write_ts_type_non_common_tree_pointers): Likewise.
14790 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14791 TYPE_SIZE whether type is complete.
14792 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14793 write_ts_type_common_tree_pointers
14794 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14795
14796 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14797
14798 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14799
14800 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14801
14802 * tree-inline.c (remap_type_1): Do not duplicate fields
14803 that are shared in between type and its main variant.
14804
14805 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14806
14807 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14808 of the type.
14809 (ipa_set_ancestor_jf) Likewise.
14810 (check_stmt_for_type_change): Check that we work on main variant.
14811 (detect_type_change): Look into main variant.
14812 (compute_known_type_jump_func): Check that main variant has BINFO.
14813
14814 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14815
14816 * ipa-devirt.c (set_type_binfo): New function.
14817 (add_type_duplicate): Use it.
14818 (get_odr_type): Sanity check that binfos points to main variants.
14819 (get_class_context): Be sure the context's outer_type is main variant.
14820 (contains_type_p): Walk main variant.
14821 (get_polymorphic_call_info_for_decl): Set outer_type to be
14822 main variant.
14823 (get_polymorphic_call_info): Likewise.
14824 (possible_polymorphic_call_targets): Sanity check that we operate
14825 on main variant.
14826
14827 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14828
14829 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14830
14831 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14832
14833 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14834 accidental change due to wide-int branch merge.
14835
14836 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14837
14838 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14839 compressed debug support.
14840 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14841 * configure: Regenerate.
14842 * config.in: Regenerate.
14843 * common.opt (compressed_debug_sections): New enum.
14844 (gz, gz=): New options.
14845 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14846 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14847 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14848 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14849 LINK_COMPRESS_DEBUG_SPEC.
14850 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14851 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14852 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14853 (Debugging Options): Document -gz[=type].
14854
14855 2014-06-27 Martin Jambor <mjambor@suse.cz>
14856
14857 PR ipa/61160
14858 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14859 args_to_skip, use those from node instead. Copy args_to_skip and
14860 combined_args_to_skip from node to the new thunk.
14861 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14862 (cgraph_create_virtual_clone): Moved computation of
14863 combined_args_to_skip...
14864 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14865
14866 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14867
14868 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14869 redundant diagnostic machinary.
14870
14871 2014-06-27 Richard Biener <rguenther@suse.de>
14872
14873 * tree-ssa-math-opts.c (bswap_replace): Fix
14874 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14875
14876 2014-06-27 Martin Liska <mliska@suse.cz>
14877
14878 * gimple.h (gimple_location_safe): New function introduced.
14879 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14880 of gimple_location_safe replaces gimple_location.
14881 (gimple_fold_call): Likewise.
14882 * ipa-devirt.c (ipa_devirt): Likewise.
14883 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14884 * ipa.c (walk_polymorphic_call_targets): Likewise.
14885 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14886
14887 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14888
14889 PR tree-optimization/57233
14890 PR tree-optimization/61299
14891 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14892 functions.
14893 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14894 would be lowered to scalar shifts, check if corresponding
14895 shifts and vector BIT_IOR_EXPR are supported and don't lower
14896 or lower just to narrower vector type in that case.
14897 * expmed.c (expand_shift_1): Fix up handling of vector
14898 shifts and rotates.
14899
14900 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14901
14902 PR target/61586
14903 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14904
14905 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14906
14907 * doc/invoke.texi (-fsemantic-interposition): Document.
14908 * common.opt (fsemantic-interposition): New flag.
14909 * varasm.c (decl_replaceable_p): Use it.
14910
14911 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14912
14913 PR target/61542
14914 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14915 extraction other than index 3.
14916
14917 2014-06-26 Teresa Johnson <tejohnson@google.com>
14918
14919 * doc/invoke.texi: Fix typo.
14920 * dumpfile.c: Add support for documented -fdump-* options
14921 optimized/missed/note/optall.
14922
14923 2014-06-26 Martin Jambor <mjambor@suse.cz>
14924
14925 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14926 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14927 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14928 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14929 * opts.c (default_options_optimization): Set
14930 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14931 * doc/invoke.texi (allow-load-data-races)
14932 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14933 (allow-store-data-races): Document the new default.
14934
14935 2014-06-26 Martin Jambor <mjambor@suse.cz>
14936
14937 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14938 renamed to ipa_impossible_devirt_target. Fix typo.
14939 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14940 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14941 ipa_impossible_devirt_target.
14942
14943 2014-06-26 Richard Biener <rguenther@suse.de>
14944
14945 PR tree-optimization/61607
14946 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14947 explaining why we restrict copies on loop depth.
14948 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14949 on loop depth.
14950 (record_equivalences_from_phis): Instead add it here.
14951
14952 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14953
14954 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14955 (LTO_WRAPPER_OBJS): New variable.
14956 (lto-wrapper$(exeext)): Use it.
14957 * collect2.c: Include "collect-utils.h".
14958 (verbose, debug): Remove variables.
14959 (at_file_supplied): No longer static.
14960 (tool_name): New variable.
14961 (do_wait, fork_execute, maybe_unlink): Don't declare.
14962 (tool_cleanup): No longer static.
14963 (notice): Remove function.
14964 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14965 fork_execute calls.
14966 (collect_wait, do_wait, collect_execute): Remove functions.
14967 (maybe_unlink): No longer static.
14968 * collect2.h (verbose, debug): Don't declare.
14969 (at_file_supplied): Declare.
14970 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14971 changed.
14972 (collect_execute): Replace with implementation from collect2, plus a
14973 new arg use_atfile. All callers changed.
14974 (collect_wait): Replace with implementation from collect2.
14975 (maybe_unlink_file): Remove function.
14976 (fork_execute): Replace with implementation from collect2, plus a
14977 new arg use_atfile. All callers changed.
14978 (do_wait): Add call to utils_cleanup to the error path.
14979 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14980 (tool_cleanup): Adjust declarations.
14981 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14982 * tlink.c: Include "collect-utils.h".
14983 (tlink_execute): New arg use_atfile. All callers changed.
14984 (tlink_init, tlink_execute): Remove declarations.
14985
14986 * collect-utils.c (save_temps): New variable.
14987 (do_wait): Use it instead of debug. Use fatal_error.
14988 * collect-utils.h (save_temps): Declare.
14989 * collect2.c (verbose): Rename from vflag. All uses changed.
14990 (tool_cleanup): New function, copied from collect_atexit.
14991 (collect_atexit, handler): Just call it.
14992 * collect2.h (verbose): Declaration renamed from vflag.
14993 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14994 debug.
14995
14996 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14997 (lto-wrapper$(exeext)): Link with collect-utils.o.
14998 * collect-utils.c: New file.
14999 * collect-utils.h: New file.
15000 * lto-wrapper.c: Include "collect-utils.h".
15001 (args_name): Delete variable.
15002 (tool_name): New variable.
15003 (tool_cleanup): New function.
15004 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
15005 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
15006 (fork_execute): Remove functions.
15007
15008 2014-06-26 Nick Clifton <nickc@redhat.com>
15009
15010 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
15011
15012 * doc/extend.texi (Function Attributes): Fix typo in description
15013 of RX vector attribute.
15014
15015 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15016
15017 * config.gcc (supported_defaults): Error when passing either
15018 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
15019
15020 2014-06-26 Richard Biener <rguenther@suse.de>
15021
15022 * tree-ssa-dom.c (cprop_operand): Remove restriction on
15023 propagating volatile pointers.
15024
15025 2014-06-26 Richard Biener <rguenther@suse.de>
15026
15027 PR tree-optimization/61607
15028 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
15029 loop if we redirected its latch edge.
15030 (thread_block_1): Do not cancel loops prematurely.
15031
15032 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
15033
15034 * toplev.c (backend_init_target): Move init_emit_regs and
15035 init_regs to...
15036 (backend_init) ... here; skip ira_init_once and backend_init_target.
15037 (target_reinit) ... and here; clear
15038 this_target_rtl->lang_dependent_initialized.
15039 (lang_dependent_init_target): Clear
15040 this_target_rtl->lang_dependent_initialized;
15041 break out rtl initialization to ...
15042 (initialize_rtl): ... here; call also backend_init_target
15043 and ira_init_once.
15044 * toplev.h (initialize_rtl): New function.
15045 * function.c: Include toplev.h
15046 (init_function_start): Call initialize_rtl.
15047 * rtl.h (target_rtl): Add target_specific_initialized,
15048 lang_dependent_initialized.
15049
15050 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
15051 Jakub Jelinek <jakub@redhat.com>
15052
15053 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
15054
15055 2014-06-25 Tom de Vries <tom@codesourcery.com>
15056
15057 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
15058
15059 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
15060
15061 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
15062 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
15063 Issue a strict overflow warning if appropriate.
15064
15065 2014-06-25 Martin Liska <mliska@suse.cz>
15066
15067 IPA REF refactoring
15068 * Makefile.in: Removed header file (ipa-ref-inline.h).
15069 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
15070 called.
15071 (cgraph_speculative_call_info): Likewise.
15072 (cgraph_for_node_thunks_and_aliases): Likewise.
15073 (cgraph_for_node_and_aliases): Likewise.
15074 (verify_cgraph_node): Likewise.
15075 * cgraph.h: Batch of IPA REF functions become member functions of
15076 symtab_node: add_reference, maybe_add_reference, clone_references,
15077 clone_referring, clone_reference, find_reference,
15078 remove_stmt_references, remove_all_references,
15079 remove_all_referring, dump_references, dump_referring,
15080 has_alias_p, iterate_reference, iterate_referring.
15081 * cgraphbuild.c (record_reference): New IPA REF function used.
15082 (record_type_list): Likewise.
15083 (record_eh_tables): Likewise.
15084 (mark_address): Likewise.
15085 (mark_load): Likewise.
15086 (mark_store): Likewise.
15087 (pass_build_cgraph_edges): Likewise.
15088 (rebuild_cgraph_edge): Likewise.
15089 (cgraph_rebuild_references): Likewise.
15090 (pass_remove_cgraph_callee_edges): Likewise.
15091 * cgraphclones.c (cgraph_clone_node): Likewise.
15092 (cgraph_create_virtual_clone): Likewise.
15093 (cgraph_materialize_clone): Likewise.
15094 (cgraph_materialize_all_clones): Likewise.
15095 * cgraphunit.c (cgraph_reset_node): Likewise.
15096 (cgraph_reset_node): Likewise.
15097 (analyze_function): Likewise.
15098 (assemble_thunks_and_aliases): Likewise.
15099 (expand_function): Likewise.
15100 * ipa-comdats.c (propagate_comdat_group): Likewise.
15101 (enqueue_references): Likewise.
15102 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
15103 (create_specialized_node): Likewise.
15104 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
15105 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
15106 * ipa-inline.c (reset_edge_caches): Likewise.
15107 (update_caller_keys): Likewise.
15108 (execute): Likewise.
15109 * ipa-prop.c (remove_described_reference): Likewise.
15110 (propagate_controlled_uses): Likewise.
15111 (ipa_edge_duplication_hook): Likewise.
15112 (ipa_modify_call_arguments): Likewise.
15113 * ipa-pure-const.c (propagate_pure_const): Likewise.
15114 * ipa-ref-inline.h: Header file removed, functions moved
15115 to symtab_node class.
15116 * ipa-ref.c (remove_reference): New class member function.
15117 (cannot_lead_to_return): New class member function.
15118 (referring_ref_list): Likewise.
15119 (referred_ref_list): Likewise.
15120 Rest of functions moved to symtab_node class.
15121 * ipa-ref.h: New member functions remove_reference,
15122 cannot_lead_to_return, referring_ref_list, referred_ref_list added
15123 to ipa_ref class.
15124 ipa_ref_list class has new member functions: first_reference,
15125 first_referring, clear, nreferences.
15126 * ipa-reference.c (analyze_function): New IPA REF function used.
15127 (write_node_summary_p): Likewise.
15128 (ipa_reference_write_optimization_summary): Likewise.
15129 * ipa-split.c (split_function): Likewise.
15130 * ipa-utils.c (ipa_reverse_postorder): Likewise.
15131 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
15132 (function_and_variable_visibility): Likewise.
15133 * ipa.c (has_addr_references_p): Likewise.
15134 (process_references): Argument type changed.
15135 (symtab_remove_unreachable_nodes): New IPA REF function used.
15136 (process_references): Likewise.
15137 (set_writeonly_bit): Likewise.
15138 * lto-cgraph.c: Implementation of new symtab_node member functions
15139 that uses new IPA REF functions.
15140 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
15141 function used.
15142 * lto-streamer-out.c (output_symbol_p): Likewise.
15143 * lto-streamer.h (referenced_from_this_partition_p): Argument type
15144 changed.
15145 * symtab.c: Implementation of new IPA REF API.
15146 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
15147 (ipa_tm_create_version): Likewise.
15148 (ipa_tm_execute): Likewise.
15149 * tree-emutls.c (gen_emutls_addr): Likewise.
15150 * tree-inline.c (copy_bb): Likewise.
15151 (delete_unreachable_blocks_update_callgraph): Likewise.
15152 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
15153 (varpool_for_node_and_aliases): Likewise.
15154
15155 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
15156
15157 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
15158
15159 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
15160
15161 PR bootstrap/61598
15162 * fold-const.c (fold_checksum_tree): Use a hash_table of const
15163 tree_node * instead of tree_node *.
15164 (fold): Adjust.
15165 (print_fold_checksum): Likewise.
15166 (fold_check_failed): Likewise.
15167 (debug_fold_checksum): Likewise.
15168 (fold_build1_stat_loc): Likewise.
15169 (fold_build2_stat_loc): Likewise.
15170 (fold_build3_stat_loc): Likewise.
15171 (fold_build_call_array_loc): Likewise.
15172
15173 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
15174
15175 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
15176 implementation with call to...
15177 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
15178 function.
15179 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
15180 Declare.
15181
15182 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
15183
15184 PR tree-optimization/57742
15185 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
15186 after replacing the statement.
15187
15188 2014-06-25 Nick Clifton <nickc@redhat.com>
15189
15190 * config/v850/v850.c (GHS_default_section_names): Change to const
15191 char * type.
15192 (GHS_current_section_names): Likewise.
15193 (v850_insert_attributes): Do not build strings, just assign the
15194 names directly. Change the type of 'chosen_section' to const
15195 char*.
15196 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
15197 directly to the array entry.
15198 * config/v850/v850.h (GHS_default_section_names): Change to const
15199 char * type.
15200 (GHS_current_section_names): Likewise.
15201
15202 2014-06-25 Jakub Jelinek <jakub@redhat.com>
15203
15204 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
15205 (LANG_HOOKS_DECLS): Add it.
15206 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
15207 has correct type.
15208 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
15209 * langhooks.h (struct lang_hooks_for_decls): Add
15210 omp_clause_linear_ctor hook.
15211 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
15212 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
15213 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
15214 combined simd loop use omp_clause_linear_ctor hook.
15215
15216 2014-06-24 Cong Hou <congh@google.com>
15217
15218 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
15219 pattern recognition.
15220 (type_conversion_p): PROMOTION is true if it's a type promotion
15221 conversion, and false otherwise. Return true if the given expression
15222 is a type conversion one.
15223 * tree-vectorizer.h: Adjust the number of patterns.
15224 * tree.def: Add SAD_EXPR.
15225 * optabs.def: Add sad_optab.
15226 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
15227 * expr.c (expand_expr_real_2): Likewise.
15228 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
15229 * gimple.c (get_gimple_rhs_num_ops): Likewise.
15230 * optabs.c (optab_for_tree_code): Likewise.
15231 * tree-cfg.c (estimate_operator_cost): Likewise.
15232 * tree-ssa-operands.c (get_expr_operands): Likewise.
15233 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
15234 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
15235 * doc/generic.texi: Add document for SAD_EXPR.
15236 * doc/md.texi: Add document for ssad and usad.
15237
15238 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15239
15240 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
15241 qualification in cast.
15242
15243 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
15244
15245 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
15246 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
15247 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
15248 (tree_function_decl): ... here.
15249 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
15250 streaming of vindex to ...
15251 (write_ts_function_decl_tree_pointers): ... here.
15252 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
15253 Do not stream DECL_VINDEX.
15254 (lto_input_ts_function_decl_tree_pointers): Stream it here.
15255
15256 2014-06-24 Catherine Moore <clm@codesourcery.com>
15257 Sandra Loosemore <sandra@codesourcery.com>
15258
15259 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
15260 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
15261 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
15262
15263 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
15264
15265 * doc/invoke.texi (Warning Options): Remove duplicated
15266 -Wmaybe-uninitialized.
15267
15268 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
15269
15270 PR tree-optimization/57742
15271 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
15272 (handle_builtin_malloc, handle_builtin_memset): New functions.
15273 (strlen_optimize_stmt): Call them.
15274 * passes.def: Move strlen after loop+dom but before vrp.
15275
15276 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15277
15278 PR target/61570
15279 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
15280 model family 6 CPU with has_longmode never use a CPU without
15281 64-bit support.
15282
15283 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
15284
15285 PR target/61570
15286 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
15287 the last change.
15288
15289 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15290
15291 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
15292 * dominance.c (iterate_fix_dominators): Use hash_map instead of
15293 pointer_map.
15294 * hash-map.h: New file.
15295 * ipa-comdats.c: Use hash_map instead of pointer_map.
15296 * ipa.c: Likewise.
15297 * lto-section-out.c: Adjust.
15298 * lto-streamer.h: Replace pointer_map with hash_map.
15299 * symtab.c (verify_symtab): Likewise.
15300 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
15301 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
15302 * tree-streamer.h: Likewise.
15303 * tree-streamer.c: Adjust.
15304 * pointer-set.h: Remove pointer_map.
15305
15306 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15307
15308 * hash-table.h: Add a template arg to choose between storing values
15309 and storing pointers to values, and then provide partial
15310 specializations for both.
15311 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
15312 should store, not the type values should point to.
15313 * tree-into-ssa.c (var_info_hasher): Likewise.
15314 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15315 * tree-complex.c: Adjust.
15316 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
15317 table instead of int_tree_map *.
15318 * tree-parloops.c: Adjust.
15319 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
15320 type is being stored.
15321 * tree-vectorizer.c: Adjust.
15322
15323 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15324
15325 * hash-table.h: Remove a layer of indirection from hash_table so that
15326 it contains the hash table's data instead of a pointer to the data.
15327 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
15328 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
15329 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15330 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15331 fold-const.c, gcse.c, ggc-common.c,
15332 gimple-ssa-strength-reduction.c, gimplify.c,
15333 graphite-clast-to-gimple.c, graphite-dependences.c,
15334 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15335 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15336 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15337 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15338 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15339 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15340 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15341 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15342 tree-ssa-live.c, tree-ssa-loop-im.c,
15343 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15344 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15345 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15346 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15347 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15348 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15349 vtable-verify.c, vtable-verify.h: Adjust.
15350
15351 2014-06-24 Richard Biener <rguenther@suse.de>
15352
15353 PR tree-optimization/61572
15354 * tree-ssa-sink.c (statement_sink_location): Do not sink
15355 loads from hard registers.
15356
15357 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15358
15359 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15360 not mentioned in clauses use private clause if the iterator is
15361 declared in #pragma omp for simd, and when adding lastprivate
15362 instead, add it to the outer #pragma omp for too. Diagnose
15363 if the variable is private in outer context. For simd collapse > 1
15364 loops, replace all iterators with temporaries.
15365 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15366 same even in collapse > 1 loops.
15367
15368 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15369 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15370 non-NULL.
15371 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15372 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15373 non-NULL.
15374 (gimplify_adjust_omp_clauses): Likewise.
15375 * omp-low.c (lower_rec_simd_input_clauses,
15376 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15377 safelen the same as safelen(1).
15378 * tree-nested.c (convert_nonlocal_omp_clauses,
15379 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
15380 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15381 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15382 Fixup handling of GIMPLE_OMP_TARGET.
15383 (convert_tramp_reference_stmt, convert_gimple_call): Handle
15384 GIMPLE_OMP_TARGET.
15385
15386 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
15387
15388 PR tree-optimization/61554
15389 * tree-ssa-propagate.c: Include "bitmap.h".
15390 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15391 properly update constructor/destructor.
15392 (substitute_and_fold_dom_walker::before_dom_children):
15393 Remove call to gimple_purge_dead_eh_edges, add bb->index to
15394 need_eh_cleaup instead.
15395 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15396 need_eh_cleanup.
15397
15398 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15399
15400 * varpool.c (dump_varpool_node): Dump used_by_single_function.
15401 * tree-pass.h (make_pass_ipa_single_use): New pass.
15402 * cgraph.h (used_by_single_function): New flag.
15403 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15404 Stream it.
15405 * passes.def (pass_ipa_single_use): Scedule.
15406 * ipa.c (BOTTOM): New macro.
15407 (meet): New function
15408 (propagate_single_user): New function.
15409 (ipa_single_use): New function.
15410 (pass_data_ipa_single_use): New pass.
15411 (pass_ipa_single_use): New pass.
15412 (pass_ipa_single_use::gate): New gate.
15413 (make_pass_ipa_single_use): New function.
15414
15415 2014-06-23 Kai Tietz <ktietz@redhat.com>
15416
15417 PR target/39284
15418 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15419 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15420
15421 2014-06-23 Richard Biener <rguenther@suse.de>
15422
15423 * tree-ssa-loop.c (gate_loop): New function.
15424 (pass_tree_loop::gate): Call it.
15425 (pass_data_tree_no_loop, pass_tree_no_loop,
15426 make_pass_tree_no_loop): New.
15427 * tree-vectorizer.c: Include tree-scalar-evolution.c
15428 (pass_slp_vectorize::execute): Initialize loops and SCEV if
15429 required.
15430 (pass_slp_vectorize::clone): New method.
15431 * timevar.def (TV_TREE_NOLOOP): New.
15432 * tree-pass.h (make_pass_tree_no_loop): Declare.
15433 * passes.def (pass_tree_no_loop): New pass group with
15434 SLP vectorizer.
15435
15436 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
15437
15438 PR target/61570
15439 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15440 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15441
15442 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15443
15444 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15445 "yes" where needed.
15446
15447 2014-06-23 Alan Modra <amodra@gmail.com>
15448
15449 PR bootstrap/61583
15450 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15451 to zero on debug statements.
15452
15453 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15454
15455 PR target/60825
15456 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15457 Ignore third operand if present by marking qualifier_internal.
15458
15459 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15460
15461 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15462 vector extension.
15463 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15464 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15465 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15466 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15467 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15468 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15469 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15470 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15471 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15472 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15473 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15474 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15475 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15476 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15477 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15478 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15479 logic in GCC vector extensions
15480
15481 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15482 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15483 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15484 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15485 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15486 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15487 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15488 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15489 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15490 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15491
15492 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15493
15494 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15495 extensions.
15496
15497 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15498 (vget_low_s64): Use __GET_LOW macro.
15499 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15500 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15501 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15502 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15503 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15504
15505 (vcombine_s64): Use GCC vector extensions; remove cast.
15506 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15507 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15508 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15509 Fix type signature; remove cast.
15510
15511 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15512
15513 PR target/60825
15514 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15515 V1DFmode.
15516 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15517 add V1DFmode
15518 (BUILTIN_VD1): New.
15519 (BUILTIN_VD_RE): Remove.
15520 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15521 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15522 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15523 variant but not df.
15524 (vreinterpretv1df*, vreinterpret*v1df): New.
15525 (vreinterpretdf*, vreinterpret*df): Remove.
15526 * config/aarch64/aarch64-simd.md (aarch64_create,
15527 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15528 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15529 (VD1): New.
15530 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15531 (vcreate_f64): Remove cast, use v1df builtin.
15532 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15533 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15534 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15535 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15536 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15537 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15538 add range check using __builtin_aarch64_im_lane_boundsi.
15539 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15540 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15541 type signature, use gcc vector extensions.
15542 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15543 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15544 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15545 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15546 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15547 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15548 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15549 vreinterpret_u64_f64): Use v1df builtin not df.
15550
15551 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15552
15553 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15554 vector registers.
15555
15556 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15557
15558 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15559 priority directly.
15560
15561 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15562
15563 * loop-invariant.c (pre_check_invariant_p): New function.
15564 (find_invariant_insn): Call pre_check_invariant_p.
15565
15566 2014-06-22 Richard Henderson <rth@redhat.com>
15567
15568 PR target/61565
15569 * compare-elim.c (struct comparison): Add eh_note.
15570 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15571 a redundant comparison in a different EH region. Purge EH edges if
15572 necessary.
15573
15574 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15575
15576 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15577 (var_shift): Use it.
15578 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15579 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15580 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15581 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15582 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15583 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15584 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15585 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15586 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15587 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15588 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15589 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15590 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15591 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15592 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15593 *rotldi3_internal15be): Use the new attribute. Merge register and
15594 integer alternatives.
15595
15596 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15597
15598 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15599 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15600 split, *ashrdi3_internal3 and split): Delete, merge into...
15601 (ashr<mode>3): New expander.
15602 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15603 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15604
15605 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15606
15607 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15608 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15609 *rotldi3_internal3 and split): Delete, merge into...
15610 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15611 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15612 Use "rotlw" extended mnemonic.
15613
15614 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15615
15616 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15617 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15618 and split, *ashldi3_internal3 and split): Delete, merge into...
15619 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15620 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15621
15622 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15623
15624 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15625 (lshrsi3, two anonymous define_insns and define_splits,
15626 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15627 *lshrdi3_internal3 and split): Delete, merge into...
15628 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15629 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15630
15631 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15632
15633 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15634 Remove "O" alternative.
15635
15636 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15637
15638 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15639 (mips_move_from_gpr_cost): Likewise.
15640 (mips_register_move_cost): Update accordingly.
15641 (mips_secondary_reload_class): Remove name of in_p.
15642
15643 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15644
15645 PR target/61503
15646 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15647 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15648
15649 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15650
15651 * config/nios2/nios2.c: Include "builtins.h".
15652
15653 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15654
15655 * cgraph.h (tls_model_names): New variable.
15656 * print-tree.c (print_node): Simplify.
15657 * varpool.c (tls_model_names): New variable.
15658 (dump_varpool_node): Output tls model.
15659
15660 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15661
15662 * ipa-visibility.c (function_and_variable_visibility): Disable
15663 temporarily local aliases for some targets.
15664
15665 2014-06-20 Marek Polacek <polacek@redhat.com>
15666
15667 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15668 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15669 into SANITIZE_UNDEFINED.
15670 * doc/invoke.texi: Describe -fsanitize=bounds.
15671 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15672 functions created in the FEs.
15673 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15674 (expand_UBSAN_BOUNDS): New function.
15675 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15676 * internal-fn.h: Don't define internal functions here.
15677 * opts.c (common_handle_option): Add -fsanitize=bounds.
15678 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15679 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15680 * tree-core.h: Define internal functions here.
15681 (struct tree_base): Add ifn field.
15682 * tree-pretty-print.c: Include "internal-fn.h".
15683 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15684 * tree.c (get_callee_fndecl): Likewise.
15685 (build_call_expr_internal_loc): New function.
15686 * tree.def (CALL_EXPR): Update description.
15687 * tree.h (CALL_EXPR_IFN): Define.
15688 (build_call_expr_internal_loc): Declare.
15689 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15690 types.
15691 (ubsan_type_descriptor): Change bool parameter to enum
15692 ubsan_print_style. Adjust the code. Add handling of
15693 UBSAN_PRINT_ARRAY.
15694 (ubsan_expand_bounds_ifn): New function.
15695 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15696 (ubsan_build_overflow_builtin): Likewise.
15697 (instrument_bool_enum_load): Likewise.
15698 (ubsan_instrument_float_cast): Likewise.
15699 * ubsan.h (enum ubsan_print_style): New enum.
15700 (ubsan_expand_bounds_ifn): Declare.
15701 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15702
15703 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15704
15705 * config/rs6000/rs6000.md: Append `DONE' to preparation
15706 statements of `bswap' pattern splitters.
15707
15708 2014-06-20 Tom de Vries <tom@codesourcery.com>
15709
15710 * target.def (call_fusage_contains_non_callee_clobbers): Update
15711 definition.
15712 * doc/tm.texi: Regenerate.
15713
15714 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15715 Max Ostapenko <m.ostapenko@partner.samsung.com>
15716
15717 PR sanitizer/61547
15718 * asan.c (instrument_strlen_call): Fixed instrumentation of
15719 trailing byte.
15720
15721 2014-06-20 Martin Jambor <mjambor@suse.cz>
15722
15723 PR ipa/61540
15724 * ipa-prop.c (impossible_devirt_target): New function.
15725 (try_make_edge_direct_virtual_call): Use it, also instead of
15726 asserting.
15727
15728 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15729 Max Ostapenko <m.ostapenko@partner.samsung.com>
15730
15731 PR sanitizer/61530
15732 * asan.c (build_check_stmt): Add condition.
15733
15734 2014-06-20 Martin Jambor <mjambor@suse.cz>
15735
15736 PR ipa/61211
15737 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15738 expanded clones.
15739
15740 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15741
15742 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15743 Update comments.
15744 (VCONQ): Make comment more helpful.
15745 (VCON): Delete.
15746 * config/aarch64/aarch64-simd.md
15747 (aarch64_sqdmulh_lane<mode>):
15748 Use VCOND for operands 2. Update lane checking and flipping logic.
15749 (aarch64_sqrdmulh_lane<mode>): Likewise.
15750 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15751 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15752 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15753 attribute of operand 3 to VCOND.
15754 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15755 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15756 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15757 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15758 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15759 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15760 define_insn.
15761 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15762 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15763 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15764 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15765 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15766 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15767 operand to VCOND. Update lane flipping and bounds checking logic.
15768 (aarch64_sqdmlal2_lane<mode>): Likewise.
15769 (aarch64_sqdmlsl_lane<mode>): Likewise.
15770 (aarch64_sqdmull_lane<mode>): Likewise.
15771 (aarch64_sqdmull2_lane<mode>): Likewise.
15772 (aarch64_sqdmlal_laneq<mode>):
15773 Replace VCON usage with VCONQ.
15774 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15775 (aarch64_sqdmlal2_laneq<mode>): Emit
15776 aarch64_sqdmlal2_laneq<mode>_internal insn.
15777 Replace VCON with VCONQ.
15778 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15779 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15780 (aarch64_sqdmull_laneq<mode>): Emit
15781 aarch64_sqdmull_laneq<mode>_internal insn.
15782 Replace VCON with VCONQ.
15783 (aarch64_sqdmull2_laneq<mode>): Emit
15784 aarch64_sqdmull2_laneq<mode>_internal insn.
15785 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15786 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15787 of 3rd argument to int16x4_t.
15788 (vqdmlalh_lane_s16): Likewise.
15789 (vqdmlslh_lane_s16): Likewise.
15790 (vqdmull_high_lane_s16): Likewise.
15791 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15792 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15793 (vqdmlsl_lane_s16): Likewise.
15794 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15795 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15796 (vqdmlals_lane_s32): Likewise.
15797 (vqdmlsls_lane_s32): Likewise.
15798 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15799 (vqdmulls_lane_s32): Likewise.
15800 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15801 (vqdmlsl_lane_s32): Likewise.
15802 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15803 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15804 (vqrdmulhh_lane_s16): Likewise.
15805 (vqdmlsl_high_lane_s16): Likewise.
15806 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15807 (vqdmlsl_high_lane_s32): Likewise.
15808 (vqrdmulhs_lane_s32): Likewise.
15809
15810 2014-06-20 Tom de Vries <tom@codesourcery.com>
15811
15812 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15813 get_call_reg_set_usage.
15814
15815 2014-06-20 Tom de Vries <tom@codesourcery.com>
15816
15817 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15818 it contains all call_used_regs.
15819
15820 2014-06-20 Tom de Vries <tom@codesourcery.com>
15821
15822 * final.c (collect_fn_hard_reg_usage): Add and use variable
15823 function_used_regs.
15824
15825 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15826
15827 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15828 (set_init_priority, get_init_priority, set_fini_priority,
15829 get_fini_priority): New methods.
15830 * tree.c (init_priority_for_decl): Remove.
15831 (init_ttree): Do not initialize init priority.
15832 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15833 (decl_priority_info): Remove.
15834 (decl_init_priority_insert): Rewrite.
15835 (decl_fini_priority_insert): Rewrite.
15836 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15837 tree_priority_map_marked_p): Remove.
15838 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15839 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15840 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15841 not output priorities.
15842 (pack_ts_function_decl_value_fields): Likewise.
15843 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15844 not input priorities.
15845 (unpack_ts_function_decl_value_fields): Likewise.
15846 * symtab.c (symbol_priority_map): Declare.
15847 (init_priority_hash): Declare.
15848 (symtab_unregister_node): Unregister from priority hash, too.
15849 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15850 New methods.
15851 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15852 (symbol_priority_info): New function.
15853 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15854 New methods.
15855 * tree-core.h (tree_priority_map): Remove.
15856
15857 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15858
15859 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15860 0xff to uint64_t before shifting it up.
15861
15862 2014-06-20 Julian Brown <julian@codesourcery.com>
15863 Chung-Lin Tang <cltang@codesourcery.com>
15864
15865 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15866 TARGET_THUMB1_ONLY. Add comments.
15867
15868 2014-06-19 Tom de Vries <tom@codesourcery.com>
15869
15870 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15871 return type to void.
15872 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15873
15874 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15875
15876 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15877 as "move", from depends_on.
15878
15879 2014-06-19 Terry Guo <terry.guo@arm.com>
15880
15881 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15882 stage.
15883
15884 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15885
15886 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15887 Remove cr5.
15888 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15889
15890 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15891
15892 PR target/61550
15893 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15894 addresses here if reload in progress or completed.
15895
15896 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15897
15898 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15899 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15900 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15901 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15902 (mips_register_priority): New function that implements the target
15903 hook TARGET_REGISTER_PRIORITY.
15904 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15905 (mips_lra_p): Likewise for TARGET_LRA_P.
15906 (TARGET_REGISTER_PRIORITY): Define macro.
15907 (TARGET_SPILL_CLASS): Likewise.
15908 (TARGET_LRA_P): Likewise.
15909 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15910 classes.
15911 (REG_CLASS_NAMES): Likewise.
15912 (REG_CLASS_CONTENTS): Likewise.
15913 (BASE_REG_CLASS): Use M16_SP_REGS.
15914 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15915 New set attribute to enable alternatives depending on the register
15916 allocator used.
15917 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15918 (*lea64): Disable pattern for MIPS16.
15919 * config/mips/mips.opt (mlra): New option.
15920
15921 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15922
15923 * lra-constraints.c (base_to_reg): New function.
15924 (process_address): Use new function.
15925
15926 2014-06-18 Tom de Vries <tom@codesourcery.com>
15927
15928 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15929 * config/aarch64/aarch64.c
15930 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15931 (aarch64_emit_call_insn): New function.
15932 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15933 of emit_call_insn.
15934 * config/aarch64/aarch64.md (define_expand "call_internal")
15935 (define_expand "call_value_internal", define_expand "sibcall_internal")
15936 (define_expand "sibcall_value_internal"): New.
15937 (define_expand "call", define_expand "call_value")
15938 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15939 expand variant and aarch64_emit_call_insn.
15940
15941 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15942 Tom de Vries <tom@codesourcery.com>
15943
15944 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15945 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15946 Redefine to true.
15947 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15948 clobbers to CALL_INSN_FUNCTION_USAGE.
15949 (define_expand "sibcall_internal")
15950 (define_expand "sibcall_value_internal"): New.
15951 (define_expand "call", define_expand "call_value"): Add argument to
15952 arm_emit_call_insn.
15953 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15954 (define_expand "sibcall_value"): Use sibcall_value_internal and
15955 arm_emit_call_insn.
15956
15957 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15958
15959 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15960
15961 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15962
15963 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15964 __udivmoddi4.
15965
15966 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15967
15968 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15969 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15970 annotations. Fix DWARF information.
15971
15972 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15973
15974 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15975 __udivmoddi4, and fixups for negative operands.
15976
15977 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15978
15979 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15980
15981 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15982
15983 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15984 to __udivmoddi4.
15985
15986 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15987
15988 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15989 manipulation.
15990
15991 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15992
15993 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15994 describing register usage on function entry and exit.
15995
15996 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15997
15998 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15999 (__aeabi_ldivmod): Fix whitespace.
16000
16001 2014-06-18 Andreas Schwab <schwab@suse.de>
16002
16003 * doc/md.texi (Standard Names): Use @itemx for grouped items.
16004 Remove blank line after @item.
16005
16006 2014-06-18 Richard Henderson <rth@redhat.com>
16007
16008 PR target/61545
16009 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
16010
16011 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16012
16013 * config/arm/arm.c (neon_vector_mem_operand): Allow register
16014 POST_MODIFY for neon loads and stores.
16015 (arm_print_operand): Output post-index register for neon loads and
16016 stores.
16017
16018 2014-06-18 Richard Biener <rguenther@suse.de>
16019
16020 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
16021
16022 2014-06-18 Richard Biener <rguenther@suse.de>
16023
16024 * tree-pass.h (make_pass_dce_loop): Remove.
16025 * passes.def: Replace pass_dce_loop with pass_dce.
16026 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
16027 changed free niter estimates and reset the scev cache.
16028 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
16029 make_pass_dce_loop): Remove.
16030 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
16031 (fini_copy_prop): Return whether something changed. Always
16032 let substitute_and_fold perform DCE and free niter estimates
16033 and reset the scev cache if so.
16034 (execute_copy_prop): If sth changed schedule cleanup-cfg.
16035 (pass_data_copy_prop): Do not unconditionally schedule
16036 cleanup-cfg or update-ssa.
16037
16038 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
16039
16040 PR tree-optimization/61518
16041 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16042 reduction var is used in reduction stmt or phi-function only.
16043
16044 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16045
16046 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
16047
16048 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
16049
16050 PR tree-optimization/61517
16051 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
16052 whose rhs's first tree is the source expression instead of the
16053 expression itself.
16054 (find_bswap_or_nop): Likewise.
16055 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
16056 gimple stmt whose rhs's first tree is the source. In the memory source
16057 case, move the stmt to be replaced close to one of the original load to
16058 avoid the problem of a store between the load and the stmt's original
16059 location.
16060 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
16061 signature.
16062
16063 2014-06-18 Andreas Schwab <schwab@suse.de>
16064
16065 PR rtl-optimization/54555
16066 * postreload.c (move2add_use_add2_insn): Substitute
16067 STRICT_LOW_PART only if it is cheaper.
16068
16069 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
16070
16071 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
16072 Do not use unspec as call operand. Use memory_operand instead of
16073 memory_nox32_operand and add "m" operand constraint. Disable
16074 pattern for TARGET_X32.
16075 (*sibcall_pop_memory): Ditto.
16076 (*sibcall_value_memory): Ditto.
16077 (*sibcall_value_pop_memory): Ditto.
16078 (sibcall peepholes): Merge SImode and DImode patterns using
16079 W mode iterator. Use memory_operand instead of memory_nox32_operand.
16080 Disable pattern for TARGET_X32. Check if eliminated register is
16081 really dead after call insn. Generate call RTX without unspec operand.
16082 (sibcall_value peepholes): Ditto.
16083 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
16084 instead of memory_nox32_operand. Check if eliminated register is
16085 really dead after call insn. Generate call RTX without unspec operand.
16086 (sibcall_value_pop peepholes): Ditto.
16087 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
16088
16089 2014-06-18 Terry Guo <terry.guo@arm.com>
16090
16091 PR target/61544
16092 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
16093 reach the head.
16094
16095 2014-06-18 Olivier Hainque <hainque@adacore.com>
16096
16097 * tree-core.h (tree_block): Add an "end_locus" field, allowing
16098 memorization of the end of block source location.
16099 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
16100 * gimplify.c (gimplify_bind_expr): Propagate the block start and
16101 end source location info we have on the block entry/exit code we
16102 generate.
16103
16104 2014-06-18 Richard Biener <rguenther@suse.de>
16105
16106 * common.opt (fssa-phiopt): New option.
16107 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
16108 but not with -Og.
16109 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
16110 * doc/invoke.texi (-fssa-phiopt): Document.
16111
16112 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16113
16114 * genattrtab.c (n_bypassed): New variable.
16115 (process_bypasses): Initialise n_bypassed.
16116 Count number of bypassed reservations.
16117 (make_automaton_attrs): Allocate space for bypassed reservations
16118 rather than number of bypasses.
16119
16120 2014-06-18 Richard Biener <rguenther@suse.de>
16121
16122 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
16123 we propagated anything.
16124 (substitute_and_fold_dom_walker::before_dom_children): Something
16125 changed if we propagated into PHI arguments.
16126 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
16127 we removed a stmt.
16128
16129 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
16130
16131 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
16132 vector case.
16133 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
16134 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
16135 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
16136 Introduces alternative way of loads group permutaions.
16137 (vect_transform_grouped_load): Try alternative way of permutations.
16138
16139 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16140
16141 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
16142 changed in ORT_TARGET region, don't jump to do_outer.
16143 (struct gimplify_adjust_omp_clauses_data): New type.
16144 (gimplify_adjust_omp_clauses_1): Adjust for data being
16145 a struct gimplify_adjust_omp_clauses_data pointer instead
16146 of tree *. Pass pre_p as a new argument to
16147 lang_hooks.decls.omp_finish_clause hook.
16148 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
16149 splay_tree_foreach to pass both list_p and pre_p.
16150 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
16151 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
16152 gimplify_adjust_omp_clauses callers.
16153 * langhooks.c (lhd_omp_finish_clause): New function.
16154 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
16155 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
16156 * langhooks.h (struct lang_hooks_for_decls): Add a new
16157 gimple_seq * argument to omp_finish_clause hook.
16158 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
16159 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
16160 (scan_omp_parallel, lower_omp_for): When adding
16161 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
16162 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
16163 * tree-nested.c (convert_nonlocal_omp_clauses,
16164 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
16165 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
16166
16167 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
16168
16169 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
16170 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
16171
16172 2014-06-17 Xinliang David Li <davidxl@google.com>
16173
16174 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
16175 * passes.c (pass_init_dump_file): Do not set initialize
16176 flag to false unconditionally.
16177
16178 2014-06-17 Richard Biener <rguenther@suse.de>
16179
16180 * genopinit.c (main): Use vec<>::qsort method.
16181 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16182 Likewise.
16183 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
16184
16185 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
16186
16187 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
16188 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
16189 (mips_move_to_gpr_cost): Remove ST_REGS case.
16190 (mips_move_from_gpr_cost): Likewise.
16191 (mips_register_move_cost): Likewise.
16192 (mips_secondary_reload_class): Likewise.
16193
16194 2014-06-17 Richard Biener <rguenther@suse.de>
16195
16196 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
16197 (pass_all_optimizations): Move 3rd copy-prop pass from after
16198 fre to before ifcombine/phiopt.
16199
16200 2014-06-17 Richard Biener <rguenther@suse.de>
16201
16202 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
16203 and allow all blocks to be forwarders.
16204
16205 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
16206
16207 PR target/61483
16208 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
16209 variable 'size'; calculate 'size' right in the front; use
16210 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
16211 pcum->aapcs_stack_words.
16212
16213 2014-06-17 Nick Clifton <nickc@redhat.com>
16214
16215 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
16216 (umulhi3, mulsidi3, umulsidi3): Likewise.
16217
16218 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
16219
16220 PR middle-end/61508
16221 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
16222 check for section name.
16223
16224 2014-06-17 Richard Biener <rguenther@suse.de>
16225
16226 * tree-ssa-propagate.c: Include domwalk.h.
16227 (substitute_and_fold): Outline main worker into a domwalker ...
16228 (substitute_and_fold_dom_walker::before_dom_children): ... here.
16229 Schedule stmts we can fully propagate for removal. Remove
16230 poor-mans DCE.
16231 (substitute_and_fold): Apply a dominator walk to perform
16232 substitution. Process stmts scheduled for removal here.
16233
16234 2014-06-17 Richard Biener <rguenther@suse.de>
16235
16236 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
16237 of PHI node moving.
16238
16239 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
16240
16241 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
16242 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
16243 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16244 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
16245 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
16246 TARGET_HARD_FLOAT.
16247 (get_fpscr) : Likewise.
16248
16249 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
16250
16251 PR rtl-optimization/61325
16252 * lra-constraints.c (valid_address_p): Add forward declaration.
16253 (simplify_operand_subreg): Check address validity before and after
16254 alter_reg of memory subreg.
16255
16256 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
16257
16258 * config/i386/i386.c (decide_alg): Correctly handle
16259 maximum size of stringop algorithm.
16260
16261 2014-06-16 Yury Gribov <y.gribov@samsung.com>
16262
16263 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
16264
16265 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
16266
16267 PR rtl-optimization/61522
16268 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
16269
16270 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
16271
16272 Revert:
16273 * symtab.c (symtab_node::reset_section): New method.
16274 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16275 for localization.
16276 * cgraph.h (reset_section): Declare.
16277 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16278 do not consider comdat locals.
16279 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16280 for new symbol.
16281 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16282 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16283 reset sections of symbols dragged out of the comdats.
16284 (function_and_variable_visibility): Reset sections of
16285 localized symbols.
16286
16287 2014-06-16 Richard Biener <rguenther@suse.de>
16288
16289 PR tree-optimization/61482
16290 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
16291 [-INF(OVF), +INF(OVF)] range.
16292
16293 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16294
16295 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
16296 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
16297 handling 32-bit multiplication.
16298
16299 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
16300
16301 PR middle-end/61430
16302 * lra-lives.c (process_bb_lives): Skip creating copy during
16303 insn scan when src/dest has constrained to same regno.
16304
16305 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16306
16307 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
16308 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
16309
16310 2014-06-16 Yury Gribov <y.gribov@samsung.com>
16311
16312 * asan.c (check_func): New function.
16313 (maybe_create_ssa_name): Likewise.
16314 (build_check_stmt_with_calls): Likewise.
16315 (use_calls_p): Likewise.
16316 (report_error_func): Change interface.
16317 (build_check_stmt): Allow non-integer lengths; add support
16318 for new parameter.
16319 (asan_instrument): Likewise.
16320 (instrument_mem_region_access): Moved code to build_check_stmt.
16321 (instrument_derefs): Likewise.
16322 (instrument_strlen_call): Likewise.
16323 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
16324 * doc/invoke.texi: Describe new parameter.
16325 * params.def: Define new parameter.
16326 * params.h: Likewise.
16327 * sanitizer.def: Describe new builtins.
16328
16329 2014-06-16 Richard Biener <rguenther@suse.de>
16330
16331 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16332 Make all defs available at the end.
16333 (eliminate): If we remove a PHI node schedule cfg-cleanup.
16334
16335 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16336
16337 PR plugins/45078
16338 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16339
16340 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
16341
16342 PR bootstrap/61516
16343 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16344 initialization. Replace remaining use of uid.
16345
16346 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16347
16348 * c-family/c-common.c (handle_tls_model_attribute): Use
16349 set_decl_tls_model.
16350 * c-family/c-common.c (handle_tls_model_attribute): Use
16351 set_decl_tls_model.
16352 * cgraph.h (struct varpool_node): Add tls_model.
16353 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16354 * tree.h (DECL_TLS_MODEL): Update.
16355 (DECL_THREAD_LOCAL_P): Check that variable is static.
16356 (decl_tls_model): Declare.
16357 (set_decl_tls_model): Declare.
16358 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16359 set symbol prorperties.
16360 (get_emutls_init_templ_addr): Cleanup.
16361 (new_emutls_decl): Update.
16362 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16363 (lto_input_varpool_node): Likewise.
16364 * lto-streamer-out.c (hash_tree): Likewise.
16365 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16366 not stream DECL_TLS_MODEL.
16367 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16368 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16369
16370 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16371
16372 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16373
16374 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16375
16376 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16377 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16378 lists.
16379 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16380 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16381 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16382 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16383 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16384 (df_get_artificial_defs, df_get_artificial_uses)
16385 (df_single_def, df_single_use): Update accordingly.
16386 (df_refs_chain_dump): Take the first element in a linked list as
16387 parameter, rather than a pointer to an array of pointers.
16388 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16389 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16390 (df_chain_create_bb_process_use): Likewise.
16391 (df_md_bb_local_compute_process_def): Likewise.
16392 * fwprop.c (process_defs, process_uses): Likewise.
16393 (register_active_defs, update_uses): Likewise.
16394 (forward_propagate_asm): Update for new df_ref linking.
16395 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16396 (df_null_ref_rec, df_null_mw_rec): Likewise.
16397 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16398 explicitly.
16399 (df_scan_free_bb_info): Remove check for null artificial_defs.
16400 (df_install_ref_incremental): Adjust for new df_ref linking.
16401 Use a single-element insertion rather than a full sort.
16402 (df_ref_chain_delete_du_chain): Take the first element
16403 in a linked list as parameter, rather than a pointer to an array of
16404 pointers.
16405 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16406 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16407 (df_insn_info_delete): Remove check for null defs and call to
16408 df_scan_free_mws_vec.
16409 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16410 null rather than df_null_*_rec.
16411 (df_insn_rescan_debug_internal): Likewise, and update null
16412 checks in the same way. Remove check for null defs.
16413 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16414 Move a single element rather doing a full sort.
16415 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16416 linking.
16417 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
16418 Initialize df_ref and df_mw_hardreg lists to null rather than
16419 df_null_*_rec.
16420 (df_ref_compare): Take df_refs as parameter, transferring the
16421 old interface to...
16422 (df_ref_ptr_compare): ...this new function.
16423 (df_sort_and_compress_refs): Update accordingly.
16424 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16425 old interface to...
16426 (df_mw_ptr_compare): ...this new function.
16427 (df_sort_and_compress_mws): Update accordingly.
16428 (df_install_refs, df_install_mws): Return a linked list rather than
16429 an array of pointers.
16430 (df_refs_add_to_chains): Assert that old lists are empty rather
16431 than freeing them.
16432 (df_insn_refs_verify): Don't handle null defs speciailly.
16433 * web.c (union_match_dups): Update for new df_ref linking.
16434
16435 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16436
16437 * df.h (df_ref_create, df_ref_remove): Delete.
16438 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16439 (df_ref_remove): Likewise.
16440
16441 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16442
16443 * df.h (df_single_def, df_single_use): New functions.
16444 * ira.c (find_moveable_pseudos): Use them.
16445
16446 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16447
16448 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16449 * df-problems.c (df_note_bb_compute): Use it.
16450 * regstat.c (regstat_bb_compute_ri): Likewise.
16451
16452 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16453
16454 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16455 * cse.c (cse_extended_basic_block): Use them.
16456 * dce.c (mark_artificial_use): Likewise.
16457 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16458 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16459 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16460 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16461 (df_simulate_initialize_backwards): Likewise.
16462 (df_simulate_finalize_backwards): Likewise.
16463 (df_simulate_initialize_forwards): Likewise.
16464 (df_md_simulate_artificial_defs_at_top): Likewise.
16465 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16466 * regrename.c (init_rename_info): Likewise.
16467 * regstat.c (regstat_bb_compute_ri): Likewise.
16468 (regstat_bb_compute_calls_crossed): Likewise.
16469
16470 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16471
16472 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16473 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16474 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16475 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16476 * combine.c (create_log_links): Likewise.
16477 * compare-elim.c (find_flags_uses_in_insn): Likewise.
16478 (try_eliminate_compare): Likewise.
16479 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16480 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16481 (remove_reg_equal_equiv_notes_for_defs): Likewise.
16482 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16483 (word_dce_process_block, dce_process_block): Likewise.
16484 * ddg.c (def_has_ccmode_p): Likewise.
16485 * df-core.c (df_bb_regno_first_def_find): Likewise.
16486 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16487 * df-problems.c (df_rd_simulate_one_insn): Likewise.
16488 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16489 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16490 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16491 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16492 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16493 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16494 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16495 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16496 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16497 * fwprop.c (local_ref_killed_between_p): Likewise.
16498 (all_uses_available_at, free_load_extend): Likewise.
16499 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16500 * hw-doloop.c (scan_loop): Likewise.
16501 * ifcvt.c (dead_or_predicable): Likewise.
16502 * init-regs.c (initialize_uninitialized_regs): Likewise.
16503 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16504 (process_bb_node_lives): Likewise.
16505 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16506 (find_moveable_pseudos): Likewise.
16507 * loop-invariant.c (check_dependencies, record_uses): Likewise.
16508 * recog.c (peep2_find_free_register): Likewise.
16509 * ree.c (get_defs): Likewise.
16510 * regstat.c (regstat_bb_compute_ri): Likewise.
16511 (regstat_bb_compute_calls_crossed): Likewise.
16512 * sched-deps.c (find_inc, find_mem): Likewise.
16513 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16514 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16515 * shrink-wrap.c (requires_stack_frame_p): Likewise.
16516 (prepare_shrink_wrap): Likewise.
16517 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16518 * web.c (union_defs, pass_web::execute): Likewise.
16519 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16520 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16521
16522 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16523
16524 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16525 to inheritance pseudos.
16526 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16527
16528 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16529
16530 PR target/61415
16531 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16532 (BU_MISC_2): Rename to ...
16533 (BU_LDBL128_2): ... this.
16534 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16535 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16536 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16537 RS6000_BTM_LDBL128.
16538 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16539 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16540 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16541 (unpacktf_1): Likewise.
16542 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16543 (__builtin_longdouble_dw1): Likewise.
16544 * doc/sourcebuild.texi (longdouble128): Document.
16545
16546 2014-06-13 Jeff Law <law@redhat.com>
16547
16548 PR rtl-optimization/61094
16549 PR rtl-optimization/61446
16550 * ree.c (combine_reaching_defs): Get the mode for the copy from
16551 the extension insn rather than the defining insn.
16552
16553 2014-06-13 Dehao Chen <dehao@google.com>
16554
16555 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16556
16557 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16558
16559 * doc/install.texi (--enable-linker-plugin-configure-flags)
16560 (--enable-linker-plugin-flags): Document new flags.
16561
16562 2014-06-13 Martin Jambor <mjambor@suse.cz>
16563
16564 PR ipa/61186
16565 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16566 cache_token if returning early.
16567
16568 2014-06-13 Nick Clifton <nickc@redhat.com>
16569
16570 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16571 requested alignment is active.
16572 (LABEL_ALIGN): Likewise.
16573 (LOOP_ALIGN): Likewise.
16574
16575 2014-06-13 Richard Biener <rguenther@suse.de>
16576
16577 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16578 Rewrite to propagate the VN result into all uses where
16579 possible and to remove stmts becoming dead because of that.
16580 (eliminate): Generalize stmt removal handling, remove in
16581 reverse dominator order to support proper debug stmt
16582 generation. Update stmts before removing stmts.
16583 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16584
16585 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16586
16587 PR tree-optimization/61375
16588 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16589 symbolic number cannot be represented in an uint64_t.
16590 (find_bswap_or_nop_1): Likewise.
16591
16592 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16593
16594 * symtab.c (symtab_node::reset_section): New method.
16595 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16596 for localization.
16597 * cgraph.h (reset_section): Declare.
16598 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16599 do not consider comdat locals.
16600 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16601 for new symbol.
16602 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16603 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16604 reset sections of symbols dragged out of the comdats.
16605 (function_and_variable_visibility): Reset sections of
16606 localized symbols.
16607
16608 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16609
16610 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16611 to use symtab and decl_binds_to_current_def_p
16612 * tree-vectorizer.c (increase_alignment): Increase alignment
16613 of alias target, too.
16614
16615 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16616
16617 PR middle-end/61486
16618 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16619 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16620 if outer combined construct is distribute.
16621 (gimplify_omp_for): For OMP_DISTRIBUTE set
16622 gimplify_omp_ctxp->distribute.
16623 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16624 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16625 mapping into decl map.
16626
16627 2014-06-12 Jason Merrill <jason@redhat.com>
16628
16629 * common.opt (fabi-version): Change default to 0.
16630
16631 2014-06-12 Jason Merrill <jason@redhat.com>
16632
16633 * toplev.c (process_options): Reject -fabi-version=1.
16634
16635 2014-06-12 Jeff Law <law@redhat.com>
16636
16637 PR tree-optimization/61009
16638 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16639 value when we stop processing a block due to problematic PHIs.
16640
16641 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16642
16643 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16644 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16645 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16646 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16647 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16648 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16649 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16650 are not in the spec.
16651
16652 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16653
16654 PR target/59843
16655 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16656 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16657 Support V1DFmode.
16658
16659 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16660
16661 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16662
16663 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16664
16665 PR target/61443
16666 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16667 loading from address spaces.
16668
16669 2014-06-12 Martin Liska <mliska@suse.cz>
16670
16671 PR ipa/61462
16672 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16673 statement is reachable.
16674
16675 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16676
16677 * symtab.c (section_hash): New hash.
16678 (symtab_unregister_node): Clear section before freeing.
16679 (hash_section_hash_entry): New haser.
16680 (eq_sections): New function.
16681 (symtab_node::set_section_for_node): New method.
16682 (set_section_1): Update.
16683 (symtab_node::set_section): Take string instead of tree as parameter.
16684 (symtab_resolve_alias): Update.
16685 * cgraph.h (section_hash_entry_d): New structure.
16686 (section_hash_entry): New typedef.
16687 (cgraph_node): Change comdat_group_ to x_comdat_group,
16688 change section_ to x_section and turn into section_hash_entry;
16689 update accestors; put set_section_for_node offline.
16690 * tree.c (decl_section_name): Turn into string.
16691 (set_decl_section_name): Change parameter to be string.
16692 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16693 * sdbout.c (sdbout_one_type): Update.
16694 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16695 * varasm.c (IN_NAMED_SECTION, get_named_section,
16696 resolve_unique_section, hot_function_section, get_named_text_section,
16697 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16698 make_decl_rtl, default_unique_section): Update.
16699 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16700 (c6x_elf_unique_section): Update.
16701 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16702 * config/pa/pa.c (pa_function_section): Update.
16703 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16704 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16705 * config/arc/arc.c (arc_in_small_data_p): Update.
16706 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16707 * config/mcore/mcore.c (mcore_unique_section): Update.
16708 * config/mips/mips.c (mips16_build_function_stub): Update.
16709 (mips16_build_call_stub): Update.
16710 (mips_function_rodata_section): Update.
16711 (mips_in_small_data_p): Update.
16712 * config/score/score.c (score_in_small_data_p): Update.
16713 * config/rx/rx.c (rx_in_small_data): Update.
16714 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16715 (rs6000_xcoff_asm_named_section): Update.
16716 (rs6000_xcoff_unique_section): Update.
16717 * config/frv/frv.c (frv_string_begins_with): Update.
16718 (frv_in_small_data_p): Update.
16719 * config/v850/v850.c (v850_encode_data_area): Update.
16720 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16721 (bfin_handle_l1_data_attribute): Update.
16722 (bfin_handle_l2_attribute): Update.
16723 * config/mep/mep.c (mep_unique_section): Update.
16724 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16725 Update.
16726 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16727 (h8300_handle_tiny_data_attribute): Update.
16728 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16729 (m32r_in_small_data_p): Update.
16730 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16731 * config/i386/i386.c (ix86_in_large_data_p): Update.
16732 * config/i386/winnt.c (i386_pe_unique_section): Update.
16733 * config/darwin.c (darwin_function_section): Update.
16734 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16735 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16736 (new_emutls_decl): Update.
16737 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16738 input_varpool_node): Update.
16739 (ead_string_cst): Turn to ...
16740 (read_string): ... this one.
16741 * dwarf2out.c (secname_for_decl): Update.
16742 * asan.c (asan_protect_global): Update.
16743
16744 2014-06-11 DJ Delorie <dj@redhat.com>
16745
16746 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16747 cache lines.
16748 * config/rx/rx.c (rx_option_override): Likewise.
16749 (rx_align_for_label): Likewise.
16750
16751 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16752
16753 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16754
16755 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16756 prototype.
16757
16758 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16759
16760 * common.md: New file.
16761 * doc/md.texi: Update description of generic, machine-independent
16762 constraints.
16763 * config/s390/constraints.md (e): Delete.
16764 * Makefile.in (md_file): Include common.md.
16765 * config/m32c/t-m32c (md_file): Likewise.
16766 * genpreds.c (general_mem): New array.
16767 (generic_constraint_letters): Remove constraints now defined by
16768 common.md.
16769 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16770 Allow the first character to be '<' or '>' as well.
16771 * genoutput.c (general_mem): New array.
16772 (indep_constraints): Remove constraints now defined by common.md.
16773 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16774 Remove special handling of 'm'.
16775 * ira-costs.c (record_reg_classes): Remove special handling of
16776 constraints now defined by common.md.
16777 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16778 * ira-lives.c (single_reg_class): Likewise.
16779 (ira_implicitly_set_insn_hard_regs): Likewise.
16780 * lra-constraints.c (reg_class_from_constraints): Likewise.
16781 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16782 * postreload.c (reload_cse_simplify_operands): Likewise.
16783 * reload.c (push_secondary_reload, scratch_reload_class)
16784 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16785 * reload1.c (maybe_fix_stack_asms): Likewise.
16786 * targhooks.c (default_secondary_reload): Likewise.
16787 * stmt.c (parse_output_constraint): Likewise.
16788 * recog.c (preprocess_constraints): Likewise.
16789 (constrain_operands, peep2_find_free_register): Likewise.
16790 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16791 must be handled specially.
16792
16793 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16794
16795 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16796 * genpreds.c (have_const_dbl_constraints): Delete.
16797 (add_constraint): Don't set it.
16798 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16799 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16800 constraints using the lookup_constraint logic.
16801 * ira-lives.c (single_reg_class): Likewise.
16802 * ira.c (ira_setup_alts): Likewise.
16803 * lra-constraints.c (process_alt_operands): Likewise.
16804 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16805 * reload.c (find_reloads): Likewise.
16806
16807 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16808
16809 * genpreds.c (const_int_start, const_int_end): New variables.
16810 (choose_enum_order): Output CONST_INT constraints before memory
16811 constraints.
16812 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16813 Add CT_CONST_INT.
16814 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16815 * ira.c (ira_setup_alts): Likewise.
16816 * lra-constraints.c (process_alt_operands): Likewise.
16817 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16818 * reload.c (find_reloads): Likewise.
16819
16820 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16821
16822 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16823 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16824 * recog.c (preprocess_constraints): Update accordingly.
16825
16826 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16827
16828 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16829 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16830 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16831 * genpreds.c (print_type_tree): New function.
16832 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16833 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16834 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16835 Write out enum constraint_type and get_constraint_type.
16836 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16837 constraint_num rather than a constraint string.
16838 (satisfies_address_constraint_p): Likewise.
16839 (reg_class_from_constraints): Avoid old constraint macros.
16840 (process_alt_operands, process_address_1): Likewise.
16841 (curr_insn_transform): Likewise.
16842 * ira-costs.c (record_reg_classes): Likewise.
16843 (record_operand_costs): Likewise.
16844 * ira-lives.c (single_reg_class): Likewise.
16845 (ira_implicitly_set_insn_hard_regs): Likewise.
16846 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16847 * postreload.c (reload_cse_simplify_operands): Likewise.
16848 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16849 (constrain_operands, peep2_find_free_register): Likewise.
16850 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16851 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16852 * reload1.c (maybe_fix_stack_asms): Likewise.
16853 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16854 * targhooks.c (default_secondary_reload): Likewise.
16855 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16856 to EXTRA_CONSTRAINT_STR.
16857 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16858
16859 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16860
16861 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16862 (write_constraint_satisfied_p_array): ...this new function.
16863 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16864 an array.
16865 (write_insn_preds_c): Update accordingly.
16866
16867 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16868
16869 * genpreds.c (write_lookup_constraint): Rename to...
16870 (write_lookup_constraint_1): ...this.
16871 (write_lookup_constraint_array): New function.
16872 (write_tm_preds_h): Define lookup_constraint as an inline function
16873 that uses write_lookup_constraint_array where possible.
16874 (write_insn_preds_c): Update for the changes above.
16875
16876 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16877
16878 * doc/md.texi (regclass_for_constraint): Rename to...
16879 (reg_class_for_constraint): ...this.
16880 * genpreds.c (num_constraints, enum_order, register_start)
16881 (register_end, satisfied_start, memory_start, memory_end)
16882 (address_start, address_end): New variables.
16883 (add_constraint): Count the number of constraints.
16884 (choose_enum_order): New function.
16885 (write_enum_constraint_num): Iterate over enum_order.
16886 (write_regclass_for_constraint): Rename to...
16887 (write_reg_class_for_constraint_1): ...this and update output
16888 accordingly.
16889 (write_constraint_satisfied_p): Rename to...
16890 (write_constraint_satisfied_p_1): ...this and update output
16891 accordingly. Do nothing if all extra constraints are register
16892 constraints.
16893 (write_insn_extra_memory_constraint): Delete.
16894 (write_insn_extra_address_constraint): Delete.
16895 (write_range_function): New function.
16896 (write_tm_preds_h): Define constraint_satisfied_p and
16897 reg_class_for_constraint as inline functions that do a range check
16898 before calling the out-of-line function. Use write_range_function
16899 to implement insn_extra_{register,memory,address}_constraint,
16900 the first of which is new.
16901 (write_insn_preds_c): Update after above changes to write_* functions.
16902 (main): Call choose_enum_order.
16903
16904 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16905
16906 PR tree-optimization/61306
16907 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16908 expression instead of its size.
16909 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16910 false to prevent optimization when the result is unpredictable due to
16911 arithmetic right shift of signed type with highest byte is set.
16912 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16913 (init_symbolic_number): Likewise.
16914 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16915 when the result is unpredictable due to sign extension.
16916
16917 2014-06-11 Terry Guo <terry.guo@arm.com>
16918
16919 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16920 (*thumb1_addsi3): Ditto.
16921 (*thumb_subdi3): Ditto.
16922 (thumb1_subsi3_insn): Ditto.
16923 (*thumb_mulsi3): Ditto.
16924 (*thumb_mulsi3_v6): Ditto.
16925 (*thumb1_andsi3_insn): Ditto.
16926 (thumb1_bicsi3): Ditto.
16927 (*thumb1_iorsi3_insn): Ditto.
16928 (*thumb1_xorsi3_insn): Ditto.
16929 (*thumb1_ashlsi3): Ditto.
16930 (*thumb1_ashrsi3): Ditto.
16931 (*thumb1_lshrsi3): Ditto.
16932 (*thumb1_rotrsi3): Ditto.
16933 (*thumb1_negdi2): Ditto.
16934 (*thumb1_negsi2): Ditto.
16935 (*thumb1_abssi2): Ditto.
16936 (*thumb1_neg_abssi2): Ditto.
16937 (*thumb1_one_cmplsi2): Ditto.
16938 (*thumb1_zero_extendhisi2): Ditto.
16939 (*thumb1_zero_extendqisi2): Ditto.
16940 (*thumb1_zero_extendqisi2_v6): Ditto.
16941 (thumb1_extendhisi2): Ditto.
16942 (thumb1_extendqisi2): Ditto.
16943 (*thumb1_movdi_insn): Ditto.
16944 (*thumb1_movsi_insn): Ditto.
16945 (*thumb1_movhi_insn): Ditto.
16946 (thumb_movhi_clobber): Ditto.
16947 (*thumb1_movqi_insn): Ditto.
16948 (*thumb1_movhf): Ditto.
16949 (*thumb1_movsf_insn): Ditto.
16950 (*thumb_movdf_insn): Ditto.
16951 (movmem12b): Ditto.
16952 (movmem8b): Ditto.
16953 (cbranchqi4): Ditto.
16954 (cbranchsi4_insn): Ditto.
16955 (cbranchsi4_scratch): Ditto.
16956 (*negated_cbranchsi4): Ditto.
16957 (*tbit_cbranch): Ditto.
16958 (*tlobits_cbranch): Ditto.
16959 (*tstsi3_cbranch): Ditto.
16960 (*cbranchne_decr1): Ditto.
16961 (*addsi3_cbranch): Ditto.
16962 (*addsi3_cbranch_scratch): Ditto.
16963 (*thumb_cmpdi_zero): Ditto.
16964 (cstoresi_eq0_thumb1): Ditto.
16965 (cstoresi_ne0_thumb1): Ditto.
16966 (*cstoresi_eq0_thumb1_insn): Ditto.
16967 (*cstoresi_ne0_thumb1_insn): Ditto.
16968 (cstoresi_nltu_thumb1): Ditto.
16969 (cstoresi_ltu_thumb1): Ditto.
16970 (thumb1_addsi3_addgeu): Ditto.
16971 (*thumb_jump): Ditto.
16972 (*call_reg_thumb1_v5): Ditto.
16973 (*call_reg_thumb1): Ditto.
16974 (*call_value_reg_thumb1_v5): Ditto.
16975 (*call_value_reg_thumb1): Ditto.
16976 (*call_insn): Ditto.
16977 (*call_value_insn): Ditto.
16978 (thumb1_casesi_internal_pic): Ditto.
16979 (thumb1_casesi_dispatch): Ditto.
16980 (*thumb1_indirect_jump): Ditto.
16981 (prologue_thumb1_interwork): Ditto.
16982 (*epilogue_insns): Ditto.
16983 (consttable_1): Ditto.
16984 (consttable_2): Ditto.
16985 (tablejump): Ditto.
16986 (*thumb1_tablejump): Ditto.
16987 (thumb_eh_return): Ditto.
16988 (define_peephole2): Two of them are thumb1 only and got moved into
16989 new file thumb1.md.
16990 (define_split): Six of them are thumb1 only and got moved into new
16991 file thumb1.md.
16992 * config/arm/thumb1.md: New file comprised of above thumb1 only
16993 patterns.
16994
16995 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16996
16997 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16998 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16999 dependencies.
17000 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
17001 (aarch64_crc_builtin_datum): New struct.
17002 (aarch64_crc_builtin_data): New.
17003 (aarch64_init_crc32_builtins): New function.
17004 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
17005 (aarch64_crc32_expand_builtin): New.
17006 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
17007 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17008 __ARM_FEATURE_CRC32 when appropriate.
17009 (TARGET_CRC32): Define.
17010 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
17011 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
17012 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
17013 (aarch64_<crc_variant>): New pattern.
17014 * config/aarch64/arm_acle.h: New file.
17015 * config/aarch64/iterators.md (CRC): New int iterator.
17016 (crc_variant, crc_mode): New int attributes.
17017 * doc/aarch64-acle-intrinsics.texi: New file.
17018 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
17019 Include aarch64-acle-intrinsics.texi.
17020
17021 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
17022
17023 * tree-vect-data-refs.c (vect_grouped_store_supported): New
17024 check for stores group of length 3.
17025 (vect_permute_store_chain): New permutations for stores group of
17026 length 3.
17027 * tree-vect-stmts.c (vect_model_store_cost): Change cost
17028 of vec_perm_shuffle for the new permutations.
17029
17030 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
17031
17032 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
17033 table rewriting temporarily on targets not supporting ONE_ONLY.
17034
17035 2014-06-11 Richard Biener <rguenther@suse.de>
17036
17037 PR middle-end/61437
17038 Revert
17039 2014-06-04 Richard Biener <rguenther@suse.de>
17040
17041 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17042 TREE_PUBLIC and DECL_EXTERNAL decls.
17043
17044 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
17045
17046 * varasm.c (set_implicit_section): New function.
17047 (resolve_unique_section): Use it to set implicit section
17048 for aliases, too.
17049 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
17050 (default_function_section): Likewise.
17051 (decl_binds_to_current_def_p): Constify argument.
17052 * varasm.h (decl_binds_to_current_def_p): Update prototype.
17053 * asan.c (asan_protect_global): Use
17054 symtab_get_node (decl)->implicit_section.
17055 * symtab.c (dump_symtab_base): Dump implicit sections.
17056 (verify_symtab_base): Verify sanity of sectoins and comdats.
17057 (symtab_resolve_alias): Alias share the section of its target.
17058 (set_section_1): New function.
17059 (symtab_node::set_section): Move here, recurse to aliases.
17060 (verify_symtab): Check for duplicated symtab lists.
17061 * tree-core.h (implicit_section_name_p): Remove.
17062 * tree-vect-data-refs.c: Include varasm.h.
17063 (vect_can_force_dr_alignment_p): Fix conditional on when
17064 decl bints to current definition; use
17065 symtab_get_node (decl)->implicit_section.
17066 * cgraph.c (cgraph_make_node_local_1): Fix section set.
17067 * cgraph.h (struct symtab_node): Add implicit_section.
17068 (set_section): Rename to ...
17069 (set_section_for_node): ... this one.
17070 (set_section): Declare.
17071 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
17072 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17073 input_overwrite_node, input_varpool_node): Stream implicit_section.
17074 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
17075 removal; it will fail in LTO.
17076
17077 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17078
17079 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
17080 Change second alternative type to f_mcr.
17081 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
17082 and 12th alternatives' types to f_mcr and f_mrc.
17083 (*movdi_aarch64): Same for 12th and 13th alternatives.
17084 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
17085 (aarch64_movtilow_tilow): Change type to fmov.
17086
17087 2014-06-10 Jiong Wang <jiong.wang@arm.com>
17088
17089 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
17090 (aarch64_save_or_restore_callee_save_registers): Fix layout.
17091
17092 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17093
17094 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
17095 New expander.
17096 (aarch64_sqrdmulh_lane<mode>): Likewise.
17097 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17098 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17099 (aarch64_sqdmulh_laneq<mode>): New expander.
17100 (aarch64_sqrdmulh_laneq<mode>): Likewise.
17101 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
17102 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
17103 (aarch64_sqdmulh_lane<mode>): New expander.
17104 (aarch64_sqrdmulh_lane<mode>): Likewise.
17105 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17106 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17107 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
17108 (aarch64_sqdmlal_laneq<mode>): Likewise.
17109 (aarch64_sqdmlsl_lane<mode>): Likewise.
17110 (aarch64_sqdmlsl_laneq<mode>): Likewise.
17111 (aarch64_sqdmlal2_lane<mode>): Likewise.
17112 (aarch64_sqdmlal2_laneq<mode>): Likewise.
17113 (aarch64_sqdmlsl2_lane<mode>): Likewise.
17114 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17115 (aarch64_sqdmull_lane<mode>): Likewise.
17116 (aarch64_sqdmull_laneq<mode>): Likewise.
17117 (aarch64_sqdmull2_lane<mode>): Likewise.
17118 (aarch64_sqdmull2_laneq<mode>): Likewise.
17119
17120 2014-06-10 Richard Biener <rguenther@suse.de>
17121
17122 PR tree-optimization/61438
17123 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
17124 (eliminate_dom_walker::before_dom_children): Only try to inhibit
17125 insertion of IVs if running PRE.
17126 (eliminate): Adjust.
17127 (pass_pre::execute): Likewise.
17128 (pass_fre::execute): Likewise.
17129
17130 2014-06-10 Richard Biener <rguenther@suse.de>
17131
17132 PR middle-end/61456
17133 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17134 Do not use the main variant for the type comparison.
17135 (ncr_compar): Likewise.
17136 (nonoverlapping_component_refs_p): Likewise.
17137
17138 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
17139
17140 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
17141 REG_CFA_RESTORE mode.
17142
17143 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
17144
17145 * config/i386/i386.c (expand_vec_perm_pblendv): New.
17146 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
17147 expand_vec_perm_pblendv.
17148
17149 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17150
17151 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
17152 available.
17153 Simplify description of __crc32d and __crc32cd intrinsics.
17154 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
17155 availability.
17156
17157 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
17158
17159 PR lto/61334
17160 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
17161 * config.in: Regenerate.
17162 * configure: Likewise.
17163
17164 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
17165
17166 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
17167 and public vars.
17168 (intersect_static_var_sets): Remove.
17169 (propagate): Do not prune local statics.
17170
17171 2014-06-10 Jakub Jelinek <jakub@redhat.com>
17172
17173 PR fortran/60928
17174 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
17175 Set lastprivate_firstprivate even if omp_private_outer_ref
17176 langhook returns true.
17177 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
17178 langhook, call unshare_expr on new_var and call
17179 build_outer_var_ref to get the last argument.
17180
17181 2014-06-10 Marek Polacek <polacek@redhat.com>
17182
17183 PR c/60988
17184 * doc/extend.texi: Add cindex for transparent_union.
17185
17186 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
17187
17188 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
17189 init_symbolic_number ().
17190
17191 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
17192
17193 PR middle-end/61141
17194 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
17195 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
17196 (verify_rtl_sharing): Likewise.
17197
17198 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
17199
17200 PR c++/54442
17201 * tree.c (build_qualified_type): Use a canonical type for
17202 TYPE_CANONICAL.
17203
17204 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17205
17206 * config/arm/arm-modes.def: Remove XFmode.
17207
17208 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
17209
17210 PR target/61062
17211 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
17212 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
17213 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
17214 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
17215 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
17216 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
17217 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
17218 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
17219 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
17220
17221 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
17222
17223 * tree-core.h (tree_decl_with_vis): Remove section_name.
17224
17225 2014-06-09 Kito Cheng <kito@0xlab.org>
17226
17227 * ira.c (ira): Don't call init_caller_save if LRA enabled
17228 since LRA use its own infrastructure to handle that.
17229
17230 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17231
17232 * symtab.c (dump_symtab_base): Update dumping.
17233 (symtab_make_decl_local): Clear only DECL_COMDAT.
17234 * tree-vect-data-refs.c (Check that variable is static before
17235 tampering with sections.
17236 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
17237 (cgraph_create_virtual_clone): Likewise.
17238 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
17239 (decl_section_name, set_decl_section_name): New accessors.
17240 (find_decls_types_r): Do not walk section name
17241 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
17242 (decl_comdat_group, decl_comdat_group_id): Constify.
17243 (decl_section_name, set_decl_section_name): Update.
17244 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
17245 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
17246 (cgraph_make_node_local_1): Clear section and comdat group.
17247 * cgraph.h (set_comdat_group): Sanity check.
17248 (get_section, set_section): New.
17249 * ipa-comdats.c (ipa_comdats): Use get_section.
17250 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
17251 * lto-streamer-out.c: Do not follow section names.
17252 * c-family/c-common.c (handle_section_attribute): Update.
17253 * lto-cgraph.c (lto_output_node): Output section.
17254 (lto_output_varpool_node): Likewise.
17255 (read_comdat_group): Rename to ...
17256 (read_identifier): ... this one.
17257 (read_string_cst): New function.
17258 (input_node, input_varpool_node): Input section names.
17259 * tree-emutls.c (get_emutls_init_templ_addr): Update.
17260 (new_emutls_decl): Update.
17261 (secname_for_decl): Check section names only of static vars.
17262 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
17263 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
17264 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17265 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17266 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
17267 * config/mcore/mcore.c (mcore_unique_section): Likewise.
17268 * config/mips/mips.c (mips16_build_function_stub): Likewise.
17269 * config/v850/v850.c (v850_insert_attributes): Likewise.
17270 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
17271 Likewise.
17272 (h8300_handle_tiny_data_attribute): Likewise.
17273 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
17274 (bfin_handle_l2_attribute): Likewise.
17275
17276 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17277
17278 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
17279 remove static initializer.
17280
17281 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17282
17283 * varasm.c (use_blocks_for_decl_p): Check symbol table
17284 instead of alias attribute.
17285 (place_block_symbol): Recurse on aliases.
17286
17287 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17288
17289 * ipa-visibility.c: Include varasm.h
17290 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
17291
17292 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17293
17294 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
17295 outputting aliases.
17296
17297 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
17298
17299 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
17300 from test_insn into GGC space escape via SET_SRC.
17301
17302 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
17303
17304 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
17305 call statement, if any.
17306 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
17307 statements, if any. Tidy up.
17308
17309 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17310
17311 PR target/61431
17312 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
17313 iterators, VSX_D that handles 64-bit types, and VSX_LE that
17314 handles swapping the two 64-bit double words on little endian
17315 systems. Include V1TImode and optionally TImode in VSX_LE so that
17316 these types are properly swapped. Change all of the insns and
17317 splits that do the 64-bit swaps to use VSX_LE.
17318 (vsx_le_perm_load_<mode>): Likewise.
17319 (vsx_le_perm_store_<mode>): Likewise.
17320 (splitters for little endian memory operations): Likewise.
17321 (vsx_xxpermdi2_le_<mode>): Likewise.
17322 (vsx_lxvd2x2_le_<mode>): Likewise.
17323 (vsx_stxvd2x2_le_<mode>): Likewise.
17324
17325 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
17326
17327 PR target/61423
17328 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
17329 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17330 and corresponding splitters. Zero extend general register
17331 or memory input operand to XMM temporary. Enable for
17332 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17333 (floatunssi<mode>2): Update expander predicate.
17334
17335 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
17336
17337 PR rtl-optimization/61325
17338 * lra-constraints.c (process_address_1): Check scale equal to one
17339 to prevent transformation: base + scale * index => base + new_reg.
17340
17341 2014-06-06 Richard Biener <rguenther@suse.de>
17342
17343 PR tree-optimization/59299
17344 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17345 a def operand.
17346 (nearest_common_dominator_of_uses): Likewise.
17347 (statement_sink_location): Adjust. Support sinking loads.
17348
17349 2014-06-06 Martin Jambor <mjambor@suse.cz>
17350
17351 * ipa-prop.c (get_place_in_agg_contents_list): New function.
17352 (build_agg_jump_func_from_list): Likewise.
17353 (determine_known_aggregate_parts): Renamed to
17354 determine_locally_known_aggregate_parts. Moved some functionality
17355 to the two functions above, removed bound checks.
17356
17357 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
17358
17359 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17360 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17361 (aarch64_progress_pointer): Likewise.
17362 (aarch64_copy_one_part_and_move_pointers): Likewise.
17363 (aarch64_expand_movmen): Likewise.
17364 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17365 * config/aarch64/aarch64.md (movmem<mode>): New.
17366
17367 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
17368
17369 * targhooks.c (default_add_stmt_cost): Call target specific
17370 hook instead of default one.
17371
17372 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
17373
17374 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17375 endianness instead of host endianness.
17376 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17377 comments.
17378
17379 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17380
17381 PR debug/53927
17382 * function.c (instantiate_decls): Process the saved static chain.
17383 (expand_function_start): If not optimizing, save the static chain
17384 onto the stack.
17385 * tree-nested.c (convert_all_function_calls): Always create the static
17386 chain for nested functions if not optimizing.
17387
17388 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17389
17390 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17391
17392 2014-06-06 Richard Biener <rguenther@suse.de>
17393
17394 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17395 (construct_init_block): Likewise.
17396 (construct_exit_block): Likewise.
17397 (pass_expand::execute): Likewise.
17398 * graphite.c (graphite_transforms): Replace check for current_loops
17399 with a check for > 1 loops.
17400 (pass_graphite_transforms::execute): Adjust.
17401 * ipa-split.c (split_function): Remove check for current_loops.
17402 * omp-low.c (expand_parallel_call): Likewise.
17403 (expand_omp_for_init_counts): Likewise.
17404 (extract_omp_for_update_vars): Likewise.
17405 (expand_omp_for_generic): Likewise.
17406 (expand_omp_sections): Likewise.
17407 (expand_omp_target): Likewise.
17408 * tracer.c (tail_duplicate): Likewise.
17409 (pass_tracer::execute): Likewise.
17410 * trans-mem.c (expand_transaction): Likewise.
17411 * tree-complex.c (expand_complex_div_wide): Likewise.
17412 * tree-eh.c (lower_resx): Likewise.
17413 (cleanup_empty_eh_merge_phis): Likewise.
17414 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17415 current_loops with a check for > 1 loops.
17416 (pass_predcom::execute): Adjust.
17417 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17418 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17419 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17420 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17421 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17422 * tree-switch-conversion.c (process_switch): Likewise.
17423 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17424 * tree-vrp.c (vrp_visit_phi_node): Likewise.
17425 (execute_vrp): Likewise.
17426 * ubsan.c (ubsan_expand_null_ifn): Likewise.
17427
17428 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17429
17430 * rtl.h (insn_location): Declare.
17431 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17432 with UNKNOWN_LOCATION.
17433 * emit-rtl.c (insn_location): New function.
17434 * final.c (notice_source_line): Check that the instruction has a
17435 location before retrieving it and use insn_location.
17436 * modulo-sched.c (loop_single_full_bb_p): Likewise.
17437 * print-rtl.c (print_rtx): Likewise.
17438
17439 2014-06-06 Richard Biener <rguenther@suse.de>
17440
17441 * passes.def: Move 2nd VRP pass before phi-only-cprop.
17442
17443 2014-06-06 Christian Bruel <christian.bruel@st.com>
17444
17445 PR tree-optimization/43934
17446 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17447 cost.
17448
17449 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
17450
17451 * ira-lives.c (single_reg_class): Add missing break. Explicitly
17452 return NO_REGS for extra address and memory constraints. Handle
17453 operands that match (or are equivalent to something that matches)
17454 extra constant constraints. Ignore other non-register operands.
17455
17456 2014-06-06 Alan Modra <amodra@gmail.com>
17457
17458 PR target/61300
17459 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17460 * doc/tm.texi: Regenerate.
17461 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17462 Use throughout in place of REG_PARM_STACK_SPACE.
17463 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17464 "incoming" param. Pass to rs6000_function_parms_need_stack.
17465 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17466 prototype_p when incoming. Use function decl when incoming
17467 to handle K&R style functions.
17468 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17469 (INCOMING_REG_PARM_STACK_SPACE): Define.
17470
17471 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17472
17473 PR target/52472
17474 * cfgexpand.c (expand_debug_expr): Use address space of nested
17475 TREE_TYPE for ADDR_EXPR and MEM_REF.
17476
17477 2014-06-05 Jeff Law <law@redhat.com>
17478
17479 PR tree-optimization/61289
17480 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17481 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
17482 looking for those which match LHS. All callers changed.
17483 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17484 parameters and code which manipulated them. All callers changed.
17485 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17486 and DST_MAP parameters. Simplify invalidation code by just calling
17487 invalidate_equivalences. All callers changed.
17488 (thread_across_edge): Simplify now that we don't need to maintain
17489 the map of equivalences to invalidate.
17490
17491 2014-06-05 Kai Tietz <ktietz@redhat.com>
17492 Richard Henderson <rth@redhat.com>
17493
17494 PR target/46219
17495 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17496 checking for !TARGET_X32.
17497 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17498 (sibcall_intern): New define_insn, plus required peepholes.
17499 (sibcall_pop_intern): Likewise.
17500 (sibcall_value_intern): Likewise.
17501 (sibcall_value_pop_intern): Likewise.
17502
17503 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
17504
17505 * tree-inline.c (tree_function_versioning): Check DF info existence
17506 before accessing it.
17507
17508 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17509
17510 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17511 frame_size.
17512 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17513 aarch64_frame hard_fp_offset and frame_size.
17514 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17515 frame_size; remove original_frame_size.
17516 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17517 (aarch64_initial_elimination_offset): Remove frame_size and
17518 offset. Use aarch64_frame frame_size.
17519
17520 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17521 Jiong Wang <jiong.wang@arm.com>
17522 Renlin <renlin.li@arm.com>
17523
17524 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17525 initialization of R30 offset. Update offset. Iterate core
17526 regisers upto X30. Remove X29, X30 specific code.
17527
17528 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17529 Jiong Wang <jiong.wang@arm.com>
17530
17531 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17532 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17533 (aarch64_register_saved_on_entry): Adjust test.
17534
17535 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17536
17537 * config/aarch64/aarch64.h (machine_function): Move
17538 saved_varargs_size from here...
17539 (aarch64_frame): ... to here.
17540
17541 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17542 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17543 (aarch64_initial_elimination_offset)
17544 (aarch64_setup_incoming_varargs): Adjust location of
17545 saved_varargs_size.
17546
17547 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17548
17549 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17550 layout comment.
17551
17552 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17553 Prachi Godbole <Prachi.Godbole@imgtec.com>
17554
17555 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17556 mips32r5 entry to use PROCESSOR_P5600.
17557 * config/mips/mips-tables.opt: Regenerate.
17558 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17559 * config/mips/mips.c (mips_fmadd_bypass): New function.
17560 (mips_rtx_cost_data): Add costs for p5600.
17561 (mips_issue_rate): Add support for p5600.
17562 (mips_multipass_dfa_lookahead): Likewise.
17563 * config/mips/mips.h (TUNE_P5600): New define.
17564 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17565 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17566 * config/mips/mips.md: Include p5600.md.
17567 (processor): Add p5600.
17568 * config/mips/p5600.md: New file.
17569
17570 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17571
17572 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17573 * config/i386/predicates.md (palignr_operand): New.
17574 Indicates if permutation is suitable for palignr instruction.
17575
17576 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17577
17578 PR tree-optimization/61319
17579 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17580 stmt belongs to loop.
17581
17582 2014-06-05 Richard Biener <rguenther@suse.de>
17583
17584 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17585 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17586 (lookup_tmp_var): Adjust.
17587 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17588
17589 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17590
17591 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17592
17593 2014-06-05 Marek Polacek <polacek@redhat.com>
17594
17595 PR c/49706
17596 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17597
17598 2014-06-04 Tom de Vries <tom@codesourcery.com>
17599
17600 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17601 CONST_INT.
17602
17603 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17604
17605 PR tree-optimization/61385
17606 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17607
17608 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17609
17610 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17611 changed to use fatal_error.
17612 (main): Ensure lto_wrapper_cleanup is run atexit.
17613
17614 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17615
17616 * lra-constraints.c (valid_address_p): Move earlier in file.
17617 (address_eliminator): New structure.
17618 (satisfies_memory_constraint_p): New function.
17619 (satisfies_address_constraint_p): Likewise.
17620 (process_alt_operands, process_address, curr_insn_transform): Use them.
17621
17622 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17623
17624 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17625 const pointer.
17626 (target_lra_int, default_target_lra_int, this_target_lra_int)
17627 (op_alt_data): Delete.
17628 * lra.h (lra_init): Delete.
17629 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17630 (init_insn_code_data_once): Remove op_alt_data handling.
17631 (finish_insn_code_data_once): Likewise.
17632 (init_op_alt_data): Delete.
17633 (get_static_insn_data): Initialize operand_alternative to null.
17634 (free_insn_recog_data): Cast operand_alternative before freeing it.
17635 (setup_operand_alternative): Take the operand_alternative as
17636 parameter and assume it isn't already cached in the static
17637 insn data.
17638 (lra_set_insn_recog_data): Update accordingly.
17639 (lra_init): Delete.
17640 * ira.c (ira_init): Don't call lra_init.
17641 * target-globals.h (this_target_lra_int): Declare.
17642 (target_globals): Remove lra_int.
17643 (restore_target_globals): Update accordingly.
17644 * target-globals.c: Don't include lra-int.h.
17645 (default_target_globals, save_target_globals): Remove lra_int.
17646
17647 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17648
17649 * recog.h (operand_alternative): Convert reg_class, reject,
17650 matched and matches into bitfields.
17651 (preprocess_constraints): New overload.
17652 (preprocess_insn_constraints): New function.
17653 (preprocess_constraints): Take the insn as parameter.
17654 (recog_op_alt): Change into a pointer.
17655 (target_recog): Add x_op_alt.
17656 * recog.c (asm_op_alt): New variable.
17657 (recog_op_alt): Change into a pointer.
17658 (preprocess_constraints): New overload, replacing the old function
17659 definition with one that doesn't use global state.
17660 (preprocess_insn_constraints): New function.
17661 (preprocess_constraints): Use them. Take the insn as parameter.
17662 Use asm_op_alt for asms.
17663 (recog_init): Free existing x_op_alt entries.
17664 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17665 pointer const.
17666 (make_early_clobber_and_input_conflicts): Likewise.
17667 (process_bb_node_lives): Pass the insn to process_constraints.
17668 * reg-stack.c (check_asm_stack_operands): Likewise.
17669 (subst_asm_stack_regs): Likewise.
17670 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17671 * regrename.c (build_def_use): Likewise.
17672 * sched-deps.c (sched_analyze_insn): Likewise.
17673 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17674 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17675 (note_invalid_constants): Likewise.
17676 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17677 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17678 const.
17679
17680 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17681
17682 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17683 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17684 alternatives.
17685 (make_early_clobber_and_input_conflicts): Likewise.
17686 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17687
17688 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17689
17690 * recog.h (alternative_class): New function.
17691 (which_op_alt): Return a const recog_op_alt.
17692 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17693 (subst_asm_stack_regs): Likewise.
17694 * config/arm/arm.c (note_invalid_constants): Likewise.
17695 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17696 the operand_alternative; use alternative class instead.
17697 * sel-sched.c (get_reg_class): Likewise.
17698 * regrename.c (build_def_use): Likewise.
17699 (hide_operands, restore_operands, record_out_operands): Update type
17700 accordingly.
17701
17702 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17703
17704 * recog.h (recog_op_alt): Convert to a flat array.
17705 (which_op_alt): New function.
17706 * recog.c (recog_op_alt): Convert to a flat array.
17707 (preprocess_constraints): Update accordingly, grouping all
17708 operands of the same alternative together, rather than the
17709 other way around.
17710 * ira-lives.c (check_and_make_def_conflict): Likewise.
17711 (make_early_clobber_and_input_conflicts): Likewise.
17712 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17713 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17714 (subst_asm_stack_regs): Likewise.
17715 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17716 * regrename.c (hide_operands, record_out_operands): Likewise.
17717 (build_def_use): Likewise.
17718 * sel-sched.c (get_reg_class): Likewise.
17719 * config/arm/arm.c (note_invalid_constants): Likewise.
17720
17721 2014-06-04 Jason Merrill <jason@redhat.com>
17722
17723 PR c++/51253
17724 PR c++/61382
17725 * gimplify.c (gimplify_arg): Non-static.
17726 * gimplify.h: Declare it.
17727
17728 2014-06-04 Richard Biener <rguenther@suse.de>
17729
17730 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17731 TREE_PUBLIC and DECL_EXTERNAL decls.
17732
17733 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17734
17735 * regcprop.c (copyprop_hardreg_forward_1): Account for
17736 HARD_REGNO_CALL_PART_CLOBBERED.
17737
17738 2014-06-04 Richard Biener <rguenther@suse.de>
17739
17740 * configure.ac: Check whether the underlying type of int64_t
17741 is long or long long.
17742 * configure: Regenerate.
17743 * config.in: Likewise.
17744 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17745 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17746
17747 2014-06-04 Richard Biener <rguenther@suse.de>
17748
17749 PR tree-optimization/60098
17750 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17751 we hit a kill.
17752 (dse_optimize_stmt): Simplify, now that we found a kill
17753 earlier.
17754
17755 2014-06-04 Richard Biener <rguenther@suse.de>
17756
17757 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17758 of accesses with non-invariant address.
17759
17760 2014-06-04 Martin Liska <mliska@suse.cz>
17761
17762 * cgraph.h (cgraph_make_wrapper): New function introduced.
17763 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17764 * ipa-inline.h (inline_analyze_function): The function is global.
17765 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17766
17767 2014-06-04 Martin Liska <mliska@suse.cz>
17768
17769 * tree.h (private_lookup_attribute_starting): New function.
17770 (lookup_attribute_starting): Likewise.
17771 * tree.c (private_lookup_attribute_starting): Likewise.
17772
17773 2014-06-04 Martin Liska <mliska@suse.cz>
17774
17775 * cgraph.h (expand_thunk): New argument added.
17776 (address_taken_from_non_vtable_p): New global function.
17777 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17778 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17779 * cgraphunit.c (analyze_function): Likewise.
17780 (assemble_thunks_and_aliases): Argument added to call.
17781 (expand_thunk): New argument forces to produce GIMPLE thunk.
17782
17783 2014-06-04 Martin Liska <mliska@suse.cz>
17784
17785 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17786 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17787 * profile.c (branch_prob): Likewise.
17788
17789 2014-06-04 Martin Jambor <mjambor@suse.cz>
17790
17791 PR ipa/61340
17792 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17793 handler for switch on an ipa_ref_use enum.
17794 * ipa-reference.c (analyze_function): Likewise.
17795
17796 2014-06-04 Kai Tietz <ktietz@redhat.com>
17797
17798 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17799 from old call-instruction.
17800
17801 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17802
17803 * config/aarch64/aarch64.c (aarch64_classify_address)
17804 (aarch64_legitimize_reload_address): Support full addressing modes
17805 for vector modes.
17806 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17807 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17808
17809 2014-06-03 Andrew Pinski <apinski@cavium.com>
17810
17811 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17812 for OP0.
17813
17814 2014-06-03 Andrew Pinski <apinski@cavium.com>
17815
17816 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17817 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17818
17819 2014-06-03 Kai Tietz <ktietz@redhat.com>
17820
17821 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17822 for 64-bit ms-abi.
17823
17824 2014-06-03 Dehao Chen <dehao@google.com>
17825
17826 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17827 the same loop.
17828
17829 2014-06-03 Marek Polacek <polacek@redhat.com>
17830
17831 PR c/60439
17832 * doc/invoke.texi: Document -Wswitch-bool.
17833 * function.c (stack_protect_epilogue): Cast controlling expression of
17834 the switch to int.
17835 * gengtype.c (walk_type): Generate switch expression with its
17836 controlling expression cast to int.
17837
17838 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17839
17840 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17841 and attiny841.
17842 * config/avr/avr-tables.opt: Regenerate.
17843 * config/avr/t-multilib: Regenerate.
17844 * doc/avr-mmcu.texi: Regenerate.
17845
17846 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17847 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17848
17849 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17850 (ata6617c, ata664251): Add new avr35 devices.
17851 (ata6612c): Add new avr4 device.
17852 (ata6613c, ata6614q): Add new avr5 devices.
17853 * config/avr/avr-tables.opt: Regenerate.
17854 * config/avr/t-multilib: Regenerate.
17855 * doc/avr-mmcu.texi: Regenerate.
17856
17857 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17858
17859 * gcc/config/aarch64/aarch64-builtins.c
17860 (aarch64_types_binop_ssu_qualifiers): New static data.
17861 (TYPES_BINOP_SSU): Define.
17862 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17863 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17864 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17865 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17866 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17867 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17868 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17869 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17870 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17871 suffix to builtin function name, remove cast.
17872 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17873 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17874 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17875
17876 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17877
17878 * gcc/config/aarch64/aarch64-builtins.c
17879 (aarch64_types_binop_uus_qualifiers,
17880 aarch64_types_shift_to_unsigned_qualifiers,
17881 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17882 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17883 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17884 sqshlu_n, uqshl_n): Update qualifiers.
17885 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17886 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17887 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17888 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17889 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17890 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17891 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17892 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17893 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17894 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17895 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17896 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17897 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17898 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17899 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17900 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17901 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17902 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17903 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17904 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17905 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17906 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17907 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17908 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17909 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17910 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17911 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17912
17913 2014-06-03 Teresa Johnson <tejohnson@google.com>
17914
17915 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17916
17917 2014-06-02 Jason Merrill <jason@redhat.com>
17918
17919 PR c++/61020
17920 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17921
17922 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17923
17924 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17925 location == 0.
17926
17927 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17928
17929 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17930 New pattern.
17931 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17932 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17933 * config/aarch64/iterators.md (REVERSE): New iterator.
17934 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17935 (rev_op): New int_attribute.
17936 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17937 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17938 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17939 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17940 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17941 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17942 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17943 Replace temporary __asm__ with __builtin_shuffle.
17944
17945 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17946
17947 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17948 mips64r5.
17949 * config/mips/mips-tables.opt: Regenerate.
17950 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17951 to use mips_isa_rev rather than ISA_MIPS32R2.
17952 * config/mips/mips.h (ISA_MIPS32R3): New define.
17953 (ISA_MIPS32R5): New define.
17954 (ISA_MIPS64R3): New define.
17955 (ISA_MIPS64R5): New define.
17956 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17957 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17958 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17959 and mips64r5.
17960 (MIPS_ISA_SYNCI_SPEC): Likewise.
17961 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17962 (LINK_SPEC): Added mips32r3 and mips32r5.
17963 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17964 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17965 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17966 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17967 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17968 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17969 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17970
17971 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17972
17973 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17974 options.
17975 * config/mips/mips.opt (mxpa): New option.
17976 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17977 assembler.
17978
17979 2014-06-03 Martin Jambor <mjambor@suse.cz>
17980
17981 PR ipa/61160
17982 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17983 thunks.
17984
17985 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17986
17987 PR tree-optimization/61328
17988 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17989 initialization from find_bswap_or_nop_1.
17990 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17991 in source_expr2 before using the size value the function sets. Also
17992 make use of init_symbolic_number () in both the old place and
17993 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17994 doing recursion in the GIMPLE_BINARY_RHS case.
17995
17996 2014-06-03 Richard Biener <rguenther@suse.de>
17997
17998 PR tree-optimization/61383
17999 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
18000 stmts can't trap.
18001
18002 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
18003
18004 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
18005 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
18006 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
18007 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
18008 in this file.
18009 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
18010 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
18011 * system.h: ...here and make it unconditional.
18012 * target.def (conditional_register_usage): Mention
18013 define_register_constraint instead of old-style constraint macros.
18014 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
18015 * doc/tm.texi: Regenerate.
18016 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
18017 protected by !USE_MD_CONSTRAINTS.
18018 * config/frv/frv.md: Remove quote from old version of documentation.
18019 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
18020 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
18021 CONST_DOUBLE_OK_FOR_LETTER.
18022 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
18023
18024 2014-06-02 Andrew Pinski <apinski@cavium.com>
18025
18026 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
18027 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
18028 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
18029 file whose name depends on -mabi= and -mbig-endian.
18030 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
18031 Handle LP64 better and handle ilp32 too.
18032 (MULTILIB_OPTIONS): Delete.
18033 (MULTILIB_DIRNAMES): Delete.
18034
18035 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
18036
18037 * expr.h: Remove prototypes of functions defined in builtins.c.
18038 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
18039 Remove prototypes of functions defined in builtins.c.
18040 * builtins.h: Update prototype list to include all exported functions.
18041 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
18042 no_c99_libc_has_function): Move to targhooks.c
18043 (build_string_literal, build_call_expr_loc_array,
18044 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
18045 to tree.c.
18046 (expand_builtin_object_size, fold_builtin_object_size): Make static.
18047 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
18048 no_c99_libc_has_function): Relocate from builtins.c.
18049 * tree.c: Include builtins.h.
18050 (build_call_expr_loc_array, build_call_expr_loc_vec,
18051 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
18052 from builtins.c.
18053 * fold-const.h (fold_fma): Move prototype to builtins.h.
18054 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
18055 * asan.c: Include builtins.h.
18056 * cfgexpand.c: Likewise.
18057 * convert.c: Likewise.
18058 * emit-rtl.c: Likewise.
18059 * except.c: Likewise.
18060 * expr.c: Likewise.
18061 * fold-const.c: Likewise.
18062 * gimple-fold.c: Likewise.
18063 * gimple-ssa-strength-reduction.c: Likewise.
18064 * gimplify.c: Likewise.
18065 * ipa-inline.c: Likewise.
18066 * ipa-prop.c: Likewise.
18067 * lto-streamer-out.c: Likewise.
18068 * stmt.c: Likewise.
18069 * tree-inline.c: Likewise.
18070 * tree-object-size.c: Likewise.
18071 * tree-sra.c: Likewise.
18072 * tree-ssa-ccp.c: Likewise.
18073 * tree-ssa-forwprop.c: Likewise.
18074 * tree-ssa-loop-ivcanon.c: Likewise.
18075 * tree-ssa-loop-ivopts.c: Likewise.
18076 * tree-ssa-math-opts.c: Likewise.
18077 * tree-ssa-reassoc.c: Likewise.
18078 * tree-ssa-threadedge.c: Likewise.
18079 * tree-streamer-in.c: Likewise.
18080 * tree-vect-data-refs.c: Likewise.
18081 * tree-vect-patterns.c: Likewise.
18082 * tree-vect-stmts.c: Likewise.
18083 * config/aarch64/aarch64.c: Likewise.
18084 * config/alpha/alpha.c: Likewise.
18085 * config/arc/arc.c: Likewise.
18086 * config/arm/arm.c: Likewise.
18087 * config/avr/avr.c: Likewise.
18088 * config/bfin/bfin.c: Likewise.
18089 * config/c6x/c6x.c: Likewise.
18090 * config/cr16/cr16.c: Likewise.
18091 * config/cris/cris.c: Likewise.
18092 * config/epiphany/epiphany.c: Likewise.
18093 * config/fr30/fr30.c: Likewise.
18094 * config/frv/frv.c: Likewise.
18095 * config/h8300/h8300.c: Likewise.
18096 * config/i386/i386.c: Likewise.
18097 * config/i386/winnt.c: Likewise.
18098 * config/ia64/ia64.c: Likewise.
18099 * config/iq2000/iq2000.c: Likewise.
18100 * config/lm32/lm32.c: Likewise.
18101 * config/m32c/m32c.c: Likewise.
18102 * config/m32r/m32r.c: Likewise.
18103 * config/m68k/m68k.c: Likewise.
18104 * config/mcore/mcore.c: Likewise.
18105 * config/mep/mep.c: Likewise.
18106 * config/microblaze/microblaze.c: Likewise.
18107 * config/mips/mips.c: Likewise.
18108 * config/mmix/mmix.c: Likewise.
18109 * config/mn10300/mn10300.c: Likewise.
18110 * config/moxie/moxie.c: Likewise.
18111 * config/msp430/msp430.c: Likewise.
18112 * config/nds32/nds32.c: Likewise.
18113 * config/pa/pa.c: Likewise.
18114 * config/pdp11/pdp11.c: Likewise.
18115 * config/picochip/picochip.c: Likewise.
18116 * config/rl78/rl78.c: Likewise.
18117 * config/rs6000/rs6000.c: Likewise.
18118 * config/rx/rx.c: Likewise.
18119 * config/s390/s390.c: Likewise.
18120 * config/score/score.c: Likewise.
18121 * config/sh/sh.c: Likewise.
18122 * config/sparc/sparc.c: Likewise.
18123 * config/spu/spu.c: Likewise.
18124 * config/stormy16/stormy16.c: Likewise.
18125 * config/tilegx/tilegx.c: Likewise.
18126 * config/tilepro/tilepro.c: Likewise.
18127 * config/v850/v850.c: Likewise.
18128 * config/vax/vax.c: Likewise.
18129 * config/xtensa/xtensa.c: Likewise.
18130
18131 2014-06-02 Jeff Law <law@redhat.com>
18132
18133 PR rtl-optimization/61094
18134 * ree.c (combine_reaching_defs): Do not reextend an insn if it
18135 was marked as do_no_reextend. If a copy is needed to eliminate
18136 an extension, then mark it as do_not_reextend.
18137
18138 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
18139
18140 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
18141
18142 2014-06-02 Richard Henderson <rth@redhat.com>
18143
18144 PR target/61336
18145 * config/alpha/alpha.c (print_operand_address): Allow symbolic
18146 addresses inside asms. Use output_operand_lossage instead of
18147 gcc_unreachable.
18148
18149 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
18150
18151 PR target/61239
18152 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
18153 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
18154
18155 2014-06-02 Tom de Vries <tom@codesourcery.com>
18156
18157 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
18158 case that x has VOIDmode.
18159
18160 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
18161
18162 * varasm.c (copy_constant): Delete function.
18163 (build_constant_desc): Don't call it.
18164
18165 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18166
18167 PR target/61154
18168 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
18169 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
18170 with immediate_operand.
18171
18172 2014-06-02 Andreas Schwab <schwab@suse.de>
18173
18174 * config/ia64/ia64.c
18175 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
18176 pending_data_specs first.
18177
18178 2014-06-02 Richard Biener <rguenther@suse.de>
18179
18180 PR tree-optimization/61378
18181 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
18182 valueized_anything.
18183
18184 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
18185
18186 * config/i386/constraints.md (Bw): Rename from 'w'.
18187 (Bz): Rename from 'z'.
18188 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
18189
18190 2014-06-01 Kai Tietz <ktietz@redhat.com>
18191
18192 PR target/61377
18193 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
18194 * config/i386/i386.md (sibcall_insn_operand): Use Bs
18195 instead of m constraint.
18196
18197 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
18198
18199 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
18200 a separate alternative where the scratch operand 2 is marked as
18201 early clobber.
18202
18203 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
18204
18205 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18206 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
18207 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
18208 and __builtins_arm_get_fpscr.
18209 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18210 __builtins_arm_get_fpscr.
18211 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
18212 __builtins_arm_ldfpscr.
18213 (arm_atomic_assign_expand_fenv): New function.
18214 * config/arm/vfp.md (set_fpscr): New pattern.
18215 (get_fpscr) : Likewise.
18216 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
18217 VUNSPEC_SET_FPSCR.
18218 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18219 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
18220
18221 2014-05-30 Jakub Jelinek <jakub@redhat.com>
18222
18223 * asan.c (report_error_func): Add SLOW_P argument, use
18224 BUILT_IN_ASAN_*_N if set.
18225 (build_check_stmt): Likewise.
18226 (instrument_derefs): If T has insufficient alignment,
18227 force same handling as for odd sizes.
18228
18229 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
18230 BUILT_IN_ASAN_REPORT_STORE_N): New.
18231 * asan.c (struct asan_mem_ref): Change access_size type to
18232 HOST_WIDE_INT.
18233 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
18234 update_mem_ref_hash_table): Likewise.
18235 (asan_mem_ref_hasher::hash): Hash in a HWI.
18236 (report_error_func): Change size_in_bytes argument to HWI.
18237 Use *_N builtins if size_in_bytes is larger than 16 or not power of
18238 two.
18239 (build_shadow_mem_access): New function.
18240 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
18241 Handle size_in_bytes not power of two or larger than 16.
18242 (instrument_derefs): Don't give up if size_in_bytes is not
18243 power of two or is larger than 16.
18244
18245 2014-05-30 Kai Tietz <ktietz@redhat.com>
18246
18247 PR target/60104
18248 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
18249 for sibling-tail-calls.
18250 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
18251 to its use.
18252 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
18253 (sibcall_insn_operand): Add check for sibcall_memory_operand.
18254
18255 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18256
18257 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
18258 * config/avr/avr-tables.opt: Regenerate.
18259 * config/avr/t-multilib: Regenerate.
18260 * doc/avr-mmcu.texi: Regenerate.
18261
18262 2014-05-30 Ian Lance Taylor <iant@google.com>
18263
18264 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
18265 target("sse").
18266
18267 2014-05-30 Tom de Vries <tom@codesourcery.com>
18268
18269 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18270 Redefine as true.
18271
18272 2014-05-30 Tom de Vries <tom@codesourcery.com>
18273
18274 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18275 * lra.c (initialize_lra_reg_info_element): Add init of
18276 actual_call_used_reg_set field.
18277 (lra): Call lra_create_live_ranges before lra_inheritance for
18278 -fuse-caller-save.
18279 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18280 -fuse-caller-save.
18281 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
18282 instead of call_used_reg_set for -fuse-caller-save.
18283 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18284
18285 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18286
18287 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
18288 to mov_imm.
18289 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
18290
18291 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
18292
18293 * ira.c (ira_get_dup_out_num): Check for output operands at
18294 the start of the loop. Handle cases where an included alternative
18295 follows an excluded one.
18296
18297 2014-05-29 Mike Stump <mikestump@comcast.net>
18298
18299 PR debug/61352
18300 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
18301 post ld passes when lto is used.
18302
18303 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
18304
18305 PR rtl-optimization/61325
18306 * lra-constraints.c (process_address): Rename to process_address_1.
18307 (process_address): New function.
18308
18309 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
18310
18311 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
18312 TYPES_BINOPV): New static data.
18313 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
18314 New builtin.
18315 * config/aarch64/aarch64-simd.md (aarch64_ext,
18316 aarch64_im_lane_boundsi): New patterns.
18317 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
18318 patterns for EXT.
18319 (aarch64_evpc_ext): New function.
18320
18321 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
18322
18323 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
18324 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
18325 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
18326 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
18327 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
18328
18329 2014-05-29 Tom de Vries <tom@codesourcery.com>
18330
18331 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18332
18333 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
18334 Richard Sandiford <rdsandiford@googlemail.com>
18335
18336 * arm/iterators.md (shiftable_ops): New code iterator.
18337 (t2_binop0, arith_shift_insn): New code attributes.
18338 * arm/predicates.md (shift_nomul_operator): New predicate.
18339 * arm/arm.md (insn_enabled): Delete.
18340 (enabled): Remove insn_enabled test.
18341 (*arith_shiftsi): Delete. Replace with ...
18342 (*<arith_shift_insn>_multsi): ... new pattern.
18343 (*<arith_shift_insn>_shiftsi): ... new pattern.
18344 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18345
18346 2014-05-29 Radovan Obradovic <robradovic@mips.com>
18347 Tom de Vries <tom@codesourcery.com>
18348
18349 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18350 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18351 clobber.
18352 (mips_split_call): Use POST_CALL_TMP_REG.
18353 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18354
18355 2014-05-29 Tom de Vries <tom@codesourcery.com>
18356
18357 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18358 with #ifdef STACK_REGS.
18359
18360 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
18361
18362 * varasm.c (get_variable_section): Walk aliases.
18363 (place_block_symbol): Walk aliases.
18364
18365 2014-05-28 Tom de Vries <tom@codesourcery.com>
18366
18367 Revert:
18368 2014-05-28 Tom de Vries <tom@codesourcery.com>
18369
18370 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18371 * lra.c (initialize_lra_reg_info_element): Add init of
18372 actual_call_used_reg_set field.
18373 (lra): Call lra_create_live_ranges before lra_inheritance for
18374 -fuse-caller-save.
18375 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18376 -fuse-caller-save.
18377 * lra-constraints.c (need_for_call_save_p): Use
18378 actual_call_used_reg_set instead of call_used_reg_set for
18379 -fuse-caller-save.
18380 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18381
18382 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18383
18384 * doc/md.texi: Document that the % constraint character must
18385 be at the beginning of the string.
18386 * genoutput.c (validate_insn_alternatives): Check that '=',
18387 '+' and '%' only appear at the beginning of a constraint.
18388 * ira.c (commutative_constraint_p): Delete.
18389 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18390 at the start of the string.
18391 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18392 duplicate '='s.
18393 * config/arm/neon.md (bicdi3_neon): Likewise.
18394 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18395 (slt_si, sltu_si): Likewise.
18396 * config/vax/vax.md (sbcdi3): Likewise.
18397 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18398 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18399 (mul64): Move '%' to beginning of constraint.
18400 * config/arm/arm.md (*xordi3_insn): Likewise.
18401 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18402 (xorsi3): Likewise.
18403
18404 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18405
18406 * doc/md.texi: Document the restrictions on the "enabled" attribute.
18407
18408 2014-05-28 Jason Merrill <jason@redhat.com>
18409
18410 PR c++/47202
18411 * cgraph.h (symtab_node::get_comdat_group_id): New.
18412 * cgraphunit.c (analyze_functions): Call it.
18413 * symtab.c (dump_symtab_node): Likewise.
18414 * tree.c (decl_comdat_group_id): New.
18415 * tree.h: Declare it.
18416 * lto-streamer-out.c (write_symbol): Use it.
18417 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18418
18419 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18420
18421 PR bootstrap/PR61146
18422 * wide-int.cc: Do not include longlong.h when compiling with clang.
18423
18424 2014-05-28 Richard Biener <rguenther@suse.de>
18425
18426 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18427 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18428 (vrp_visit_assignment_or_call): Print less vertical space.
18429 (vrp_visit_stmt): Likewise.
18430 (vrp_visit_phi_node): Likewise. For a PHI argument with
18431 VR_VARYING range consider recording it as copy.
18432
18433 2014-05-28 Richard Biener <rguenther@suse.de>
18434
18435 Revert
18436 2014-05-28 Richard Biener <rguenther@suse.de>
18437
18438 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18439
18440 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18441
18442 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18443 sufficiently aligned and an offset is used at the same time.
18444 (expand_expr_real_1): Likewise.
18445
18446 2014-05-28 Richard Biener <rguenther@suse.de>
18447
18448 PR middle-end/61045
18449 * fold-const.c (fold_comparison): When folding
18450 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18451 the sign of the remaining constant operand stays the same.
18452
18453 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
18454
18455 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18456 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18457 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18458 to the assembler.
18459 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18460 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18461 (m32bit-doubles) Likewise.
18462 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18463 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18464 option for RL78.
18465
18466 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18467
18468 * configure.ac ($gcc_cv_ld_clearcap): New test.
18469 * configure: Regenerate.
18470 * config.in: Regenerate.
18471 * config/sol2.opt (mclear-hwcap): New option.
18472 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18473 * config/sol2-clearcap.map: Moved here from
18474 testsuite/gcc.target/i386/clearcap.map.
18475 * config/sol2-clearcapv2.map: Move here from
18476 gcc.target/i386/clearcapv2.map.
18477 * config/t-sol2 (install): Depend on install-clearcap-map.
18478 (install-clearcap-map): New target.
18479 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18480 -mclear-hwcap.
18481
18482 2014-05-28 Richard Biener <rguenther@suse.de>
18483
18484 * hwint.h (*_HALF_WIDE_INT*): Move to ...
18485 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18486 ... here and remove the rest.
18487 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18488
18489 2014-05-28 Richard Biener <rguenther@suse.de>
18490
18491 PR tree-optimization/61335
18492 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18493 new range fails, drop to varying.
18494
18495 2014-05-28 Olivier Hainque <hainque@adacore.com>
18496
18497 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18498 (CPP_SPEC): Add entry for -mcpu=8548.
18499 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18500 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18501
18502 2014-05-28 Tom de Vries <tom@codesourcery.com>
18503
18504 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18505 * lra.c (initialize_lra_reg_info_element): Add init of
18506 actual_call_used_reg_set field.
18507 (lra): Call lra_create_live_ranges before lra_inheritance for
18508 -fuse-caller-save.
18509 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18510 -fuse-caller-save.
18511 * lra-constraints.c (need_for_call_save_p): Use
18512 actual_call_used_reg_set instead of call_used_reg_set for
18513 -fuse-caller-save.
18514 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18515
18516 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18517 Tom de Vries <tom@codesourcery.com>
18518
18519 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18520 to gccoptlist.
18521 (@item -fuse-caller-save): New item.
18522
18523 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18524 Tom de Vries <tom@codesourcery.com>
18525
18526 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18527 OPT_fuse_caller_save.
18528
18529 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18530 Tom de Vries <tom@codesourcery.com>
18531
18532 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18533 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18534 get_call_reg_set_usage.
18535 * resource.c (mark_set_resources, mark_target_live_regs): Use
18536 get_call_reg_set_usage.
18537 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18538 field.
18539 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18540 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18541 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18542 * ira-build.c (ira_create_allocno): Init
18543 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18544 (create_cap_allocno, propagate_allocno_info)
18545 (propagate_some_info_from_allocno)
18546 (copy_info_to_removed_store_destinations): Handle
18547 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18548 * ira-costs.c (ira_tune_allocno_costs): Use
18549 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18550
18551 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18552 Tom de Vries <tom@codesourcery.com>
18553
18554 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18555 and function_used_regs_valid fields.
18556 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18557 find_all_hard_reg_sets.
18558 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18559 (get_call_reg_set_usage): New function.
18560 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18561 * regs.h (get_call_reg_set_usage): Declare.
18562
18563 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18564
18565 PR libgcc/61152
18566 * config/dbx.h (License): Add Runtime Library Exception.
18567 * config/newlib-stdint.h (License): Same.
18568 * config/rtems.h (License): Same
18569 * config/initfini-array.h (License): Same
18570 * config/v850/v850.h (License): Same.
18571 * config/v850/v850-opts.h (License): Same
18572 * config/v850/rtems.h (License): Same.
18573
18574 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18575
18576 PR target/61044
18577 * doc/extend.texi (Local Labels): Note that label differences are
18578 not supported for AVR.
18579
18580 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18581 Olivier Hainque <hainque@adacore.com>
18582
18583 * rtl.h (set_for_reg_notes): Declare.
18584 * emit-rtl.c (set_for_reg_notes): New function.
18585 (set_unique_reg_note): Use it.
18586 * optabs.c (add_equal_note): Likewise
18587
18588 2014-05-27 Andrew Pinski <apinski@cavium.com>
18589
18590 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18591 Use <w> for the register in assembly template.
18592 (stack_protect_test): Use the mode of operands[0] for the result.
18593 (stack_protect_test_<mode>): Use <w> for the register
18594 in assembly template.
18595
18596 2014-05-27 DJ Delorie <dj@redhat.com>
18597
18598 * config/rx/rx.c (add_vector_labels): New.
18599 (rx_output_function_prologue): Call it.
18600 (rx_handle_func_attribute): Don't require empty arguments.
18601 (rx_handle_vector_attribute): New.
18602 (rx_attribute_table): Add "vector" attribute.
18603 * doc/extend.texi (interrupt, vector): Document new/changed
18604 RX-specific attributes.
18605
18606 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18607
18608 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18609
18610 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18611 predicate to detect a negative quotient.
18612
18613 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18614
18615 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18616 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18617 Add X - Y CMP 0 to X CMP Y transformation.
18618 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18619
18620 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18621
18622 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18623 before printing.
18624
18625 2014-05-27 Steve Ellcey <sellcey@mips.com>
18626
18627 * config/mips/mips.c: Add include of cgraph.h.
18628
18629 2014-05-27 Richard Biener <rguenther@suse.de>
18630
18631 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18632
18633 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18634
18635 PR libgcc/61152
18636 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18637 * config/arm/arm-cores.def (License): Same.
18638 * config/arm/arm-opts.h (License): Same.
18639 * config/arm/aout.h (License): Same.
18640 * config/arm/bpabi.h (License): Same.
18641 * config/arm/elf.h (License): Same.
18642 * config/arm/linux-elf.h (License): Same.
18643 * config/arm/linux-gas.h (License): Same.
18644 * config/arm/netbsd-elf.h (License): Same.
18645 * config/arm/uclinux-eabi.h (License): Same.
18646 * config/arm/uclinux-elf.h (License): Same.
18647 * config/arm/vxworks.h (License): Same.
18648
18649 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18650
18651 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18652 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18653 (arm_init_neon_builtins): Handle NEON_BSWAP.
18654 Define required type nodes.
18655 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18656 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18657 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18658 * config/arm/iterators.md (VDQHSD): New mode iterator.
18659
18660 2014-05-27 Richard Biener <rguenther@suse.de>
18661
18662 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18663 Try using literal operands when comparing value-ranges failed.
18664
18665 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18666
18667 * ira.c (commutative_operand): Adjust for change to recog_data.
18668 [Missing from previous commit.]
18669
18670 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18671
18672 * system.h (TEST_BIT): New macro.
18673 * recog.h (alternative_mask): New type.
18674 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18675 (recog_data_d): Replace alternative_enabled_p array with
18676 enabled_alternatives.
18677 (target_recog): New structure.
18678 (default_target_recog, this_target_recog): Declare.
18679 (get_enabled_alternatives, recog_init): Likewise.
18680 * recog.c (default_target_recog, this_target_recog): New variables.
18681 (get_enabled_alternatives): New function.
18682 (extract_insn): Use it.
18683 (recog_init): New function.
18684 (preprocess_constraints, constrain_operands): Adjust for change to
18685 recog_data.
18686 * postreload.c (reload_cse_simplify_operands): Likewise.
18687 * reload.c (find_reloads): Likewise.
18688 * ira-costs.c (record_reg_classes): Likewise.
18689 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18690 all alternatives after a disabled one would be skipped.
18691 (ira_implicitly_set_insn_hard_regs): Likewise.
18692 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18693 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18694 with enabled_alternatives.
18695 * lra.c (free_insn_recog_data): Update accordingly.
18696 (lra_update_insn_recog_data): Likewise.
18697 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18698 * lra-constraints.c (process_alt_operands): Likewise. Handle
18699 only_alternative as part of the enabled mask.
18700 * target-globals.h (this_target_recog): Declare.
18701 (target_globals): Add a recog field.
18702 (restore_target_globals): Restore this_target_recog.
18703 * target-globals.c: Include recog.h.
18704 (default_target_globals): Initialize recog field.
18705 (save_target_globals): Likewise.
18706 * reginfo.c (reinit_regs): Call recog_init.
18707 * toplev.c (backend_init_target): Likewise.
18708
18709 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18710
18711 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18712 rather than any named insn's code.
18713
18714 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18715
18716 PR libgcc/61152
18717 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18718 * config/arm/arm-cores.def (License): Same.
18719
18720 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18721
18722 * tree.h (decl_comdat_group): Declare.
18723 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18724 * tree.c (decl_comdat_group): Here.
18725
18726 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18727
18728 PR rtl-optimization/61222
18729 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18730 the shift, truncate the PLUS operand to the result mode.
18731
18732 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18733
18734 PR target/61271
18735 * config/i386/i386.c (ix86_rtx_costs)
18736 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18737 Fix condition.
18738
18739 2014-05-26 Martin Jambor <mjambor@suse.cz>
18740
18741 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18742 subreg uses.
18743
18744 2014-05-26 Richard Biener <rguenther@suse.de>
18745
18746 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18747 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18748 Provide specializations.
18749 (wi::int_traits <HOST_WIDE_INT>,
18750 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18751
18752 2014-05-26 Alan Modra <amodra@gmail.com>
18753
18754 PR target/61098
18755 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18756 params and return a bool. Remove dead code. Update comment.
18757 Assert we have a const_int source. Remove bogus code from
18758 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18759 handling of constants > 2G and reg_equal note, from..
18760 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18761 return value. Update comment. If we can, use a new pseudo
18762 for intermediate calculations.
18763 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18764 prototype.
18765 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18766 call to rs6000_emit_set_const in splitter.
18767 (movdi_internal64+2, +3): Likewise.
18768
18769 2014-05-26 Richard Biener <rguenther@suse.de>
18770
18771 * system.h: Define __STDC_FORMAT_MACROS before
18772 including inttypes.h.
18773 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18774 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18775 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18776 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18777 HOST_WIDEST_INT_C): Remove.
18778 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18779 if C99 inttypes.h is not available.
18780 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18781 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18782 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18783 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18784 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18785 (struct output_info): Likewise.
18786 (print_statistics): Adjust.
18787 (dump_bitmap_statistics): Likewise.
18788 * bt-load.c (migrate_btr_defs): Print with PRId64.
18789 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18790 (MAX_SAFE_MULTIPLIER): Adjust.
18791 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18792 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18793 dump_cgraph_node): Likewise.
18794 * final.c (dump_basic_block_info): Likewise.
18795 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18796 * gcov.c (format_gcov): Likewise.
18797 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18798 for calculation.
18799 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18800 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18801 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18802 Use PRId64 for dumping.
18803 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18804 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18805 (add_allocno_hard_regs): Adjust.
18806 * loop-doloop.c (doloop_modify): Print using PRId64.
18807 * loop-iv.c (inverse): Compute in uint64_t.
18808 (determine_max_iter, iv_number_of_iterations): Likewise.
18809 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18810 Print using PRId64.
18811 * lto-streamer-out.c (write_symbol): Use uint64_t.
18812 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18813 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18814 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18815 * modulo-sched.c (const_iteration_count): Use int64_t.
18816 (sms_schedule): Dump using PRId64.
18817 * predict.c (dump_prediction): Likewise.
18818 * pretty-print.h (pp_widest_integer): Remove.
18819 * profile.c (get_working_sets, is_edge_inconsistent,
18820 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18821 * tree-pretty-print.c (pp_double_int): Remove case handling
18822 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18823 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18824 and adjust users.
18825 (pass_optimize_bswap::execute): Remove restriction on hosts.
18826 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18827 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18828 * tree.c (widest_int_cst_value): Remove.
18829 * tree.h (widest_int_cst_value): Likewise.
18830 * value-prof.c (dump_histogram_value): Print using PRId64.
18831 * gengtype.c (main): Also inject int64_t.
18832 * ggc-page.c (struct max_alignment): Use int64_t.
18833 * alloc-pool.c (struct allocation_object_def): Likewise.
18834 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18835 for computation.
18836 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18837 * doc/tm.texi: Regenerated.
18838 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18839 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18840 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18841 mmix_output_register_setting): Use [u]int64_t in prototypes.
18842 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18843 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18844 mmix_output_octa, mmix_output_shifted_value): Adjust.
18845 (mmix_intval): Adjust. Remove unreachable case.
18846 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18847
18848 2014-05-26 Richard Biener <rguenther@suse.de>
18849
18850 * configure.ac: Drop __int64 type check. Insist that we
18851 found uint64_t and int64_t.
18852 * hwint.h (HOST_BITS_PER___INT64): Remove.
18853 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18854 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18855 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18856 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18857 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18858 for dst_q_src_df_rms_cdt.
18859 * configure: Regenerate.
18860 * config.in: Likewise.
18861
18862 2014-05-26 Michael Tautschnig <mt@debian.org>
18863
18864 PR target/61249
18865 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18866 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18867
18868 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18869
18870 PR rtl-optimization/61278
18871 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18872
18873 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18874
18875 PR rtl-optimization/61220
18876 Part of PR rtl-optimization/61225
18877 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18878 insn; skip split_edge for a block with only one successor.
18879
18880 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18881
18882 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18883 for variables.
18884
18885 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18886
18887 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18888 (update_vtable_references): New function.
18889 (function_and_variable_visibility): Rewrite also vtable initializers.
18890 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18891
18892 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18893
18894 * ggc.h (ggc_grow): New function.
18895 * ggc-none.c (ggc_grow): New function.
18896 * ggc-page.c (ggc_grow): Likewise.
18897
18898 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18899
18900 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18901 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18902 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18903 varpool_externally_visible_p, can_replace_by_local_alias,
18904 update_visibility_by_resolution_info, function_and_variable_visibility,
18905 pass_data_ipa_function_and_variable_visibility,
18906 make_pass_ipa_function_and_variable_visibility,
18907 whole_program_function_and_variable_visibility,
18908 pass_data_ipa_whole_program_visibility,
18909 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18910 * cgraph.h (cgraph_local_node_p): Declare.
18911 * ipa-visibility.c: New file.
18912 * Makefile.in (OBJS): Add ipa-visiblity.o
18913
18914 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18915
18916 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18917 that var decl is available.
18918
18919 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18920
18921 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18922 symtab_node pointer.
18923 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18924 (find_decls_types_r): Do not walk COMDAT_GROUP.
18925 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18926 * varasm.c (make_decl_one_only): Use set_comdat_group;
18927 create node if needed.
18928 * ipa-inline-transform.c (save_inline_function_body): Update
18929 way we decl->symtab mapping.
18930 * symtab.c (symtab_hash, hash_node, eq_node
18931 symtab_insert_node_to_hashtable): Remove.
18932 (symtab_register_node): Update.
18933 (symtab_unregister_node): Update.
18934 (symtab_get_node): Reimplement as inline function.
18935 (symtab_add_to_same_comdat_group): Update.
18936 (symtab_dissolve_same_comdat_group_list): Update.
18937 (dump_symtab_base): Update.
18938 (verify_symtab_base): Update.
18939 (symtab_make_decl_local): Update.
18940 (fixup_same_cpp_alias_visibility): Update.
18941 (symtab_nonoverwritable_alias): Update.
18942 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18943 * ipa.c (update_visibility_by_resolution_info): UPdate.
18944 * bb-reorder.c: Include cgraph.h
18945 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18946 with comdat groups.
18947 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18948 * cgraph.c (cgraph_get_create_node): Update.
18949 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18950 and comdat_group_.
18951 (symtab_get_node): Make inline.
18952 (symtab_insert_node_to_hashtable): Remove.
18953 (symtab_can_be_discarded): Update.
18954 (decl_comdat_group): New function.
18955 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18956 Update.
18957 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18958 comdat group name.
18959 (read_comdat_group): New function.
18960 (input_node, input_varpool_node): Use it.
18961 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18962 comdat groups.
18963 * mips.c (mips_start_unique_function): Likewise.
18964 (ix86_code_end): Likewise.
18965 (rs6000_code_end): Likweise.
18966 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18967
18968 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18969
18970 * gengtype-state.c (fatal_reading_state): Bring offline.
18971 * optabs.c (widening_optab_handler): Bring offline.
18972 * optabs.h (widening_optab_handler): Likewise.
18973 * final.c (get_attr_length_1): Likewise.
18974
18975 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18976
18977 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18978
18979 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18980
18981 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18982 (ppc440-compare): Include shift with dot.
18983 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18984 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18985 without dot.
18986 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18987 without dot.
18988 (e6500_sfx2): Include it.
18989 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18990 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18991 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18992 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18993 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18994 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18995 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18996 *lshiftrt_internal1le, *lshiftrt_internal1be,
18997 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18998 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18999 *rotldi3_internal10le, *rotldi3_internal10be,
19000 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
19001 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
19002 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
19003 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
19004 define_insns): Use type "shift" in the appropriate alternatives.
19005
19006 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19007
19008 * config/rs6000/rs6000.md (type): Add "logical". Delete
19009 "fast_compare".
19010 (dot): Adjust comment.
19011 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
19012 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
19013 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
19014 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
19015 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
19016 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
19017 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
19018 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19019
19020 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19021 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19022 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19023 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19024 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19025 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19026 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19027 * config/rs6000/8540.md (ppc8540_su): Adjust.
19028 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19029 cell-cmp-microcoded): Adjust.
19030 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19031 * config/rs6000/e500mc.md (e500mc_su): Adjust.
19032 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19033 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19034 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19035 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19036 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19037 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19038 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19039 Adjust.
19040 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19041 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
19042 Adjust. Adjust comment.
19043 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19044 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19045
19046 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19047
19048 * config/rs6000/rs6000.md (type): Add "add".
19049 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
19050 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
19051 define_insns): Use it.
19052 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19053
19054 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19055 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19056 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19057 * config/rs6000/601.md (ppc601-integer): Adjust.
19058 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19059 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19060 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19061 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19062 * config/rs6000/8540.md (ppc8540_su): Adjust.
19063 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19064 cell-cmp-microcoded): Adjust.
19065 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19066 * config/rs6000/e500mc.md (e500mc_su): Adjust.
19067 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19068 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19069 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19070 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19071 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19072 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19073 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19074 Adjust.
19075 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19076 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
19077 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19078 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19079
19080 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19081
19082 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
19083 "delayed_compare", "var_delayed_compare".
19084 (var_shift): New attribute.
19085 (cell_micro): Adjust.
19086 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
19087 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
19088 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
19089 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19090 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19091 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19092 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19093 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
19094 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
19095 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
19096 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
19097 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
19098 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
19099 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
19100 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
19101 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
19102 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
19103 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
19104 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
19105 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
19106 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
19107 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
19108 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
19109 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19110 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19111
19112 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19113 * config/rs6000/440.md (ppc440-integer): Adjust.
19114 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19115 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
19116 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19117 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19118 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19119 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19120 * config/rs6000/8540.md (ppc8540_su): Adjust.
19121 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19122 cell-cmp-microcoded): Adjust.
19123 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
19124 * config/rs6000/e500mc.md (e500mc_su): Adjust.
19125 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
19126 e500mc64_delayed): Adjust.
19127 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
19128 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
19129 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19130 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
19131 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
19132 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
19133 power6-delayed-compare, power6-var-delayed-compare): Adjust.
19134 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
19135 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
19136 Adjust comment.
19137 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19138 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19139
19140 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19141
19142 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
19143 (bits): New mode_attr.
19144 (idiv_ldiv): Delete mode_attr.
19145 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
19146 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19147 rs6000_adjust_priority, is_nonpipeline_insn,
19148 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19149
19150 * config/rs6000/40x.md (ppc403-idiv): Adjust.
19151 * config/rs6000/440.md (ppc440-idiv): Adjust.
19152 * config/rs6000/476.md (ppc476-idiv): Adjust.
19153 * config/rs6000/601.md (ppc601-idiv): Adjust.
19154 * config/rs6000/603.md (ppc603-idiv): Adjust.
19155 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
19156 ppc620-ldiv): Adjust.
19157 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
19158 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
19159 * config/rs6000/8540.md (ppc8540_divide): Adjust.
19160 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
19161 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
19162 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
19163 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
19164 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
19165 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
19166 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
19167 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
19168 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
19169 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
19170 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
19171 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
19172 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
19173 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
19174 * config/rs6000/titan.md (titan_fxu_div): Adjust.
19175
19176 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19177
19178 * config/rs6000/rs6000.md (type): Delete "insert_word",
19179 "insert_dword". Add "insert".
19180 (size): Update comment.
19181 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19182 insn_must_be_first_in_group): Adjust.
19183 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19184 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19185 *insvsi_internal6, insvdi_internal): Adjust.
19186
19187 * config/rs6000/40x.md (ppc403-integer): Adjust.
19188 * config/rs6000/440.md (ppc440-integer): Adjust.
19189 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
19190 * config/rs6000/601.md (ppc601-integer): Adjust.
19191 * config/rs6000/603.md (ppc603-integer): Adjust.
19192 * config/rs6000/6xx.md (ppc604-integer): Adjust.
19193 * config/rs6000/7450.md (ppc7450-integer): Adjust.
19194 * config/rs6000/7xx.md (ppc750-integer): Adjust.
19195 * config/rs6000/8540.md (ppc8540_su): Adjust.
19196 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
19197 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
19198 * config/rs6000/e500mc.md (e500mc_su): Adjust.
19199 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
19200 * config/rs6000/e5500.md (e5500_sfx): Adjust.
19201 * config/rs6000/e6500.md (e6500_sfx): Adjust.
19202 * config/rs6000/mpc.md (mpccore-integer): Adjust.
19203 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
19204 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
19205 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
19206 * config/rs6000/power7.md (power7-integer): Adjust.
19207 * config/rs6000/power8.md (power8-1cyc): Adjust.
19208 * config/rs6000/rs64.md (rs64a-integer): Adjust.
19209 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19210
19211 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19212
19213 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
19214 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
19215 (size): New attribute.
19216 (dot): New attribute.
19217 (cell_micro): Adjust.
19218 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
19219 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
19220 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
19221 umuldi3_highpart): Adjust.
19222 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19223 rs6000_adjust_priority, is_nonpipeline_insn,
19224 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19225
19226 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
19227 ppc405-imul3): Adjust.
19228 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
19229 * config/rs6000/476.md (ppc476-imul): Adjust.
19230 * config/rs6000/601.md (ppc601-imul): Adjust.
19231 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
19232 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
19233 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
19234 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
19235 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
19236 Adjust.
19237 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
19238 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
19239 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
19240 cell-imul): Adjust.
19241 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
19242 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
19243 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
19244 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
19245 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
19246 * config/rs6000/mpc.md (mpccore-imul): Adjust.
19247 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
19248 power4-lmul, power4-imul, power4-imul3): Adjust.
19249 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
19250 power5-lmul, power5-imul, power5-imul3): Adjust.
19251 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
19252 power6-lmul, power6-imul, power6-imul3): Adjust.
19253 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
19254 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
19255
19256 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
19257 rs64a-lmul): Adjust.
19258 * config/rs6000/titan.md (titan_imul): Adjust.
19259
19260 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19261
19262 * config/rs6000/rs6000.md (type): Add new value "halfmul".
19263 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
19264 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
19265 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
19266 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
19267 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
19268 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
19269 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
19270 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
19271 * config/rs6000/titan.md: Delete nonsensical comment.
19272 (titan_imul): Add type imul3.
19273 (titan_mulhw): Remove type imul3; add type halfmul.
19274
19275 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19276
19277 * config/rs6000/rs6000.md (type): Reorder, reformat.
19278
19279 2014-05-23 Martin Jambor <mjambor@suse.cz>
19280
19281 PR tree-optimization/53787
19282 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
19283 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
19284 analysis_done, update all uses.
19285 * ipa-prop.c: Include domwalk.h
19286 (param_analysis_info): Removed.
19287 (param_aa_status): New type.
19288 (ipa_bb_info): Likewise.
19289 (func_body_info): Likewise.
19290 (ipa_get_bb_info): New function.
19291 (aa_overwalked): Likewise.
19292 (find_dominating_aa_status): Likewise.
19293 (parm_bb_aa_status_for_bb): Likewise.
19294 (parm_preserved_before_stmt_p): Changed to use new param AA info.
19295 (load_from_unmodified_param): Accept func_body_info as a parameter
19296 instead of parms_ainfo.
19297 (parm_ref_data_preserved_p): Changed to use new param AA info.
19298 (parm_ref_data_pass_through_p): Likewise.
19299 (ipa_load_from_parm_agg_1): Likewise. Update callers.
19300 (compute_complex_assign_jump_func): Changed to use new param AA info.
19301 (compute_complex_ancestor_jump_func): Likewise.
19302 (ipa_compute_jump_functions_for_edge): Likewise.
19303 (ipa_compute_jump_functions): Removed.
19304 (ipa_compute_jump_functions_for_bb): New function.
19305 (ipa_analyze_indirect_call_uses): Likewise, moved variable
19306 declarations down.
19307 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
19308 and info, moved variable declarations down.
19309 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
19310 node and info.
19311 (ipa_analyze_stmt_uses): Likewise.
19312 (ipa_analyze_params_uses): Removed.
19313 (ipa_analyze_params_uses_in_bb): New function.
19314 (ipa_analyze_controlled_uses): Likewise.
19315 (free_ipa_bb_info): Likewise.
19316 (analysis_dom_walker): New class.
19317 (ipa_analyze_node): Handle node-specific forbidden analysis,
19318 initialize and free func_body_info, use dominator walker.
19319 (ipcp_modif_dom_walker): New class.
19320 (ipcp_transform_function): Create and free func_body_info, use
19321 ipcp_modif_dom_walker, moved a lot of functionality there.
19322
19323 2014-05-23 Marek Polacek <polacek@redhat.com>
19324 Jakub Jelinek <jakub@redhat.com>
19325
19326 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
19327 * gcc.c (sanitize_spec_function): Likewise.
19328 * convert.c (convert_to_integer): Include "ubsan.h". Add
19329 floating-point to integer instrumentation.
19330 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19331 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19332 SANITIZE_NONDEFAULT.
19333 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19334 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19335 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19336 * ubsan.c: Include "realmpfr.h" and "dfp.h".
19337 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19338 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19339 float/double/long double.
19340 (ubsan_instrument_float_cast): New function.
19341 * ubsan.h (ubsan_instrument_float_cast): Declare.
19342
19343 2014-05-23 Jiong Wang <jiong.wang@arm.com>
19344
19345 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19346 predicate.
19347 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
19348 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19349 Adjust for tailcalling through registers.
19350 * config/aarch64/aarch64.h (enum reg_class): New caller save
19351 register class.
19352 (REG_CLASS_NAMES): Likewise.
19353 (REG_CLASS_CONTENTS): Likewise.
19354 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19355 Allow tailcalling without decls.
19356
19357 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19358
19359 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19360 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19361
19362 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19363 gsi, and variables v_* to v*.
19364
19365 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
19366
19367 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19368
19369 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19370
19371 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19372 * omp-low.c: Update accordingly.
19373
19374 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19375 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19376 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19377 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19378 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19379 GF_OMP_TARGET_KIND_UPDATE.
19380
19381 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19382 Explicitly enumerate the expected region types.
19383
19384 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
19385
19386 PR other/56955
19387 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
19388 documentation; the old documentation didn't clearly state the
19389 constraints on the contents of the pointed-to storage.
19390
19391 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19392
19393 Fix bootstrap error on ia64
19394 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19395 Return default value.
19396
19397 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
19398
19399 PR tree-optimization/54733
19400 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19401 (CMPNOP): Define.
19402 (find_bswap_or_nop_load): New.
19403 (find_bswap_1): Renamed to ...
19404 (find_bswap_or_nop_1): This. Also add support for memory source.
19405 (find_bswap): Renamed to ...
19406 (find_bswap_or_nop): This. Also add support for memory source and
19407 detection of bitwise operations equivalent to load in target
19408 endianness.
19409 (execute_optimize_bswap): Likewise. Also move its leading comment back
19410 in place and split statement transformation into ...
19411 (bswap_replace): This.
19412
19413 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19414
19415 PR rtl-optimization/61215
19416 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19417 simplify_gen_subreg until final substitution.
19418
19419 2014-05-23 Alan Modra <amodra@gmail.com>
19420
19421 PR target/61231
19422 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19423 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19424 Use "Y" constraint rather than "m".
19425
19426 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19427
19428 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19429 define.
19430 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19431 New function declaration.
19432 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19433 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19434 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19435 (aarch64_init_builtins) : Initialize builtins
19436 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19437 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19438 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19439 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19440 and __builtins_aarch64_set_fpsr.
19441 (aarch64_atomic_assign_expand_fenv): New function.
19442 * config/aarch64/aarch64.md (set_fpcr): New pattern.
19443 (get_fpcr) : Likewise.
19444 (set_fpsr) : Likewise.
19445 (get_fpsr) : Likewise.
19446 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19447 and UNSPECV_SET_FPSR.
19448 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19449 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19450 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19451
19452 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19453
19454 PR rtl-optimization/60969
19455 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19456 constraints. Set up mem cost for NO_REGS case.
19457
19458 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
19459
19460 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19461
19462 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
19463
19464 * config/darwin.c: Include "lto-section-names.h".
19465 (LTO_SEGMENT_NAME): Don't define.
19466 * config/i386/winnt.c: Include "lto-section-names.h".
19467 * lto-streamer.c: Include "lto-section-names.h".
19468 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19469 * lto-wrapper.c: Include "lto-section-names.h".
19470 (LTO_SECTION_NAME_PREFIX): Don't define.
19471 * lto-section-names.h: New file.
19472 * cgraphunit.c: Include "lto-section-names.h".
19473
19474 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
19475
19476 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19477
19478 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
19479
19480 PR target/61208
19481 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19482
19483 2014-05-22 Nick Clifton <nickc@redhat.com>
19484
19485 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19486
19487 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
19488
19489 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19490 -> (T)A transformation to integer types.
19491
19492 2014-05-22 Teresa Johnson <tejohnson@google.com>
19493
19494 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19495 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19496 (gcov_rewrite): Use gcov_nonruntime_assert.
19497 (gcov_open): Ditto.
19498 (gcov_write_words): Ditto.
19499 (gcov_write_length): Ditto.
19500 (gcov_read_words): Use gcov_nonruntime_assert, and remove
19501 gcc_assert from IN_LIBGCOV code.
19502 (gcov_read_summary): Use gcov_error to flag profile corruption.
19503 (gcov_sync): Use gcov_nonruntime_assert.
19504 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19505 (gcov_histo_index): Use gcov_nonruntime_assert.
19506 (static void gcov_histogram_merge): Ditto.
19507 (compute_working_sets): Ditto.
19508 * gcov-io.h (gcov_nonruntime_assert): Define.
19509 (gcov_error): Define for !IN_LIBGCOV
19510
19511 2014-05-22 Richard Biener <rguenther@suse.de>
19512
19513 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19514 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19515 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19516 and deallocation site.
19517 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19518 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19519 passing through the incoming points-to set.
19520 (handle_lhs_call): Use flags argument instead of recomputing it.
19521 (find_func_aliases_for_call): Call handle_lhs_call with proper
19522 call return flags.
19523
19524 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19525
19526 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19527 all padding bits in REAL_VALUE_TYPE are cleared.
19528
19529 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19530
19531 Cleanup and improve multipass_dfa_lookahead_guard
19532 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19533 (core2i7_first_cycle_multipass_begin,)
19534 (core2i7_first_cycle_multipass_issue,)
19535 (core2i7_first_cycle_multipass_backtrack): Update signature.
19536 * config/ia64/ia64.c
19537 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19538 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19539 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19540 hook definition.
19541 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19542 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19543 values.
19544 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19545 return values.
19546 * doc/tm.texi: Regenerate.
19547 * doc/tm.texi.in
19548 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19549 * haifa-sched.c (ready_try): Make signed to allow negative values.
19550 (rebug_ready_list_1): Update.
19551 (choose_ready): Simplify.
19552 (sched_extend_ready_list): Update.
19553
19554 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19555
19556 Remove IA64 speculation tweaking flags
19557 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19558 speculation tuning flags.
19559 (msched-prefer-non-data-spec-insns,)
19560 (msched-prefer-non-control-spec-insns): Obsolete options.
19561 * haifa-sched.c (choose_ready): Remove handling of
19562 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19563 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19564 and PREFER_NON_DATA_SPEC.
19565 * sel-sched.c (process_spec_exprs): Remove handling of
19566 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19567
19568 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19569
19570 Improve scheduling debug output
19571 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19572 (advance_one_cycle): Update.
19573 (schedule_insn, queue_to_ready): Add debug printouts.
19574 (debug_ready_list_1): New static function.
19575 (debug_ready_list): Update.
19576 (max_issue): Add debug printouts.
19577 (dump_insn_stream): New static function.
19578 (schedule_block): Use it. Also better indent printouts.
19579
19580 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19581
19582 Fix sched_insn debug counter
19583 * haifa-sched.c (schedule_insn): Update.
19584 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19585 (save_backtrack_point, restore_backtrack_point): Update.
19586 (first_nonscheduled_insn): New static function.
19587 (queue_to_ready, choose_ready): Use it.
19588 (schedule_block): Init nonscheduled_insns_begin.
19589 (sched_emit_insn): Update.
19590
19591
19592 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19593
19594 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19595 to GENERAL_REGS.
19596 (aarch64_secondary_reload) : LikeWise.
19597 (aarch64_class_max_nregs) : Remove CORE_REGS.
19598 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19599 (REG_CLASS_NAMES) : Likewise.
19600 (REG_CLASS_CONTENTS) : LikeWise.
19601 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19602
19603 2014-05-21 Guozhi Wei <carrot@google.com>
19604
19605 PR target/61202
19606 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19607 constraint.
19608 (vqdmulhq_n_s16): Likewise.
19609
19610 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19611
19612 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19613
19614 2014-05-21 Marek Polacek <polacek@redhat.com>
19615
19616 PR sanitizer/61272
19617 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19618
19619 2014-05-21 Martin Jambor <mjambor@suse.cz>
19620
19621 * doc/invoke.texi (Optimize Options): Document parameters
19622 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19623 ipa-cp-array-index-hint-bonus.
19624
19625 2014-05-21 Mark Wielaard <mjw@redhat.com>
19626
19627 PR debug/16063
19628 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19629 version >= 3 or not strict DWARF.
19630 * langhooks.h (struct lang_hooks_for_types): Add
19631 enum_underlying_base_type.
19632 * langhooks.c (lhd_enum_underlying_base_type): New function.
19633 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19634 enum_underlying_base_type.
19635 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19636 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19637 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19638
19639 2014-05-21 Richard Biener <rguenther@suse.de>
19640
19641 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19642
19643 2014-05-21 John Marino <gnugcc@marino.st>
19644
19645 * config.gcc (*-*-dragonfly*): New target.
19646 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19647 * configure: Regenerate.
19648 * config/dragonfly-stdint.h: New.
19649 * config/dragonfly.h: New.
19650 * config/dragonfly.opt: New.
19651 * config/i386/dragonfly.h: New.
19652 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19653
19654 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19655
19656 * tree.def (VOID_CST): New.
19657 * tree-core.h (TI_VOID): New.
19658 * tree.h (void_node): New.
19659 * tree.c (tree_node_structure_for_code, tree_code_size)
19660 (iterative_hash_expr): Handle VOID_CST.
19661 (build_common_tree_nodes): Initialize void_node.
19662
19663 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19664
19665 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19666 functions.
19667 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19668
19669 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19670 more places.
19671
19672 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19673 flag_reorder_blocks_and_partition.
19674 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19675
19676 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19677
19678 PR target/54236
19679 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19680 constraints.
19681 (*addc_r_t): Add new insn_and_split.
19682
19683 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19684
19685 PR middle-end/61252
19686 * omp-low.c (handle_simd_reference): New function.
19687 (lower_rec_input_clauses): Use it. Defer adding reference
19688 initialization even for reduction without placeholder if in simd,
19689 handle it properly later on.
19690
19691 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19692
19693 PR tree-optimization/60899
19694 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19695 assume all static symbols will have definition wile parsing and
19696 check the do have definition later in compilation; check that
19697 variable referring symbol will be output before concluding that
19698 reference is safe; be conservative for referring local statics;
19699 be more precise about when comdat is output in other partition.
19700
19701 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19702
19703 PR bootstrap/60984
19704 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19705 parameter.
19706 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19707 (ipa_inline): Loop inline_to_all_callers until no more aliases
19708 are removed.
19709
19710 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19711
19712 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19713 set writeonly flag only for vars actually written to.
19714
19715 2014-05-20 Dehao Chen <dehao@google.com>
19716
19717 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19718 and callee count to get clone count.
19719 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19720 count in copy_body.
19721
19722 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19723
19724 PR rtl-optimization/61243
19725 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19726
19727 2014-05-20 Xinliang David Li <davidxl@google.com>
19728
19729 * cgraphunit.c (walk_polymorphic_call_targets): Add
19730 dbgcnt and fopt-info support.
19731 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19732 * ipa-devirt.c (ipa_devirt): Ditto.
19733 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19734 * ipa.c (walk_polymorphic_call_targets): Ditto.
19735 * gimple-fold.c (fold_gimple_assign): Ditto.
19736 (gimple_fold_call): Ditto.
19737 * dbgcnt.def: New counter.
19738
19739 2014-05-20 DJ Delorie <dj@redhat.com>
19740
19741 * config/msp430/msp430.md (split): Don't allow subregs when
19742 splitting SImode adds.
19743 (andneghi): Fix subtraction logic.
19744 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19745
19746 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19747
19748 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19749 symbols.
19750 * except.c (switch_to_exception_section, resolve_unique_section,
19751 get_named_text_section, default_function_rodata_section,
19752 align_variable, get_block_for_decl, default_section_type_flags):
19753 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19754 * symtab.c (symtab_add_to_same_comdat_group,
19755 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19756 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19757 Likewise.
19758 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19759 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19760 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19761 (c6x_function_in_section_p): Likewise.
19762 * config/darwin.c (machopic_select_section): Likewise.
19763 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19764 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19765 * config/mep/mep.c (mep_select_section): LIkewise.
19766 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19767
19768 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19769
19770 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19771 EH region of calls to pure functions that can throw an exception.
19772 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19773 (copy_reference_ops_from_call): Also copy the EH region of the call if
19774 it can throw an exception.
19775
19776 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19777
19778 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19779 nested VEC_SELECTs that are inverses of each other.
19780
19781 2014-05-20 Richard Biener <rguenther@suse.de>
19782
19783 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19784 (extract_and_process_scc_for_name): not here.
19785 (cond_dom_walker::before_dom_children): Only process
19786 stmts that end the BB in interesting ways.
19787 (run_scc_vn): Mark param uses as visited.
19788
19789 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19790
19791 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19792 arm_restrict_it.
19793
19794 2014-05-20 Nick Clifton <nickc@redhat.com>
19795
19796 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19797 (msp430_gimplify_va_arg_expr): New function.
19798 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19799
19800 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19801 operand 0 in order to prevent confusion about the number of
19802 registers involved.
19803
19804 2014-05-20 Richard Biener <rguenther@suse.de>
19805
19806 PR tree-optimization/61221
19807 * tree-ssa-pre.c (el_to_update): Remove.
19808 (eliminate_dom_walker::before_dom_children): Handle released
19809 VDEFs by value-numbering them to the associated VUSE. Update
19810 stmt immediately for substituted call address.
19811 (eliminate): Remove delayed stmt updating code.
19812 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19813 possibly late re-numbered vuses.
19814 (vn_reference_lookup_2): Adjust.
19815 (vn_reference_lookup_pieces): Likewise.
19816 (vn_reference_lookup): Likewise.
19817
19818 2014-05-20 Richard Biener <rguenther@suse.de>
19819
19820 * config.gcc: Remove need_64bit_hwint.
19821 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19822 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19823 it to be true.
19824 * config.in: Regenerate.
19825 * configure: Likewise.
19826
19827 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19828
19829 * doc/extend.texi: Create Label Attributes section,
19830 move all label attributes into it and reference it.
19831
19832 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19833
19834 * arm.c (thumb1_reorg): When scanning backwards skip anything
19835 that's not a proper insn.
19836
19837 2014-05-19 Richard Biener <rguenther@suse.de>
19838
19839 PR tree-optimization/61221
19840 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19841 Do nothing for unreachable blocks.
19842 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19843 Improve unreachability detection.
19844
19845 2014-05-19 Richard Biener <rguenther@suse.de>
19846
19847 PR tree-optimization/61209
19848 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19849
19850 2014-05-19 Nick Clifton <nickc@redhat.com>
19851
19852 * except.c (init_eh): Fix computation of builtin setjmp buffer
19853 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19854
19855 2014-05-19 Richard Biener <rguenther@suse.de>
19856
19857 PR tree-optimization/61184
19858 * tree-vrp.c (is_negative_overflow_infinity): Use
19859 TREE_OVERFLOW_P and do that check first.
19860 (is_positive_overflow_infinity): Likewise.
19861 (is_overflow_infinity): Likewise.
19862 (vrp_operand_equal_p): Properly treat operands with
19863 differing overflow as not equal.
19864
19865 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19866
19867 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19868 shift simplification where it was intended.
19869
19870 2014-05-19 Christian Bruel <christian.bruel@st.com>
19871
19872 PR target/61195
19873 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19874
19875 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19876
19877 PR target/61084
19878 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19879 than wide_int.
19880
19881 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19882
19883 * reg-notes.def (CROSSING_JUMP): Likewise.
19884 * rtl.h (rtx_def): Update comment for jump flag.
19885 (CROSSING_JUMP_P): Define.
19886 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19887 of a REG_CROSSING_JUMP note.
19888 * cfghooks.c (tidy_fallthru_edges): Likewise.
19889 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19890 * emit-rtl.c (try_split): Likewise.
19891 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19892 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19893 * jump.c (redirect_jump_2): Likewise.
19894 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19895 (relax_delay_slots): Likewise.
19896 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19897 (bbit_di): Likewise.
19898 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19899 * config/sh/sh.md (jump_compact): Likewise.
19900 * bb-reorder.c (rotate_loop): Likewise.
19901 (pass_duplicate_computed_gotos::execute): Likewise.
19902 (add_reg_crossing_jump_notes): Rename to...
19903 (update_crossing_jump_flags): ...this.
19904 (pass_partition_blocks::execute): Update accordingly.
19905
19906 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19907
19908 * tree.h: Remove extraneous template <>.
19909
19910 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19911
19912 * ipa.c (symtab_remove_unreachable_nodes): Remove
19913 symbol from comdat group if its body was eliminated.
19914 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19915 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19916 (symtab_unregister_node): ... this one.
19917 (verify_symtab_base): More strict checking of comdats.
19918 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19919
19920 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19921
19922 * tree-pass.h (make_pass_ipa_comdats): New pass.
19923 * timevar.def (TV_IPA_COMDATS): New timevar.
19924 * passes.def (pass_ipa_comdats): Add.
19925 * Makefile.in (OBJS): Add ipa-comdats.o
19926 * ipa-comdats.c: New file.
19927
19928 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19929
19930 * ipa.c (update_visibility_by_resolution_info): New function.
19931 (function_and_variable_visibility): Use it.
19932
19933 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19934
19935 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19936 New functions.
19937 (FOR_EACH_DEFINED_SYMBOL): New macro.
19938 (varpool_first_static_initializer, varpool_next_static_initializer,
19939 varpool_first_defined_variable, varpool_next_defined_variable):
19940 Fix comments.
19941 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19942
19943 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19944
19945 * ggc-page.c (ggc_handle_finalizers): Add comment.
19946
19947 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19948
19949 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19950 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19951 (ggc_internal_cleared_alloc): Likewise.
19952 * ggc-page.c (finalizer): New class.
19953 (vec_finalizer): Likewise.
19954 (globals::finalizers): New member.
19955 (globals::vec_finalizers): Likewise.
19956 (ggc_internal_alloc): Record the finalizer if any for the block being
19957 allocated.
19958 (ggc_handle_finalizers): New function.
19959 (ggc_collect): Call ggc_handle_finalizers.
19960 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19961 finalizer.
19962 (ggc_internal_cleared_alloc): Likewise.
19963 (finalize): New function.
19964 (need_finalization_p): Likewise.
19965 (ggc_alloc): Install the type's destructor as the finalizer if it
19966 might do something.
19967 (ggc_cleared_alloc): Likewise.
19968 (ggc_vec_alloc): Likewise.
19969 (ggc_cleared_vec_alloc): Likewise.
19970
19971 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19972
19973 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19974
19975 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19976
19977 * alias.c (record_alias_subset): Adjust.
19978 * bitmap.c (bitmap_element_allocate): Likewise.
19979 (bitmap_gc_alloc_stat): Likewise.
19980 * cfg.c (init_flow): Likewise.
19981 (alloc_block): Likewise.
19982 (unchecked_make_edge): Likewise.
19983 * cfgloop.c (alloc_loop): Likewise.
19984 (flow_loops_find): Likewise.
19985 (rescan_loop_exit): Likewise.
19986 * cfgrtl.c (init_rtl_bb_info): Likewise.
19987 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19988 (cgraph_allocate_node): Likewise.
19989 (cgraph_create_edge_1): Likewise.
19990 (cgraph_allocate_init_indirect_info): Likewise.
19991 * cgraphclones.c (cgraph_clone_edge): Likewise.
19992 * cgraphunit.c (add_asm_node): Likewise.
19993 (init_lowered_empty_function): Likewise.
19994 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19995 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19996 (alpha_use_linkage): Likewise.
19997 * config/arc/arc.c (arc_init_machine_status): Likewise.
19998 * config/arm/arm.c (arm_init_machine_status): Likewise.
19999 * config/avr/avr.c (avr_init_machine_status): Likewise.
20000 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20001 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
20002 * config/cris/cris.c (cris_init_machine_status): Likewise.
20003 * config/darwin.c (machopic_indirection_name): Likewise.
20004 (darwin_build_constant_cfstring): Likewise.
20005 (darwin_enter_string_into_cfstring_table): Likewise.
20006 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
20007 * config/frv/frv.c (frv_init_machine_status): Likewise.
20008 * config/i386/i386.c (get_dllimport_decl): Likewise.
20009 (ix86_init_machine_status): Likewise.
20010 (assign_386_stack_local): Likewise.
20011 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20012 (i386_pe_maybe_record_exported_symbol): Likewise.
20013 (i386_pe_record_stub): Likewise.
20014 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20015 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20016 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20017 (m32c_note_pragma_address): Likewise.
20018 * config/mep/mep.c (mep_init_machine_status): Likewise.
20019 (mep_note_pragma_flag): Likewise.
20020 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20021 (mips16_local_alias): Likewise.
20022 (mips_init_machine_status): Likewise.
20023 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20024 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20025 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
20026 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
20027 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
20028 * config/pa/pa.c (pa_init_machine_status): Likewise.
20029 (pa_get_deferred_plabel): Likewise.
20030 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
20031 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20032 (rs6000_init_machine_status): Likewise.
20033 (output_toc): Likewise.
20034 * config/s390/s390.c (s390_init_machine_status): Likewise.
20035 * config/score/score.c (score_output_external): Likewise.
20036 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20037 * config/spu/spu.c (spu_init_machine_status): Likewise.
20038 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
20039 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
20040 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20041 * coverage.c (coverage_end_function): Likewise.
20042 * dbxout.c (dbxout_init): Likewise.
20043 * doc/gty.texi: Don't mention variable_size attribute.
20044 * dwarf2cfi.c (new_cfi): Adjust.
20045 (new_cfi_row): Likewise.
20046 (copy_cfi_row): Likewise.
20047 (create_cie_data): Likewise.
20048 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
20049 (new_loc_descr): Likewise.
20050 (find_AT_string_in_table): Likewise.
20051 (add_addr_table_entry): Likewise.
20052 (new_die): Likewise.
20053 (add_var_loc_to_decl): Likewise.
20054 (clone_die): Likewise.
20055 (clone_as_declaration): Likewise.
20056 (break_out_comdat_types): Likewise.
20057 (new_loc_list): Likewise.
20058 (add_loc_descr_to_each): Likewise.
20059 (add_location_or_const_value_attribute): Likewise.
20060 (add_linkage_name): Likewise.
20061 (lookup_filename): Likewise.
20062 (dwarf2out_var_location): Likewise.
20063 (new_line_info_table): Likewise.
20064 (dwarf2out_init): Likewise.
20065 (mem_loc_descriptor): Likewise.
20066 (loc_descriptor): Likewise.
20067 (add_const_value_attribute): Likewise.
20068 (tree_add_const_value_attribute): Likewise.
20069 (comp_dir_string): Likewise.
20070 (dwarf2out_vms_debug_main_pointer): Likewise.
20071 (string_cst_pool_decl): Likewise.
20072 * emit-rtl.c (set_mem_attrs): Likewise.
20073 (get_reg_attrs): Likewise.
20074 (start_sequence): Likewise.
20075 (init_emit): Likewise.
20076 (init_emit_regs): Likewise.
20077 * except.c (init_eh_for_function): Likewise.
20078 (gen_eh_region): Likewise.
20079 (gen_eh_region_catch): Likewise.
20080 (gen_eh_landing_pad): Likewise.
20081 (add_call_site): Likewise.
20082 * function.c (add_frame_space): Likewise.
20083 (insert_temp_slot_address): Likewise.
20084 (assign_stack_temp_for_type): Likewise.
20085 (get_hard_reg_initial_val): Likewise.
20086 (allocate_struct_function): Likewise.
20087 (prepare_function_start): Likewise.
20088 (types_used_by_var_decl_insert): Likewise.
20089 * gengtype.c (variable_size_p): Remove function.
20090 (enum alloc_quantity): Remove enum.
20091 (write_typed_alloc_def): Remove function.
20092 (write_typed_struct_alloc_def): Likewise.
20093 (write_typed_typedef_alloc_def): Likewise.
20094 (write_typed_alloc_defns): Likewise.
20095 (main): Adjust.
20096 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
20097 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
20098 * ggc.h (ggc_alloc): new function.
20099 (ggc_cleared_alloc): Likewise.
20100 (ggc_vec_alloc): Template on type of vector element, and remove
20101 element size argument.
20102 (ggc_cleared_vec_alloc): Likewise.
20103 * gimple.c (gimple_build_omp_for): Adjust.
20104 (gimple_copy): Likewise.
20105 * ipa-cp.c (get_replacement_map): Likewise.
20106 (find_aggregate_values_for_callers_subset): Likewise.
20107 (known_aggs_to_agg_replacement_list): Likewise.
20108 * ipa-devirt.c (get_odr_type): Likewise.
20109 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
20110 (read_agg_replacement_chain): Likewise.
20111 * loop-iv.c (get_simple_loop_desc): Likewise.
20112 * lto-cgraph.c (input_node_opt_summary): Likewise.
20113 * lto-section-in.c (lto_new_in_decl_state): Likewise.
20114 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20115 (input_eh_region): Likewise.
20116 (input_eh_lp): Likewise.
20117 (input_cfg): Likewise.
20118 * optabs.c (set_optab_libfunc): Likewise.
20119 (init_tree_optimization_optabs): Likewise.
20120 (set_conv_libfunc): Likewise.
20121 * passes.c (do_per_function_toporder): Likewise.
20122 * rtl.h: Don't use variable_size gty attribute.
20123 * sese.c (if_region_set_false_region): Adjust.
20124 * stringpool.c (gt_pch_save_stringpool): Likewise.
20125 * target-globals.c (save_target_globals): Likewise.
20126 * toplev.c (general_init): Likewise.
20127 * trans-mem.c (record_tm_replacement): Likewise.
20128 (split_bb_make_tm_edge): Likewise.
20129 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20130 * tree-data-ref.h (lambda_vector_new): Likewise.
20131 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20132 * tree-iterator.c (tsi_link_before): Likewise.
20133 (tsi_link_after): Likewise.
20134 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20135 * tree-ssa-loop-niter.c (record_estimate): Likewise.
20136 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20137 * tree-ssa-operands.h: Don't use variable_size gty attribute.
20138 * tree-ssa.c (init_tree_ssa): Adjust.
20139 * tree-ssanames.c (set_range_info): Likewise.
20140 (get_ptr_info): Likewise.
20141 (duplicate_ssa_name_ptr_info): Likewise.
20142 (duplicate_ssa_name_range_info): Likewise.
20143 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
20144 (unpack_ts_fixed_cst_value_fields): Likewise.
20145 * tree.c (build_fixed): Likewise.
20146 (build_real): Likewise.
20147 (build_string): Likewise.
20148 (decl_priority_info): Likewise.
20149 (decl_debug_expr_insert): Likewise.
20150 (decl_value_expr_insert): Likewise.
20151 (decl_debug_args_insert): Likewise.
20152 (type_hash_add): Likewise.
20153 (build_omp_clause): Likewise.
20154 * ubsan.c (decl_for_type_insert): Likewise.
20155 * varasm.c (get_unnamed_section): Likewise.
20156 (get_noswitch_section): Likewise.
20157 (get_section): Likewise.
20158 (get_block_for_section): Likewise.
20159 (create_block_symbol): Likewise.
20160 (build_constant_desc): Likewise.
20161 (create_constant_pool): Likewise.
20162 (force_const_mem): Likewise.
20163 (record_tm_clone_pair): Likewise.
20164 * varpool.c (varpool_create_empty_node): Likewise.
20165
20166 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
20167
20168 * dwarf2out.c (tree_add_const_value_attribute): Call
20169 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
20170 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
20171 instead of ggc_internal_<x>alloc_stat.
20172 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
20173 (ggc_realloc): Likewise.
20174 * ggc-none.c (ggc_internal_alloc): Likewise.
20175 (ggc_internal_cleared_alloc): Likewise.
20176 * ggc-page.c: Likewise.
20177 * ggc.h (ggc_internal_alloc_stat): Likewise.
20178 (ggc_internal_alloc): Remove macro.
20179 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
20180 (ggc_internal_cleared_alloc): Remove macro.
20181 (GGC_RESIZEVEC): Adjust.
20182 (ggc_resizevar): Remove macro.
20183 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
20184 (ggc_internal_cleared_vec_alloc_stat): Likewise.
20185 (ggc_internal_vec_cleared_alloc): Remove macro.
20186 (ggc_alloc_atomic_stat): Drop _stat suffix.
20187 (ggc_alloc_atomic): Remove macro.
20188 (ggc_alloc_cleared_atomic): Remove macro.
20189 (ggc_alloc_string_stat): Drop _stat suffix.
20190 (ggc_alloc_string): Remove macro.
20191 (ggc_alloc_rtx_def_stat): Adjust.
20192 (ggc_alloc_tree_node_stat): Likewise.
20193 (ggc_alloc_cleared_tree_node_stat): Likewise.
20194 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
20195 (ggc_alloc_cleared_simd_clone_stat): Likewise.
20196 * gimple.c (gimple_build_omp_for): Likewise.
20197 (gimple_copy): Likewise.
20198 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
20199 * toplev.c (realloc_for_line_map): Adjust.
20200 * tree-data-ref.h (lambda_vector_new): Likewise.
20201 * tree-phinodes.c (allocate_phi_node): Likewise.
20202 * tree.c (grow_tree_vec_stat): Likewise.
20203 * vec.h (va_gc::reserve): Adjust.
20204
20205 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
20206
20207 * config/microblaze/microblaze.c (break_handler): New Declaration.
20208 (microblaze_break_function_p,microblaze_is_break_handler): New.
20209 (compute_frame_size): Use microblaze_break_function_p.
20210 Add the test of break_handler.
20211 (microblaze_function_prologue) : Add the test of variable
20212 break_handler. Check the fnname by BREAK_HANDLER_NAME.
20213 (microblaze_function_epilogue) : Add the test of break_handler.
20214 (microblaze_globalize_label) : Add the test of break_handler.
20215 Check the name by BREAK_HANDLER_NAME.
20216
20217 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
20218
20219 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
20220 microblaze_is_break_handler test.
20221 (call_internal1,call_value_intern): Use microblaze_break_function_p.
20222 Use SYMBOL_REF_DECL.
20223
20224 * config/microblaze/microblaze-protos.h
20225 (microblaze_break_function_p,microblaze_is_break_handler):
20226 New Declaration.
20227
20228 * doc/extend.texi (MicroBlaze break_handler Functions): Document
20229 new MicroBlaze break_handler functions.
20230
20231 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
20232
20233 * doc/extend.texi (Size of an asm): Move node text according
20234 to its @menu entry position.
20235
20236 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
20237
20238 PR tree-optimization/61140
20239 PR tree-optimization/61150
20240 PR tree-optimization/61197
20241 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
20242
20243 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
20244
20245 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
20246
20247 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
20248
20249 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
20250 __SIZEOF_INT128__ is defined.
20251
20252 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
20253
20254 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
20255 (rs6000_delegitimize_address): Use it.
20256
20257 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
20258
20259 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
20260 inplace argument. Store the new address in the original MEM when true.
20261 * emit-rtl.c (change_address_1): Likewise.
20262 (adjust_address_1, adjust_automodify_address_1, offset_address):
20263 Update accordingly.
20264 * rtl.h (plus_constant): Add an inplace argument.
20265 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
20266 when true. Avoid generating (plus X (const_int 0)).
20267 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
20268 in-place. Pass true to plus_constant.
20269 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
20270
20271 2014-05-16 Dehao Chen <dehao@google.com>
20272
20273 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
20274
20275 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20276
20277 PR target/54089
20278 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
20279 patterns.
20280 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
20281
20282 2014-05-16 Dehao Chen <dehao@google.com>
20283
20284 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
20285 optimize_function_for_size_p.
20286 * regs.h (REG_FREQ_FROM_BB): Likewise.
20287
20288 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20289
20290 PR target/51244
20291 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
20292 negt_reg_operand cases.
20293 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
20294 predicate.
20295 * config/sh/predicates.md (cbranch_treg_value): Simplify.
20296
20297 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20298
20299 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
20300 target variants.
20301
20302 2014-05-16 David Malcolm <dmalcolm@redhat.com>
20303
20304 Revert:
20305 2014-04-29 David Malcolm <dmalcolm@redhat.com>
20306
20307 * tree-cfg.c (dump_function_to_file): Dump the return type of
20308 functions, in a line to itself before the function body, mimicking
20309 the layout of a C function.
20310
20311 2014-05-16 Dehao Chen <dehao@google.com>
20312
20313 * cfghooks.c (make_forwarder_block): Use direct computation to
20314 get fall-through edge's count and frequency.
20315
20316 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
20317
20318 * config/arc/arc.c (arc_init): Fix typo in error message.
20319 * config/i386/i386.c (ix86_expand_builtin): Likewise.
20320 (split_stack_prologue_scratch_regno): Likewise.
20321 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
20322 word from error message.
20323
20324 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20325
20326 * ira-costs.c: Fix typo in comment.
20327
20328 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
20329
20330 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20331
20332 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
20333
20334 * varpool.c (dump_varpool_node): Dump write-only flag.
20335 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20336 write-only flag.
20337 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20338 write-only variables.
20339 * ipa.c (process_references): New function.
20340 (set_readonly_bit): New function.
20341 (set_writeonly_bit): New function.
20342 (clear_addressable_bit): New function.
20343 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20344 fix handling of aliases.
20345 * cgraph.h (struct varpool_node): Add writeonly flag.
20346
20347 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
20348
20349 PR rtl-optimization/60969
20350 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20351 Calculate costs for this case.
20352
20353 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
20354
20355 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20356 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20357
20358 2014-05-16 Richard Biener <rguenther@suse.de>
20359
20360 PR tree-optimization/61194
20361 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20362 bool patterns ending in a COND_EXPR.
20363
20364 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20365
20366 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20367
20368 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20369
20370 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20371 where we were unable to cost an RTX.
20372
20373 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20374
20375 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20376 HIGH, LO_SUM.
20377
20378 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20379 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20380
20381 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
20382
20383 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20384 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20385
20386 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20387 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20388
20389 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20390 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20391
20392 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20393 operators.
20394
20395 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20396 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20397
20398 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20399 DIV/MOD.
20400
20401 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20402 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20403
20404 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20405 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20406
20407 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20408 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20409
20410 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20411 rotates and shifts.
20412
20413 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20414 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20415
20416 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20417 ZERO_EXTEND and SIGN_EXTEND better.
20418
20419 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20420 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20421
20422 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20423 logical operations.
20424
20425 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20426 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20427
20428 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20429 costs when costing loads and stores to memory.
20430
20431 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20432 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
20433
20434 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20435 for SET RTX.
20436
20437 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20438
20439 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20440
20441 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20442 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20443
20444 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20445 to...
20446 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20447 well formed.
20448 (aarch64_rtx_mult_cost): New.
20449 (aarch64_rtx_costs): Use it, refactor as appropriate.
20450
20451 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20452 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20453
20454 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20455 emit instructions, return number of instructions which would
20456 be emitted.
20457 (aarch64_add_constant): Update call to aarch64_build_constant.
20458 (aarch64_output_mi_thunk): Likewise.
20459 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20460 a CONST_DOUBLE.
20461
20462 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20463
20464 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20465 (TARGET_RTX_COSTS): Call it.
20466
20467 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20468
20469 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20470 (cortexa57_vector_cost): Likewise.
20471 (cortexa57_tunings): Use them.
20472
20473 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20474
20475 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20476 (cpu_addrcost_table): Use it.
20477 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20478 (aarch64_address_cost): Rewrite using aarch64_classify_address,
20479 move it.
20480
20481 2014-05-16 Richard Biener <rguenther@suse.de>
20482
20483 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20484 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20485 (visit_phi): Ignore edges marked as not executable.
20486 (class cond_dom_walker): New.
20487 (cond_dom_walker::before_dom_children): Value-number
20488 control statements and mark successor edges as not
20489 executable if possible.
20490 (run_scc_vn): First walk all control statements in
20491 dominator order, marking edges as not executable.
20492 * tree-inline.c (copy_edges_for_bb): Be not confused
20493 about random edge flags.
20494
20495 2014-05-16 Richard Biener <rguenther@suse.de>
20496
20497 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20498
20499 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
20500
20501 PR target/61193
20502 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20503 (__TM_simple_begin): Use it.
20504 (__TM_begin): Likewise.
20505
20506 2014-05-15 Martin Jambor <mjambor@suse.cz>
20507
20508 PR ipa/61085
20509 * ipa-prop.c (update_indirect_edges_after_inlining): Check
20510 type_preserved flag when the indirect edge is polymorphic.
20511
20512 2014-05-15 Martin Jambor <mjambor@suse.cz>
20513
20514 PR tree-optimization/61090
20515 * tree-sra.c (sra_modify_expr): Pass the current gsi to
20516 build_ref_for_model.
20517
20518 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20519
20520 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20521 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20522
20523 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20524
20525 PR tree-optimization/61158
20526 * fold-const.c (fold_binary_loc): If X is zero-extended and
20527 shiftc >= prec, make sure zerobits is all ones instead of
20528 invoking undefined behavior.
20529
20530 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20531
20532 * regcprop.h: New file.
20533 * regcprop.c (skip_debug_insn_p): New decl.
20534 (replace_oldest_value_reg): Check skip_debug_insn_p.
20535 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20536 * shrink-wrap.c: Include regcprop.h.
20537 (prepare_shrink_wrap): Call
20538 copyprop_hardreg_forward_bb_without_debug_insn.
20539
20540 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20541
20542 * shrink-wrap.h: Update comment.
20543 * shrink-wrap.c: Update comment.
20544 (next_block_for_reg): Rename to live_edge_for_reg.
20545 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20546 (move_insn_for_shrink_wrap): Split live_edge.
20547 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20548
20549 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20550
20551 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20552 Delete.
20553 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20554 * config/sparc/sparc.md (fptype_ut699): New attribute.
20555 (in_branch_delay): Return false if -mfix-ut699 is specified and
20556 fptype_ut699 is set to single.
20557 (truncdfsf2): Add fptype_ut699 attribute.
20558 (fix_truncdfsi2): Likewise.
20559 (floatsisf2): Change fptype attribute.
20560 (fix_truncsfsi2): Likewise.
20561 (negtf2_notv9): Delete.
20562 (negtf2_v9): Likewise.
20563 (negtf2_hq): New instruction.
20564 (negtf2): New instruction and splitter.
20565 (negdf2_notv9): Rewrite.
20566 (abstf2_notv9): Delete.
20567 (abstf2_hq_v9): Likewise.
20568 (abstf2_v9): Likewise.
20569 (abstf2_hq): New instruction.
20570 (abstf2): New instruction and splitter.
20571 (absdf2_notv9): Rewrite.
20572
20573 2014-05-14 Cary Coutant <ccoutant@google.com>
20574
20575 PR debug/61013
20576 * opts.c (common_handle_option): Don't special-case "-g".
20577 (set_debug_level): Default to at least level 2 with "-g".
20578
20579 2014-05-14 DJ Delorie <dj@redhat.com>
20580
20581 * config/msp430/msp430.c (msp430_builtin): Add
20582 MSP430_BUILTIN_DELAY_CYCLES.
20583 (msp430_init_builtins): Register void __delay_cycles(long long).
20584 (msp430_builtin_decl): Add it.
20585 (cg_magic_constant): New.
20586 (msp430_expand_delay_cycles): New.
20587 (msp430_expand_builtin): Call it.
20588 (msp430_print_operand_raw): Change integer printing from "int" to
20589 HOST_WIDE_INT.
20590 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20591 (delay_cycles_start): New.
20592 (delay_cycles_end): New.
20593 (delay_cycles_32): New.
20594 (delay_cycles_32x): New.
20595 (delay_cycles_16): New.
20596 (delay_cycles_16x): New.
20597 (delay_cycles_2): New.
20598 (delay_cycles_1): New.
20599 * doc/extend.texi: Document __delay_cycles().
20600
20601 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20602
20603 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20604 length attribute computation.
20605
20606 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20607
20608 PR debug/61188
20609 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20610
20611 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20612
20613 PR target/61084
20614 * config/sparc/sparc.md: Fix types of low and high in DI constant
20615 splitter. Use gen_int_mode in some other splitters.
20616
20617 2014-05-14 Martin Jambor <mjambor@suse.cz>
20618
20619 PR ipa/60897
20620 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20621
20622 2014-05-14 James Norris <jnorris@codesourcery.com>
20623
20624 * omp-low.c (expand_parallel_call): Remove shadow variable.
20625 (expand_omp_taskreg): Likewise.
20626
20627 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20628
20629 * common/config/i386/i386-common.c
20630 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20631 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20632 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20633 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20634 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20635 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20636 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20637 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20638 xsavecintrin.h, xsavesintrin.h.
20639 (x86_64-*-*): Ditto.
20640 * config/i386/clflushoptintrin.h: New.
20641 * config/i386/xsavecintrin.h: Ditto.
20642 * config/i386/xsavesintrin.h: Ditto.
20643 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20644 (bit_XSAVES): Ditto.
20645 (bit_XSAVES): Ditto.
20646 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20647 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20648 -mno-clflushopt.
20649 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20650 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20651 OPTION_MASK_ISA_XSAVES.
20652 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20653 -mxsavec, -mxsaves.
20654 (PTA_CLFLUSHOPT) Define.
20655 (PTA_XSAVEC): Ditto.
20656 (PTA_XSAVES): Ditto.
20657 (ix86_option_override_internal): Handle new options.
20658 (ix86_valid_target_attribute_inner_p): Ditto.
20659 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20660 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20661 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20662 (bdesc_special_args): Add __builtin_ia32_xsaves,
20663 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20664 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20665 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20666 (ix86_expand_builtin): Handle new builtins.
20667 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20668 (TARGET_CLFLUSHOPT_P): Ditto.
20669 (TARGET_XSAVEC): Ditto.
20670 (TARGET_XSAVEC_P): Ditto.
20671 (TARGET_XSAVES): Ditto.
20672 (TARGET_XSAVES_P): Ditto.
20673 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20674 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20675 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20676 (ANY_XRSTOR): New.
20677 (ANY_XRSTOR64): Ditto.
20678 (xrstor): Ditto.
20679 (xrstor): Change into <xrstor>.
20680 (xrstor_rex64): Change into <xrstor>_rex64.
20681 (xrstor64): Change into <xrstor>64
20682 (clflushopt): New.
20683 * config/i386/i386.opt (mclflushopt): New.
20684 (mxsavec): Ditto.
20685 (mxsaves): Ditto.
20686 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20687 xsavecintrin.h.
20688 * doc/invoke.texi: Document new options.
20689
20690 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20691
20692 PR rtl-optimization/60866
20693 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20694 Default it to -1. Pass it down to init_simplejump_data.
20695 (init_simplejump_data): New parameter old_seqno. Pass it down
20696 to get_seqno_for_a_jump.
20697 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20698 initializing new jump seqno as a last resort. Add comment.
20699 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20700 jump and pass it down to sel_init_new_insn.
20701 (sel_redirect_edge_and_branch_force): Likewise.
20702
20703 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20704
20705 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20706 shifted values to avoid build warning.
20707
20708 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20709
20710 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20711 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20712 (cfg_layout_merge_blocks): Likewise.
20713 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20714
20715 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20716
20717 PR rtl-optimization/60901
20718 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20719 bb predecessor belongs to the same scheduling region. Adjust comment.
20720
20721 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20722
20723 * doc/sourcebuild.texi: (dfp_hw): Document.
20724 (p8vector_hw): Likewise.
20725 (powerpc_eabi_ok): Likewise.
20726 (powerpc_elfv2): Likewise.
20727 (powerpc_htm_ok): Likewise.
20728 (ppc_recip_hw): Likewise.
20729 (vsx_hw): Likewise.
20730
20731 2014-05-13 Cary Coutant <ccoutant@google.com>
20732
20733 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20734
20735 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20736
20737 * gengtype-parse.c (require3): Eliminate in favor of...
20738 (require4): New.
20739 (require_template_declaration): Update to support optional single *
20740 on a type.
20741
20742 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20743 (create_user_defined_type): Handle a single level of explicit
20744 pointerness within template arguments.
20745 (struct write_types_data): Add field "kind".
20746 (filter_type_name): Handle "*" character.
20747 (write_user_func_for_structure_ptr): Require a write_types_data
20748 rather than just a prefix string, so that we can look up the kind
20749 of the wtd and use it as an index into wrote_user_func_for_ptr,
20750 ensuring that such functions are written at most once. Support
20751 subclasses by invoking the marking function of the ultimate base class.
20752 (write_user_func_for_structure_body): Require a write_types_data
20753 rather than just a prefix string, so that we can pass this to
20754 write_user_func_for_structure_ptr.
20755 (write_func_for_structure): Likewise.
20756 (ggc_wtd): Add initializer of new "kind" field.
20757 (pch_wtd): Likewise.
20758
20759 * gengtype.h (enum write_types_kinds): New.
20760 (struct type): Add field wrote_user_func_for_ptr to the "s"
20761 union member.
20762
20763 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20764
20765 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20766 instead of const_binop.
20767 (fold_binary_loc): Likewise.
20768
20769 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20770
20771 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20772 calculation to match get_ref_base_and_extent.
20773
20774 2014-05-13 Catherine Moore <clm@codesourcery.com>
20775 Sandra Loosemore <sandra@codesourcery.com>
20776
20777 * configure.ac: Fix assembly for explicit JALR relocation check.
20778 * configure: Regenerate.
20779
20780 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20781
20782 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20783 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20784 Remove associated type declarations and initialisations.
20785 (arm_expand_neon_builtin): Likewise.
20786 (neon_emit_pair_result_insn): Delete.
20787 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20788 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20789 (neon_vzip<mode>): Likewise.
20790 (neon_vuzp<mode>): Likewise.
20791
20792 2014-05-13 Richard Biener <rguenther@suse.de>
20793
20794 PR ipa/60973
20795 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20796 it needs revisiting whether the call still may be tail-called.
20797
20798 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20799
20800 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20801 * rtl.h (block_symbol): Reduce number of fields to 2.
20802 (rtx_def): Add u2.symbol_ref_flags.
20803 (SYMBOL_REF_FLAGS): Use it.
20804 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20805 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20806 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20807 Lower index of SYMBOL_REF_DATA.
20808 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20809 Print SYMBOL_REF_FLAGS at the same time.
20810 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20811
20812 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20813
20814 * rtl.def (VAR_LOCATION): Remove "i" field.
20815 * rtl.h (rtx_def): Add u2.var_location_status.
20816 (PAT_VAR_LOCATION_STATUS): Use it.
20817 (gen_rtx_VAR_LOCATION): Declare.
20818 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20819 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20820 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20821
20822 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20823
20824 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20825 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20826
20827 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20828
20829 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20830 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20831 * rtl.h (rtx_def): Add insn_uid to u2 field.
20832 (RTX_FLAG_CHECK8): Delete in favor of...
20833 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20834 (INSN_DELETED_P): Update accordingly.
20835 (INSN_UID): Use u2.insn_uid.
20836 (INSN_CHAIN_CODE_P): Define.
20837 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20838 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20839 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20840 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20841 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20842 indices accordingly.
20843 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20844 Update indices for insn-chain rtxes.
20845 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20846 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20847 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20848 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20849 * combine.c (try_combine): Likewise.
20850 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20851
20852 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20853
20854 * rtl.def (REG): Remove middle field.
20855 * rtl.h (rtx_def): Add orignal_regno to u2.
20856 (ORIGINAL_REGNO): Use it instead of field 1.
20857 (REG_ATTRS): Lower field index accordingly.
20858 * gengtype.c (adjust_field_rtx_def): Remove handling of
20859 ORIGINAL_REGNO. Move REG_ATTRS index down.
20860 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20861 code that prints the REGNO.
20862
20863 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20864
20865 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20866 GENERATOR_FILE.
20867
20868 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20869
20870 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20871
20872 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20873
20874 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20875 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20876
20877 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20878
20879 * config/aarch64/aarch64-protos.h
20880 (aarch64_hard_regno_caller_save_mode): New prototype.
20881 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20882 New function.
20883 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20884
20885 2014-05-13 Christian Bruel <christian.bruel@st.com>
20886
20887 * target.def (mode_switching): New hook vector.
20888 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20889 (mode_exit, modepriority_to_mode): Likewise.
20890 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20891 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20892 * target.h: Include tm.h and hard-reg-set.h.
20893 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20894 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20895 * doc/tm.texi Regenerate.
20896 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20897 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20898 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20899 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20900 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20901 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20902 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20903 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20904 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20905 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20906 (ix86_emit_mode_set): Hookify.
20907 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20908 Delete.
20909 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20910 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20911 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20912 (epiphany_mode_priority_to_mode): Remove declaration.
20913 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20914 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20915 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20916 Likewise.
20917 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20918 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20919 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20920
20921 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20922
20923 PR target/61060
20924 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20925 is const0_rtx, return immediately. Don't test count == 0 when
20926 it is always true.
20927
20928 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20929
20930 * Makefile.in: add shrink-wrap.o.
20931 * config/i386/i386.c: include "shrink-wrap.h"
20932 * function.c: Likewise.
20933 (requires_stack_frame_p, next_block_for_reg,
20934 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20935 dup_block_and_redirect): Move to shrink-wrap.c
20936 (thread_prologue_and_epilogue_insns): Extract three code segments
20937 as functions in shrink-wrap.c
20938 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20939 shrink-wrap.h
20940 * shrink-wrap.c: New file.
20941 * shrink-wrap.h: New file.
20942
20943 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20944
20945 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20946 reference to Solaris.
20947
20948 2014-05-12 Mike Stump <mikestump@comcast.net>
20949
20950 PR other/31778
20951 * genattrtab.c (filename): Add.
20952 (convert_set_attr_alternative): Improve error message.
20953 (check_defs): Restore read_md_filename for error messages.
20954 (gen_insn): Save filename.
20955
20956 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20957
20958 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20959 -fno-local-ivars and -fivar-visibility.
20960 * c-family/c.opt: Make -Wshadow also implicitly enable
20961 -Wshadow-ivar.
20962
20963 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20964
20965 * doc/tm.texi: Remove reference to deleted macro.
20966 * doc/tm.texi.in: Likewise.
20967
20968 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20969
20970 PR target/60991
20971 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20972 to restore Y.
20973
20974 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20975
20976 PR libgcc/61152
20977 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20978 * config/arm/aout.h (License): Same.
20979 * config/arm/bpabi.h (License): Same.
20980 * config/arm/elf.h (License): Same.
20981 * config/arm/linux-elf.h (License): Same.
20982 * config/arm/linux-gas.h (License): Same.
20983 * config/arm/netbsd-elf.h (License): Same.
20984 * config/arm/uclinux-eabi.h (License): Same.
20985 * config/arm/uclinux-elf.h (License): Same.
20986 * config/arm/vxworks.h (License): Same.
20987
20988 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20989
20990 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20991 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20992 number of operands to 3.
20993 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20994 * tree-nested.c (convert_nonlocal_omp_clauses,
20995 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20996 * gimplify.c (gimplify_scan_omp_clauses): Handle
20997 OMP_CLAUSE_LINEAR_STMT.
20998 * omp-low.c (lower_rec_input_clauses): Fix typo.
20999 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
21000 cast between Fortran boolean_type_node and C _Bool if
21001 needed.
21002
21003 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
21004
21005 PR tree-optimization/61136
21006 * wide-int.h (multiple_of_p): Define a version that doesn't return
21007 the quotient.
21008 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
21009 integer_zerop/const_binop pair.
21010 (multiple_of_p): Likewise, converting both operands to widest_int
21011 precision.
21012
21013 2014-05-09 Teresa Johnson <tejohnson@google.com>
21014
21015 * cgraphunit.c (analyze_functions): Use correct dump file.
21016
21017 2014-05-09 Florian Weimer <fweimer@redhat.com>
21018
21019 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
21020 expand_used_vars.
21021 (stack_protect_return_slot_p): New function.
21022 (expand_used_vars): Call stack_protect_decl_p and
21023 stack_protect_return_slot_p for -fstack-protector-strong.
21024
21025 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
21026 Andrew Haley <aph@redhat.com>
21027 Richard Sandiford <rdsandiford@googlemail.com>
21028
21029 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
21030 pages.
21031
21032 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
21033
21034 PR middle-end/61111
21035 * fold-const.c (fold_binary_loc): Changed width of mask.
21036
21037 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
21038
21039 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
21040 unsigned int initializers for regno_in, regno_out.
21041
21042 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
21043
21044 PR target/61055
21045 * config/avr/avr.md (cc): Add new attribute set_vzn.
21046 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
21047 Set cc insn attribute to set_vzn instead of set_zn for alternatives
21048 with INC, DEC or NEG.
21049 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
21050 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
21051 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
21052
21053 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21054
21055 Revert:
21056 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21057
21058 * wide-int.cc (UTItype): Define.
21059 (UDWtype): Define for appropriate W_TYPE_SIZE.
21060
21061 2014-05-09 Richard Biener <rguenther@suse.de>
21062
21063 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
21064 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
21065 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
21066 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
21067 ssa_propagate): Adjust.
21068
21069 2014-05-08 Jeff Law <law@redhat.com>
21070
21071 PR tree-optimization/61009
21072 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
21073 tri-state rather than a boolean. When a block is too big to
21074 thread through, inform caller via negative return value.
21075 (thread_across_edge): If a block was too big for normal threading,
21076 then it's too big for a joiner too, so remove temporary equivalences
21077 and return immediately.
21078
21079 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
21080 Matthias Klose <doko@ubuntu.com>
21081
21082 PR driver/61106
21083 * optc-gen.awk: Fix option handling for -Wunused-parameter.
21084
21085 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
21086
21087 PR target/59952
21088 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
21089
21090 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
21091
21092 PR target/61092
21093 * config/alpha/alpha.c: Include gimple-iterator.h.
21094 (alpha_gimple_fold_builtin): New function. Move
21095 ALPHA_BUILTIN_UMULH folding from ...
21096 (alpha_fold_builtin): ... here.
21097 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
21098
21099 2014-05-08 Wei Mi <wmi@google.com>
21100
21101 PR target/58066
21102 * config/i386/i386.c (ix86_compute_frame_layout): Update
21103 preferred_stack_boundary for call, expanded from tls descriptor.
21104 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
21105 to depend on SP register.
21106 (*tls_local_dynamic_base_32_gnu): Ditto.
21107 (*tls_local_dynamic_32_once): Ditto.
21108 (tls_global_dynamic_64_<mode>): Set
21109 ix86_tls_descriptor_calls_expanded_in_cfun.
21110 (tls_local_dynamic_base_64_<mode>): Ditto.
21111 (tls_global_dynamic_32): Set
21112 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
21113 to depend on SP register.
21114 (tls_local_dynamic_base_32): Ditto.
21115
21116 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21117
21118 * config/arm/arm_neon.h: Update comment.
21119 * config/arm/neon-docgen.ml: Delete.
21120 * config/arm/neon-gen.ml: Delete.
21121 * doc/arm-neon-intrinsics.texi: Update comment.
21122
21123 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21124
21125 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
21126 and v4sf versions.
21127 (vand, vorr, veor, vorn, vbic): Remove.
21128 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
21129 iterator.
21130 (neon_vsub_unspec): Likewise.
21131 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
21132
21133 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21134
21135 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
21136 (vadd_s16): Likewise.
21137 (vadd_s32): Likewise.
21138 (vadd_f32): Likewise.
21139 (vadd_u8): Likewise.
21140 (vadd_u16): Likewise.
21141 (vadd_u32): Likewise.
21142 (vadd_s64): Likewise.
21143 (vadd_u64): Likewise.
21144 (vaddq_s8): Likewise.
21145 (vaddq_s16): Likewise.
21146 (vaddq_s32): Likewise.
21147 (vaddq_s64): Likewise.
21148 (vaddq_f32): Likewise.
21149 (vaddq_u8): Likewise.
21150 (vaddq_u16): Likewise.
21151 (vaddq_u32): Likewise.
21152 (vaddq_u64): Likewise.
21153 (vmul_s8): Likewise.
21154 (vmul_s16): Likewise.
21155 (vmul_s32): Likewise.
21156 (vmul_f32): Likewise.
21157 (vmul_u8): Likewise.
21158 (vmul_u16): Likewise.
21159 (vmul_u32): Likewise.
21160 (vmul_p8): Likewise.
21161 (vmulq_s8): Likewise.
21162 (vmulq_s16): Likewise.
21163 (vmulq_s32): Likewise.
21164 (vmulq_f32): Likewise.
21165 (vmulq_u8): Likewise.
21166 (vmulq_u16): Likewise.
21167 (vmulq_u32): Likewise.
21168 (vsub_s8): Likewise.
21169 (vsub_s16): Likewise.
21170 (vsub_s32): Likewise.
21171 (vsub_f32): Likewise.
21172 (vsub_u8): Likewise.
21173 (vsub_u16): Likewise.
21174 (vsub_u32): Likewise.
21175 (vsub_s64): Likewise.
21176 (vsub_u64): Likewise.
21177 (vsubq_s8): Likewise.
21178 (vsubq_s16): Likewise.
21179 (vsubq_s32): Likewise.
21180 (vsubq_s64): Likewise.
21181 (vsubq_f32): Likewise.
21182 (vsubq_u8): Likewise.
21183 (vsubq_u16): Likewise.
21184 (vsubq_u32): Likewise.
21185 (vsubq_u64): Likewise.
21186 (vand_s8): Likewise.
21187 (vand_s16): Likewise.
21188 (vand_s32): Likewise.
21189 (vand_u8): Likewise.
21190 (vand_u16): Likewise.
21191 (vand_u32): Likewise.
21192 (vand_s64): Likewise.
21193 (vand_u64): Likewise.
21194 (vandq_s8): Likewise.
21195 (vandq_s16): Likewise.
21196 (vandq_s32): Likewise.
21197 (vandq_s64): Likewise.
21198 (vandq_u8): Likewise.
21199 (vandq_u16): Likewise.
21200 (vandq_u32): Likewise.
21201 (vandq_u64): Likewise.
21202 (vorr_s8): Likewise.
21203 (vorr_s16): Likewise.
21204 (vorr_s32): Likewise.
21205 (vorr_u8): Likewise.
21206 (vorr_u16): Likewise.
21207 (vorr_u32): Likewise.
21208 (vorr_s64): Likewise.
21209 (vorr_u64): Likewise.
21210 (vorrq_s8): Likewise.
21211 (vorrq_s16): Likewise.
21212 (vorrq_s32): Likewise.
21213 (vorrq_s64): Likewise.
21214 (vorrq_u8): Likewise.
21215 (vorrq_u16): Likewise.
21216 (vorrq_u32): Likewise.
21217 (vorrq_u64): Likewise.
21218 (veor_s8): Likewise.
21219 (veor_s16): Likewise.
21220 (veor_s32): Likewise.
21221 (veor_u8): Likewise.
21222 (veor_u16): Likewise.
21223 (veor_u32): Likewise.
21224 (veor_s64): Likewise.
21225 (veor_u64): Likewise.
21226 (veorq_s8): Likewise.
21227 (veorq_s16): Likewise.
21228 (veorq_s32): Likewise.
21229 (veorq_s64): Likewise.
21230 (veorq_u8): Likewise.
21231 (veorq_u16): Likewise.
21232 (veorq_u32): Likewise.
21233 (veorq_u64): Likewise.
21234 (vbic_s8): Likewise.
21235 (vbic_s16): Likewise.
21236 (vbic_s32): Likewise.
21237 (vbic_u8): Likewise.
21238 (vbic_u16): Likewise.
21239 (vbic_u32): Likewise.
21240 (vbic_s64): Likewise.
21241 (vbic_u64): Likewise.
21242 (vbicq_s8): Likewise.
21243 (vbicq_s16): Likewise.
21244 (vbicq_s32): Likewise.
21245 (vbicq_s64): Likewise.
21246 (vbicq_u8): Likewise.
21247 (vbicq_u16): Likewise.
21248 (vbicq_u32): Likewise.
21249 (vbicq_u64): Likewise.
21250 (vorn_s8): Likewise.
21251 (vorn_s16): Likewise.
21252 (vorn_s32): Likewise.
21253 (vorn_u8): Likewise.
21254 (vorn_u16): Likewise.
21255 (vorn_u32): Likewise.
21256 (vorn_s64): Likewise.
21257 (vorn_u64): Likewise.
21258 (vornq_s8): Likewise.
21259 (vornq_s16): Likewise.
21260 (vornq_s32): Likewise.
21261 (vornq_s64): Likewise.
21262 (vornq_u8): Likewise.
21263 (vornq_u16): Likewise.
21264 (vornq_u32): Likewise.
21265 (vornq_u64): Likewise.
21266
21267 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21268
21269 * wide-int.cc (UTItype): Define.
21270 (UDWtype): Define for appropriate W_TYPE_SIZE.
21271
21272 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
21273
21274 PR tree-optimization/59100
21275 * tree-ssa-phiopt.c: Include tree-inline.h.
21276 (neutral_element_p, absorbing_element_p): New functions.
21277 (value_replacement): Handle conditional binary operations with a
21278 neutral or absorbing element.
21279
21280 2014-05-08 Richard Biener <rguenther@suse.de>
21281
21282 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
21283 folding the expression.
21284 (valueize_expr): Remove.
21285 (visit_reference_op_load): Do not valueize the result of
21286 vn_get_expr_for.
21287 (simplify_binary_expression): Likewise.
21288 (simplify_unary_expression): Likewise.
21289
21290 2014-05-08 Richard Biener <rguenther@suse.de>
21291
21292 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
21293 looking at TYPE_ARG_TYPES.
21294
21295 2014-05-08 Richard Biener <rguenther@suse.de>
21296
21297 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
21298 pointer propagation special-case.
21299
21300 2014-05-08 Bin Cheng <bin.cheng@arm.com>
21301
21302 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
21303 core part of address expressions.
21304
21305 2014-05-08 Alan Modra <amodra@gmail.com>
21306
21307 PR target/60737
21308 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
21309 loads and stores when -mno-strict-align at any alignment.
21310 (expand_block_clear): Similarly. Also correct calculation of
21311 instruction count.
21312
21313 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
21314
21315 PR middle-end/39246
21316 * tree-complex.c (expand_complex_move): Keep line info when expanding
21317 complex move.
21318 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
21319 of complex expression. Use new argument to display correct location
21320 for values coming from phi statement.
21321 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
21322 (warn_uninitialized_phi): Pass location of phi argument to
21323 warn_uninit.
21324 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
21325 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
21326
21327 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
21328
21329 * config/rs6000/predicates.md (indexed_address_mem): New.
21330 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21331 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21332 fpstore_ux, fpstore_u.
21333 (sign_extend, indexed, update): New.
21334 (cell_micro): Adjust.
21335 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21336 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21337 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21338 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21339 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21340 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21341 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21342 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21343 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21344 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21345 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21346 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21347 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21348 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21349 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21350
21351 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21352 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21353 *vsx_extract_<mode>_store): Adjust.
21354 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21355 is_cracked_insn, insn_must_be_first_in_group,
21356 insn_must_be_last_in_group): Adjust.
21357
21358 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21359 Adjust.
21360 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21361 ppc440-fpstore): Adjust.
21362 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21363 ppc476-fpstore): Adjust.
21364 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21365 ppc601-fpstore): Adjust.
21366 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21367 Adjust.
21368 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21369 Adjust.
21370 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21371 ppc7450-fpstore): Adjust.
21372 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21373 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21374 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21375 Adjust.
21376 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21377 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21378 cell-fpstore, cell-fpstore-update): Adjust.
21379 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21380 ppce300c3_store, ppce300c3_fpstore): Adjust.
21381 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21382 e500mc_fpstore): Adjust.
21383 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21384 e500mc64_store, e500mc64_fpstore): Adjust.
21385 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21386 e5500_fpstore): Adjust.
21387 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21388 e6500_fpstore): Adjust.
21389 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21390 Adjust.
21391 * config/rs6000/power4.md (power4-load, power4-load-ext,
21392 power4-load-ext-update, power4-load-ext-update-indexed,
21393 power4-load-update-indexed, power4-load-update, power4-fpload,
21394 power4-fpload-update, power4-store, power4-store-update,
21395 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21396 Adjust.
21397 * config/rs6000/power5.md (power5-load, power5-load-ext,
21398 power5-load-ext-update, power5-load-ext-update-indexed,
21399 power5-load-update-indexed, power5-load-update, power5-fpload,
21400 power5-fpload-update, power5-store, power5-store-update,
21401 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21402 Adjust.
21403 * config/rs6000/power6.md (power6-load, power6-load-ext,
21404 power6-load-update, power6-load-update-indexed,
21405 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21406 power6-fpload-update, power6-store, power6-store-update,
21407 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21408 Adjust.
21409 * config/rs6000/power7.md (power7-load, power7-load-ext,
21410 power7-load-update, power7-load-update-indexed,
21411 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21412 power7-fpload-update, power7-store, power7-store-update,
21413 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21414 Adjust.
21415 * config/rs6000/power8.md (power8-load, power8-load-update,
21416 power8-load-ext, power8-load-ext-update, power8-fpload,
21417 power8-fpload-update, power8-store, power8-store-update-indexed,
21418 power8-fpstore, power8-fpstore-update): Adjust.
21419 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21420 Adjust.
21421 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21422 titan_lsu_store, titan_lsu_fpstore): Adjust.
21423 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21424
21425 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21426
21427 PR target/60884
21428 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21429 unrolled byte insns. Emit address increments after move insns.
21430
21431 2014-05-07 David Malcolm <dmalcolm@redhat.com>
21432
21433 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21434 const_gimple, rather than a gimple.
21435 (gimple_call_builtin_p): Likewise, for the three variants.
21436
21437 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21438 (gimple_call_builtin_p): Likewise, for the three variants.
21439
21440 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21441
21442 PR tree-optimization/61095
21443 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21444
21445 2014-05-07 Richard Biener <rguenther@suse.de>
21446
21447 PR tree-optimization/61034
21448 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21449 (maybe_skip_until): Use translate to take into account
21450 lattices when trying to do disambiguations.
21451 (get_continuation_for_phi_1): Likewise.
21452 (get_continuation_for_phi): Adjust for added translate arguments.
21453 (walk_non_aliased_vuses): Likewise.
21454 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21455 (walk_non_aliased_vuses): Likewise.
21456 (call_may_clobber_ref_p_1): Declare.
21457 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21458 calls. Stop early if we are only supposed to disambiguate.
21459 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21460
21461 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
21462
21463 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21464 Emit an error when the function has arguments.
21465
21466 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21467
21468 * cfgloop.h (unswitch_loops): Remove.
21469 * doc/passes.texi: Remove references to loop-unswitch.c
21470 * timevar.def (TV_LOOP_UNSWITCH): Remove.
21471
21472 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
21473
21474 * tree-vect-data-refs.c (vect_grouped_load_supported): New
21475 check for loads group of length 3.
21476 (vect_permute_load_chain): New permutations for loads group of
21477 length 3.
21478 * tree-vect-stmts.c (vect_model_load_cost): Change cost
21479 of vec_perm_shuffle for the new permutations.
21480
21481 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
21482
21483 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21484 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21485 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21486 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21487 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21488 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21489 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21490 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21491
21492 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21493
21494 * loop-unswitch.c: Delete.
21495
21496 2014-05-07 Richard Biener <rguenther@suse.de>
21497
21498 * config.gcc: Always set need_64bit_hwint to yes.
21499
21500 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
21501
21502 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21503 of using optimize_size.
21504
21505 2014-05-06 Mike Stump <mikestump@comcast.net>
21506
21507 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21508
21509 2014-05-06 Joseph Myers <joseph@codesourcery.com>
21510
21511 * config/i386/sse.md (*mov<mode>_internal)
21512 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21513 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21514 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21515 (*<code><mode>3, *andnot<mode>3<mask_name>)
21516 (<mask_codefor><code><mode>3<mask_name>): Only consider
21517 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21518
21519 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21520
21521 Revert:
21522 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21523
21524 * lra-constraints.c (valid_address_p): Move earlier in file.
21525 Add a constraint argument to the address_info version.
21526 (satisfies_memory_constraint_p): New function.
21527 (satisfies_address_constraint_p): Likewise.
21528 (process_alt_operands, curr_insn_transform): Use them.
21529 (process_address): Pass the constraint to valid_address_p when
21530 checking address operands.
21531
21532 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21533
21534 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21535 to their respective blocks. Fix inadvertent use of "node".
21536
21537 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21538
21539 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21540 out from...
21541 (init_emit_once): ...here.
21542 * rtl.h (init_derived_machine_modes): Declare.
21543 * toplev.c (do_compile): Call it even if no_backend.
21544
21545 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21546 Mike Stump <mikestump@comcast.net>
21547 Richard Sandiford <rdsandiford@googlemail.com>
21548 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21549
21550 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21551 (rtx_equal_for_memref_p): Update comment.
21552 (adjust_offset_for_component_ref): Use wide-int interfaces.
21553 * builtins.c (get_object_alignment_2): Likewise.
21554 (c_readstr): Likewise.
21555 (target_char_cast): Add comment.
21556 (determine_block_size): Use wide-int interfaces.
21557 (expand_builtin_signbit): Likewise.
21558 (fold_builtin_int_roundingfn): Likewise.
21559 (fold_builtin_bitop): Likewise.
21560 (fold_builtin_bswap): Likewise.
21561 (fold_builtin_logarithm): Use signop.
21562 (fold_builtin_pow): Likewise.
21563 (fold_builtin_memory_op): Use wide-int interfaces.
21564 (fold_builtin_object_size): Likewise.
21565 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21566 nb_iterations_estimate.
21567 (record_niter_bound): Use wide-int interfaces.
21568 (get_estimated_loop_iterations_int): Likewise.
21569 (get_estimated_loop_iterations): Likewise.
21570 (get_max_loop_iterations): Likewise.
21571 * cfgloop.h: Include wide-int.h.
21572 (struct nb_iter_bound): Change bound to widest_int.
21573 (struct loop): Change nb_iterations_upper_bound and
21574 nb_iterations_estimate to widest_int.
21575 (record_niter_bound): Switch to use widest_int.
21576 (get_estimated_loop_iterations): Likewise.
21577 (get_max_loop_iterations): Likewise.
21578 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21579 update for wide-int.
21580 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21581 * combine.c (try_combine): Likewise.
21582 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21583 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21584 interfaces.
21585 (aarch64_float_const_representable_p): Likewise.
21586 * config/arc/arc.c: Include wide-int.h.
21587 (arc_can_use_doloop_p): Use wide-int interfaces.
21588 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21589 (vfp3_const_double_index): Likewise.
21590 * config/avr/avr.c (avr_out_round): Likewise.
21591 (avr_fold_builtin): Likewise.
21592 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21593 (bfin_can_use_doloop_p): Likewise.
21594 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21595 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21596 * config/i386/i386.c: Include wide-int.h.
21597 (ix86_data_alignment): Use wide-int interfaces.
21598 (ix86_local_alignment): Likewise.
21599 (ix86_emit_swsqrtsf): Update real_from_integer.
21600 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21601 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21602 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21603 (zero_constant): Likewise.
21604 (input_operand): Likewise.
21605 (splat_input_operand): Likewise.
21606 (non_logical_cint_operand): Change const_double to const_wide_int.
21607 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21608 (easy_altivec_constant): Remove comment.
21609 (paired_expand_vector_init): Use CONSTANT_P.
21610 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21611 (rs6000_emit_move): Update checks.
21612 (rs6000_aggregate_candidate): Use wide-int interfaces.
21613 (rs6000_expand_ternop_builtin): Likewise.
21614 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21615 (rs6000_assemble_integer): Likewise.
21616 (rs6000_hash_constant): Likewise.
21617 (output_toc): Likewise.
21618 (rs6000_rtx_costs): Likewise.
21619 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21620 * config/rs6000/rs6000-c.c: Include wide-int.h.
21621 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21622 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21623 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21624 Handle CONST_WIDE_INT.
21625 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21626 Use tree_fits_uhwi_p.
21627 * config/sparc/sparc.c: Include wide-int.h.
21628 (sparc_fold_builtin): Use wide-int interfaces.
21629 * config/vax/vax.c: Include wide-int.h.
21630 (vax_float_literal): Use real_from_integer.
21631 * coretypes.h (struct hwivec_def): New.
21632 (hwivec): New.
21633 (const_hwivec): New.
21634 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21635 (equiv_constant): Handle CONST_WIDE_INT.
21636 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21637 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21638 * dbxout.c (stabstr_U): Use wide-int interfaces.
21639 (dbxout_type): Update to use cst_fits_shwi_p.
21640 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21641 (TARGET_SUPPORTS_WIDE_INT): Add default.
21642 * dfp.c: Include wide-int.h.
21643 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21644 decimal_real_to_integer.
21645 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21646 decimal_real_to_integer.
21647 * doc/generic.texi (Constant expressions): Update for wide_int.
21648 * doc/rtl.texi (const_double): Likewise.
21649 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21650 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21651 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21652 (REAL_VALUE_FROM_INT): Remove.
21653 (TARGET_SUPPORTS_WIDE_INT): New.
21654 * doc/tm.texi: Regenerate.
21655 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21656 * double-int.h: Include wide-int.h.
21657 (struct wi::int_traits): New.
21658 * dwarf2out.c (get_full_len): New.
21659 (dw_val_equal_p): Add case dw_val_class_wide_int.
21660 (size_of_loc_descr): Likewise.
21661 (output_loc_operands): Likewise.
21662 (insert_double): Remove.
21663 (insert_wide_int): New.
21664 (add_AT_wide): New.
21665 (print_die): Add case dw_val_class_wide_int.
21666 (attr_checksum): Likewise.
21667 (attr_checksum_ordered): Likewise.
21668 (same_dw_val_p): Likewise.
21669 (size_of_die): Likewise.
21670 (value_format): Likewise.
21671 (output_die): Likewise.
21672 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21673 Use wide-int.
21674 (clz_loc_descriptor): Use wide-int interfaces.
21675 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21676 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21677 (round_up_to_align): Use wide-int interfaces.
21678 (field_byte_offset): Likewise.
21679 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21680 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21681 CONST_DOUBLE handling. Use wide-int interfaces.
21682 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21683 (gen_enumeration_type_die): Use add_AT_wide.
21684 (hash_loc_operands): Add case dw_val_class_wide_int.
21685 (compare_loc_operands): Likewise.
21686 * dwarf2out.h: Include wide-int.h.
21687 (wide_int_ptr): New.
21688 (enum dw_val_class): Add dw_val_class_wide_int.
21689 (struct dw_val_struct): Add val_wide.
21690 * emit-rtl.c (const_wide_int_htab): New.
21691 (const_wide_int_htab_hash): New.
21692 (const_wide_int_htab_eq): New.
21693 (lookup_const_wide_int): New.
21694 (const_double_htab_hash): Use wide-int interfaces.
21695 (const_double_htab_eq): Likewise.
21696 (rtx_to_double_int): Conditionally compile for wide-int.
21697 (immed_double_int_const): Rename to immed_wide_int_const and
21698 update for wide-int.
21699 (immed_double_const): Conditionally compile for wide-int.
21700 (init_emit_once): Use wide-int interfaces.
21701 * explow.c (plus_constant): Likewise.
21702 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21703 (lshift_value): Use wide-int interfaces.
21704 (expand_mult): Likewise.
21705 (choose_multiplier): Likewise.
21706 (expand_smod_pow2): Likewise.
21707 (make_tree): Likewise.
21708 * expr.c (convert_modes): Consolidate handling of constants.
21709 Use wide-int interfaces.
21710 (emit_group_load_1): Add note.
21711 (store_expr): Update comment.
21712 (get_inner_reference): Use wide-int interfaces.
21713 (expand_constructor): Update comment.
21714 (expand_expr_real_2): Use wide-int interfaces.
21715 (expand_expr_real_1): Likewise.
21716 (reduce_to_bit_field_precision): Likewise.
21717 (const_vector_from_tree): Likewise.
21718 * final.c: Include wide-int-print.h.
21719 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21720 * fixed-value.c: Include wide-int.h.
21721 (fixed_from_string): Use wide-int interfaces.
21722 (fixed_to_decimal): Likewise.
21723 (fixed_convert_from_real): Likewise.
21724 (real_convert_from_fixed): Likewise.
21725 * fold-const.h (mem_ref_offset): Return an offset_int.
21726 (div_if_zero_remainder): Remove code parameter.
21727 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21728 Use wide-int interfaces.
21729 (may_negate_without_overflow_p): Use wide-int interfaces.
21730 (negate_expr_p): Likewise.
21731 (fold_negate_expr): Likewise.
21732 (int_const_binop_1): Likewise.
21733 (const_binop): Likewise.
21734 (fold_convert_const_int_from_int): Likewise.
21735 (fold_convert_const_int_from_real): Likewise.
21736 (fold_convert_const_int_from_fixed): Likewise.
21737 (fold_convert_const_fixed_from_int): Likewise.
21738 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21739 (sign_bit_p): Use wide-int interfaces.
21740 (make_range_step): Likewise.
21741 (build_range_check): Likewise. Pass an integer of the correct type
21742 instead of using integer_one_node.
21743 (range_predecessor): Pass an integer of the correct type instead
21744 of using integer_one_node.
21745 (range_successor): Likewise.
21746 (merge_ranges): Likewise.
21747 (unextend): Use wide-int interfaces.
21748 (extract_muldiv_1): Likewise.
21749 (fold_div_compare): Likewise.
21750 (fold_single_bit_test): Likewise.
21751 (fold_sign_changed_comparison): Likewise.
21752 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21753 (fold_plusminus_mult_expr): Use wide-int interfaces.
21754 (native_encode_int): Likewise.
21755 (native_interpret_int): Likewise.
21756 (fold_unary_loc): Likewise.
21757 (pointer_may_wrap_p): Likewise.
21758 (size_low_cst): Likewise.
21759 (mask_with_tz): Likewise.
21760 (fold_binary_loc): Likewise.
21761 (fold_ternary_loc): Likewise.
21762 (multiple_of_p): Likewise.
21763 (tree_call_nonnegative_warnv_p): Update calls to
21764 tree_int_cst_min_precision and real_from_integer.
21765 (fold_negate_const): Use wide-int interfaces.
21766 (fold_abs_const): Likewise.
21767 (fold_relational_const): Use tree_int_cst_lt.
21768 (round_up_loc): Use wide-int interfaces.
21769 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21770 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21771 * gengtype.c: Remove include of double-int.h.
21772 (do_typedef): Use wide-int interfaces.
21773 (open_base_files): Add wide-int.h.
21774 (main): Add offset_int and widest_int typedefs.
21775 * gengtype-lex.l: Handle "^".
21776 (CXX_KEYWORD): Add "static".
21777 * gengtype-parse.c (require3): New.
21778 (require_template_declaration): Handle constant template arguments
21779 and nested templates.
21780 * gengtype-state.c: Don't include "double-int.h".
21781 * genpreds.c (write_one_predicate_function): Update comment.
21782 (write_tm_constrs_h): Add check for hval and lval use in
21783 CONST_WIDE_INT.
21784 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21785 (add_to_sequence): Likewise.
21786 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21787 and const_double_operand.
21788 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21789 interfaces.
21790 * gimple-fold.c (get_base_constructor): Likewise.
21791 (fold_array_ctor_reference): Likewise.
21792 (fold_nonarray_ctor_reference): Likewise.
21793 (fold_const_aggregate_ref_1): Likewise.
21794 (gimple_val_nonnegative_real_p): Likewise.
21795 (gimple_fold_indirect_ref): Likewise.
21796 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21797 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21798 (struct slsr_cand_d): Change index to be widest_int.
21799 (struct incr_info_d): Change incr to be widest_int.
21800 (alloc_cand_and_find_basis): Use wide-int interfaces.
21801 (slsr_process_phi): Likewise.
21802 (backtrace_base_for_ref): Likewise. Return a widest_int.
21803 (restructure_reference): Take a widest_int instead of a double_int.
21804 (slsr_process_ref): Use wide-int interfaces.
21805 (create_mul_ssa_cand): Likewise.
21806 (create_mul_imm_cand): Likewise.
21807 (create_add_ssa_cand): Likewise.
21808 (create_add_imm_cand): Take a widest_int instead of a double_int.
21809 (slsr_process_add): Use wide-int interfaces.
21810 (slsr_process_cast): Likewise.
21811 (slsr_process_copy): Likewise.
21812 (dump_candidate): Likewise.
21813 (dump_incr_vec): Likewise.
21814 (replace_ref): Likewise.
21815 (cand_increment): Likewise. Return a widest_int.
21816 (cand_abs_increment): Likewise.
21817 (replace_mult_candidate): Take a widest_int instead of a double_int.
21818 (replace_unconditional_candidate): Use wide-int interfaces.
21819 (incr_vec_index): Take a widest_int instead of a double_int.
21820 (create_add_on_incoming_edge): Likewise.
21821 (create_phi_basis): Use wide-int interfaces.
21822 (replace_conditional_candidate): Likewise.
21823 (record_increment): Take a widest_int instead of a double_int.
21824 (record_phi_increments): Use wide-int interfaces.
21825 (phi_incr_cost): Take a widest_int instead of a double_int.
21826 (lowest_cost_path): Likewise.
21827 (total_savings): Likewise.
21828 (analyze_increments): Use wide-int interfaces.
21829 (ncd_with_phi): Take a widest_int instead of a double_int.
21830 (ncd_of_cand_and_phis): Likewise.
21831 (nearest_common_dominator_for_cands): Likewise.
21832 (insert_initializers): Use wide-int interfaces.
21833 (all_phi_incrs_profitable): Likewise.
21834 (replace_one_candidate): Likewise.
21835 (replace_profitable_candidates): Likewise.
21836 * godump.c: Include wide-int-print.h.
21837 (go_output_typedef): Use wide-int interfaces.
21838 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21839 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21840 (build_loop_iteration_domains): Likewise.
21841 * hooks.h: Include wide-int.h rather than double-int.h.
21842 (hook_bool_dint_dint_uint_bool_true): Delete.
21843 (hook_bool_wint_wint_uint_bool_true): Declare.
21844 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21845 (hook_bool_wint_wint_uint_bool_true): New.
21846 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21847 interfaces.
21848 (ubsan_expand_si_overflow_mul_check): Likewise.
21849 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21850 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21851 (get_ancestor_addr_info): Likewise.
21852 (ipa_modify_call_arguments): Likewise.
21853 * loop-doloop.c (doloop_modify): Likewise.
21854 (doloop_optimize): Likewise.
21855 * loop-iv.c (iv_number_of_iterations): Likewise.
21856 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21857 (unroll_loop_constant_iterations): Likewise.
21858 (decide_unroll_runtime_iterations): Likewise.
21859 (unroll_loop_runtime_iterations): Likewise.
21860 (decide_peel_simple): Likewise.
21861 (decide_unroll_stupid): Likewise.
21862 * lto-streamer-in.c (streamer_read_wi): Add.
21863 (input_cfg): Use wide-int interfaces.
21864 (lto_input_tree_1): Likewise.
21865 * lto-streamer-out.c (streamer_write_wi): Add.
21866 (hash_tree): Use wide-int interfaces.
21867 (output_cfg): Likewise.
21868 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21869 (GTFILES): Add wide-int.h and signop.h.
21870 (TAGS): Look for .cc files too.
21871 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21872 * optabs.c (expand_subword_shift): Likewise.
21873 (expand_doubleword_shift): Likewise.
21874 (expand_absneg_bit): Likewise.
21875 (expand_copysign_absneg): Likewise.
21876 (expand_copysign_bit): Likewise.
21877 * postreload.c (reload_cse_simplify_set): Likewise.
21878 * predict.c (predict_iv_comparison): Likewise.
21879 * pretty-print.h: Include wide-int-print.h.
21880 (pp_wide_int) New.
21881 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21882 * print-tree.c: Include wide-int-print.h.
21883 (print_node_brief): Use wide-int interfaces.
21884 (print_node): Likewise.
21885 * read-rtl.c (validate_const_wide_int): New.
21886 (read_rtx_code): Add CONST_WIDE_INT case.
21887 * real.c: Include wide-int.h.
21888 (real_to_integer2): Delete.
21889 (real_to_integer): New function, returning a wide_int.
21890 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21891 (ten_to_ptwo): Update call to real_from_integer.
21892 (real_digit): Likewise.
21893 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21894 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21895 (REAL_VALUE_TO_INT): Delete.
21896 (real_to_integer): Declare a wide-int form.
21897 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21898 * recog.c (const_int_operand): Improve comment.
21899 (const_scalar_int_operand): New.
21900 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21901 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21902 (split_double): Likewise.
21903 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21904 (rtx_size): Likewise.
21905 (rtx_alloc_stat_v): New.
21906 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21907 (cwi_output_hex): New.
21908 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21909 (cwi_check_failed_bounds): New.
21910 * rtl.def (CONST_WIDE_INT): New.
21911 * rtl.h: Include <utility> and wide-int.h.
21912 (struct hwivec_def): New.
21913 (CWI_GET_NUM_ELEM): New.
21914 (CWI_PUT_NUM_ELEM): New.
21915 (struct rtx_def): Add num_elem and hwiv.
21916 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21917 (CASE_CONST_UNIQUE): Likewise.
21918 (CASE_CONST_ANY): Likewise.
21919 (CONST_SCALAR_INT_P): Likewise.
21920 (CONST_WIDE_INT_P): New.
21921 (CWI_ELT): New.
21922 (HWIVEC_CHECK): New.
21923 (cwi_check_failed_bounds): New.
21924 (CWI_ELT): New.
21925 (HWIVEC_CHECK): New.
21926 (CONST_WIDE_INT_VEC) New.
21927 (CONST_WIDE_INT_NUNITS) New.
21928 (CONST_WIDE_INT_ELT) New.
21929 (rtx_mode_t): New type.
21930 (wi::int_traits <rtx_mode_t>): New.
21931 (wi::shwi): New.
21932 (wi::min_value): New.
21933 (wi::max_value): New.
21934 (rtx_alloc_v) New.
21935 (const_wide_int_alloc): New.
21936 (immed_wide_int_const): New.
21937 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21938 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21939 * signop.h: New file.
21940 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21941 (simplify_const_unary_operation): Use wide-int interfaces.
21942 (simplify_binary_operation_1): Likewise.
21943 (simplify_const_binary_operation): Likewise.
21944 (simplify_const_relational_operation): Likewise.
21945 (simplify_immed_subreg): Likewise.
21946 * stmt.c (expand_case): Likewise.
21947 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21948 signop rather than a bool.
21949 * stor-layout.c (layout_type): Use wide-int interfaces.
21950 (initialize_sizetypes): Update calls to
21951 set_min_and_max_values_for_integral_type.
21952 (set_min_and_max_values_for_integral_type): Take a signop rather
21953 than a bool. Use wide-int interfaces.
21954 (fixup_signed_type): Update accordingly. Remove
21955 HOST_BITS_PER_DOUBLE_INT limit.
21956 (fixup_unsigned_type): Likewise.
21957 * system.h (STATIC_CONSTANT_P): New.
21958 (STATIC_ASSERT): New.
21959 * target.def (can_use_doloop_p): Take widest_ints rather than
21960 double_ints.
21961 * target.h: Include wide-int.h rather than double-int.h.
21962 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21963 than double_ints.
21964 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21965 rather than INT_CST_LT_UNSIGNED.
21966 (can_use_doloop_if_innermost): Take widest_ints rather than
21967 double_ints.
21968 * tree-affine.c: Include wide-int-print.h.
21969 (double_int_ext_for_comb): Delete.
21970 (wide_int_ext_for_comb): New.
21971 (aff_combination_zero): Use wide-int interfaces.
21972 (aff_combination_const): Take a widest_int instead of a double_int.
21973 (aff_combination_elt): Use wide-int interfaces.
21974 (aff_combination_scale): Take a widest_int instead of a double_int.
21975 (aff_combination_add_elt): Likewise.
21976 (aff_combination_add_cst): Likewise.
21977 (aff_combination_add): Use wide-int interfaces.
21978 (aff_combination_convert): Likewise.
21979 (tree_to_aff_combination): Likewise.
21980 (add_elt_to_tree): Take a widest_int instead of a double_int.
21981 (aff_combination_to_tree): Use wide-int interfaces.
21982 (aff_combination_remove_elt): Likewise.
21983 (aff_combination_add_product): Take a widest_int instead of
21984 a double_int.
21985 (aff_combination_mult): Use wide-int interfaces.
21986 (aff_combination_expand): Likewise.
21987 (double_int_constant_multiple_p): Delete.
21988 (wide_int_constant_multiple_p): New.
21989 (aff_combination_constant_multiple_p): Take a widest_int pointer
21990 instead of a double_int pointer.
21991 (print_aff): Use wide-int interfaces.
21992 (get_inner_reference_aff): Take a widest_int pointer
21993 instead of a double_int pointer.
21994 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21995 * tree-affine.h: Include wide-int.h.
21996 (struct aff_comb_elt): Change type of coef to widest_int.
21997 (struct affine_tree_combination): Change type of offset to widest_int.
21998 (double_int_ext_for_comb): Delete.
21999 (wide_int_ext_for_comb): New.
22000 (aff_combination_const): Use widest_int instead of double_int.
22001 (aff_combination_scale): Likewise.
22002 (aff_combination_add_elt): Likewise.
22003 (aff_combination_constant_multiple_p): Likewise.
22004 (get_inner_reference_aff): Likewise.
22005 (aff_comb_cannot_overlap_p): Likewise.
22006 (aff_combination_zero_p): Use wide-int interfaces.
22007 * tree.c: Include tree.h.
22008 (init_ttree): Use make_int_cst.
22009 (tree_code_size): Removed code for INTEGER_CST case.
22010 (tree_size): Add INTEGER_CST case.
22011 (make_node_stat): Update comment.
22012 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
22013 (build_int_cst_type): Use wide-int interfaces.
22014 (double_int_to_tree): Likewise.
22015 (double_int_fits_to_tree_p): Delete.
22016 (force_fit_type_double): Delete.
22017 (force_fit_type): New.
22018 (int_cst_hash_hash): Use wide-int interfaces.
22019 (int_cst_hash_eq): Likewise.
22020 (build_int_cst_wide): Delete.
22021 (wide_int_to_tree): New.
22022 (cache_integer_cst): Use wide-int interfaces.
22023 (build_low_bits_mask): Likewise.
22024 (cst_and_fits_in_hwi): Likewise.
22025 (real_value_from_int_cst): Likewise.
22026 (make_int_cst_stat): New.
22027 (integer_zerop): Use wide_int interfaces.
22028 (integer_onep): Likewise.
22029 (integer_all_onesp): Likewise.
22030 (integer_pow2p): Likewise.
22031 (integer_nonzerop): Likewise.
22032 (tree_log2): Likewise.
22033 (tree_floor_log2): Likewise.
22034 (tree_ctz): Likewise.
22035 (int_size_in_bytes): Likewise.
22036 (mem_ref_offset): Return an offset_int rather than a double_int.
22037 (build_type_attribute_qual_variant): Use wide_int interfaces.
22038 (type_hash_eq): Likewise
22039 (tree_int_cst_equal): Likewise.
22040 (tree_int_cst_lt): Delete.
22041 (tree_int_cst_compare): Likewise.
22042 (tree_fits_shwi_p): Use wide_int interfaces.
22043 (tree_fits_uhwi_p): Likewise.
22044 (tree_int_cst_sign_bit): Likewise.
22045 (tree_int_cst_sgn): Likewise.
22046 (tree_int_cst_min_precision): Take a signop rather than a bool.
22047 (simple_cst_equal): Use wide_int interfaces.
22048 (compare_tree_int): Likewise.
22049 (iterative_hash_expr): Likewise.
22050 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
22051 INT_CST_LT.
22052 (get_type_static_bounds): Use wide_int interfaces.
22053 (tree_int_cst_elt_check_failed): New.
22054 (build_common_tree_nodes): Reordered to set prec before filling in
22055 value.
22056 (int_cst_value): Check cst_and_fits_in_hwi.
22057 (widest_int_cst_value): Use wide_int interfaces.
22058 (upper_bound_in_type): Likewise.
22059 (lower_bound_in_type): Likewise.
22060 (num_ending_zeros): Likewise.
22061 (drop_tree_overflow): Likewise.
22062 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
22063 (gen_conditions_for_pow_cst_base): Likewise.
22064 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
22065 (group_case_labels_stmt): Use wide-int interfaces.
22066 (verify_gimple_assign_binary): Likewise.
22067 (print_loop): Likewise.
22068 * tree-chrec.c (tree_fold_binomial): Likewise.
22069 * tree-core.h (struct tree_base): Add int_length.
22070 (struct tree_int_cst): Change rep of value.
22071 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
22072 (dr_may_alias_p): Likewise.
22073 (max_stmt_executions_tree): Likewise.
22074 * tree.def (INTEGER_CST): Update comment.
22075 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
22076 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
22077 * tree-dump.c: Include wide-int.h and wide-int-print.h.
22078 (dequeue_and_dump): Use wide-int interfaces.
22079 * tree.h: Include wide-int.h.
22080 (NULL_TREE): Moved to earlier loc in file.
22081 (TREE_INT_CST_ELT_CHECK): New.
22082 (tree_int_cst_elt_check_failed): New.
22083 (TYPE_SIGN): New.
22084 (TREE_INT_CST): Delete.
22085 (TREE_INT_CST_LOW): Use wide-int interfaces.
22086 (TREE_INT_CST_HIGH): Delete.
22087 (TREE_INT_CST_NUNITS): New.
22088 (TREE_INT_CST_EXT_NUNITS): Likewise.
22089 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
22090 (TREE_INT_CST_ELT): Likewise.
22091 (INT_CST_LT): Delete.
22092 (tree_int_cst_elt_check): New (two forms).
22093 (type_code_size): Update comment.
22094 (make_int_cst_stat, make_int_cst): New.
22095 (tree_to_double_int): Delete.
22096 (double_int_fits_to_tree_p): Delete.
22097 (force_fit_type_double): Delete.
22098 (build_int_cstu): Replace with out-of-line function.
22099 (build_int_cst_wide): Delete.
22100 (tree_int_cst_lt): Define inline.
22101 (tree_int_cst_le): New.
22102 (tree_int_cst_compare): Define inline.
22103 (tree_int_cst_min_precision): Take a signop rather than a bool.
22104 (wi::int_traits <const_tree>): New.
22105 (wi::int_traits <tree>): New.
22106 (wi::extended_tree): New.
22107 (wi::int_traits <wi::extended_tree>): New.
22108 (wi::to_widest): New.
22109 (wi::to_offset): New.
22110 (wi::fits_to_tree_p): New.
22111 (wi::min_value): New.
22112 (wi::max_value): New.
22113 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
22114 (copy_tree_body_r): Likewise.
22115 * tree-object-size.c (compute_object_offset): Likewise.
22116 (addr_object_size): Likewise.
22117 * tree-predcom.c: Include wide-int-print.h.
22118 (struct dref_d): Change type of offset to widest_int.
22119 (dump_dref): Call wide-int printer.
22120 (aff_combination_dr_offset): Use wide-int interfaces.
22121 (determine_offset): Take a widest_int pointer rather than a
22122 double_int pointer.
22123 (split_data_refs_to_components): Use wide-int interfaces.
22124 (suitable_component_p): Likewise.
22125 (order_drefs): Likewise.
22126 (add_ref_to_chain): Likewise.
22127 (valid_initializer_p): Likewise.
22128 (determine_roots_comp): Likewise.
22129 * tree-pretty-print.c: Include wide-int-print.h.
22130 (dump_generic_node): Use wide-int interfaces.
22131 * tree-sra.c (sra_ipa_modify_expr): Likewise.
22132 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
22133 (move_fixed_address_to_symbol): Likewise.
22134 (move_hint_to_base): Likewise.
22135 (move_pointer_to_base): Likewise.
22136 (move_variant_to_index): Likewise.
22137 (most_expensive_mult_to_index): Likewise.
22138 (addr_to_parts): Likewise.
22139 (copy_ref_info): Likewise.
22140 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22141 (indirect_refs_may_alias_p): Likewise.
22142 (stmt_kills_ref_p_1): Likewise.
22143 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
22144 * tree-ssa-ccp.c: Update comment at top of file. Include
22145 wide-int-print.h.
22146 (struct prop_value_d): Change type of mask to widest_int.
22147 (extend_mask): New function.
22148 (dump_lattice_value): Use wide-int interfaces.
22149 (get_default_value): Likewise.
22150 (set_constant_value): Likewise.
22151 (set_value_varying): Likewise.
22152 (valid_lattice_transition): Likewise.
22153 (set_lattice_value): Likewise.
22154 (value_to_double_int): Delete.
22155 (value_to_wide_int): New.
22156 (get_value_from_alignment): Use wide-int interfaces.
22157 (get_value_for_expr): Likewise.
22158 (do_dbg_cnt): Likewise.
22159 (ccp_finalize): Likewise.
22160 (ccp_lattice_meet): Likewise.
22161 (bit_value_unop_1): Use widest_ints rather than double_ints.
22162 (bit_value_binop_1): Likewise.
22163 (bit_value_unop): Use wide-int interfaces.
22164 (bit_value_binop): Likewise.
22165 (bit_value_assume_aligned): Likewise.
22166 (evaluate_stmt): Likewise.
22167 (ccp_fold_stmt): Likewise.
22168 (visit_cond_stmt): Likewise.
22169 (ccp_visit_stmt): Likewise.
22170 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22171 (constant_pointer_difference): Likewise.
22172 (associate_pointerplus): Likewise.
22173 (combine_conversions): Likewise.
22174 * tree-ssa-loop.h: Include wide-int.h.
22175 (struct tree_niter_desc): Change type of max to widest_int.
22176 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
22177 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
22178 (remove_redundant_iv_tests): Likewise.
22179 (canonicalize_loop_induction_variables): Likewise.
22180 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
22181 (constant_multiple_of): Take a widest_int pointer instead of
22182 a double_int pointer.
22183 (get_computation_aff): Use wide-int interfaces.
22184 (ptr_difference_cost): Likewise.
22185 (difference_cost): Likewise.
22186 (get_loop_invariant_expr_id): Likewise.
22187 (get_computation_cost_at): Likewise.
22188 (iv_elimination_compare_lt): Likewise.
22189 (may_eliminate_iv): Likewise.
22190 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
22191 instead of double_int.
22192 (max_loop_iterations): Likewise.
22193 (max_stmt_executions): Likewise.
22194 (estimated_stmt_executions): Likewise.
22195 * tree-ssa-loop-niter.c: Include wide-int-print.h.
22196 (split_to_var_and_offset): Use wide-int interfaces.
22197 (determine_value_range): Likewise.
22198 (bound_difference_of_offsetted_base): Likewise.
22199 (bounds_add): Take a widest_int instead of a double_int.
22200 (number_of_iterations_ne_max): Use wide-int interfaces.
22201 (number_of_iterations_ne): Likewise.
22202 (number_of_iterations_lt_to_ne): Likewise.
22203 (assert_loop_rolls_lt): Likewise.
22204 (number_of_iterations_lt): Likewise.
22205 (number_of_iterations_le): Likewise.
22206 (number_of_iterations_cond): Likewise.
22207 (number_of_iterations_exit): Likewise.
22208 (finite_loop_p): Likewise.
22209 (derive_constant_upper_bound_assign): Likewise.
22210 (derive_constant_upper_bound): Return a widest_int.
22211 (derive_constant_upper_bound_ops): Likewise.
22212 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
22213 (record_estimate): Take a widest_int rather than a double_int.
22214 (record_nonwrapping_iv): Use wide-int interfaces.
22215 (double_int_cmp): Delete.
22216 (wide_int_cmp): New.
22217 (bound_index): Take a widest_int rather than a double_int.
22218 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
22219 (maybe_lower_iteration_bound): Likewise.
22220 (estimate_numbers_of_iterations_loop): Likewise.
22221 (estimated_loop_iterations): Take a widest_int pointer than than
22222 a double_int pointer.
22223 (estimated_loop_iterations_int): Use wide-int interfaces.
22224 (max_loop_iterations): Take a widest_int pointer than than
22225 a double_int pointer.
22226 (max_loop_iterations_int): Use wide-int interfaces.
22227 (max_stmt_executions): Take a widest_int pointer than than
22228 a double_int pointer.
22229 (estimated_stmt_executions): Likewise.
22230 (n_of_executions_at_most): Use wide-int interfaces.
22231 (scev_probably_wraps_p): Likewise.
22232 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
22233 to real_to_integer.
22234 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
22235 interfaces.
22236 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
22237 double_ints. Adjust for trailing_wide_ints <3> representation.
22238 (set_nonzero_bits): Likewise.
22239 (get_range_info): Return wide_ints rather than double_ints.
22240 Adjust for trailing_wide_ints <3> representation.
22241 (get_nonzero_bits): Likewise.
22242 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
22243 representation.
22244 * tree-ssanames.h (struct range_info_def): Replace min, max and
22245 nonzero_bits with a trailing_wide_ints <3>.
22246 (set_range_info): Use wide_int_refs rather than double_ints.
22247 (set_nonzero_bits): Likewise.
22248 (get_range_info): Return wide_ints rather than double_ints.
22249 (get_nonzero_bits): Likewise.
22250 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
22251 * tree-ssa-pre.c (phi_translate_1): Likewise.
22252 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
22253 (acceptable_pow_call): Likewise.
22254 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
22255 interfaces.
22256 (vn_reference_fold_indirect): Likewise.
22257 (vn_reference_maybe_forwprop_address): Likewise.
22258 (valueize_refs_1): Likewise.
22259 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
22260 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
22261 tree_int_cst_lt and tree_int_cst_le.
22262 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
22263 interfaces.
22264 (streamer_alloc_tree): Likewise.
22265 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
22266 (streamer_write_tree_header): Likewise.
22267 (streamer_write_integer_cst): Likewise.
22268 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22269 (build_constructors): Likewise.
22270 (array_value_type): Likewise.
22271 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
22272 (vect_check_gather): Likewise.
22273 * tree-vect-generic.c (build_replicated_const): Likewise.
22274 (expand_vector_divmod): Likewise.
22275 * tree-vect-loop.c (vect_transform_loop): Likewise.
22276 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
22277 (vect_do_peeling_for_alignment): Likewise.
22278 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
22279 * tree-vrp.c: Include wide-int.h.
22280 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
22281 (extract_range_from_assert): Use wide-int interfaces.
22282 (vrp_int_const_binop): Likewise.
22283 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
22284 double_int pointers.
22285 (ranges_from_anti_range): Use wide-int interfaces.
22286 (quad_int_cmp): Delete.
22287 (quad_int_pair_sort): Likewise.
22288 (extract_range_from_binary_expr_1): Use wide-int interfaces.
22289 (extract_range_from_unary_expr_1): Likewise.
22290 (adjust_range_with_scev): Likewise.
22291 (masked_increment): Take and return wide_ints rather than double_ints.
22292 (register_edge_assert_for_2): Use wide-int interfaces.
22293 (check_array_ref): Likewise.
22294 (search_for_addr_array): Likewise.
22295 (maybe_set_nonzero_bits): Likewise.
22296 (union_ranges): Pass an integer of the correct type instead of
22297 using integer_one_node.
22298 (intersect_ranges): Likewise.
22299 (simplify_truth_ops_using_ranges): Likewise.
22300 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
22301 (range_fits_type_p): Likewise.
22302 (simplify_cond_using_ranges): Likewise. Take a signop rather than
22303 a bool.
22304 (simplify_conversion_using_ranges): Use wide-int interfaces.
22305 (simplify_float_conversion_using_ranges): Likewise.
22306 (vrp_finalize): Likewise.
22307 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
22308 (gimple_stringops_transform): Likewise.
22309 * varasm.c (decode_addr_const): Likewise.
22310 (const_hash_1): Likewise.
22311 (const_rtx_hash_1): Likewise
22312 (output_constant): Likewise.
22313 (array_size_for_constructor): Likewise.
22314 (output_constructor_regular_field): Likewise.
22315 (output_constructor_bitfield): Likewise.
22316 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
22317 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
22318 GENERATOR_FILEs.
22319 * gencheck.c: Define BITS_PER_UNIT.
22320 * wide-int.cc: New.
22321 * wide-int.h: New.
22322 * wide-int-print.cc: New.
22323 * wide-int-print.h: New.
22324
22325 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22326
22327 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
22328
22329 2014-05-06 Richard Biener <rguenther@suse.de>
22330
22331 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22332 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22333 (TODO_verify_all): Adjust.
22334 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22335 TODO_verify_stmts and TODO_verify_rtl_sharing.
22336 * bb-reorder.c: Likewise.
22337 * cfgexpand.c: Likewise.
22338 * cprop.c: Likewise.
22339 * cse.c: Likewise.
22340 * function.c: Likewise.
22341 * fwprop.c: Likewise.
22342 * gcse.c: Likewise.
22343 * gimple-ssa-isolate-paths.c: Likewise.
22344 * gimple-ssa-strength-reduction.c: Likewise.
22345 * ipa-split.c: Likewise.
22346 * loop-init.c: Likewise.
22347 * loop-unroll.c: Likewise.
22348 * lower-subreg.c: Likewise.
22349 * modulo-sched.c: Likewise.
22350 * postreload-gcse.c: Likewise.
22351 * predict.c: Likewise.
22352 * recog.c: Likewise.
22353 * sched-rgn.c: Likewise.
22354 * store-motion.c: Likewise.
22355 * tracer.c: Likewise.
22356 * trans-mem.c: Likewise.
22357 * tree-call-cdce.c: Likewise.
22358 * tree-cfg.c: Likewise.
22359 * tree-cfgcleanup.c: Likewise.
22360 * tree-complex.c: Likewise.
22361 * tree-eh.c: Likewise.
22362 * tree-emutls.c: Likewise.
22363 * tree-if-conv.c: Likewise.
22364 * tree-into-ssa.c: Likewise.
22365 * tree-loop-distribution.c: Likewise.
22366 * tree-object-size.c: Likewise.
22367 * tree-parloops.c: Likewise.
22368 * tree-pass.h: Likewise.
22369 * tree-sra.c: Likewise.
22370 * tree-ssa-ccp.c: Likewise.
22371 * tree-ssa-copy.c: Likewise.
22372 * tree-ssa-copyrename.c: Likewise.
22373 * tree-ssa-dce.c: Likewise.
22374 * tree-ssa-dom.c: Likewise.
22375 * tree-ssa-dse.c: Likewise.
22376 * tree-ssa-forwprop.c: Likewise.
22377 * tree-ssa-ifcombine.c: Likewise.
22378 * tree-ssa-loop-ch.c: Likewise.
22379 * tree-ssa-loop-ivcanon.c: Likewise.
22380 * tree-ssa-loop.c: Likewise.
22381 * tree-ssa-math-opts.c: Likewise.
22382 * tree-ssa-phiopt.c: Likewise.
22383 * tree-ssa-phiprop.c: Likewise.
22384 * tree-ssa-pre.c: Likewise.
22385 * tree-ssa-reassoc.c: Likewise.
22386 * tree-ssa-sink.c: Likewise.
22387 * tree-ssa-strlen.c: Likewise.
22388 * tree-ssa-tail-merge.c: Likewise.
22389 * tree-ssa-uncprop.c: Likewise.
22390 * tree-switch-conversion.c: Likewise.
22391 * tree-tailcall.c: Likewise.
22392 * tree-vect-generic.c: Likewise.
22393 * tree-vectorizer.c: Likewise.
22394 * tree-vrp.c: Likewise.
22395 * tsan.c: Likewise.
22396 * var-tracking.c: Likewise.
22397 * bt-load.c: Likewise.
22398 * cfgcleanup.c: Likewise.
22399 * combine-stack-adj.c: Likewise.
22400 * combine.c: Likewise.
22401 * compare-elim.c: Likewise.
22402 * config/epiphany/resolve-sw-modes.c: Likewise.
22403 * config/i386/i386.c: Likewise.
22404 * config/mips/mips.c: Likewise.
22405 * config/s390/s390.c: Likewise.
22406 * config/sh/sh_treg_combine.cc: Likewise.
22407 * config/sparc/sparc.c: Likewise.
22408 * dce.c: Likewise.
22409 * dse.c: Likewise.
22410 * final.c: Likewise.
22411 * ifcvt.c: Likewise.
22412 * mode-switching.c: Likewise.
22413 * passes.c: Likewise.
22414 * postreload.c: Likewise.
22415 * ree.c: Likewise.
22416 * reg-stack.c: Likewise.
22417 * regcprop.c: Likewise.
22418 * regrename.c: Likewise.
22419 * web.c: Likewise.
22420
22421 2014-05-06 Richard Biener <rguenther@suse.de>
22422
22423 PR middle-end/61070
22424 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22425 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22426
22427 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
22428
22429 PR ipa/60965
22430 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22431
22432 2014-05-05 Radovan Obradovic <robradovic@mips.com>
22433 Tom de Vries <tom@codesourcery.com>
22434
22435 * target.def (call_fusage_contains_non_callee_clobbers): New
22436 DEFHOOKPOD.
22437 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22438 Hooks to @menu.
22439 (@node Miscellaneous Register Hooks): New node.
22440 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22441 * doc/tm.texi: Regenerate.
22442
22443 2014-05-05 Marek Polacek <polacek@redhat.com>
22444
22445 PR driver/61065
22446 * opts.c (common_handle_option): Call error_at instead of warning_at.
22447
22448 2014-05-05 Richard Biener <rguenther@suse.de>
22449
22450 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22451 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
22452 under the TODO_verify_il umbrella.
22453
22454 2014-05-05 Richard Biener <rguenther@suse.de>
22455
22456 * passes.c (execute_function_todo): Move TODO_verify_flow under
22457 the TODO_verify_ul umbrella.
22458
22459 2014-05-05 Richard Biener <rguenther@suse.de>
22460
22461 PR middle-end/61010
22462 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22463 X & CST away from a CST that is the mask of a mode.
22464
22465 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22466
22467 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22468 int argument to enum machine_mode.
22469 (picochip_class_max_nregs): Ditto.
22470 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22471 (picochip_class_max_nregs): Ditto.
22472
22473 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22474
22475 * target.def: Add new target hook.
22476 * doc/tm.texi: Regenerate.
22477 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22478 * targhooks.c (default_keep_leaf_when_profiled): New function.
22479
22480 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22481 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22482
22483 2014-05-05 Bin Cheng <bin.cheng@arm.com>
22484
22485 PR tree-optimization/60363
22486 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22487 (copy_phi_args): New parameters. Call get_value_locus_in_path.
22488 (update_destination_phis): New parameter.
22489 (create_edge_and_update_destination_phis): Ditto.
22490 (ssa_fix_duplicate_block_edges): Pass new arguments.
22491 (thread_single_edge): Ditto.
22492
22493 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
22494
22495 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22496 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22497 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22498 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22499 Use RS6000_BTM_HARD_FLOAT.
22500 (BU_MISC_2): Likewise.
22501 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22502 RS6000_BTM_HARD_FLOAT.
22503 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22504 is explicitly used.
22505 (rs6000_invalid_builtin): Add hard floating builtin support.
22506 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22507 hard float builtins.
22508 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22509
22510 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22511
22512 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22513 Add missing function* argument.
22514
22515 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22516
22517 * lra-constraints.c (valid_address_p): Move earlier in file.
22518 Add a constraint argument to the address_info version.
22519 (satisfies_memory_constraint_p): New function.
22520 (satisfies_address_constraint_p): Likewise.
22521 (process_alt_operands, curr_insn_transform): Use them.
22522 (process_address): Pass the constraint to valid_address_p when
22523 checking address operands.
22524
22525 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22526
22527 * config/mips/mips.c (mips_isa_rev): New variable.
22528 (mips_set_architecture): Set it.
22529 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22530 from mips_isa_rev.
22531 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22532 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22533 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22534 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22535 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22536 conditions in terms of mips_isa_rev.
22537 (mips_isa_rev): Declare.
22538
22539 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22540
22541 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22542 (prob_unlikely, prob_likely): Make variables const.
22543
22544 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22545
22546 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22547
22548 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22549
22550 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22551
22552 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22553
22554 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22555 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22556 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22557 functions.
22558 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22559 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22560 sh_pass_in_reg_p.
22561 Replace usage of ROUND_REG with sh_round_reg.
22562 Use CEIL instead of ROUND_ADVANCE.
22563
22564 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22565
22566 PR target/61026
22567 * config/sh/sh.c: Include stdlib headers before everything else.
22568
22569 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22570
22571 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22572 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22573 (gimplify_adjust_omp_clauses): Simd region is never
22574 directly nested in combined parallel. Instead, for linear
22575 with copyin/copyout, if in combined for simd loop, make decl
22576 firstprivate/lastprivate on OMP_FOR.
22577 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22578 expand_omp_for_static_chunk): When setting endvar, also set
22579 fd->loop.v to the same value.
22580
22581 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22582
22583 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22584
22585 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22586
22587 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22588 expression.
22589
22590 2014-05-02 Marek Polacek <polacek@redhat.com>
22591
22592 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22593
22594 2014-05-02 Kito Cheng <kito@0xlab.org>
22595
22596 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22597 to a C expression marco.
22598 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22599 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22600 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22601 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22602 HONOR_REG_ALLOC_ORDER.
22603 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22604
22605 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22606
22607 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22608
22609 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22610
22611 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22612
22613 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22614
22615 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22616 (convert_scalar_cond_reduction): Likewise.
22617 (predicate_scalar_phi): Add recognition and transformation
22618 of simple conditioanl reduction to be vectorizable.
22619
22620 2014-05-01 Marek Polacek <polacek@redhat.com>
22621
22622 PR c/43245
22623 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22624
22625 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22626
22627 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22628 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22629 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22630 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22631 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22632 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22633 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22634 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22635
22636 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22637
22638 * config/arc/arc.opt (mlra): Move comment above option name
22639 to avoid mis-parsing as language options.
22640
22641 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22642
22643 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22644 * config/sol2.h: ... here.
22645 * config/sol2-10.h: Remove.
22646
22647 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22648 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22649 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22650 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22651 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22652 * config/sol2.h: ... here.
22653 (SECTION_NAME_FORMAT): Don't redefine.
22654 (STARTFILE_ARCH32_SPEC): Rename to ...
22655 (STARTFILE_ARCH_SPEC): ... this.
22656 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22657 * config/sparc/sol2.h: ... here.
22658 (SECTION_NAME_FORMAT): Don't undef.
22659 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22660 (SUBTARGET_EXTRA_SPECS): Remove.
22661 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22662
22663 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22664 (MD_STARTFILE_PREFIX): Remove.
22665 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22666 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22667 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22668 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22669 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22670 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22671 * config/i386/sol2.h: ... here.
22672 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22673 * config/i386/sol2-bi.h: Remove.
22674 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22675 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22676
22677 * config/i386/t-sol2-64: Rename to ...
22678 * config/i386/t-sol2: ... this.
22679 * config/sparc/t-sol2-64: Rename to ...
22680 * config/sparc/t-sol2: ... this.
22681
22682 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22683 sol2_tm_file_head, sol2_tm_file_tail.
22684 Include ${cpu_type}/sol2.h before sol2.h.
22685 Remove sol2-10.h.
22686 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22687 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22688 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22689 Reflect i386/t-sol2-64 renaming.
22690 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22691 Reflect sparc/t-sol2-64 renaming.
22692
22693 2014-04-30 Richard Biener <rguenther@suse.de>
22694
22695 * passes.c (execute_function_todo): Move TODO_verify_stmts
22696 and TODO_verify_ssa under the TODO_verify_il umbrella.
22697 * tree-ssa.h (verify_ssa): Adjust prototype.
22698 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22699 we should verify SSA operands.
22700 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22701 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22702 whether we should verify whether not throwing stmts have EH info.
22703 * graphite-scop-detection.c (create_sese_edges): Adjust.
22704 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22705 * tree-eh.c (lower_try_finally_switch): Do not add the
22706 default case label twice.
22707
22708 2014-04-30 Marek Polacek <polacek@redhat.com>
22709
22710 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22711 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22712 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22713 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22714
22715 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22716
22717 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22718 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22719 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22720 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22721 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22722 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22723 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22724 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22725
22726 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22727
22728 * tree-cfg.c (dump_function_to_file): Dump the return type of
22729 functions, in a line to itself before the function body, mimicking
22730 the layout of a C function.
22731
22732 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22733
22734 PR tree-optimization/60971
22735 * tree-tailcall.c (process_assignment): Reject conversions which
22736 reduce precision.
22737
22738 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22739
22740 * calls.c (initialize_argument_information): Always treat
22741 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22742 (expand_call): Likewise.
22743 (emit_library_call_calue_1): Likewise.
22744 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22745 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22746 code accordingly.
22747
22748 2014-04-29 Nick Clifton <nickc@redhat.com>
22749
22750 * config/msp430/msp430.md (umulsidi): Fix typo.
22751 (mulhisi3): Enable even inside interrupt handlers.
22752 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22753 bigger return address pushed in large mode.
22754
22755 2014-04-29 Nick Clifton <nickc@redhat.com>
22756
22757 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22758 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22759 available modes.
22760 * config/m32r/m32r.c (init_reg_tables): Likewise.
22761 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22762 enum to hold the modes.
22763
22764 2014-04-29 Richard Biener <rguenther@suse.de>
22765
22766 * dominance.c (free_dominance_info): Add overload with
22767 function parameter.
22768 (dom_info_state): Likewise.
22769 (dom_info_available_p): Likewise.
22770 * basic-block.h (free_dominance_info, dom_info_state,
22771 dom_info_available_p): Declare overloads.
22772 * passes.c (execute_function_todo): Verify that verifiers
22773 don't change dominator info state. Drop dominator info
22774 for IPA pass invocations.
22775 * cgraph.c (release_function_body): Restore asserts that
22776 dominator information is released.
22777
22778 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22779
22780 * doc/invoke.texi: Fix typo.
22781 * tree-vrp.c: Fix typos.
22782 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22783
22784 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22785
22786 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22787
22788 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22789
22790 * config/aarch64/aarch64-builtins.c
22791 (aarch64_types_storestruct_lane_qualifiers): New.
22792 (TYPES_STORESTRUCT_LANE): Likewise.
22793 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22794 (st3_lane): Likewise.
22795 (st4_lane): Likewise.
22796 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22797 (vec_store_lanesci_lane<mode>): Likewise.
22798 (vec_store_lanesxi_lane<mode>): Likewise.
22799 (aarch64_st2_lane<VQ:mode>): Likewise.
22800 (aarch64_st3_lane<VQ:mode>): Likewise.
22801 (aarch64_st4_lane<VQ:mode>): Likewise.
22802 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22803 * config/aarch64/arm_neon.h
22804 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22805 use new macro arguments.
22806 (__ST3_LANE_FUNC): Likewise.
22807 (__ST4_LANE_FUNC): Likewise.
22808 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22809 (V_THREE_ELEM): Likewise.
22810 (V_FOUR_ELEM): Likewise.
22811
22812 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22813
22814 * doc/gimple.texi: Replace the description of the now-defunct
22815 union gimple_statement_d with a diagram showing the
22816 gimple_statement_base class hierarchy and its relationships to
22817 the GSS_ and GIMPLE_ enums.
22818
22819 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22820
22821 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22822 * config/aarch64/aarch64.c
22823 (aarch64_cannot_change_mode_class): Weaken conditions.
22824 (aarch64_modes_tieable_p): New.
22825 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22826
22827 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22828
22829 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22830 (loadsync_<mode>): Change mode.
22831 (load_quadpti, store_quadpti): New.
22832 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22833 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22834
22835 2014-04-28 Martin Jambor <mjambor@suse.cz>
22836
22837 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22838 same alias type as the original statement.
22839 (subreplacement_assignment_data): New type.
22840 (handle_unscalarized_data_in_subtree): New type of parameter,
22841 generate new memory accesses with same alias type as the original
22842 statement.
22843 (load_assign_lhs_subreplacements): Likewise.
22844 (sra_modify_constructor_assign): Generate new memory accesses with
22845 same alias type as the original statement.
22846
22847 2014-04-28 Richard Biener <rguenther@suse.de>
22848
22849 * tree-pass.h (TODO_verify_il): Define.
22850 (TODO_verify_all): Complete properly.
22851 * passes.c (execute_function_todo): Move existing loop-closed
22852 SSA verification under TODO_verify_il.
22853 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22854 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22855 Fix tree sharing issue.
22856
22857 2014-04-28 Richard Biener <rguenther@suse.de>
22858
22859 PR middle-end/60092
22860 * builtins.def (DEF_C11_BUILTIN): Add.
22861 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22862 * coretypes.h (enum function_class): Add function_c11_misc.
22863 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22864 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22865 (call_may_clobber_ref_p_1): Likewise.
22866 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22867 (mark_all_reaching_defs_necessary_1): Likewise.
22868 (propagate_necessity): Likewise.
22869 (eliminate_unnecessary_stmts): Likewise.
22870 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22871
22872 2014-04-28 Richard Biener <rguenther@suse.de>
22873
22874 * tree-vrp.c (vrp_var_may_overflow): Remove.
22875 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22876 with overflow immediately bump to one before that value and
22877 let iteration figure out overflow status.
22878
22879 2014-04-28 Richard Biener <rguenther@suse.de>
22880
22881 * configure.ac: Do valgrind header checks unconditionally.
22882 Add --enable-valgrind-annotations.
22883 * system.h: Guard valgrind header inclusion with
22884 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22885 * alloc-pool.c (pool_alloc, pool_free): Use
22886 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22887 to guard possibly dead code.
22888 * config.in: Regenerated.
22889 * configure: Likewise.
22890
22891 2014-04-28 Jeff Law <law@redhat.com>
22892
22893 PR tree-optimization/60902
22894 * tree-ssa-threadedge.c
22895 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22896 over real defs when invalidating outputs from statements that do not
22897 produce useful outputs for threading.
22898
22899 2014-04-28 Richard Biener <rguenther@suse.de>
22900
22901 PR tree-optimization/60979
22902 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22903 SCOPs that end in a block with a successor with abnormal
22904 predecessors.
22905
22906 2014-04-28 Richard Biener <rguenther@suse.de>
22907
22908 * tree-pass.h (execute_pass_list): Adjust prototype.
22909 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22910 (do_per_function): Change callback signature, push all actual
22911 work to the callbals.
22912 (do_per_function_toporder): Likewise.
22913 (execute_function_dump): Adjust.
22914 (execute_function_todo): Likewise.
22915 (clear_last_verified): Likewise.
22916 (verify_curr_properties): Likewise.
22917 (update_properties_after_pass): Likewise.
22918 (execute_pass_list_1): Split out from ...
22919 (execute_pass_list): ... here. Adjust.
22920 (execute_ipa_pass_list): Likewise.
22921 * cgraphunit.c (cgraph_add_new_function): Adjust.
22922 (analyze_function): Likewise.
22923 (expand_function): Likewise.
22924 * cgraph.c (release_function_body): Free dominance info
22925 here instead of asserting it was magically freed elsewhere.
22926
22927 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22928
22929 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22930 * configure: Regenerate.
22931 * config/sparc/sparc.opt (muser-mode): New option.
22932 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22933 for LEON3.
22934 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22935 * doc/invoke.texi (SPARC options): Document -muser-mode.
22936
22937 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22938
22939 * cselib.c (find_slot_memmode): Delete.
22940 (cselib_hasher): Change compare_type to a struct.
22941 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22942 constants.
22943 (preserve_constants_and_equivs): Adjust for new compare_type.
22944 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22945 (wrap_constant): Delete.
22946 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22947
22948 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22949
22950 * doc/install.texi (Building with profile feedback): Remove
22951 outdated sentence.
22952
22953 2014-04-26 Tom de Vries <tom@codesourcery.com>
22954
22955 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22956 array accesses.
22957
22958 2014-04-25 Cary Coutant <ccoutant@google.com>
22959
22960 PR debug/60929
22961 * dwarf2out.c (should_move_die_to_comdat): A type definition
22962 can contain a subprogram definition, but don't move it to a
22963 comdat unit.
22964 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22965 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22966 from original DIE.
22967 (clone_tree_hash): Rename to...
22968 (clone_tree_partial): ...this; change callers. Copy
22969 DW_TAG_subprogram DIEs as declarations.
22970 (copy_decls_walk): Don't copy children of a declaration into a
22971 type unit.
22972
22973 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22974
22975 PR target/60969
22976 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22977 alternative 12.
22978
22979 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22980
22981 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22982 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22983 reg for long_call.
22984 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22985 restriction.
22986
22987 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22988
22989 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22990
22991 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22992
22993 PR tree-optimization/60930
22994 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22995 creating a multiply candidate by folding two constant
22996 multiplicands when the result overflows.
22997
22998 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22999
23000 PR tree-optimization/60960
23001 * tree-vect-generic.c (expand_vector_operation): Only call
23002 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
23003
23004 2014-04-25 Tom de Vries <tom@codesourcery.com>
23005
23006 * expr.c (clobber_reg_mode): New function.
23007 * expr.h (clobber_reg): New function.
23008
23009 2014-04-25 Tom de Vries <tom@codesourcery.com>
23010
23011 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
23012 clobbers.
23013
23014 2014-04-25 Radovan Obradovic <robradovic@mips.com>
23015 Tom de Vries <tom@codesourcery.com>
23016
23017 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
23018 handle.
23019 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
23020 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
23021 new argument to find_all_hard_reg_sets call.
23022
23023 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23024
23025 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
23026 Use HOST_WIDE_INT_C for mask literal.
23027 (aarch_rev16_shleft_mask_imm_p): Likewise.
23028
23029 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
23030
23031 PR target/60941
23032 * config/sparc/sparc.md (ashlsi3_extend): Delete.
23033
23034 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
23035
23036 PR preprocessor/56540
23037 * config/i386/i386-c.c (ix86_target_macros): Define
23038 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
23039
23040 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23041
23042 * configure.ac (tga_func): Remove.
23043 (LIB_TLS_SPEC): Remove.
23044 * configure: Regenerate.
23045 * config.in: Regenerate.
23046 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
23047
23048 2014-04-25 Richard Biener <rguenther@suse.de>
23049
23050 PR ipa/60912
23051 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
23052 call stmt use/clobber sets during stmt walk instead of
23053 walking the possibly incomplete set of caller edges.
23054
23055 2014-04-25 Richard Biener <rguenther@suse.de>
23056
23057 PR ipa/60911
23058 * passes.c (apply_ipa_transforms): Inline into only caller ...
23059 (execute_one_pass): ... here. Properly bring in function
23060 bodies for nodes we want to apply IPA transforms to.
23061
23062 2014-04-24 Cong Hou <congh@google.com>
23063
23064 PR tree-optimization/60896
23065 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
23066 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
23067 (vect_mark_pattern_stmts): Set the def type of all statements in
23068 PATTERN_DEF_SEQ as vect_internal_def.
23069
23070 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
23071
23072 * doc/extend.texi (PowerPC Built-in Functions): Document new
23073 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
23074 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
23075
23076 * config/rs6000/predicates.md (const_0_to_3_operand): New
23077 predicate to match 0..3 integer constants.
23078
23079 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
23080 to support adding miscellaneous builtin functions.
23081 (BU_DFP_MISC_2): Likewise.
23082 (BU_P7_MISC_1): Likewise.
23083 (BU_P7_MISC_2): Likewise.
23084 (BU_P8V_MISC_3): Likewise.
23085 (BU_MISC_1): Likewise.
23086 (BU_MISC_2): Likewise.
23087 (DIVWE): Add extended divide builtin functions.
23088 (DIVWEO): Likewise.
23089 (DIVWEU): Likewise.
23090 (DIVWEUO): Likewise.
23091 (DIVDE): Likewise.
23092 (DIVDEO): Likewise.
23093 (DIVDEU): Likewise.
23094 (DIVDEUO): Likewise.
23095 (DXEX): Add decimal floating-point builtin functions.
23096 (DXEXQ): Likewise.
23097 (DDEDPD): Likewise.
23098 (DDEDPDQ): Likewise.
23099 (DENBCD): Likewise.
23100 (DENBCDQ): Likewise.
23101 (DIEX): Likewise.
23102 (DIEXQ): Likewise.
23103 (DSCLI): Likewise.
23104 (DSCLIQ): Likewise.
23105 (DSCRI): Likewise.
23106 (DSCRIQ): Likewise.
23107 (CDTBCD): Add new BCD builtin functions.
23108 (CBCDTD): Likewise.
23109 (ADDG6S): Likewise.
23110 (BCDADD): Likewise.
23111 (BCDADD_LT): Likewise.
23112 (BCDADD_EQ): Likewise.
23113 (BCDADD_GT): Likewise.
23114 (BCDADD_OV): Likewise.
23115 (BCDSUB): Likewise.
23116 (BCDSUB_LT): Likewise.
23117 (BCDSUB_EQ): Likewise.
23118 (BCDSUB_GT): Likewise.
23119 (BCDSUB_OV): Likewise.
23120 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
23121 (UNPACK_TD): Likewise.
23122 (PACK_TF): Likewise.
23123 (UNPACK_TF): Likewise.
23124 (UNPACK_TF_0): Likewise.
23125 (UNPACK_TF_1): Likewise.
23126 (PACK_V1TI): Likewise.
23127 (UNPACK_V1TI): Likewise.
23128
23129 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23130 support for decimal floating point builtin functions.
23131 (rs6000_expand_ternop_builtin): Add checks for the new builtin
23132 functions that take constant arguments.
23133 (rs6000_invalid_builtin): Add decimal floating point builtin support.
23134 (rs6000_init_builtins): Setup long double, _Decimal64, and
23135 _Decimal128 types for new builtin functions.
23136 (builtin_function_type): Set the unsigned flags appropriately for
23137 the new builtin functions.
23138 (rs6000_opt_masks): Add support for decimal floating point builtin
23139 functions.
23140
23141 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
23142 floating point builtin functions.
23143 (RS6000_BTM_COMMON): Likewise.
23144 (RS6000_BTI_long_double): Likewise.
23145 (RS6000_BTI_dfloat64): Likewise.
23146 (RS6000_BTI_dfloat128): Likewise.
23147 (long_double_type_internal_node): Likewise.
23148 (dfloat64_type_internal_node): Likewise.
23149 (dfloat128_type_internal_node): Likewise.
23150
23151 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
23152 2.07 bcd arithmetic instructions.
23153 (UNSPEC_BCDSUB): Likewise.
23154 (UNSPEC_BCD_OVERFLOW): Likewise.
23155 (UNSPEC_BCD_ADD_SUB): Likewise.
23156 (bcd_add_sub): Likewise.
23157 (BCD_TEST): Likewise.
23158 (bcd<bcd_add_sub>): Likewise.
23159 (bcd<bcd_add_sub>_test): Likewise.
23160 (bcd<bcd_add_sub>_test2): Likewise.
23161 (bcd<bcd_add_sub>_<code>): Likewise.
23162 (peephole2 for combined bcd ops): Likewise.
23163
23164 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
23165 decimal floating point builtin functions.
23166 (UNSPEC_DENBCD): Likewise.
23167 (UNSPEC_DXEX): Likewise.
23168 (UNSPEC_DIEX): Likewise.
23169 (UNSPEC_DSCLI): Likewise.
23170 (UNSPEC_DSCRI): Likewise.
23171 (D64_D128): Likewise.
23172 (dfp_suffix): Likewise.
23173 (dfp_ddedpd_<mode>): Likewise.
23174 (dfp_denbcd_<mode>): Likewise.
23175 (dfp_dxex_<mode>): Likewise.
23176 (dfp_diex_<mode>): Likewise.
23177 (dfp_dscli_<mode>): Likewise.
23178 (dfp_dscri_<mode>): Likewise.
23179
23180 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
23181 builtin functions.
23182 (UNSPEC_CDTBCD): Likewise.
23183 (UNSPEC_CBCDTD): Likewise.
23184 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
23185 (UNSPEC_DIVEO): Likewise.
23186 (UNSPEC_DIVEU): Likewise.
23187 (UNSPEC_DIVEUO): Likewise.
23188 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
23189 pack/unpack 128-bit types.
23190 (UNSPEC_PACK_128BIT): Likewise.
23191 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
23192 (udiv<mode>3): Use idiv_ldiv mode attribute.
23193 (div<mode>3): Likewise.
23194 (addg6s): Add new BCD builtin functions.
23195 (cdtbcd): Likewise.
23196 (cbcdtd): Likewise.
23197 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
23198 (div_extend): Likewise.
23199 (div<div_extend>_<mode>"): Likewise.
23200 (FP128_64): Add support for new builtin functions to pack/unpack
23201 128-bit types.
23202 (unpack<mode>): Likewise.
23203 (unpacktf_0): Likewise.
23204 (unpacktf_1): Likewise.
23205 (unpack<mode>_dm): Likewise.
23206 (unpack<mode>_nodm): Likewise.
23207 (pack<mode>): Likewise.
23208 (unpackv1ti): Likewise.
23209 (packv1ti): Likewise.
23210
23211 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
23212
23213 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
23214 is disabled.
23215
23216 2014-04-24 Jakub Jelinek <jakub@redhat.com>
23217
23218 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
23219 * gimplify.c (omp_is_private): Change last argument's type to int.
23220 Only diagnose lastprivate if the simd argument is 1, only diagnose
23221 linear if the simd argument is 2.
23222 (gimplify_omp_for): Adjust omp_is_private callers. When adding
23223 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
23224 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
23225 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
23226 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
23227 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23228 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
23229 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23230 * tree-nested.c (convert_nonlocal_omp_clauses,
23231 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
23232
23233 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
23234
23235 PR target/60822
23236 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
23237 operand 1.
23238
23239 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
23240
23241 * flag-types.h (enum ivar_visibility): Add.
23242
23243 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
23244
23245 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
23246 function * argument.
23247
23248 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
23249
23250 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
23251
23252 2014-04-24 Radovan Obradovic <robradovic@mips.com>
23253 Tom de Vries <tom@codesourcery.com>
23254
23255 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
23256 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
23257 reg-note.
23258 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
23259 * emit-rtl.c (try_split): Same.
23260
23261 2014-04-24 Radovan Obradovic <robradovic@mips.com>
23262 Tom de Vries <tom@codesourcery.com>
23263
23264 * common.opt (fuse-caller-save): New option.
23265
23266 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
23267
23268 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
23269 elements for big-endian.
23270
23271 2014-04-24 Richard Biener <rguenther@suse.de>
23272
23273 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
23274 during TER and instead use the sepops interface for expanding
23275 non-GIMPLE_SINGLE_RHS.
23276
23277 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23278
23279 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
23280 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
23281
23282 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23283
23284 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
23285 assembler 64-bit option.
23286 * configure: Regenerate.
23287
23288 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23289
23290 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
23291 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
23292 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
23293 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
23294 (TARGET_CRYPTO): Take TARGET_SIMD into account.
23295
23296 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23297
23298 * config/aarch64/aarch64-builtins.c
23299 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
23300 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
23301 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
23302 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
23303 builtins.
23304 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
23305 (Vrevsuff): New mode attribute.
23306
23307 2014-04-24 Terry Guo <terry.guo@arm.com>
23308
23309 * config/arm/arm.h (machine_function): Define variable
23310 after_arm_reorg here.
23311 * config/arm/arm.c (after_arm_reorg): Remove the definition.
23312 (arm_split_constant): Update the way to access variable
23313 after_arm_reorg.
23314 (arm_reorg): Ditto.
23315 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
23316
23317 2014-04-23 Tom de Vries <tom@codesourcery.com>
23318
23319 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
23320
23321 2014-04-23 David Malcolm <dmalcolm@redhat.com>
23322
23323 * is-a.h: Update comments to reflect the following changes to the
23324 "pointerness" of the API, making the template parameter match the
23325 return type, allowing use of is-a.h with typedefs of pointers.
23326 (is_a_helper::cast): Return a T rather then a pointer to a T, so
23327 that the return type matches the parameter to the is_a_helper.
23328 (as_a): Likewise.
23329 (dyn_cast): Likewise.
23330
23331 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23332 pointer from the is-a.h API.
23333
23334 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23335 (is_a_helper <cgraph_node *>::test): ...this, matching change to
23336 is-a.h API.
23337 (is_a_helper <varpool_node>::test): Likewise, convert to...
23338 (is_a_helper <varpool_node *>::test): ...this.
23339
23340 (varpool_first_variable): Update for removal of implicit pointer
23341 from the is-a.h API.
23342 (varpool_next_variable): Likewise.
23343 (varpool_first_static_initializer): Likewise.
23344 (varpool_next_static_initializer): Likewise.
23345 (varpool_first_defined_variable): Likewise.
23346 (varpool_next_defined_variable): Likewise.
23347 (cgraph_first_defined_function): Likewise.
23348 (cgraph_next_defined_function): Likewise.
23349 (cgraph_first_function): Likewise.
23350 (cgraph_next_function): Likewise.
23351 (cgraph_first_function_with_gimple_body): Likewise.
23352 (cgraph_next_function_with_gimple_body): Likewise.
23353 (cgraph_alias_target): Likewise.
23354 (varpool_alias_target): Likewise.
23355 (cgraph_function_or_thunk_node): Likewise.
23356 (varpool_variable_node): Likewise.
23357 (symtab_real_symbol_p): Likewise.
23358 * cgraphunit.c (referred_to_p): Likewise.
23359 (analyze_functions): Likewise.
23360 (handle_alias_pairs): Likewise.
23361 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23362 * gimple-ssa.h (gimple_vuse_op): Likewise.
23363 (gimple_vdef_op): Likewise.
23364 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23365 * gimple.c (gimple_build_asm_1): Likewise.
23366 (gimple_build_try): Likewise.
23367 (gimple_build_resx): Likewise.
23368 (gimple_build_eh_dispatch): Likewise.
23369 (gimple_build_omp_for): Likewise.
23370 (gimple_omp_for_set_clauses): Likewise.
23371
23372 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23373 (is_a_helper <gimple_statement_asm *>::test): ...this.
23374 (is_a_helper <gimple_statement_bind>::test): Convert to...
23375 (is_a_helper <gimple_statement_bind *>::test): ...this.
23376 (is_a_helper <gimple_statement_call>::test): Convert to...
23377 (is_a_helper <gimple_statement_call *>::test): ...this.
23378 (is_a_helper <gimple_statement_catch>::test): Convert to...
23379 (is_a_helper <gimple_statement_catch *>::test): ...this.
23380 (is_a_helper <gimple_statement_resx>::test): Convert to...
23381 (is_a_helper <gimple_statement_resx *>::test): ...this.
23382 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23383 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23384 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23385 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23386 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23387 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23388 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23389 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23390 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23391 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23392 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23393 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23394 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23395 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23396 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23397 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23398 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23399 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23400 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23401 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23402 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23403 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23404 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23405 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23406 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23407 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23408 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23409 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23410 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23411 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23412 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23413 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23414 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23415 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23416 (is_a_helper <gimple_statement_phi>::test): Convert to...
23417 (is_a_helper <gimple_statement_phi *>::test): ...this.
23418 (is_a_helper <gimple_statement_transaction>::test): Convert to...
23419 (is_a_helper <gimple_statement_transaction *>::test): ...this.
23420 (is_a_helper <gimple_statement_try>::test): Convert to...
23421 (is_a_helper <gimple_statement_try *>::test): ...this.
23422 (is_a_helper <gimple_statement_wce>::test): Convert to...
23423 (is_a_helper <gimple_statement_wce *>::test): ...this.
23424 (is_a_helper <const gimple_statement_asm>::test): Convert to...
23425 (is_a_helper <const gimple_statement_asm *>::test): ...this.
23426 (is_a_helper <const gimple_statement_bind>::test): Convert to...
23427 (is_a_helper <const gimple_statement_bind *>::test): ...this.
23428 (is_a_helper <const gimple_statement_call>::test): Convert to...
23429 (is_a_helper <const gimple_statement_call *>::test): ...this.
23430 (is_a_helper <const gimple_statement_catch>::test): Convert to...
23431 (is_a_helper <const gimple_statement_catch *>::test): ...this.
23432 (is_a_helper <const gimple_statement_resx>::test): Convert to...
23433 (is_a_helper <const gimple_statement_resx *>::test): ...this.
23434 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23435 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23436 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23437 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23438 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23439 Convert to...
23440 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23441 ...this.
23442 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23443 Convert to...
23444 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23445 ...this.
23446 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23447 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23448 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23449 to...
23450 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23451 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23452 to...
23453 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23454 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23455 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23456 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23457 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23458 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23459 to...
23460 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23461 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23462 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23463 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23464 to...
23465 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23466 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23467 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23468 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23469 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23470 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23471 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23472 (is_a_helper <const gimple_statement_phi>::test): Convert to...
23473 (is_a_helper <const gimple_statement_phi *>::test): ...this.
23474 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23475 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23476 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23477 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23478 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23479 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23480 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23481 to...
23482 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23483 ...this.
23484 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23485 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23486
23487 (gimple_use_ops): Update for removal of implicit pointer from the
23488 is-a.h API.
23489 (gimple_set_use_ops): Likewise.
23490 (gimple_vuse): Likewise.
23491 (gimple_vdef): Likewise.
23492 (gimple_vuse_ptr): Likewise.
23493 (gimple_vdef_ptr): Likewise.
23494 (gimple_set_vuse): Likewise.
23495 (gimple_set_vdef): Likewise.
23496 (gimple_omp_return_set_lhs): Likewise.
23497 (gimple_omp_return_lhs): Likewise.
23498 (gimple_omp_return_lhs_ptr): Likewise.
23499 (gimple_call_fntype): Likewise.
23500 (gimple_call_set_fntype): Likewise.
23501 (gimple_call_set_internal_fn): Likewise.
23502 (gimple_call_use_set): Likewise.
23503 (gimple_call_clobber_set): Likewise.
23504 (gimple_bind_vars): Likewise.
23505 (gimple_bind_set_vars): Likewise.
23506 (gimple_bind_body_ptr): Likewise.
23507 (gimple_bind_set_body): Likewise.
23508 (gimple_bind_add_stmt): Likewise.
23509 (gimple_bind_block): Likewise.
23510 (gimple_bind_set_block): Likewise.
23511 (gimple_asm_ninputs): Likewise.
23512 (gimple_asm_noutputs): Likewise.
23513 (gimple_asm_nclobbers): Likewise.
23514 (gimple_asm_nlabels): Likewise.
23515 (gimple_asm_input_op): Likewise.
23516 (gimple_asm_input_op_ptr): Likewise.
23517 (gimple_asm_output_op): Likewise.
23518 (gimple_asm_output_op_ptr): Likewise.
23519 (gimple_asm_set_output_op): Likewise.
23520 (gimple_asm_clobber_op): Likewise.
23521 (gimple_asm_set_clobber_op): Likewise.
23522 (gimple_asm_label_op): Likewise.
23523 (gimple_asm_set_label_op): Likewise.
23524 (gimple_asm_string): Likewise.
23525 (gimple_catch_types): Likewise.
23526 (gimple_catch_types_ptr): Likewise.
23527 (gimple_catch_handler_ptr): Likewise.
23528 (gimple_catch_set_types): Likewise.
23529 (gimple_catch_set_handler): Likewise.
23530 (gimple_eh_filter_types): Likewise.
23531 (gimple_eh_filter_types_ptr): Likewise.
23532 (gimple_eh_filter_failure_ptr): Likewise.
23533 (gimple_eh_filter_set_types): Likewise.
23534 (gimple_eh_filter_set_failure): Likewise.
23535 (gimple_eh_must_not_throw_fndecl): Likewise.
23536 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23537 (gimple_eh_else_n_body_ptr): Likewise.
23538 (gimple_eh_else_e_body_ptr): Likewise.
23539 (gimple_eh_else_set_n_body): Likewise.
23540 (gimple_eh_else_set_e_body): Likewise.
23541 (gimple_try_eval_ptr): Likewise.
23542 (gimple_try_cleanup_ptr): Likewise.
23543 (gimple_try_set_eval): Likewise.
23544 (gimple_try_set_cleanup): Likewise.
23545 (gimple_wce_cleanup_ptr): Likewise.
23546 (gimple_wce_set_cleanup): Likewise.
23547 (gimple_phi_capacity): Likewise.
23548 (gimple_phi_num_args): Likewise.
23549 (gimple_phi_result): Likewise.
23550 (gimple_phi_result_ptr): Likewise.
23551 (gimple_phi_set_result): Likewise.
23552 (gimple_phi_arg): Likewise.
23553 (gimple_phi_set_arg): Likewise.
23554 (gimple_resx_region): Likewise.
23555 (gimple_resx_set_region): Likewise.
23556 (gimple_eh_dispatch_region): Likewise.
23557 (gimple_eh_dispatch_set_region): Likewise.
23558 (gimple_omp_critical_name): Likewise.
23559 (gimple_omp_critical_name_ptr): Likewise.
23560 (gimple_omp_critical_set_name): Likewise.
23561 (gimple_omp_for_clauses): Likewise.
23562 (gimple_omp_for_clauses_ptr): Likewise.
23563 (gimple_omp_for_set_clauses): Likewise.
23564 (gimple_omp_for_collapse): Likewise.
23565 (gimple_omp_for_index): Likewise.
23566 (gimple_omp_for_index_ptr): Likewise.
23567 (gimple_omp_for_set_index): Likewise.
23568 (gimple_omp_for_initial): Likewise.
23569 (gimple_omp_for_initial_ptr): Likewise.
23570 (gimple_omp_for_set_initial): Likewise.
23571 (gimple_omp_for_final): Likewise.
23572 (gimple_omp_for_final_ptr): Likewise.
23573 (gimple_omp_for_set_final): Likewise.
23574 (gimple_omp_for_incr): Likewise.
23575 (gimple_omp_for_incr_ptr): Likewise.
23576 (gimple_omp_for_set_incr): Likewise.
23577 (gimple_omp_for_pre_body_ptr): Likewise.
23578 (gimple_omp_for_set_pre_body): Likewise.
23579 (gimple_omp_parallel_clauses): Likewise.
23580 (gimple_omp_parallel_clauses_ptr): Likewise.
23581 (gimple_omp_parallel_set_clauses): Likewise.
23582 (gimple_omp_parallel_child_fn): Likewise.
23583 (gimple_omp_parallel_child_fn_ptr): Likewise.
23584 (gimple_omp_parallel_set_child_fn): Likewise.
23585 (gimple_omp_parallel_data_arg): Likewise.
23586 (gimple_omp_parallel_data_arg_ptr): Likewise.
23587 (gimple_omp_parallel_set_data_arg): Likewise.
23588 (gimple_omp_task_clauses): Likewise.
23589 (gimple_omp_task_clauses_ptr): Likewise.
23590 (gimple_omp_task_set_clauses): Likewise.
23591 (gimple_omp_task_child_fn): Likewise.
23592 (gimple_omp_task_child_fn_ptr): Likewise.
23593 (gimple_omp_task_set_child_fn): Likewise.
23594 (gimple_omp_task_data_arg): Likewise.
23595 (gimple_omp_task_data_arg_ptr): Likewise.
23596 (gimple_omp_task_set_data_arg): Likewise.
23597 (gimple_omp_taskreg_clauses): Likewise.
23598 (gimple_omp_taskreg_clauses_ptr): Likewise.
23599 (gimple_omp_taskreg_set_clauses): Likewise.
23600 (gimple_omp_taskreg_child_fn): Likewise.
23601 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23602 (gimple_omp_taskreg_set_child_fn): Likewise.
23603 (gimple_omp_taskreg_data_arg): Likewise.
23604 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23605 (gimple_omp_taskreg_set_data_arg): Likewise.
23606 (gimple_omp_task_copy_fn): Likewise.
23607 (gimple_omp_task_copy_fn_ptr): Likewise.
23608 (gimple_omp_task_set_copy_fn): Likewise.
23609 (gimple_omp_task_arg_size): Likewise.
23610 (gimple_omp_task_arg_size_ptr): Likewise.
23611 (gimple_omp_task_set_arg_size): Likewise.
23612 (gimple_omp_task_arg_align): Likewise.
23613 (gimple_omp_task_arg_align_ptr): Likewise.
23614 (gimple_omp_task_set_arg_align): Likewise.
23615 (gimple_omp_single_clauses): Likewise.
23616 (gimple_omp_single_clauses_ptr): Likewise.
23617 (gimple_omp_single_set_clauses): Likewise.
23618 (gimple_omp_target_clauses): Likewise.
23619 (gimple_omp_target_clauses_ptr): Likewise.
23620 (gimple_omp_target_set_clauses): Likewise.
23621 (gimple_omp_target_child_fn): Likewise.
23622 (gimple_omp_target_child_fn_ptr): Likewise.
23623 (gimple_omp_target_set_child_fn): Likewise.
23624 (gimple_omp_target_data_arg): Likewise.
23625 (gimple_omp_target_data_arg_ptr): Likewise.
23626 (gimple_omp_target_set_data_arg): Likewise.
23627 (gimple_omp_teams_clauses): Likewise.
23628 (gimple_omp_teams_clauses_ptr): Likewise.
23629 (gimple_omp_teams_set_clauses): Likewise.
23630 (gimple_omp_sections_clauses): Likewise.
23631 (gimple_omp_sections_clauses_ptr): Likewise.
23632 (gimple_omp_sections_set_clauses): Likewise.
23633 (gimple_omp_sections_control): Likewise.
23634 (gimple_omp_sections_control_ptr): Likewise.
23635 (gimple_omp_sections_set_control): Likewise.
23636 (gimple_omp_for_set_cond): Likewise.
23637 (gimple_omp_for_cond): Likewise.
23638 (gimple_omp_atomic_store_set_val): Likewise.
23639 (gimple_omp_atomic_store_val): Likewise.
23640 (gimple_omp_atomic_store_val_ptr): Likewise.
23641 (gimple_omp_atomic_load_set_lhs): Likewise.
23642 (gimple_omp_atomic_load_lhs): Likewise.
23643 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23644 (gimple_omp_atomic_load_set_rhs): Likewise.
23645 (gimple_omp_atomic_load_rhs): Likewise.
23646 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23647 (gimple_omp_continue_control_def): Likewise.
23648 (gimple_omp_continue_control_def_ptr): Likewise.
23649 (gimple_omp_continue_set_control_def): Likewise.
23650 (gimple_omp_continue_control_use): Likewise.
23651 (gimple_omp_continue_control_use_ptr): Likewise.
23652 (gimple_omp_continue_set_control_use): Likewise.
23653 (gimple_transaction_body_ptr): Likewise.
23654 (gimple_transaction_label): Likewise.
23655 (gimple_transaction_label_ptr): Likewise.
23656 (gimple_transaction_set_body): Likewise.
23657 (gimple_transaction_set_label): Likewise.
23658
23659 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23660 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23661 * ipa-ref.c (ipa_record_reference): Likewise.
23662 * ipa-reference.c (analyze_function): Likewise.
23663 (ipa_reference_write_optimization_summary): Likewise.
23664 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23665 (address_taken_from_non_vtable_p): Likewise.
23666 (comdat_can_be_unshared_p_1): Likewise.
23667 * lto-cgraph.c (lto_output_ref): Likewise.
23668 (add_references): Likewise.
23669 (compute_ltrans_boundary): Likewise.
23670 (output_symtab): Likewise.
23671 (input_ref): Likewise.
23672 (input_cgraph_1): Likewise.
23673 (output_cgraph_opt_summary): Likewise.
23674 * lto-streamer-out.c (lto_output): Likewise.
23675 (output_symbol_p): Likewise.
23676 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23677 (lsei_start_function_in_partition): Likewise.
23678 (lsei_next_variable_in_partition): Likewise.
23679 (lsei_start_variable_in_partition): Likewise.
23680 * symtab.c (insert_to_assembler_name_hash): Likewise.
23681 (unlink_from_assembler_name_hash): Likewise.
23682 (symtab_unregister_node): Likewise.
23683 (symtab_remove_node): Likewise.
23684 (dump_symtab_node): Likewise.
23685 (verify_symtab_base): Likewise.
23686 (verify_symtab_node): Likewise.
23687 (symtab_make_decl_local): Likewise.
23688 (symtab_alias_ultimate_target): Likewise.
23689 (symtab_resolve_alias): Likewise.
23690 (symtab_get_symbol_partitioning_class): Likewise.
23691 * tree-phinodes.c (allocate_phi_node): Likewise.
23692 (reserve_phi_args_for_new_edge): Likewise.
23693 (remove_phi_args): Likewise.
23694 * varpool.c (varpool_node_for_asm): Likewise.
23695 (varpool_remove_unreferenced_decls): Likewise.
23696
23697 2014-04-23 Jeff Law <law@redhat.com>
23698
23699 PR tree-optimization/60902
23700 * tree-ssa-threadedge.c
23701 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23702 invalidate outputs from statements that do not produce useful
23703 outputs for threading.
23704
23705 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23706
23707 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23708 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23709 machine descriptions for Stack Smashing Protector.
23710
23711 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23712
23713 * aarch64.md (<optab>_rol<mode>3): New pattern.
23714 (<optab>_rolsi3_uxtw): Likewise.
23715 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23716
23717 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23718
23719 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23720 (arm_cortex_a12_tune): Likewise.
23721
23722 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23723
23724 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23725
23726 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23727
23728 * config/arm/arm.md (arm_rev16si2): New pattern.
23729 (arm_rev16si2_alt): Likewise.
23730 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23731
23732 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23733
23734 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23735 (rev16<mode>2_alt): Likewise.
23736 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23737 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23738 (aarch_rev16_shleft_mask_imm_p): Likewise.
23739 (aarch_rev16_p_1): Likewise.
23740 (aarch_rev16_p): Likewise.
23741 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23742 (aarch_rev16_shright_mask_imm_p): Likewise.
23743 (aarch_rev16_shleft_mask_imm_p): Likewise.
23744
23745 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23746
23747 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23748 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23749 rev cost.
23750 (cortex_a53_extra_costs): Likewise.
23751 (cortex_a57_extra_costs): Likewise.
23752 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23753 (cortexa7_extra_costs): Likewise.
23754 (cortexa8_extra_costs): Likewise.
23755 (cortexa12_extra_costs): Likewise.
23756 (cortexa15_extra_costs): Likewise.
23757 (v7m_extra_costs): Likewise.
23758 (arm_new_rtx_costs): Handle BSWAP.
23759
23760 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23761
23762 * config/arm/arm.c (cortexa8_extra_costs): New table.
23763 (arm_cortex_a8_tune): New tuning struct.
23764 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23765
23766 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23767
23768 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23769
23770 2014-04-23 Richard Biener <rguenther@suse.de>
23771
23772 * Makefile.in (OBJS): Remove loop-unswitch.o.
23773 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23774 * passes.def (pass_rtl_unswitch): Likewise.
23775 * loop-init.c (gate_rtl_unswitch): Likewise.
23776 (rtl_unswitch): Likewise.
23777 (pass_data_rtl_unswitch): Likewise.
23778 (pass_rtl_unswitch): Likewise.
23779 (make_pass_rtl_unswitch): Likewise.
23780 * rtl.h (reversed_condition): Likewise.
23781 (compare_and_jump_seq): Likewise.
23782 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23783 and make static.
23784 * loop-unroll.c (compare_and_jump_seq): Likewise.
23785
23786 2014-04-23 Richard Biener <rguenther@suse.de>
23787
23788 PR tree-optimization/60903
23789 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23790 commented code block.
23791 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23792 loop flags to newly created BBs and edges.
23793
23794 2014-04-23 Nick Clifton <nickc@redhat.com>
23795
23796 * config/msp430/msp430.c (msp430_handle_option): Move function
23797 to msp430-common.c
23798 (msp430_option_override): Simplify mcu and mcpu option handling.
23799 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23800 support for -mhwmult command line option.
23801 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23802 -mhwmult command line option.
23803 (msp430_hwmult_enabled): Delete.
23804 (msp43o_output_labelref): Add support for -mhwmult command line option.
23805 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23806 (umulsidi3): Likewise.
23807 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23808 (mcpu, mlarge, msmall): Likewise.
23809 (mhwmult): New option.
23810 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23811 prototype.
23812 (msp430_is_f5_mcu): Remove prototype.
23813 (msp430_use_f5_series_hwmult): Add prototype.
23814 * config/msp430/msp430-opts.h: New file.
23815 * common/config/msp430: New directory.
23816 * common/config/msp430/msp430-common.c: New file.
23817 * config.gcc (msp430): Remove target_has_targetm_common.
23818 * doc/invoke.texi: Document -mhwmult command line option.
23819
23820 2014-04-23 Nick Clifton <nickc@redhat.com>
23821
23822 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23823 default-manifest.o if it can be found in the search path.
23824 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23825
23826 2014-04-23 Terry Guo <terry.guo@arm.com>
23827
23828 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23829
23830 2014-04-23 Richard Biener <rguenther@suse.de>
23831
23832 PR middle-end/60895
23833 * tree-inline.c (declare_return_variable): Use mark_addressable.
23834
23835 2014-04-23 Richard Biener <rguenther@suse.de>
23836
23837 PR middle-end/60891
23838 * loop-init.c (loop_optimizer_init): Make sure to apply
23839 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23840
23841 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23842
23843 PR sanitizer/60275
23844 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23845 New options.
23846 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23847 if flag_sanitize_undefined_trap_on_error.
23848 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23849 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23850 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23851 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23852 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23853 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23854 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23855 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23856 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23857 * ubsan.c (ubsan_instrument_unreachable): Return
23858 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23859 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23860 if flag_sanitize_undefined_trap_on_error and
23861 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23862 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23863 instrument_bool_enum_load): Emit __builtin_trap () if
23864 flag_sanitize_undefined_trap_on_error and
23865 __builtin_handle_*_abort () if !flag_sanitize_recover.
23866 * doc/invoke.texi (-fsanitize-recover,
23867 -fsanitize-undefined-trap-on-error): Document.
23868
23869 2014-04-22 Christian Bruel <christian.bruel@st.com>
23870
23871 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23872 Force immediates to SImode.
23873
23874 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23875
23876 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23877 (lroundsfsi2): New.
23878 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23879 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23880 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23881 (nios2_fpu_insn): Add entry for round.
23882 (N2FPU_NO_ERRNO_P): Define.
23883 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23884 flag_errno_math.
23885 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23886
23887 2014-04-22 Richard Henderson <rth@redhat.com>
23888
23889 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23890 (add<GPI>3_compare0): Remove leading * from name.
23891 (add<GPI>3_carryin): Likewise.
23892 (sub<GPI>3_compare0): Likewise.
23893 (sub<GPI>3_carryin): Likewise.
23894 (<su_optab>mulditi3): New expander.
23895 (multi3): New expander.
23896 (madd<GPI>): Remove leading * from name.
23897
23898 2014-04-22 Martin Jambor <mjambor@suse.cz>
23899
23900 * cgraphclones.c (cgraph_function_versioning): Copy
23901 ipa_transforms_to_apply instead of asserting it is empty.
23902
23903 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23904
23905 PR target/60868
23906 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23907 on count_exp to get mode.
23908
23909 2014-04-22 Andrew Pinski <apinski@cavium.com>
23910
23911 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23912 Handle TLS for ILP32.
23913 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23914 (tlsie_small_<mode>): this and handle PTR.
23915 (tlsie_small_sidi): New pattern.
23916 (tlsle_small): Change to an expand to handle ILP32.
23917 (tlsle_small_<mode>): New pattern.
23918 (tlsdesc_small): Rename to ...
23919 (tlsdesc_small_<mode>): this and handle PTR.
23920
23921 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23922
23923 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23924
23925 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23926
23927 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23928 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23929 (aarch64_types_signed_poly_qualifiers): Likewise.
23930 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23931 (aarch64_types_poly_signed_qualifiers): Likewise.
23932 (TYPES_REINTERP_SS): Type macro added.
23933 (TYPES_REINTERP_SU): Likewise.
23934 (TYPES_REINTERP_SP): Likewise.
23935 (TYPES_REINTERP_US): Likewise.
23936 (TYPES_REINTERP_PS): Likewise.
23937 (aarch64_fold_builtin): New expression folding added.
23938 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23939 Declarations removed.
23940 (REINTERP_SS): Declarations added.
23941 (REINTERP_US): Likewise.
23942 (REINTERP_PS): Likewise.
23943 (REINTERP_SU): Likewise.
23944 (REINTERP_SP): Likewise.
23945 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23946 (vreinterpretq_p8_f64): Likewise.
23947 (vreinterpret_p16_f64): Likewise.
23948 (vreinterpretq_p16_f64): Likewise.
23949 (vreinterpret_f32_f64): Likewise.
23950 (vreinterpretq_f32_f64): Likewise.
23951 (vreinterpret_f64_f32): Likewise.
23952 (vreinterpret_f64_p8): Likewise.
23953 (vreinterpret_f64_p16): Likewise.
23954 (vreinterpret_f64_s8): Likewise.
23955 (vreinterpret_f64_s16): Likewise.
23956 (vreinterpret_f64_s32): Likewise.
23957 (vreinterpret_f64_s64): Likewise.
23958 (vreinterpret_f64_u8): Likewise.
23959 (vreinterpret_f64_u16): Likewise.
23960 (vreinterpret_f64_u32): Likewise.
23961 (vreinterpret_f64_u64): Likewise.
23962 (vreinterpretq_f64_f32): Likewise.
23963 (vreinterpretq_f64_p8): Likewise.
23964 (vreinterpretq_f64_p16): Likewise.
23965 (vreinterpretq_f64_s8): Likewise.
23966 (vreinterpretq_f64_s16): Likewise.
23967 (vreinterpretq_f64_s32): Likewise.
23968 (vreinterpretq_f64_s64): Likewise.
23969 (vreinterpretq_f64_u8): Likewise.
23970 (vreinterpretq_f64_u16): Likewise.
23971 (vreinterpretq_f64_u32): Likewise.
23972 (vreinterpretq_f64_u64): Likewise.
23973 (vreinterpret_s64_f64): Likewise.
23974 (vreinterpretq_s64_f64): Likewise.
23975 (vreinterpret_u64_f64): Likewise.
23976 (vreinterpretq_u64_f64): Likewise.
23977 (vreinterpret_s8_f64): Likewise.
23978 (vreinterpretq_s8_f64): Likewise.
23979 (vreinterpret_s16_f64): Likewise.
23980 (vreinterpretq_s16_f64): Likewise.
23981 (vreinterpret_s32_f64): Likewise.
23982 (vreinterpretq_s32_f64): Likewise.
23983 (vreinterpret_u8_f64): Likewise.
23984 (vreinterpretq_u8_f64): Likewise.
23985 (vreinterpret_u16_f64): Likewise.
23986 (vreinterpretq_u16_f64): Likewise.
23987 (vreinterpret_u32_f64): Likewise.
23988 (vreinterpretq_u32_f64): Likewise.
23989
23990 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23991
23992 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23993 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23994 (vreinterpret_p8_s8): Likewise.
23995 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23996 (vreinterpret_p8_s16): Likewise.
23997 (vreinterpret_p8_s32): Likewise.
23998 (vreinterpret_p8_s64): Likewise.
23999 (vreinterpret_p8_f32): Likewise.
24000 (vreinterpret_p8_u8): Likewise.
24001 (vreinterpret_p8_u16): Likewise.
24002 (vreinterpret_p8_u32): Likewise.
24003 (vreinterpret_p8_u64): Likewise.
24004 (vreinterpret_p8_p16): Likewise.
24005 (vreinterpretq_p8_s8): Likewise.
24006 (vreinterpretq_p8_s16): Likewise.
24007 (vreinterpretq_p8_s32): Likewise.
24008 (vreinterpretq_p8_s64): Likewise.
24009 (vreinterpretq_p8_f32): Likewise.
24010 (vreinterpretq_p8_u8): Likewise.
24011 (vreinterpretq_p8_u16): Likewise.
24012 (vreinterpretq_p8_u32): Likewise.
24013 (vreinterpretq_p8_u64): Likewise.
24014 (vreinterpretq_p8_p16): Likewise.
24015 (vreinterpret_p16_s8): Likewise.
24016 (vreinterpret_p16_s16): Likewise.
24017 (vreinterpret_p16_s32): Likewise.
24018 (vreinterpret_p16_s64): Likewise.
24019 (vreinterpret_p16_f32): Likewise.
24020 (vreinterpret_p16_u8): Likewise.
24021 (vreinterpret_p16_u16): Likewise.
24022 (vreinterpret_p16_u32): Likewise.
24023 (vreinterpret_p16_u64): Likewise.
24024 (vreinterpret_p16_p8): Likewise.
24025 (vreinterpretq_p16_s8): Likewise.
24026 (vreinterpretq_p16_s16): Likewise.
24027 (vreinterpretq_p16_s32): Likewise.
24028 (vreinterpretq_p16_s64): Likewise.
24029 (vreinterpretq_p16_f32): Likewise.
24030 (vreinterpretq_p16_u8): Likewise.
24031 (vreinterpretq_p16_u16): Likewise.
24032 (vreinterpretq_p16_u32): Likewise.
24033 (vreinterpretq_p16_u64): Likewise.
24034 (vreinterpretq_p16_p8): Likewise.
24035 (vreinterpret_f32_s8): Likewise.
24036 (vreinterpret_f32_s16): Likewise.
24037 (vreinterpret_f32_s32): Likewise.
24038 (vreinterpret_f32_s64): Likewise.
24039 (vreinterpret_f32_u8): Likewise.
24040 (vreinterpret_f32_u16): Likewise.
24041 (vreinterpret_f32_u32): Likewise.
24042 (vreinterpret_f32_u64): Likewise.
24043 (vreinterpret_f32_p8): Likewise.
24044 (vreinterpret_f32_p16): Likewise.
24045 (vreinterpretq_f32_s8): Likewise.
24046 (vreinterpretq_f32_s16): Likewise.
24047 (vreinterpretq_f32_s32): Likewise.
24048 (vreinterpretq_f32_s64): Likewise.
24049 (vreinterpretq_f32_u8): Likewise.
24050 (vreinterpretq_f32_u16): Likewise.
24051 (vreinterpretq_f32_u32): Likewise.
24052 (vreinterpretq_f32_u64): Likewise.
24053 (vreinterpretq_f32_p8): Likewise.
24054 (vreinterpretq_f32_p16): Likewise.
24055 (vreinterpret_s64_s8): Likewise.
24056 (vreinterpret_s64_s16): Likewise.
24057 (vreinterpret_s64_s32): Likewise.
24058 (vreinterpret_s64_f32): Likewise.
24059 (vreinterpret_s64_u8): Likewise.
24060 (vreinterpret_s64_u16): Likewise.
24061 (vreinterpret_s64_u32): Likewise.
24062 (vreinterpret_s64_u64): Likewise.
24063 (vreinterpret_s64_p8): Likewise.
24064 (vreinterpret_s64_p16): Likewise.
24065 (vreinterpretq_s64_s8): Likewise.
24066 (vreinterpretq_s64_s16): Likewise.
24067 (vreinterpretq_s64_s32): Likewise.
24068 (vreinterpretq_s64_f32): Likewise.
24069 (vreinterpretq_s64_u8): Likewise.
24070 (vreinterpretq_s64_u16): Likewise.
24071 (vreinterpretq_s64_u32): Likewise.
24072 (vreinterpretq_s64_u64): Likewise.
24073 (vreinterpretq_s64_p8): Likewise.
24074 (vreinterpretq_s64_p16): Likewise.
24075 (vreinterpret_u64_s8): Likewise.
24076 (vreinterpret_u64_s16): Likewise.
24077 (vreinterpret_u64_s32): Likewise.
24078 (vreinterpret_u64_s64): Likewise.
24079 (vreinterpret_u64_f32): Likewise.
24080 (vreinterpret_u64_u8): Likewise.
24081 (vreinterpret_u64_u16): Likewise.
24082 (vreinterpret_u64_u32): Likewise.
24083 (vreinterpret_u64_p8): Likewise.
24084 (vreinterpret_u64_p16): Likewise.
24085 (vreinterpretq_u64_s8): Likewise.
24086 (vreinterpretq_u64_s16): Likewise.
24087 (vreinterpretq_u64_s32): Likewise.
24088 (vreinterpretq_u64_s64): Likewise.
24089 (vreinterpretq_u64_f32): Likewise.
24090 (vreinterpretq_u64_u8): Likewise.
24091 (vreinterpretq_u64_u16): Likewise.
24092 (vreinterpretq_u64_u32): Likewise.
24093 (vreinterpretq_u64_p8): Likewise.
24094 (vreinterpretq_u64_p16): Likewise.
24095 (vreinterpret_s8_s16): Likewise.
24096 (vreinterpret_s8_s32): Likewise.
24097 (vreinterpret_s8_s64): Likewise.
24098 (vreinterpret_s8_f32): Likewise.
24099 (vreinterpret_s8_u8): Likewise.
24100 (vreinterpret_s8_u16): Likewise.
24101 (vreinterpret_s8_u32): Likewise.
24102 (vreinterpret_s8_u64): Likewise.
24103 (vreinterpret_s8_p8): Likewise.
24104 (vreinterpret_s8_p16): Likewise.
24105 (vreinterpretq_s8_s16): Likewise.
24106 (vreinterpretq_s8_s32): Likewise.
24107 (vreinterpretq_s8_s64): Likewise.
24108 (vreinterpretq_s8_f32): Likewise.
24109 (vreinterpretq_s8_u8): Likewise.
24110 (vreinterpretq_s8_u16): Likewise.
24111 (vreinterpretq_s8_u32): Likewise.
24112 (vreinterpretq_s8_u64): Likewise.
24113 (vreinterpretq_s8_p8): Likewise.
24114 (vreinterpretq_s8_p16): Likewise.
24115 (vreinterpret_s16_s8): Likewise.
24116 (vreinterpret_s16_s32): Likewise.
24117 (vreinterpret_s16_s64): Likewise.
24118 (vreinterpret_s16_f32): Likewise.
24119 (vreinterpret_s16_u8): Likewise.
24120 (vreinterpret_s16_u16): Likewise.
24121 (vreinterpret_s16_u32): Likewise.
24122 (vreinterpret_s16_u64): Likewise.
24123 (vreinterpret_s16_p8): Likewise.
24124 (vreinterpret_s16_p16): Likewise.
24125 (vreinterpretq_s16_s8): Likewise.
24126 (vreinterpretq_s16_s32): Likewise.
24127 (vreinterpretq_s16_s64): Likewise.
24128 (vreinterpretq_s16_f32): Likewise.
24129 (vreinterpretq_s16_u8): Likewise.
24130 (vreinterpretq_s16_u16): Likewise.
24131 (vreinterpretq_s16_u32): Likewise.
24132 (vreinterpretq_s16_u64): Likewise.
24133 (vreinterpretq_s16_p8): Likewise.
24134 (vreinterpretq_s16_p16): Likewise.
24135 (vreinterpret_s32_s8): Likewise.
24136 (vreinterpret_s32_s16): Likewise.
24137 (vreinterpret_s32_s64): Likewise.
24138 (vreinterpret_s32_f32): Likewise.
24139 (vreinterpret_s32_u8): Likewise.
24140 (vreinterpret_s32_u16): Likewise.
24141 (vreinterpret_s32_u32): Likewise.
24142 (vreinterpret_s32_u64): Likewise.
24143 (vreinterpret_s32_p8): Likewise.
24144 (vreinterpret_s32_p16): Likewise.
24145 (vreinterpretq_s32_s8): Likewise.
24146 (vreinterpretq_s32_s16): Likewise.
24147 (vreinterpretq_s32_s64): Likewise.
24148 (vreinterpretq_s32_f32): Likewise.
24149 (vreinterpretq_s32_u8): Likewise.
24150 (vreinterpretq_s32_u16): Likewise.
24151 (vreinterpretq_s32_u32): Likewise.
24152 (vreinterpretq_s32_u64): Likewise.
24153 (vreinterpretq_s32_p8): Likewise.
24154 (vreinterpretq_s32_p16): Likewise.
24155 (vreinterpret_u8_s8): Likewise.
24156 (vreinterpret_u8_s16): Likewise.
24157 (vreinterpret_u8_s32): Likewise.
24158 (vreinterpret_u8_s64): Likewise.
24159 (vreinterpret_u8_f32): Likewise.
24160 (vreinterpret_u8_u16): Likewise.
24161 (vreinterpret_u8_u32): Likewise.
24162 (vreinterpret_u8_u64): Likewise.
24163 (vreinterpret_u8_p8): Likewise.
24164 (vreinterpret_u8_p16): Likewise.
24165 (vreinterpretq_u8_s8): Likewise.
24166 (vreinterpretq_u8_s16): Likewise.
24167 (vreinterpretq_u8_s32): Likewise.
24168 (vreinterpretq_u8_s64): Likewise.
24169 (vreinterpretq_u8_f32): Likewise.
24170 (vreinterpretq_u8_u16): Likewise.
24171 (vreinterpretq_u8_u32): Likewise.
24172 (vreinterpretq_u8_u64): Likewise.
24173 (vreinterpretq_u8_p8): Likewise.
24174 (vreinterpretq_u8_p16): Likewise.
24175 (vreinterpret_u16_s8): Likewise.
24176 (vreinterpret_u16_s16): Likewise.
24177 (vreinterpret_u16_s32): Likewise.
24178 (vreinterpret_u16_s64): Likewise.
24179 (vreinterpret_u16_f32): Likewise.
24180 (vreinterpret_u16_u8): Likewise.
24181 (vreinterpret_u16_u32): Likewise.
24182 (vreinterpret_u16_u64): Likewise.
24183 (vreinterpret_u16_p8): Likewise.
24184 (vreinterpret_u16_p16): Likewise.
24185 (vreinterpretq_u16_s8): Likewise.
24186 (vreinterpretq_u16_s16): Likewise.
24187 (vreinterpretq_u16_s32): Likewise.
24188 (vreinterpretq_u16_s64): Likewise.
24189 (vreinterpretq_u16_f32): Likewise.
24190 (vreinterpretq_u16_u8): Likewise.
24191 (vreinterpretq_u16_u32): Likewise.
24192 (vreinterpretq_u16_u64): Likewise.
24193 (vreinterpretq_u16_p8): Likewise.
24194 (vreinterpretq_u16_p16): Likewise.
24195 (vreinterpret_u32_s8): Likewise.
24196 (vreinterpret_u32_s16): Likewise.
24197 (vreinterpret_u32_s32): Likewise.
24198 (vreinterpret_u32_s64): Likewise.
24199 (vreinterpret_u32_f32): Likewise.
24200 (vreinterpret_u32_u8): Likewise.
24201 (vreinterpret_u32_u16): Likewise.
24202 (vreinterpret_u32_u64): Likewise.
24203 (vreinterpret_u32_p8): Likewise.
24204 (vreinterpret_u32_p16): Likewise.
24205 (vreinterpretq_u32_s8): Likewise.
24206 (vreinterpretq_u32_s16): Likewise.
24207 (vreinterpretq_u32_s32): Likewise.
24208 (vreinterpretq_u32_s64): Likewise.
24209 (vreinterpretq_u32_f32): Likewise.
24210 (vreinterpretq_u32_u8): Likewise.
24211 (vreinterpretq_u32_u16): Likewise.
24212 (vreinterpretq_u32_u64): Likewise.
24213 (vreinterpretq_u32_p8): Likewise.
24214 (vreinterpretq_u32_p16): Likewise.
24215
24216 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24217
24218 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
24219 Pattern extended.
24220 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
24221 (sqabs): Likewise.
24222 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
24223 (vqnegd_s64): Likewise.
24224 (vqabs_s64): Likewise.
24225 (vqabsd_s64): Likewise.
24226
24227 2014-04-22 Richard Henderson <rth@redhat.com>
24228
24229 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
24230 computation to the top of the loop.
24231
24232 2014-04-22 Renlin <renlin.li@arm.com>
24233 Jiong Wang <jiong.wang@arm.com>
24234
24235 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
24236 * config/aarch64/aarch64.c (aarch64_layout_frame)
24237 (aarch64_initial_elimination_offset): Likewise.
24238
24239 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
24240
24241 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
24242 Fix indentation.
24243
24244 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
24245
24246 * machmode.h (bitwise_mode_for_mode): Declare.
24247 * stor-layout.h (bitwise_type_for_mode): Likewise.
24248 * stor-layout.c (bitwise_mode_for_mode): New function.
24249 (bitwise_type_for_mode): Likewise.
24250 * builtins.c (fold_builtin_memory_op): Use it instead of
24251 int_mode_for_mode and build_nonstandard_integer_type.
24252
24253 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24254
24255 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
24256 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
24257 (*-*-solaris2*): Simplify.
24258 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
24259 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
24260 *-*-solaris2.9* handling.
24261
24262 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
24263 as bug.
24264 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
24265 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
24266 handling, simplify.
24267 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
24268 * configure: Regenerate.
24269
24270 * config/i386/sol2-9.h: Remove.
24271
24272 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
24273 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
24274 Remove Solaris 9 references.
24275
24276 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
24277
24278 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
24279 (floatuns<GPI:mode><GPF:mode>2): Remove.
24280 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
24281 and floatuns conversions.
24282 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
24283 and floatuns conversions.
24284 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
24285 (w1,w2): New mode attributes for inequal width conversions.
24286
24287 2014-04-22 Renlin Li <Renlin.Li@arm.com>
24288
24289 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
24290 the output asm format.
24291
24292 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24293
24294 * config/aarch64/aarch64-simd.md
24295 (aarch64_cm<optab>di): Always split.
24296 (*aarch64_cm<optab>di): New.
24297 (aarch64_cmtstdi): Always split.
24298 (*aarch64_cmtstdi): New.
24299
24300 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24301
24302 PR tree-optimization/60823
24303 * omp-low.c (ipa_simd_modify_function_body): Go through
24304 all SSA_NAMEs and for those refering to vector arguments
24305 which are going to be replaced adjust SSA_NAME_VAR and,
24306 if it is a default definition, change it into a non-default
24307 definition assigned at the beginning of function from new_decl.
24308 (ipa_simd_modify_stmt_ops): Rewritten.
24309 * tree-dfa.c (set_ssa_default_def): When removing default def,
24310 check for NULL loc instead of NULL *loc.
24311
24312 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24313
24314 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
24315 restrictions on core registers for DImode values in Thumb2.
24316
24317 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24318
24319 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
24320 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
24321
24322 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24323
24324 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
24325 (*iordi_notzesidi_di): Likewise.
24326 (*iordi_notsesidi_di): Likewise.
24327
24328 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24329
24330 * config/arm/arm-protos.h (tune_params): New struct members.
24331 * config/arm/arm.c: Initialise tune_params per processor.
24332 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24333 for speed, based on new tune_params.
24334
24335 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24336
24337 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24338 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24339 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24340 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24341 * config/aarch64/arm_neon.h (vrnd_f64): Added.
24342 (vrnda_f64): Likewise.
24343 (vrndi_f64): Likewise.
24344 (vrndm_f64): Likewise.
24345 (vrndn_f64): Likewise.
24346 (vrndp_f64): Likewise.
24347 (vrndx_f64): Likewise.
24348
24349 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24350
24351 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24352 GET_MODE_SIZE argument is enum machine_mode.
24353
24354 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24355
24356 PR target/60910
24357 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24358 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24359
24360 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
24361
24362 PR middle-end/60281
24363 * asan.c (asan_emit_stack_protection): Force the base to align to
24364 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
24365 appropriate bits if STRICT_ALIGNMENT.
24366 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24367 when asan is on.
24368 (expand_used_vars): Leave a space in the stack frame for alignment
24369 if STRICT_ALIGNMENT.
24370
24371 2014-04-21 David Malcolm <dmalcolm@redhat.com>
24372
24373 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24374 than a gimple.
24375 (gimple_store_p): Likewise.
24376 (gimple_assign_load_p): Likewise.
24377 (gimple_assign_cast_p): Likewise.
24378 (gimple_clobber_p): Likewise.
24379
24380 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24381 rather than a gimple.
24382 (gimple_assign_cast_p): Likewise.
24383
24384 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24385
24386 PR target/60735
24387 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24388 If mode is DDmode and TARGET_E500_DOUBLE allow move.
24389
24390 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24391 more debug information for E500 if -mdebug=reg.
24392
24393 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
24394
24395 PR target/60909
24396 * config/i386/i386.c (ix86_expand_builtin)
24397 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24398 register for target RTX.
24399 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24400
24401 2014-04-18 Cong Hou <congh@google.com>
24402
24403 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24404 the widen-mult pattern by handling two operands with different sizes,
24405 and operands whose size is smaller than half of the result type.
24406
24407 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24408
24409 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24410 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24411 (do_estimate_edge_time): Compute it.
24412 * ipa-inline.c (want_inline_small_function_p): Bypass
24413 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24414
24415 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24416
24417 * ipa-inline.c (spec_rem): New static variable.
24418 (dump_overall_stats): New function.
24419 (dump_inline_stats): New function.
24420
24421 2014-04-18 Richard Henderson <rth@redhat.com>
24422
24423 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24424 to GET_MODE_SIZE, not a reg_class_t.
24425
24426 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24427
24428 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24429 (vsx_xxmrglw_<mode>): Likewise.
24430
24431 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
24432
24433 PR target/60876
24434 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24435 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24436 (rs6000_init_hard_regno_mode_ok): Likewise.
24437
24438 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
24439
24440 * ipa-inline.c (inline_small_functions): Account only non-cold
24441 functions.
24442 * doc/invoke.texi (inline-unit-growth): Update documentation.
24443
24444 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
24445
24446 * config/rs6000/rs6000.md (addti3, subti3): New.
24447
24448 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
24449
24450 PR target/60863
24451 * config/i386/i386.c (ix86_expand_clear): Remove outdated
24452 comment. Check optimize_insn_for_size_p instead of
24453 optimize_insn_for_speed_p.
24454
24455 2014-04-17 Martin Jambor <mjambor@suse.cz>
24456
24457 * gimple-iterator.c (gsi_start_edge): New function.
24458 * gimple-iterator.h (gsi_start_edge): Declare.
24459 * tree-sra.c (single_non_eh_succ): New function.
24460 (disqualify_ops_if_throwing_stmt): Renamed to
24461 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
24462 having one non-EH successor BB.
24463 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24464 generate loads into replacements.
24465 (sra_modify_assign): Likewise and and also use the simple path for
24466 such statements.
24467 (sra_modify_function_body): Commit statements on edges.
24468
24469 2014-04-17 Richard Biener <rguenther@suse.de>
24470
24471 PR middle-end/60849
24472 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24473 comparison results and add clarifying comment.
24474
24475 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24476
24477 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24478 (blank_mode): Initialize it.
24479 (emit_mode_size_inline, emit_mode_nunits_inline,
24480 emit_mode_inner_inline): New functions.
24481 (emit_insn_modes_h): Call them and surround their output with
24482 #if GCC_VERSION >= 4001 ... #endif.
24483 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24484 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24485 mode_* arrays if the argument is __builtin_constant_p.
24486 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24487 is enum machine_mode.
24488
24489 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24490
24491 * passes.c (opt_pass::execute): Adjust.
24492 (pass_manager::execute_pass_mode_switching): Likewise.
24493 (early_local_passes::execute): Likewise.
24494 (execute_one_pass): Pass cfun to the pass's execute method.
24495 * tree-pass.h (opt_pass::execute): Add function * argument.
24496 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24497 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24498 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24499 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24500 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24501 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24502 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24503 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24504 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24505 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24506 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24507 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24508 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24509 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24510 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24511 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24512 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24513 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24514 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24515 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24516 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24517 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24518 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24519 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24520 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24521 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24522 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24523 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24524 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24525 Adjust.
24526
24527 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24528
24529 * passes.c (opt_pass::gate): Take function * argument.
24530 (gate_all_early_local_passes): Merge into
24531 (early_local_passes::gate): this.
24532 (gate_all_early_optimizations): Merge into
24533 (all_early_optimizations::gate): this.
24534 (gate_all_optimizations): Mege into
24535 (all_optimizations::gate): this.
24536 (gate_all_optimizations_g): Merge into
24537 (all_optimizations_g::gate): this.
24538 (gate_rest_of_compilation): Mege into
24539 (rest_of_compilation::gate): this.
24540 (gate_postreload): Merge into
24541 (postreload::gate): this.
24542 (dump_one_pass): Pass cfun to the pass's gate method.
24543 (execute_ipa_summary_passes): Likewise.
24544 (execute_one_pass): Likewise.
24545 (ipa_write_summaries_2): Likewise.
24546 (ipa_write_optimization_summaries_1): Likewise.
24547 (ipa_read_summaries_1): Likewise.
24548 (ipa_read_optimization_summaries_1): Likewise.
24549 (execute_ipa_stmt_fixups): Likewise.
24550 * tree-pass.h (opt_pass::gate): Add function * argument.
24551 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24552 combine-stack-adj.c, combine.c, compare-elim.c,
24553 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24554 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24555 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24556 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24557 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24558 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24559 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24560 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24561 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24562 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24563 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24564 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24565 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24566 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24567 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24568 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24569 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24570 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24571 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24572 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24573 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24574 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24575 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24576 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24577 var-tracking.c, vtable-verify.c, web.c: Adjust.
24578
24579 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24580
24581 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24582 * configure: Regenerate.
24583
24584 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24585
24586 * passes.c (dump_one_pass): don't check pass->has_gate.
24587 (execute_ipa_summary_passes): Likewise.
24588 (execute_one_pass): Likewise.
24589 (ipa_write_summaries_2): Likewise.
24590 (ipa_write_optimization_summaries_1): Likewise.
24591 (ipa_read_optimization_summaries_1): Likewise.
24592 (execute_ipa_stmt_fixups): Likewise.
24593 * tree-pass.h (pass_data::has_gate): Remove.
24594 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24595 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24596 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24597 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24598 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24599 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24600 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24601 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24602 gimple-low.c, gimple-ssa-isolate-paths.c,
24603 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24604 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24605 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24606 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24607 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24608 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24609 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24610 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24611 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24612 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24613 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24614 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24615 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24616 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24617 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24618 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24619 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24620 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24621 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24622 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24623 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24624 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24625 Adjust.
24626
24627 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24628
24629 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24630 declaration.
24631 * passes.c (pass_manager::register_dump_files_1): Merge into
24632 (pass_manager::register_dump_files): this, and remove its handling of
24633 properties since the pass always has the properties anyway.
24634 (pass_manager::pass_manager): Adjust.
24635
24636 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24637
24638 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24639 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24640 dealing with properties.
24641 (pass_manager::register_dump_files): Adjust.
24642
24643 2014-03-20 Mark Wielaard <mjw@redhat.com>
24644
24645 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24646 then represent the bound as normal constant value.
24647
24648 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24649
24650 PR target/60847
24651 Forward port from 4.8 branch
24652 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24653
24654 * config/i386/bmiintrin.h (_blsi_u32): New.
24655 (_blsi_u64): Ditto.
24656 (_blsr_u32): Ditto.
24657 (_blsr_u64): Ditto.
24658 (_blsmsk_u32): Ditto.
24659 (_blsmsk_u64): Ditto.
24660 (_tzcnt_u32): Ditto.
24661 (_tzcnt_u64): Ditto.
24662
24663 2014-04-17 Kito Cheng <kito@0xlab.org>
24664
24665 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24666
24667 2014-04-17 Richard Biener <rguenther@suse.de>
24668
24669 PR middle-end/60849
24670 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24671 boolean results for comparisons.
24672
24673 2014-04-17 Richard Biener <rguenther@suse.de>
24674
24675 PR tree-optimization/60836
24676 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24677 initial PHI args to be gimple values.
24678
24679 2014-04-17 Richard Biener <rguenther@suse.de>
24680
24681 PR tree-optimization/60841
24682 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24683 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24684 of stmts to SLP build.
24685 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24686 (vect_analyze_slp): Likewise.
24687 (vect_analyze_slp_instance): Likewise.
24688 (vect_build_slp_tree): Limit overall SLP tree growth.
24689 * tree-vectorizer.h (vect_analyze_data_refs,
24690 vect_analyze_slp): Adjust prototypes.
24691
24692 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24693
24694 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24695 Silvermont.
24696
24697 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24698
24699 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24700 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24701 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24702 for TARGET_SLOW_PSHUFB
24703
24704 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24705
24706 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24707 * config/i386/i386.c (intel_cost): Ditto.
24708
24709 2014-04-17 Joey Ye <joey.ye@arm.com>
24710
24711 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24712
24713 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24714
24715 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24716 with -fuse-profile.
24717
24718 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24719
24720 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24721 (type_all_derivations_known_p): New predicate.
24722 (type_all_ctors_visible_p): New predicate.
24723 (type_possibly_instantiated_p): New predicate.
24724 (get_odr_type): Compute all_derivations_known.
24725 (dump_odr_type): Dump the flag.
24726 (maybe_record_type): Cleanup.
24727 (record_target_from_binfo): Add bases_to_consider array;
24728 record bases for types w/o instances and skip CXX destructor.
24729 (possible_polymorphic_call_targets_1): Add bases_to_consider
24730 and consider_construction parameters; check if type may have instance.
24731 (get_polymorphic_call_info): Set maybe_in_construction to true
24732 when we know nothing.
24733 (record_targets_from_bases): Skip CXX destructors; they are
24734 never called for types in construction.
24735 (possible_polymorphic_call_targets): Do not record target when
24736 type may not have instance.
24737
24738 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24739
24740 PR ipa/60854
24741 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24742 external aliases alive, too.
24743
24744 2014-04-16 Andrew Pinski <apinski@cavium.com>
24745
24746 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24747 definition.
24748
24749 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24750
24751 * final.c (compute_alignments): Do not apply loop alignment to a block
24752 falling through to the exit.
24753
24754 2014-04-16 Catherine Moore <clm@codesourcery.com>
24755
24756 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24757 Adjust constraints for microMIPS store patterns.
24758
24759 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24760
24761 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24762
24763 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24764
24765 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24766 (append_use): Run at -O0.
24767 (append_vdef): Likewise.
24768 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24769 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24770
24771 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24772
24773 PR tree-optimization/60844
24774 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24775 (propagate_op_to_single_use, remove_visited_stmt_chain,
24776 linearize_expr, repropagate_negates, reassociate_bb): Use it
24777 instead of gsi_remove.
24778
24779 2014-04-16 Martin Jambor <mjambor@suse.cz>
24780
24781 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24782 ipa_transforms_to_apply.
24783 (cgraph_function_versioning): Assert that old_node has empty
24784 ipa_transforms_to_apply.
24785 * trans-mem.c (ipa_tm_create_version): Likewise.
24786 * tree-inline.c (tree_function_versioning): Do not duplicate
24787 ipa_transforms_to_apply.
24788
24789 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24790
24791 PR target/60817
24792 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24793 x86_64-*-* cases.
24794 Pass necessary as flags on 64-bit Solaris/x86.
24795 Use lowercase relocs for x86_64-*-*.
24796 * configure: Regenerate.
24797
24798 2014-04-15 Jan Hubicka <jh@suse.cz>
24799
24800 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24801 (maybe_record_node, likely_target_p): Use it.
24802
24803 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24804
24805 PR target/60839
24806 Revert following patch
24807
24808 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24809
24810 PR target/60735
24811 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24812 software floating point or no floating point registers, do not
24813 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24814 in GPRs that occurs after we tested for GPRs that would never be
24815 true.
24816
24817 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24818 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24819 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24820 specifically allow DDmode, since that does not use the SPE SIMD
24821 instructions.
24822
24823 2014-03-21 Mark Wielaard <mjw@redhat.com>
24824
24825 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24826 as unsigned or int depending on type and value used.
24827
24828 2014-04-15 Richard Biener <rguenther@suse.de>
24829
24830 PR rtl-optimization/56965
24831 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24832 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24833 ... here.
24834 * alias.c (true_dependence_1): Do not call
24835 nonoverlapping_component_refs_p.
24836 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24837 nonoverlapping_component_refs_p.
24838 (indirect_refs_may_alias_p): Likewise.
24839
24840 2014-04-15 Teresa Johnson <tejohnson@google.com>
24841
24842 * cfg.c (dump_bb_info): Fix flags check.
24843 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24844
24845 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24846
24847 PR rtl-optimization/60663
24848 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24849 avoid 0 cost.
24850
24851 2014-04-15 Richard Biener <rguenther@suse.de>
24852
24853 * lto-streamer.h (LTO_major_version): Bump to 4.
24854
24855 2014-04-15 Richard Biener <rguenther@suse.de>
24856
24857 * common.opt (lto_partition_model): New enum.
24858 (flto-partition=): Merge separate options with a single with argument,
24859 add -flto-partition=one support.
24860 * flag-types.h (enum lto_partition_model): Declare.
24861 * opts.c (finish_options): Remove duplicate -flto-partition=
24862 option check.
24863 * lto-wrapper.c (run_gcc): Adjust.
24864
24865 2014-04-15 Richard Biener <rguenther@suse.de>
24866
24867 * alias.c (ncr_compar): New function.
24868 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24869
24870 2014-04-15 Richard Biener <rguenther@suse.de>
24871
24872 * alias.c (record_component_aliases): Do not walk BINFOs.
24873
24874 2014-04-15 Richard Biener <rguenther@suse.de>
24875
24876 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24877 Add struct function argument and adjust.
24878 (find_func_aliases_for_call): Likewise.
24879 (find_func_aliases): Likewise.
24880 (find_func_clobbers): Likewise.
24881 (intra_create_variable_infos): Likewise.
24882 (compute_points_to_sets): Likewise.
24883 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24884
24885 2014-04-15 Richard Biener <rguenther@suse.de>
24886
24887 * tree.c (iterative_hash_expr): Use enum tree_code_class
24888 to store TREE_CODE_CLASS.
24889 (tree_block): Likewise.
24890 (tree_set_block): Likewise.
24891 * tree.h (fold_build_pointer_plus_loc): Use
24892 convert_to_ptrofftype_loc.
24893
24894 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24895
24896 PR plugins/59335
24897 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24898 added in 4.9.
24899
24900 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24901
24902 * cfgloop.h (struct loop): Move force_vectorize down.
24903 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24904 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24905 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24906 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24907 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24908 * tree-core.h (enum annot_expr_kind): Add new kind values.
24909 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24910 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24911 kinds.
24912 * tree.def (ANNOTATE_EXPR): Tweak comment.
24913
24914 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24915
24916 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24917 cxa_pure_virtual).
24918
24919 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24920
24921 * tree.h (TYPE_IDENTIFIER): Declare.
24922 * tree.c (subrange_type_for_debug_p): Use it.
24923 * godump.c (go_format_type): Likewise.
24924 * dwarf2out.c (is_cxx_auto, modified_type_die,
24925 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24926 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24927
24928 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24929
24930 PR lto/60820
24931 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24932
24933 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24934
24935 * config/i386/i386.c (examine_argument): Return bool. Return true if
24936 parameter should be passed in memory.
24937 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24938 (construct_container): Update calls to examine_argument.
24939 (function_arg_advance_64): Ditto.
24940 (return_in_memory_32): Merge with ix86_return_in_memory.
24941 (return_in_memory_64): Ditto.
24942 (return_in_memory_ms_64): Ditto.
24943
24944 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24945
24946 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24947 * coverage.c (coverage_compute_profile_id): Handle externally visible
24948 symbols.
24949
24950 2014-04-14 Martin Jambor <mjambor@suse.cz>
24951
24952 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24953 DECL_DISREGARD_INLINE_LIMITS functions.
24954
24955 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24956
24957 PR target/60827
24958 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24959
24960 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24961
24962 PR target/60827
24963 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24964 optimize_insn_for_speed_p instead of
24965 optimize_function_for_speed_p.
24966
24967 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24968
24969 * doc/invoke.texi (free): Document AArch64.
24970
24971 2014-04-14 Richard Biener <rguenther@suse.de>
24972
24973 PR tree-optimization/60042
24974 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24975 (insert_into_preds_of_block): Do not prevent PHI insertion
24976 for REFERENCE exprs here ...
24977 (eliminate_dom_walker::before_dom_children): ... but prevent
24978 their use here under similar conditions when applied to the
24979 IL after PRE optimizations.
24980
24981 2014-04-14 Richard Biener <rguenther@suse.de>
24982
24983 * passes.def: Move early points-to after early SRA.
24984
24985 2014-04-14 Richard Biener <rguenther@suse.de>
24986
24987 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24988 check for which sign-changes we allow when forwarding
24989 a converted value into a switch.
24990
24991 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24992
24993 * stor-layout.c (place_field): Finalize non-constant offset for the
24994 field, if any.
24995
24996 2014-04-14 Richard Biener <rguenther@suse.de>
24997
24998 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24999 as argument.
25000 (expand_switch_using_bit_tests_p): Likewise.
25001 (process_switch): Compute and pass on speed_p based on the
25002 switch stmt.
25003 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
25004 optimize_bb_for_speed_p.
25005
25006 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
25007
25008 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
25009 * function.h (struct function): Rename has_force_vect_loops into
25010 has_force_vectorize_loops.
25011 * lto-streamer-in.c (input_cfg): Adjust for renaming.
25012 (input_struct_function_base): Likewise.
25013 * lto-streamer-out.c (output_cfg): Likewise.
25014 (output_struct_function_base): Likewise.
25015 * omp-low.c (expand_omp_simd): Likewise.
25016 * tree-cfg.c (move_sese_region_to_fn): Likewise.
25017 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
25018 (version_loop_for_if_conversion): Likewise.
25019 (tree_if_conversion): Likewise.
25020 (main_tree_if_conversion): Likewise.
25021 (gate_tree_if_conversion): Likewise.
25022 * tree-inline.c (copy_loops): Likewise.
25023 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
25024 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
25025 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25026 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
25027 * tree-vectorizer.c (vectorize_loops): Likewise.
25028 * tree-vectorizer.h (unlimited_cost_model): Likewise.
25029
25030 2014-04-14 Richard Biener <rguenther@suse.de>
25031
25032 PR lto/60720
25033 * lto-streamer-out.c (wrap_refs): New function.
25034 (lto_output): Wrap symbol references in global initializes in
25035 type-preserving MEM_REFs.
25036
25037 2014-04-14 Christian Bruel <christian.bruel@st.com>
25038
25039 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
25040
25041 2014-04-14 Christian Bruel <christian.bruel@st.com>
25042
25043 * config/sh/sh.md (setmemqi): New expand pattern.
25044 * config/sh/sh.h (CLEAR_RATIO): Define.
25045 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
25046 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
25047
25048 2014-04-14 Richard Biener <rguenther@suse.de>
25049
25050 PR middle-end/55022
25051 * fold-const.c (negate_expr_p): Don't negate directional rounding
25052 division.
25053 (fold_negate_expr): Likewise.
25054
25055 2014-04-14 Richard Biener <rguenther@suse.de>
25056
25057 PR tree-optimization/59817
25058 PR tree-optimization/60453
25059 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
25060 recursion to catch all CHRECs in the scalar evolution and restrict
25061 the predicate for the remains appropriately.
25062
25063 2014-04-12 Catherine Moore <clm@codesourcery.com>
25064
25065 * config/mips/constraints.md: Add new register constraint "kb".
25066 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
25067 (*movhi_internal): Likewise.
25068 (*movqi_internal): Likewise.
25069 * config/mips/mips.h (M16_STORE_REGS): New register class.
25070 (REG_CLASS_NAMES): Add M16_STORE_REGS.
25071 (REG_CLASS_CONTENTS): Likewise.
25072 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
25073
25074 2014-04-11 Tobias Burnus <burnus@net-b.de>
25075
25076 PR c/60194
25077 * doc/invoke.texi (-Wformat-signedness): Document it.
25078 (Wformat=2): Mention that this enables -Wformat-signedness.
25079
25080 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
25081
25082 * common/config/epiphany/epiphany-common.c
25083 (epiphany_option_optimization_table): Enable section anchors by
25084 default at -O1 or higher.
25085 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
25086 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
25087 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
25088 carries no extra cost.
25089 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
25090 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
25091 * config/epiphany/predicates.md (memclob_operand): New predicate.
25092 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
25093 Use memclob_operand predicate and X constraint for operand 3.
25094
25095 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
25096
25097 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
25098 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
25099 its operands.
25100
25101 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
25102
25103 PR rtl-optimization/60651
25104 * mode-switching.c (optimize_mode_switching): Make sure to emit
25105 sets of a lower numbered entity before sets of a higher numbered
25106 entity to a mode of the same or lower priority.
25107 When creating a seginfo for a basic block that starts with a code
25108 label, move the insertion point past the code label.
25109 (new_seginfo): Document and enforce requirement that
25110 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
25111 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
25112 * doc/tm.texi: Regenerate.
25113
25114 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
25115
25116 PR target/60811
25117 * config/arc/arc.c (arc_save_restore): Fix assert typo.
25118
25119 2013-04-11 Jakub Jelinek <jakub@redhat.com>
25120
25121 * BASE-VER: Set to 4.10.0.
25122
25123 2014-04-11 Tobias Burnus <burnus@net-b.de>
25124
25125 PR other/59055
25126 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
25127 * doc/gcc.texi (Service): Update description in the @menu
25128 * doc/invoke.texi (Option Summary): Remove misplaced and
25129 duplicated @menu.
25130
25131 2014-04-11 Steve Ellcey <sellcey@mips.com>
25132 Jakub Jelinek <jakub@redhat.com>
25133
25134 PR middle-end/60556
25135 * expr.c (convert_move): Use emit_store_flag_force instead of
25136 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
25137 argument to it.
25138
25139 2014-04-11 Richard Biener <rguenther@suse.de>
25140
25141 PR middle-end/60797
25142 * varasm.c (assemble_alias): Avoid endless error reporting
25143 recursion by setting TREE_ASM_WRITTEN.
25144
25145 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25146
25147 * config/s390/s390.md: Add a splitter for NOT rtx.
25148
25149 2014-04-11 Jakub Jelinek <jakub@redhat.com>
25150
25151 PR rtl-optimization/60663
25152 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
25153
25154 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
25155 Jakub Jelinek <jakub@redhat.com>
25156
25157 PR lto/60567
25158 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
25159 flag from decl_node to node.
25160
25161 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25162
25163 PR debug/60655
25164 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
25165 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
25166 ameliorating the cases where it can be.
25167
25168 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
25169
25170 Revert
25171 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
25172
25173 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25174 (loadsync_<mode>): Change mode.
25175 (load_quadpti, store_quadpti): New.
25176 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25177 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25178 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
25179
25180 2014-04-09 Cong Hou <congh@google.com>
25181
25182 PR testsuite/60773
25183 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
25184 documentation.
25185
25186 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25187
25188 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
25189 instead of vnor to exploit possible fusion opportunity in the
25190 future.
25191 (altivec_expand_vec_perm_const_le): Likewise.
25192
25193 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
25194
25195 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25196 (loadsync_<mode>): Change mode.
25197 (load_quadpti, store_quadpti): New.
25198 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25199 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25200
25201 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
25202
25203 PR target/60763
25204 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
25205 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
25206 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
25207
25208 2014-04-08 Richard Biener <rguenther@suse.de>
25209
25210 PR middle-end/60706
25211 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
25212 a 64bit widest int print double-int similar to on HWI64 hosts.
25213
25214 2014-04-08 Richard Biener <rguenther@suse.de>
25215
25216 PR tree-optimization/60785
25217 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
25218 default defs properly.
25219
25220 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
25221
25222 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
25223 (Weffc++): Likewise.
25224
25225 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
25226
25227 * ipa-devirt.c (maybe_record_node): When node is not recorded,
25228 set completep to false rather than true.
25229
25230 2014-04-07 Douglas B Rupp <rupp@adacore.com>
25231
25232 PR target/60504
25233 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
25234 ARM_TARGET2_DWARF_FORMAT.
25235
25236 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
25237
25238 PR target/60609
25239 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
25240 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
25241 ADDR_DIFF_VEC.
25242
25243 2014-04-07 Richard Biener <rguenther@suse.de>
25244
25245 PR tree-optimization/60766
25246 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
25247 (may_eliminate_iv): Convert cand_value_at result to desired type.
25248
25249 2014-04-07 Jason Merrill <jason@redhat.com>
25250
25251 PR c++/60731
25252 * common.opt (-fno-gnu-unique): Add.
25253 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
25254
25255 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25256
25257 * haifa-sched.c: Fix outdated function reference and minor
25258 grammar errors in introductory comment.
25259
25260 2014-04-07 Richard Biener <rguenther@suse.de>
25261
25262 PR middle-end/60750
25263 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
25264 for noreturn calls.
25265 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
25266
25267 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
25268
25269 PR debug/55794
25270 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
25271 size accounting for thunks.
25272 (pa_asm_output_mi_thunk): Use final_start_function() and
25273 final_end_function() to output function start and end directives.
25274
25275 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
25276
25277 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
25278 device specific ISA/ feature information. Remove short_sp and
25279 errata_skip ds. Add avr_device_specific_features enum to have device
25280 specific info.
25281 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
25282 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
25283 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
25284 updated device specific info.
25285 * config/avr/avr-mcus.def: Merge device specific details to
25286 dev_attribute field.
25287 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
25288 errata_skip.
25289 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
25290 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
25291 assembler if RMW isa supported by current device.
25292 * config/avr/genmultilib.awk: Update as device info structure changed.
25293 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
25294
25295 2014-04-04 Cong Hou <congh@google.com>
25296
25297 PR tree-optimization/60656
25298 * tree-vect-stmts.c (supportable_widening_operation):
25299 Fix a bug that elements in a vector with vect_used_by_reduction
25300 property are incorrectly reordered when the operation on it is not
25301 consistant with the one in reduction operation.
25302
25303 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
25304
25305 PR rtl-optimization/60155
25306 * gcse.c (record_set_data): New function.
25307 (single_set_gcse): New function.
25308 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
25309 (hoist_code): Likewise.
25310 (get_pressure_class_and_nregs): Likewise.
25311
25312 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
25313
25314 * explow.c (probe_stack_range): Emit a final optimization blockage.
25315
25316 2014-04-04 Anthony Green <green@moxielogic.com>
25317
25318 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
25319 typos.
25320
25321 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
25322
25323 PR ipa/59626
25324 * lto-cgraph.c (input_overwrite_node): Check that partitioning
25325 flags are set only during streaming.
25326 * ipa.c (process_references, walk_polymorphic_call_targets,
25327 symtab_remove_unreachable_nodes): Drop bodies of always inline
25328 after early inlining.
25329 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25330
25331 2014-04-04 Jakub Jelinek <jakub@redhat.com>
25332 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25333
25334 PR debug/60655
25335 * dwarf2out.c (const_ok_for_output_1): Reject expressions
25336 containing a NOT.
25337
25338 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25339
25340 PR bootstrap/60743
25341 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25342 duration.
25343 (cortex_a53_fdivd): Likewise.
25344
25345 2014-04-04 Martin Jambor <mjambor@suse.cz>
25346
25347 PR ipa/60640
25348 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25349 Adjust all callers.
25350 * cgraph.c (clone_of_p): Also return true if thunks match.
25351 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25352 cgraph_function_or_thunk_node and an obsolete comment.
25353 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25354 file.
25355 (build_function_decl_skip_args): Likewise.
25356 (set_new_clone_decl_and_node_flags): New function.
25357 (duplicate_thunk_for_node): Likewise.
25358 (redirect_edge_duplicating_thunks): Likewise.
25359 (cgraph_clone_node): New parameter args_to_skip, pass it to
25360 redirect_edge_duplicating_thunks which is called instead of
25361 cgraph_redirect_edge_callee.
25362 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25363 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25364
25365 2014-04-04 Jeff Law <law@redhat.com>
25366
25367 PR target/60657
25368 * config/arm/predicates.md (const_int_I_operand): New predicate.
25369 (const_int_M_operand): Similarly.
25370 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25371 const_int_operand.
25372 (insv_t2, extv_reg, extzv_t2): Likewise.
25373 (load_multiple_with_writeback): Similarly for const_int_I_operand.
25374 (pop_multiple_with_writeback_and_return): Likewise.
25375 (vfp_pop_multiple_with_writeback): Likewise
25376
25377 2014-04-04 Richard Biener <rguenther@suse.de>
25378
25379 PR ipa/60746
25380 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25381 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25382 non-GIMPLE_LABELs.
25383 * gimplify.h (gimple_add_tmp_var_fn): Declare.
25384 * gimplify.c (gimple_add_tmp_var_fn): New function.
25385 * gimple-expr.h (create_tmp_reg_fn): Declare.
25386 * gimple-expr.c (create_tmp_reg_fn): New function.
25387 * gimple-low.c (record_vars_into): Don't change cfun.
25388 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25389 code generation without cfun.
25390
25391 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
25392
25393 PR bootstrap/60719
25394 * Makefile.in (install-driver): Fix shell scripting.
25395
25396 2014-04-03 Cong Hou <congh@google.com>
25397
25398 PR tree-optimization/60505
25399 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25400 threshold of number of iterations below which no vectorization
25401 will be done.
25402 * tree-vect-loop.c (new_loop_vec_info):
25403 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25404 * tree-vect-loop.c (vect_analyze_loop_operations):
25405 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25406 * tree-vect-loop.c (vect_transform_loop):
25407 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25408 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25409 of iterations of the loop and see if we should build the epilogue.
25410
25411 2014-04-03 Richard Biener <rguenther@suse.de>
25412
25413 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25414 (streamer_tree_cache_create): Adjust.
25415 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25416 to allow optional nodes array.
25417 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25418 (streamer_tree_cache_append): Likewise.
25419 (streamer_tree_cache_create): Create nodes array optionally
25420 as specified by parameter.
25421 * lto-streamer-out.c (create_output_block): Avoid maintaining
25422 the node array in the writer cache.
25423 (DFS_write_tree): Remove assertion.
25424 (produce_asm_for_decls): Free the out decl state hash table early.
25425 * lto-streamer-in.c (lto_data_in_create): Adjust for
25426 streamer_tree_cache_create prototype change.
25427
25428 2014-04-03 Richard Biener <rguenther@suse.de>
25429
25430 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25431 set TREE_CHAIN to NULL_TREE.
25432
25433 2014-04-03 Richard Biener <rguenther@suse.de>
25434
25435 PR tree-optimization/60740
25436 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25437 over all GIMPLE_COND operands.
25438
25439 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
25440
25441 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25442 (Weffc++): Remove Scott's numbering, merge lists and reference
25443 Wnon-virtual-dtor.
25444
25445 2014-04-03 Nick Clifton <nickc@redhat.com>
25446
25447 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25448 properly.
25449
25450 2014-04-03 Martin Jambor <mjambor@suse.cz>
25451
25452 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25453 mention gcc_unreachable before failing.
25454 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25455 removed symbols.
25456
25457 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
25458
25459 PR ipa/60659
25460 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25461 inconsistent code and instead mark the context inconsistent.
25462 (possible_polymorphic_call_targets): For inconsistent contexts
25463 return empty complete list.
25464
25465 2014-04-02 Anthony Green <green@moxielogic.com>
25466
25467 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25468 (extendqisi2, extendhisi2): Define.
25469 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25470 (WCHAR_TYPE): Change to unsigned int.
25471
25472 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25473
25474 PR tree-optimization/60733
25475 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25476 insertion point for PHI candidates to be the end of the feeding
25477 block for the PHI argument.
25478
25479 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
25480
25481 PR rtl-optimization/60650
25482 * lra-constraints.c (process_alt_operands): Decrease reject for
25483 earlyclobber matching.
25484
25485 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25486
25487 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25488
25489 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25490
25491 * config/spu/spu.c (pad_bb): Do not crash when the last
25492 insn is CODE_FOR_blockage.
25493
25494 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25495
25496 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25497 lies outside the target mode.
25498
25499 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25500
25501 PR target/60735
25502 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25503 software floating point or no floating point registers, do not
25504 allow any type in the FPRs. Eliminate a test for SPE SIMD types
25505 in GPRs that occurs after we tested for GPRs that would never be
25506 true.
25507
25508 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25509 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25510 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
25511 specifically allow DDmode, since that does not use the SPE SIMD
25512 instructions.
25513
25514 2014-04-02 Richard Biener <rguenther@suse.de>
25515
25516 PR middle-end/60729
25517 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25518 MODE_INTs. Properly use negv_optab.
25519 (expand_abs): Likewise.
25520
25521 2014-04-02 Richard Biener <rguenther@suse.de>
25522
25523 PR bootstrap/60719
25524 * Makefile.in (install-driver): Guard extra installs with special
25525 names properly.
25526
25527 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25528
25529 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25530 Document vec_vgbbd.
25531
25532 2014-04-01 Richard Henderson <rth@redhat.com>
25533
25534 PR target/60704
25535 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25536 alternative enabled before register allocation.
25537
25538 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25539
25540 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25541 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25542 typo.
25543 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25544 (nios2_got_address): Update nios2_large_got_address call site.
25545 (nios2_delegitimize_address): New function.
25546 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25547 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25548 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25549
25550 2014-04-01 Martin Husemann <martin@duskware.de>
25551
25552 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25553 for -mabi=32.
25554
25555 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25556
25557 PR rtl-optimization/60604
25558 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25559 check from register_operand.
25560 (register_operand): Redefine in terms of general_operand.
25561 (nonmemory_operand): Use register_operand for the non-constant cases.
25562
25563 2014-04-01 Richard Biener <rguenther@suse.de>
25564
25565 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25566
25567 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25568
25569 * doc/invoke.texi (mapp-regs): Clarify.
25570
25571 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25572
25573 * config/i386/avx512fintrin.h (__v32hi): Define type.
25574 (__v64qi): Likewise.
25575 (_mm512_set1_epi8): Define.
25576 (_mm512_set1_epi16): Define.
25577 (_mm512_set4_epi32): Define.
25578 (_mm512_set4_epi64): Define.
25579 (_mm512_set4_pd): Define.
25580 (_mm512_set4_ps): Define.
25581 (_mm512_setr4_epi64): Define.
25582 (_mm512_setr4_epi32): Define.
25583 (_mm512_setr4_pd): Define.
25584 (_mm512_setr4_ps): Define.
25585 (_mm512_setzero_epi32): Define.
25586
25587 2014-03-31 Martin Jambor <mjambor@suse.cz>
25588
25589 PR middle-end/60647
25590 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25591 callsite_arguments_match_p. Updated all callers. Also check types of
25592 corresponding formal parameters and actual arguments.
25593 (not_all_callers_have_enough_arguments_p) Renamed to
25594 some_callers_have_mismatched_arguments_p.
25595
25596 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25597
25598 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25599
25600 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25601
25602 PR target/60034
25603 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25604 section anchor.
25605
25606 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25607
25608 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25609 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25610 Split out
25611 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25612 Use FMAMODE_NOVF512 mode iterator.
25613 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25614 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25615 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25616 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25617 Split out
25618 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25619 Use VF_128_256 mode iterator.
25620 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25621 Ditto.
25622
25623 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25624
25625 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25626 static chain if needed.
25627
25628 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25629
25630 PR target/60697
25631 * lra-constraints.c (index_part_to_reg): New.
25632 (process_address): Use it.
25633
25634 2014-03-27 Jeff Law <law@redhat.com>
25635 Jakub Jelinek <jakub@redhat.com>
25636
25637 PR target/60648
25638 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25639 gen_rtx_{PLUS,MULT} to build up the address expression.
25640
25641 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25642 creating non-canonical RTL.
25643
25644 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25645
25646 PR ipa/60243
25647 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25648 functions; reorganize to make cheap checks first.
25649 (inline_small_functions): Do not estimate growth when dumping;
25650 it is expensive.
25651 * ipa-inline.h (inline_summary): Add min_size.
25652 (growth_likely_positive): New function.
25653 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25654 (set_cond_stmt_execution_predicate): Cleanup.
25655 (estimate_edge_size_and_time): Compute min_size.
25656 (estimate_calls_size_and_time): Likewise.
25657 (estimate_node_size_and_time): Likewise.
25658 (inline_update_overall_summary): Update min_size.
25659 (do_estimate_edge_time): Likewise.
25660 (do_estimate_edge_size): Update.
25661 (do_estimate_edge_hints): Update.
25662 (growth_likely_positive): New function.
25663
25664 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25665
25666 PR target/60693
25667 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25668 also if addr has VOIDmode.
25669
25670 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25671
25672 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25673 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25674 Declare extern.
25675 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25676 instructions as well as AdvancedSIMD loads.
25677
25678 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25679
25680 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25681 Use crypto_aese type.
25682 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25683 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25684 crypto_aese, crypto_aesmc. Move to types.md.
25685 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25686 crypto_aesmc.
25687 * config/arm/iterators.md (crypto_type): Likewise.
25688
25689 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25690
25691 * cgraph.c: Include expr.h and tree-dfa.h.
25692 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25693 remove LHS.
25694
25695 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25696
25697 PR target/60675
25698 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25699 regs from checking multi-reg pseudos.
25700
25701 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25702
25703 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25704
25705 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25706
25707 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25708 if it would clobber the stack pointer, even temporarily.
25709
25710 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25711
25712 * mode-switching.c: Make small adjustments to the top comment.
25713
25714 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25715
25716 * config/rs6000/constraints.md (wD constraint): New constraint to
25717 match the constant integer to get the top DImode/DFmode out of a
25718 vector in a VSX register.
25719
25720 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25721 match the constant integer to get the top DImode/DFmode out of a
25722 vector in a VSX register.
25723
25724 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25725 for ISA 2.07.
25726
25727 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25728 vbpermq builtins.
25729
25730 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25731 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25732
25733 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25734 Optimize vec_extract of 64-bit values, where the value being
25735 extracted is in the top word, where we can use scalar
25736 instructions. Add direct move and store support. Combine the big
25737 endian/little endian vector select load support into a single insn.
25738 (vsx_extract_<mode>_internal1): Likewise.
25739 (vsx_extract_<mode>_internal2): Likewise.
25740 (vsx_extract_<mode>_load): Likewise.
25741 (vsx_extract_<mode>_store): Likewise.
25742 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25743 combined into vsx_extract_<mode>_load.
25744 (vsx_extract_<mode>_one_le): Likewise.
25745
25746 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25747 define the top 64-bit vector element.
25748
25749 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25750 constraint.
25751
25752 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25753 Document vec_vbpermq builtin.
25754
25755 PR target/60672
25756 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25757 enable use of xxsldwi and xxpermdi builtin functions.
25758 (vec_xxpermdi): Likewise.
25759
25760 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25761 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25762
25763 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25764
25765 PR rtl-optimization/60650
25766 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25767 first_p. Use it.
25768 (find_spills_for): New.
25769 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25770 Spill all pseudos on the second iteration.
25771
25772 2014-03-27 Marek Polacek <polacek@redhat.com>
25773
25774 PR c/50347
25775 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25776 types.
25777
25778 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25779
25780 * config/s390/s390.c (s390_can_use_return_insn): Check for
25781 call-saved FPRs on 31 bit.
25782
25783 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25784
25785 PR middle-end/60682
25786 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25787 if they need regimplification, just drop them instead of
25788 calling gimple_regimplify_operands on them.
25789
25790 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25791
25792 PR target/60580
25793 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25794 (aarch64_frame_pointer_required): Adjust logic.
25795 (aarch64_can_eliminate): Adjust logic.
25796 (aarch64_override_options_after_change): Adjust logic.
25797
25798 2014-03-27 Dehao Chen <dehao@google.com>
25799
25800 * ipa-inline.c (early_inliner): Update node's inline info.
25801
25802 2014-03-26 Dehao Chen <dehao@google.com>
25803
25804 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25805 compiler inserted conditional jumps for NAN float check.
25806
25807 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25808
25809 * ubsan.h (ubsan_create_data): Change second argument's type
25810 to const location_t *.
25811 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25812 _("<unknown>").
25813 (ubsan_create_data): Change second argument to const location_t *PLOC.
25814 Create Loc field whenever PLOC is non-NULL.
25815 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25816 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25817 callers.
25818
25819 PR other/59545
25820 * real.c (real_to_integer2): Change type of low to UHWI.
25821
25822 2014-03-26 Tobias Burnus <burnus@net-b.de>
25823
25824 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25825 (CILK_SELF_SPECS): New define.
25826 (driver_self_specs): Use it.
25827
25828 2014-03-26 Richard Biener <rguenther@suse.de>
25829
25830 * tree-pretty-print.c (percent_K_format): Implement special
25831 case for LTO and its stripped down BLOCK tree.
25832
25833 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25834
25835 PR sanitizer/60636
25836 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25837
25838 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25839 one range is range_int_cst_p, but not both, at least optimize
25840 addition/subtraction of 0 and multiplication by 0 or 1.
25841 * gimple-fold.c (gimple_fold_call): Fold
25842 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25843 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25844 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25845
25846 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25847
25848 PR rtl-optimization/60452
25849 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25850 <case REG>: Return 1 for invalid offsets from the frame pointer.
25851
25852 2014-03-26 Marek Polacek <polacek@redhat.com>
25853
25854 PR c/37428
25855 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25856 a structure/union.
25857
25858 2014-03-26 Marek Polacek <polacek@redhat.com>
25859
25860 PR c/39525
25861 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25862 field members.
25863
25864 2014-03-26 Marek Polacek <polacek@redhat.com>
25865
25866 PR other/59545
25867 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25868 multiplication in unsigned type.
25869
25870 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25871
25872 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25873
25874 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25875
25876 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25877
25878 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25879
25880 PR ipa/60315
25881 * cif-code.def (UNREACHABLE) New code.
25882 * ipa-inline.c (inline_small_functions): Skip edges to
25883 __builtlin_unreachable.
25884 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25885 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25886 predicate to __bulitin_unreachable.
25887 (set_cond_stmt_execution_predicate): Fix issue when
25888 invert_tree_comparison returns ERROR_MARK.
25889 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25890 propagate to inline clones.
25891 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25892 to unreachable.
25893 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25894 * cgraphclones.c (cgraph_clone_node): If call destination is already
25895 ureachable, do not redirect it back.
25896 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25897 unreachable.
25898
25899 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25900
25901 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25902 Do not modify inline clones.
25903
25904 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25905
25906 * config/i386/i386.md (general_sext_operand): New mode attr.
25907 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25908 don't generate (sign_extend (const_int)).
25909 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25910 operands[2]. Use We constraint instead of <i> and
25911 <general_sext_operand> predicate instead of <general_operand>.
25912 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25913 * config/i386/constraints.md (We): New constraint.
25914 * config/i386/predicates.md (x86_64_sext_operand,
25915 sext_operand): New predicates.
25916
25917 2014-03-25 Martin Jambor <mjambor@suse.cz>
25918
25919 PR ipa/60600
25920 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25921 inconsistent devirtualizations to __builtin_unreachable.
25922
25923 2014-03-25 Marek Polacek <polacek@redhat.com>
25924
25925 PR c/35449
25926 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25927
25928 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25929
25930 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25931 order of elements for big-endian.
25932
25933 2014-03-25 Richard Biener <rguenther@suse.de>
25934
25935 PR middle-end/60635
25936 * gimplify-me.c (gimple_regimplify_operands): Update the
25937 re-gimplifed stmt.
25938
25939 2014-03-25 Martin Jambor <mjambor@suse.cz>
25940
25941 PR ipa/59176
25942 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25943 (lto_output_varpool_node): Likewise.
25944 (input_overwrite_node): Likewise.
25945 (input_varpool_node): Likewise.
25946
25947 2014-03-25 Richard Biener <rguenther@suse.de>
25948
25949 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25950 (run_gcc): Likewise.
25951
25952 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25953
25954 * combine.c (simplify_compare_const): Add MODE argument.
25955 Handle mode_width 0 as very large mode_width.
25956 (try_combine, simplify_comparison): Adjust callers.
25957
25958 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25959 type to avoid signed integer overflow.
25960 * explow.c (plus_constant): Likewise.
25961
25962 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25963
25964 * doc/generic.texi: Correct typos.
25965
25966 2014-03-24 Tobias Burnus <burnus@net-b.de>
25967
25968 * doc/invoke.texi (-flto): Expand section about
25969 using static libraries with LTO.
25970
25971 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25972
25973 PR rtl-optimization/60501
25974 * optabs.def (addptr3_optab): New optab.
25975 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25976 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25977 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25978
25979 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25980
25981 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25982
25983 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25984
25985 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25986 _mm512_set1_pd.
25987
25988 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25989 (_mm256_undefined_ps): Define.
25990 (_mm256_undefined_pd): Define.
25991 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25992 (_mm_undefined_pd): Define.
25993 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25994 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25995 (_mm512_undefined_ps): Define.
25996 (_mm512_undefined_pd): Define.
25997 Use _mm*_undefined_*.
25998 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25999
26000 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
26001
26002 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
26003 (lshr_simd): DI mode added.
26004 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
26005 (aarch64_ushr_simddi): Likewise.
26006 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
26007 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
26008 (vshrd_n_u64): Likewise.
26009
26010 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26011
26012 * Makefile.in (s-macro_list): Depend on cc1.
26013
26014 2014-03-23 Teresa Johnson <tejohnson@google.com>
26015
26016 * ipa-utils.c (ipa_print_order): Use specified dump file.
26017
26018 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
26019
26020 PR rtl-optimization/60601
26021 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
26022
26023 * gcc.c (eval_spec_function): Initialize save_growing_value.
26024
26025 2014-03-22 Jakub Jelinek <jakub@redhat.com>
26026
26027 PR sanitizer/60613
26028 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
26029 code == MINUS_EXPR, never swap op0 with op1.
26030
26031 * toplev.c (init_local_tick): Avoid signed integer multiplication
26032 overflow.
26033 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
26034 shift by first operand's bitsize.
26035
26036 2014-03-21 Jakub Jelinek <jakub@redhat.com>
26037
26038 PR target/60610
26039 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
26040 redefine to 1 or 0.
26041 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
26042 TARGET_ISA_64BIT_P(x).
26043
26044 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26045
26046 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
26047 pattern for vector nor instead of subtract from splat(-1).
26048 (altivec_expand_vec_perm_const_le): Likewise.
26049
26050 2014-03-21 Richard Henderson <rth@twiddle.net>
26051
26052 PR target/60598
26053 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
26054 related insns after epilogue_completed.
26055
26056 2014-03-21 Martin Jambor <mjambor@suse.cz>
26057
26058 PR ipa/59176
26059 * cgraph.h (symtab_node): New flag body_removed.
26060 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
26061 when removing bodies.
26062 * symtab.c (dump_symtab_base): Dump body_removed flag.
26063 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
26064 had their bodies removed.
26065
26066 2014-03-21 Martin Jambor <mjambor@suse.cz>
26067
26068 PR ipa/60419
26069 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
26070 in the border.
26071
26072 2014-03-21 Richard Biener <rguenther@suse.de>
26073
26074 PR tree-optimization/60577
26075 * tree-core.h (struct tree_base): Document nothrow_flag use
26076 in DECL_NONALIASED.
26077 * tree.h (DECL_NONALIASED): New.
26078 (may_be_aliased): Adjust.
26079 * coverage.c (build_var): Set DECL_NONALIASED.
26080
26081 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
26082
26083 * expr.c (expand_expr_real_1): Remove outdated comment.
26084
26085 2014-03-20 Jakub Jelinek <jakub@redhat.com>
26086
26087 PR middle-end/60597
26088 * ira.c (adjust_cleared_regs): Call copy_rtx on
26089 *reg_equiv[REGNO (loc)].src_p before passing it to
26090 simplify_replace_fn_rtx.
26091
26092 PR target/60568
26093 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
26094 into CONST, put pic register as first operand of PLUS. Use
26095 gen_const_mem for both 32-bit and 64-bit PIC got loads.
26096
26097 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26098
26099 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
26100
26101 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
26102
26103 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
26104 around for store forwarding issue in the FPU on the UT699.
26105 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
26106 loads and operations if -mfix-ut699 is specified.
26107 (divtf3_hq): Tweak attribute.
26108 (sqrttf2_hq): Likewise.
26109
26110 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
26111
26112 * calls.c (store_one_arg): Remove incorrect const qualification on the
26113 type of the temporary.
26114 * cfgexpand.c (expand_return): Likewise.
26115 * expr.c (expand_constructor): Likewise.
26116 (expand_expr_real_1): Likewise.
26117
26118 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26119
26120 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
26121 of parts.
26122
26123 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
26124
26125 PR target/60039
26126 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
26127
26128 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
26129
26130 * config/arm/aarch-common-protos.h
26131 (alu_cost_table): Fix spelling of "extend".
26132 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
26133
26134 2014-03-19 Richard Biener <rguenther@suse.de>
26135
26136 PR middle-end/60553
26137 * tree-core.h (tree_type_common): Re-order pointer members
26138 to reduce recursion depth during GC walks.
26139
26140 2014-03-19 Marek Polacek <polacek@redhat.com>
26141
26142 PR sanitizer/60569
26143 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
26144 before accessing it.
26145
26146 2014-03-19 Richard Biener <rguenther@suse.de>
26147
26148 PR lto/59543
26149 * lto-streamer-in.c (input_function): In WPA stage do not drop
26150 debug stmts.
26151
26152 2014-03-19 Jakub Jelinek <jakub@redhat.com>
26153
26154 PR tree-optimization/60559
26155 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
26156 with build_zero_cst assignment.
26157
26158 2014-03-18 Kai Tietz <ktietz@redhat.com>
26159
26160 PR rtl-optimization/56356
26161 * sdbout.c (sdbout_parms): Verify that parms'
26162 incoming argument is valid.
26163 (sdbout_reg_parms): Likewise.
26164
26165 2014-03-18 Richard Henderson <rth@redhat.com>
26166
26167 PR target/60562
26168 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
26169 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
26170 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
26171
26172 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
26173
26174 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
26175 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
26176 Italicize plugin event names in description. Explain that
26177 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
26178 Remind that no GCC functions should be called after PLUGIN_FINISH.
26179 Explain what pragmas with expansion are.
26180
26181 2014-03-18 Martin Liska <mliska@suse.cz>
26182
26183 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
26184 gimple call statement is update.
26185 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
26186 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
26187
26188 2014-03-18 Jakub Jelinek <jakub@redhat.com>
26189
26190 PR sanitizer/60557
26191 * ubsan.c (ubsan_instrument_unreachable): Call
26192 initialize_sanitizer_builtins.
26193 (ubsan_pass): Likewise.
26194
26195 PR sanitizer/60535
26196 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
26197 varpool_finalize_decl instead of rest_of_decl_compilation.
26198
26199 2014-03-18 Richard Biener <rguenther@suse.de>
26200
26201 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
26202 by using bitmap_and_compl instead of bitmap_and_compl_into.
26203 (df_rd_transfer_function): Likewise.
26204
26205 2014-03-18 Richard Biener <rguenther@suse.de>
26206
26207 * doc/lto.texi (fresolution): Fix typo.
26208
26209 2014-03-18 Richard Biener <rguenther@suse.de>
26210
26211 * doc/invoke.texi (flto): Update for changes in 4.9.
26212
26213 2014-03-18 Richard Biener <rguenther@suse.de>
26214
26215 * doc/loop.texi: Remove section on the removed lambda framework.
26216 Update loop docs with recent changes in preserving loop structure.
26217
26218 2014-03-18 Richard Biener <rguenther@suse.de>
26219
26220 * doc/lto.texi (-fresolution): Document.
26221
26222 2014-03-18 Richard Biener <rguenther@suse.de>
26223
26224 * doc/contrib.texi: Adjust my name.
26225
26226 2014-03-18 Jakub Jelinek <jakub@redhat.com>
26227
26228 PR ipa/58721
26229 * internal-fn.c: Include diagnostic-core.h.
26230 (expand_BUILTIN_EXPECT): New function.
26231 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
26232 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
26233 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
26234 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
26235 IFN_BUILTIN_EXPECT.
26236 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
26237 Revert 3 argument __builtin_expect code.
26238 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
26239 * gimple-fold.c (gimple_fold_call): Likewise.
26240 * tree.h (fold_builtin_expect): New prototype.
26241 * builtins.c (build_builtin_expect_predicate): Add predictor
26242 argument, if non-NULL, create 3 argument __builtin_expect.
26243 (fold_builtin_expect): No longer static. Add ARG2 argument,
26244 pass it through to build_builtin_expect_predicate.
26245 (fold_builtin_2): Adjust caller.
26246 (fold_builtin_3): Handle BUILT_IN_EXPECT.
26247 * internal-fn.def (BUILTIN_EXPECT): New.
26248
26249 2014-03-18 Tobias Burnus <burnus@net-b.de>
26250
26251 PR ipa/58721
26252 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
26253 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
26254 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
26255
26256 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
26257
26258 PR ipa/58721
26259 * predict.c (combine_predictions_for_bb): Fix up formatting.
26260 (expr_expected_value_1, expr_expected_value): Add predictor argument,
26261 fill what it points to if non-NULL.
26262 (tree_predict_by_opcode): Adjust caller, use the predictor.
26263 * predict.def (PRED_COMPARE_AND_SWAP): Add.
26264
26265 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
26266
26267 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
26268 proper constant for the store mode.
26269
26270 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
26271
26272 * symtab.c (change_decl_assembler_name): Fix transparent alias
26273 chain construction.
26274
26275 2014-03-16 Renlin Li <Renlin.Li@arm.com>
26276
26277 * config/aarch64/aarch64.c: Correct the comments about the
26278 aarch64 stack layout.
26279
26280 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
26281
26282 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
26283 check for GF_OMP_FOR_KIND_FOR.
26284
26285 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
26286
26287 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
26288 ymm and zmm register names.
26289
26290 2014-03-17 Jakub Jelinek <jakub@redhat.com>
26291
26292 PR target/60516
26293 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
26294 note creation for the 2010-08-31 changes.
26295
26296 2014-03-17 Marek Polacek <polacek@redhat.com>
26297
26298 PR middle-end/60534
26299 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
26300 as -fno-tree-loop-vectorize.
26301 (expand_omp_simd): Likewise.
26302
26303 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
26304
26305 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
26306 (eligible_for_call_delay): New prototype.
26307 * config/sparc/sparc.c (tls_call_delay): Rename into...
26308 (eligible_for_call_delay): ...this. Return false if the instruction
26309 cannot be put in the delay slot of a branch.
26310 (eligible_for_restore_insn): Simplify.
26311 (eligible_for_return_delay): Return false if the instruction cannot be
26312 put in the delay slot of a branch and simplify.
26313 (eligible_for_sibcall_delay): Return false if the instruction cannot be
26314 put in the delay slot of a branch.
26315 * config/sparc/sparc.md (fix_ut699): New attribute.
26316 (tls_call_delay): Delete.
26317 (in_call_delay): Reimplement.
26318 (eligible_for_sibcall_delay): Rename into...
26319 (in_sibcall_delay): ...this.
26320 (eligible_for_return_delay): Rename into...
26321 (in_return_delay): ...this.
26322 (in_branch_delay): Reimplement.
26323 (in_uncond_branch_delay): Delete.
26324 (in_annul_branch_delay): Delete.
26325
26326 2014-03-14 Richard Henderson <rth@redhat.com>
26327
26328 PR target/60525
26329 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26330 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26331 (*floathi<X87MODEF>2_i387_with_temp): Remove.
26332 (floathi splitters): Remove.
26333 (float<SWI48x>xf2): New pattern.
26334 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
26335 code that tried to handle DImode for 32-bit, but which was excluded
26336 by the pattern's condition. Drop allocation of stack temporary.
26337 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26338 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26339 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26340 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26341 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26342 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26343 (*float<SWI48><MODEF>2_sse_interunit): Remove.
26344 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26345 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26346 (*float<SWI48x><X87MODEF>2_i387): Remove.
26347 (all float _with_temp splitters): Remove.
26348 (*float<SWI48x><MODEF>2_i387): New pattern.
26349 (*float<SWI48><MODEF>2_sse): New pattern.
26350 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26351 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26352
26353 2014-03-14 Jakub Jelinek <jakub@redhat.com>
26354 Marek Polacek <polacek@redhat.com>
26355
26356 PR middle-end/60484
26357 * common.opt (dump_base_name_prefixed): New Variable.
26358 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26359 if x_dump_base_name_prefixed is already set, set it at the end.
26360
26361 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
26362
26363 PR rtl-optimization/60508
26364 * lra-constraints.c (get_reload_reg): Add new parameter
26365 in_subreg_p.
26366 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26367 Pass the new parameter values.
26368
26369 2014-03-14 Richard Biener <rguenther@suse.de>
26370
26371 * common.opt: Revert unintented changes from r205065.
26372 * opts.c: Likewise.
26373
26374 2014-03-14 Richard Biener <rguenther@suse.de>
26375
26376 PR middle-end/60518
26377 * cfghooks.c (split_block): Properly adjust all loops the
26378 block was a latch of.
26379
26380 2014-03-14 Martin Jambor <mjambor@suse.cz>
26381
26382 PR lto/60461
26383 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26384 and simplify it.
26385
26386 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
26387
26388 PR target/59396
26389 * config/avr/avr.c (avr_set_current_function): Pass function name
26390 through default_strip_name_encoding before sanity checking instead
26391 of skipping the first char of the assembler name.
26392
26393 2014-03-13 Richard Henderson <rth@redhat.com>
26394
26395 PR debug/60438
26396 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26397 (ix86_force_to_memory, ix86_free_from_memory): Remove.
26398 * config/i386/i386-protos.h: Likewise.
26399 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26400 in the expander instead of a splitter.
26401 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26402 any possibility of requiring a memory.
26403 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26404 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26405 (fp branch splitters): Update for ix86_split_fp_branch.
26406 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26407 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26408 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26409 (*fop_<MODEF>_2_i387): Remove f/r alternative.
26410 (*fop_<MODEF>_3_i387): Likewise.
26411 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26412 (splitters for the fop_* register patterns): Remove.
26413 (fscalexf4_i387): Rename from *fscalexf4_i387.
26414 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26415
26416 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26417
26418 PR tree-optimization/59779
26419 * tree-dfa.c (get_ref_base_and_extent): Use double_int
26420 type for bitsize and maxsize instead of HOST_WIDE_INT.
26421
26422 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
26423
26424 PR rtl-optimization/57320
26425 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26426 the CFG after thread_prologue_and_epilogue_insns.
26427
26428 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
26429
26430 PR rtl-optimization/57189
26431 * lra-constraints.c (process_alt_operands): Disfavor spilling
26432 vector pseudos.
26433
26434 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
26435
26436 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26437
26438 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26439
26440 PR tree-optimization/59025
26441 PR middle-end/60418
26442 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26443 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26444
26445 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
26446
26447 PR target/60486
26448 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26449 calls of avr_out_plus_1.
26450
26451 2014-03-13 Bin Cheng <bin.cheng@arm.com>
26452
26453 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26454 BB's single pred and update the father loop's latch info later.
26455
26456 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26457
26458 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26459 (VEC_M): Likewise.
26460 (VEC_N): Likewise.
26461 (VEC_R): Likewise.
26462 (VEC_base): Likewise.
26463 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26464 registers, we need to swap double words in little endian mode.
26465
26466 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26467 to be a container mode for 128-bit integer operations added in ISA
26468 2.07. Unlike TImode and PTImode, the preferred register set is
26469 the Altivec/VMX registers for the 128-bit operations.
26470
26471 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26472 declarations.
26473 (rs6000_split_128bit_ok_p): Likewise.
26474
26475 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26476 macros for creating ISA 2.07 normal and overloaded builtin
26477 functions with 3 arguments.
26478 (BU_P8V_OVERLOAD_3): Likewise.
26479 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26480 for use as overloaded functions.
26481 (VPERM_1TI_UNS): Likewise.
26482 (VSEL_1TI): Likewise.
26483 (VSEL_1TI_UNS): Likewise.
26484 (ST_INTERNAL_1ti): Likewise.
26485 (LD_INTERNAL_1ti): Likewise.
26486 (XXSEL_1TI): Likewise.
26487 (XXSEL_1TI_UNS): Likewise.
26488 (VPERM_1TI): Likewise.
26489 (VPERM_1TI_UNS): Likewise.
26490 (XXPERMDI_1TI): Likewise.
26491 (SET_1TI): Likewise.
26492 (LXVD2X_V1TI): Likewise.
26493 (STXVD2X_V1TI): Likewise.
26494 (VEC_INIT_V1TI): Likewise.
26495 (VEC_SET_V1TI): Likewise.
26496 (VEC_EXT_V1TI): Likewise.
26497 (EQV_V1TI): Likewise.
26498 (NAND_V1TI): Likewise.
26499 (ORC_V1TI): Likewise.
26500 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26501 added in ISA 2.07. Add both normal 'altivec' builtins, and the
26502 overloaded builtin.
26503 (VADDUQM): Likewise.
26504 (VSUBCUQ): Likewise.
26505 (VADDEUQM): Likewise.
26506 (VADDECUQ): Likewise.
26507 (VSUBEUQM): Likewise.
26508 (VSUBECUQ): Likewise.
26509
26510 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26511 __int128_t and __uint128_t types.
26512 (__uint128_type): Likewise.
26513 (altivec_categorize_keyword): Add support for vector __int128_t,
26514 vector __uint128_t, vector __int128, and vector unsigned __int128
26515 as a container type for TImode operations that need to be done in
26516 VSX/Altivec registers.
26517 (rs6000_macro_to_expand): Likewise.
26518 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26519 to support 128-bit integer instructions vaddcuq, vadduqm,
26520 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26521 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26522
26523 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26524 for V1TImode, and set up preferences to use VSX/Altivec registers.
26525 Setup VSX reload handlers.
26526 (rs6000_debug_reg_global): Likewise.
26527 (rs6000_init_hard_regno_mode_ok): Likewise.
26528 (rs6000_preferred_simd_mode): Likewise.
26529 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26530 (easy_altivec_constant): Likewise.
26531 (output_vec_const_move): Likewise.
26532 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26533 simple move.
26534 (rs6000_expand_vector_extract): Likewise.
26535 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26536 addressing.
26537 (rs6000_const_vec): Add support for V1TImode.
26538 (rs6000_emit_le_vsx_load): Swap double words when loading or
26539 storing TImode/V1TImode.
26540 (rs6000_emit_le_vsx_store): Likewise.
26541 (rs6000_emit_le_vsx_move): Likewise.
26542 (rs6000_emit_move): Add support for V1TImode.
26543 (altivec_expand_ld_builtin): Likewise.
26544 (altivec_expand_st_builtin): Likewise.
26545 (altivec_expand_vec_init_builtin): Likewise.
26546 (altivec_expand_builtin): Likewise.
26547 (rs6000_init_builtins): Add support for V1TImode type. Add
26548 support for ISA 2.07 128-bit integer builtins. Define type names
26549 for the VSX/Altivec vector types.
26550 (altivec_init_builtins): Add support for overloaded vector
26551 functions with V1TImode type.
26552 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26553 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26554 external function.
26555 (rs6000_split_128bit_ok_p): Likewise.
26556 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26557 __int128_t and vector __uint128_t.
26558
26559 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26560 and mode attributes.
26561 (VSX_M): Likewise.
26562 (VSX_M2): Likewise.
26563 (VSm): Likewise.
26564 (VSs): Likewise.
26565 (VSr): Likewise.
26566 (VSv): Likewise.
26567 (VS_scalar): Likewise.
26568 (VS_double): Likewise.
26569 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26570
26571 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26572 we support the ISA 2.07 128-bit integer arithmetic instructions.
26573 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26574 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26575 and TImode types for use with the builtin functions.
26576 (V1TI_type_node): Likewise.
26577 (unsigned_V1TI_type_node): Likewise.
26578 (intTI_type_internal_node): Likewise.
26579 (uintTI_type_internal_node): Likewise.
26580
26581 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26582 128-bit builtin functions.
26583 (UNSPEC_VADDEUQM): Likewise.
26584 (UNSPEC_VADDECUQ): Likewise.
26585 (UNSPEC_VSUBCUQ): Likewise.
26586 (UNSPEC_VSUBEUQM): Likewise.
26587 (UNSPEC_VSUBECUQ): Likewise.
26588 (VM): Add V1TImode to vector mode iterators.
26589 (VM2): Likewise.
26590 (VI_unit): Likewise.
26591 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26592 (altivec_vaddcuq): Likewise.
26593 (altivec_vsubuqm): Likewise.
26594 (altivec_vsubcuq): Likewise.
26595 (altivec_vaddeuqm): Likewise.
26596 (altivec_vaddecuq): Likewise.
26597 (altivec_vsubeuqm): Likewise.
26598 (altivec_vsubecuq): Likewise.
26599
26600 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26601 mode iterators.
26602 (BOOL_128): Likewise.
26603 (BOOL_REGS_OUTPUT): Likewise.
26604 (BOOL_REGS_OP1): Likewise.
26605 (BOOL_REGS_OP2): Likewise.
26606 (BOOL_REGS_UNARY): Likewise.
26607 (BOOL_REGS_AND_CR0): Likewise.
26608
26609 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26610 128-bit integer builtin support.
26611 (vec_vadduqm): Likewise.
26612 (vec_vaddecuq): Likewise.
26613 (vec_vaddeuqm): Likewise.
26614 (vec_vsubecuq): Likewise.
26615 (vec_vsubeuqm): Likewise.
26616 (vec_vsubcuq): Likewise.
26617 (vec_vsubuqm): Likewise.
26618
26619 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26620 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26621 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26622 128-bit integer add/subtract to ISA 2.07.
26623
26624 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26625
26626 * config/arc/arc.c (arc_predicate_delay_insns):
26627 Fix third argument passed to conditionalize_nonjump.
26628
26629 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26630
26631 * config/aarch64/aarch64-builtins.c
26632 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26633 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26634 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26635 instead of __builtin_lfloor.
26636 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26637
26638 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26639
26640 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26641 (tree_ssa_ifcombine_bb_1): New function.
26642 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26643 is an empty forwarder block to then_bb or vice versa and then_bb
26644 and else_bb are effectively swapped.
26645
26646 2014-03-12 Christian Bruel <christian.bruel@st.com>
26647
26648 PR target/60264
26649 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26650 REG_CFA_DEF_CFA note.
26651 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26652 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26653
26654 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26655
26656 PR tree-optimization/60454
26657 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26658
26659 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26660
26661 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26662 Do not define target_cpu_default2 to generic.
26663 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26664 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26665 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26666
26667 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26668 Marc Glisse <marc.glisse@inria.fr>
26669
26670 PR tree-optimization/60502
26671 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26672 instead of build_low_bits_mask.
26673
26674 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26675
26676 PR middle-end/60482
26677 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26678 if there are multiple uses, but op doesn't live on E edge.
26679 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26680 clobber stmts before __builtin_unreachable.
26681
26682 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26683
26684 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26685 hard_frame_pointer_rtx.
26686 * cse.c (cse_insn): Remove volatile check.
26687 * cselib.c (cselib_process_insn): Likewise.
26688 * dse.c (scan_insn): Likewise.
26689
26690 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26691
26692 * config/arc/arc.c (conditionalize_nonjump): New function,
26693 broken out of ...
26694 (arc_ifcvt): ... this.
26695 (arc_predicate_delay_insns): Use it.
26696
26697 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26698
26699 * config/arc/predicates.md (extend_operand): During/after reload,
26700 allow const_int_operand.
26701 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26702 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26703 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26704 to "i".
26705 (umulsi3_highpart_i): Likewise.
26706
26707 2014-03-11 Richard Biener <rguenther@suse.de>
26708
26709 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26710 Add asserts to guard possible wrong-code bugs.
26711
26712 2014-03-11 Richard Biener <rguenther@suse.de>
26713
26714 PR tree-optimization/60429
26715 PR tree-optimization/60485
26716 * tree-ssa-structalias.c (set_union_with_increment): Properly
26717 take into account all fields that overlap the shifted vars.
26718 (do_sd_constraint): Likewise.
26719 (do_ds_constraint): Likewise.
26720 (get_constraint_for_ptr_offset): Likewise.
26721
26722 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26723
26724 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26725 (nios2_compute_frame_layout):
26726 Add calculation of cfun->machine->fp_save_offset.
26727 (nios2_expand_prologue): Correct setting of frame pointer register
26728 in prologue.
26729 (nios2_expand_epilogue): Update recovery of stack pointer from
26730 frame pointer accordingly.
26731 (nios2_initial_elimination_offset): Update calculation of offset
26732 for eliminating to HARD_FRAME_POINTER_REGNUM.
26733
26734 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26735
26736 PR ipa/60457
26737 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26738 cgraph_get_create_node on VAR_DECLs.
26739
26740 2014-03-10 Richard Biener <rguenther@suse.de>
26741
26742 PR middle-end/60474
26743 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26744
26745 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26746
26747 * config/vms/vms.opt (vms_float_format): New variable.
26748
26749 2014-03-08 Tobias Burnus <burnus@net-b.de>
26750
26751 * doc/invoke.texi (-fcilkplus): Update implementation status.
26752
26753 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26754 Richard Biener <rguenther@suse.de>
26755
26756 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26757 consistently accross all TUs.
26758 (run_gcc): Enable -fshort-double automatically at link at link-time
26759 and disallow override.
26760
26761 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26762
26763 PR target/58271
26764 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26765 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26766 if they can't be used.
26767
26768 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26769
26770 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26771 for Solaris 11/x86 ld.
26772 * configure: Regenerate.
26773
26774 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26775
26776 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26777 (LIB_TLS_SPEC): Save as ld_tls_libs.
26778 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26779 (HAVE_AS_IX86_TLSLDM): New test.
26780 * configure, config.in: Regenerate.
26781 * config/i386/i386.c (legitimize_tls_address): Fall back to
26782 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26783 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26784 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26785 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26786
26787 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26788
26789 * common.opt (fira-loop-pressure): Mark as optimization.
26790
26791 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26792
26793 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26794 an OpenMP mappable type.
26795
26796 2014-03-06 Matthias Klose <doko@ubuntu.com>
26797
26798 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26799 MULTILIB_OSDIRNAMES is not defined.
26800
26801 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26802 Meador Inge <meadori@codesourcery.com>
26803
26804 PR target/58595
26805 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26806 (arm_legitimize_address): Call legitimize_tls_address for any
26807 arm_tls_referenced_p expression, handle constant addend. Call it
26808 before testing for !TARGET_ARM.
26809 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26810
26811 2014-03-06 Richard Biener <rguenther@suse.de>
26812
26813 PR middle-end/60445
26814 PR lto/60424
26815 PR lto/60427
26816 Revert
26817 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26818
26819 * tree-streamer.c (record_common_node): Assert we don't record
26820 nodes with type double.
26821 (preload_common_node): Skip type double, complex double and double
26822 pointer since it is now frontend dependent due to fshort-double option.
26823
26824 2014-03-06 Richard Biener <rguenther@suse.de>
26825
26826 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26827 or -fno-lto is specified and the linker has full plugin support.
26828 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26829 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26830 * lto-wrapper.c (merge_and_complain): Merge compile-time
26831 optimization levels.
26832 (run_gcc): And pass it through to the link options.
26833
26834 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26835
26836 PR debug/60381
26837 Revert:
26838 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26839 PR debug/59992
26840 * cselib.c (remove_useless_values): Skip to avoid quadratic
26841 behavior if the condition moved from...
26842 (cselib_process_insn): ... here holds.
26843
26844 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26845
26846 PR plugins/59335
26847 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26848 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26849
26850 PR plugins/59335
26851 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26852 (TM_H): Add x86-tune.def.
26853
26854 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26855
26856 * config/aarch64/aarch64.c (generic_tunings):
26857 Use cortexa57_extra_costs.
26858
26859 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26860
26861 PR lto/60404
26862 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26863 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26864 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26865 cost for in_lto_p.
26866
26867 2014-03-04 Heiher <r@hev.cc>
26868
26869 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26870 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26871
26872 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26873
26874 * config/i386/predicates.md (const2356_operand): Change to ...
26875 (const2367_operand): ... this.
26876 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26877 const2367_operand.
26878 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26879 (*avx512pf_scatterpf<mode>sf): Ditto.
26880 (avx512pf_scatterpf<mode>df): Ditto.
26881 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26882 (*avx512pf_scatterpf<mode>df): Ditto.
26883 * config/i386/i386.c (ix86_expand_builtin): Update
26884 incorrect hint operand error message.
26885
26886 2014-03-04 Richard Biener <rguenther@suse.de>
26887
26888 * lto-section-in.c (lto_get_section_data): Fix const cast.
26889
26890 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26891
26892 * tree-streamer.c (record_common_node): Assert we don't record
26893 nodes with type double.
26894 (preload_common_node): Skip type double, complex double and double
26895 pointer since it is now frontend dependent due to fshort-double option.
26896
26897 2014-03-04 Richard Biener <rguenther@suse.de>
26898
26899 PR lto/60405
26900 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26901 (lto_input_toplevel_asms): Likewise.
26902 * lto-section-in.c (lto_get_section_data): Instead do it here
26903 for every section.
26904
26905 2014-03-04 Richard Biener <rguenther@suse.de>
26906
26907 PR tree-optimization/60382
26908 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26909 dead PHIs a reduction.
26910
26911 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26912
26913 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26914 hint value.
26915 (_mm_prefetch): Move out of GCC target("sse") pragma.
26916 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26917 GCC target("prfchw") pragma.
26918 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26919 for locality <= 2.
26920 * config/i386/i386.c (ix86_option_override_internal): Enable
26921 -mprfchw with -mprefetchwt1.
26922
26923 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26924
26925 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26926 Mark as varying.
26927
26928 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26929
26930 * opts.h (CL_PCH_IGNORE): Define.
26931 * targhooks.c (option_affects_pch_p):
26932 Return false for options that have CL_PCH_IGNORE set.
26933 * opt-functions.awk: Process PchIgnore.
26934 * doc/options.texi: Document PchIgnore.
26935
26936 * config/arc/arc.opt (misize): Add PchIgnore property.
26937
26938 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26939
26940 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26941 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26942 constraint on constants to permit them being loaded into
26943 GENERAL_REGS or BASE_REGS.
26944
26945 2014-03-03 Nick Clifton <nickc@redhat.com>
26946
26947 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26948 anti-cacnonical alternatives.
26949 (negandhi3_real): New pattern.
26950 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26951
26952 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26953
26954 * config/avr/avr-mcus.def: Remove atxmega16x1.
26955 * config/avr/avr-tables.opt: Regenerate.
26956 * config/avr/t-multilib: Regenerate.
26957 * doc/avr-mmcu.texi: Regenerate.
26958
26959 2014-03-03 Tobias Grosser <tobias@grosser.es>
26960 Mircea Namolaru <mircea.namolaru@inria.fr>
26961
26962 PR tree-optimization/58028
26963 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26964 scalar dimensions.
26965
26966 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26967
26968 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26969 not handled by recognizers.
26970
26971 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26972
26973 PR middle-end/60175
26974 * function.c (expand_function_end): Don't emit
26975 clobber_return_register sequence if clobber_after is a BARRIER.
26976 * cfgexpand.c (construct_exit_block): Append instructions before
26977 return_label to prev_bb.
26978
26979 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26980
26981 * config/rs6000/constraints.md: Document reserved use of "wc".
26982
26983 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26984
26985 PR ipa/60150
26986 * ipa.c (function_and_variable_visibility): When dissolving comdat
26987 group, also set all symbols to local.
26988
26989 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26990
26991 PR ipa/60306
26992
26993 Revert:
26994 2013-12-14 Jan Hubicka <jh@suse.cz>
26995 PR middle-end/58477
26996 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26997
26998 2014-03-02 Jon Beniston <jon@beniston.com>
26999
27000 PR bootstrap/48230
27001 PR bootstrap/50927
27002 PR bootstrap/52466
27003 PR target/46898
27004 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
27005 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
27006 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
27007 (simple_return, *simple_return): New patterns
27008 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
27009 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
27010
27011 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
27012
27013 * dwarf2out.c (gen_subprogram_die): Tidy.
27014
27015 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
27016
27017 PR target/60071
27018 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
27019 (*mov_t_msb_neg_negc): ... this new insn.
27020
27021 2014-02-28 Jason Merrill <jason@redhat.com>
27022
27023 PR c++/58678
27024 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
27025 function.
27026
27027 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
27028
27029 PR c++/60314
27030 * dwarf2out.c (decltype_auto_die): New static.
27031 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
27032 (gen_type_die_with_usage): Handle 'decltype(auto)'.
27033 (is_cxx_auto): Likewise.
27034
27035 2014-02-28 Ian Bolton <ian.bolton@arm.com>
27036
27037 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
27038 we are not using general regs only.
27039
27040 2014-02-28 Richard Biener <rguenther@suse.de>
27041
27042 PR target/60280
27043 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
27044 previous fix and only allow to remove trivial pre-headers
27045 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
27046 (remove_forwarder_block): Properly update the latch of a loop.
27047
27048 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
27049
27050 PR debug/59992
27051 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
27052 (cselib_preserved_hash_table): New.
27053 (preserve_constants_and_equivs): Move preserved vals to it.
27054 (cselib_find_slot): Look it up first.
27055 (cselib_init): Initialize it.
27056 (cselib_finish): Release it.
27057 (dump_cselib_table): Dump it.
27058
27059 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
27060
27061 PR debug/59992
27062 * cselib.c (remove_useless_values): Skip to avoid quadratic
27063 behavior if the condition moved from...
27064 (cselib_process_insn): ... here holds.
27065
27066 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
27067
27068 PR debug/57232
27069 * var-tracking.c (vt_initialize): Apply the same condition to
27070 preserve the CFA base value.
27071
27072 2014-02-28 Joey Ye <joey.ye@arm.com>
27073
27074 PR target/PR60169
27075 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
27076 if reload in progress or completed.
27077
27078 2014-02-28 Tobias Burnus <burnus@net-b.de>
27079
27080 PR middle-end/60147
27081 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
27082 NAMELIST_DECL.
27083
27084 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
27085
27086 * doc/tm.texi.in (Condition Code Status): Update documention for
27087 relative locations of cc0-setter and cc0-user.
27088
27089 2014-02-27 Jeff Law <law@redhat.com>
27090
27091 PR rtl-optimization/52714
27092 * combine.c (try_combine): When splitting an unrecognized PARALLEL
27093 into two independent simple sets, if I3 is a jump, ensure the
27094 pattern we place into I3 is a (set (pc) ...).
27095
27096 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
27097 Jeff Law <law@redhat.com>
27098
27099 PR rtl-optimization/49847
27100 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
27101 are in different blocks.
27102 * doc/tm.texi (Condition Code Status): Update documention for
27103 relative locations of cc0-setter and cc0-user.
27104
27105 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
27106
27107 PR target/59222
27108 * lra.c (lra_emit_add): Check SUBREG too.
27109
27110 2014-02-27 Andreas Schwab <schwab@suse.de>
27111
27112 * config/m68k/m68k.c (m68k_option_override): Disable
27113 -flive-range-shrinkage for classic m68k.
27114 (m68k_override_options_after_change): Likewise.
27115
27116 2014-02-27 Marek Polacek <polacek@redhat.com>
27117
27118 PR middle-end/59223
27119 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
27120 -Wmaybe-uninitialized.
27121
27122 2014-02-27 Alan Modra <amodra@gmail.com>
27123
27124 PR target/57936
27125 * reload1.c (emit_input_reload_insns): When reload_override_in,
27126 set old to rl->in_reg when rl->in_reg is a subreg.
27127
27128 2014-02-26 Richard Biener <rguenther@suse.de>
27129
27130 PR bootstrap/60343
27131 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
27132
27133 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
27134
27135 * common/config/i386/predicates.md (const1256_operand): Remove.
27136 (const2356_operand): New.
27137 (const_1_to_2_operand): Remove.
27138 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27139 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27140 (*avx512pf_gatherpf<mode>sf): Ditto.
27141 (avx512pf_gatherpf<mode>df): Ditto.
27142 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27143 (*avx512pf_gatherpf<mode>df): Ditto.
27144 (avx512pf_scatterpf<mode>sf): Ditto.
27145 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27146 (*avx512pf_scatterpf<mode>sf): Ditto.
27147 (avx512pf_scatterpf<mode>df): Ditto.
27148 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27149 (*avx512pf_scatterpf<mode>df): Ditto.
27150 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
27151
27152 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
27153
27154 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
27155 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
27156 (_mm512_mask_testn_epi64_mask): Move to ...
27157 * config/i386/avx512cdintrin.h: Here.
27158 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
27159 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
27160 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
27161 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
27162 TARGET_AVX512F from TARGET_AVX512CD.
27163
27164 2014-02-26 Richard Biener <rguenther@suse.de>
27165
27166 PR ipa/60327
27167 * ipa.c (walk_polymorphic_call_targets): Properly guard
27168 call to inline_update_overall_summary.
27169
27170 2014-02-26 Bin Cheng <bin.cheng@arm.com>
27171
27172 PR target/60280
27173 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
27174 and latches only if requested. Fix latch if it is removed.
27175 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
27176 LOOPS_HAVE_PREHEADERS.
27177
27178 2014-02-25 Andrew Pinski <apinski@cavium.com>
27179
27180 * builtins.c (expand_builtin_thread_pointer): Create a new target
27181 when the target is NULL.
27182
27183 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
27184
27185 PR rtl-optimization/60317
27186 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27187 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27188 * lra-assigns.c: Include params.h.
27189 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
27190 other reload pseudos considerations.
27191
27192 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27193
27194 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
27195 to use canonical form for nor<mode>3.
27196
27197 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27198
27199 PR target/55426
27200 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
27201 conversions.
27202
27203 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
27204
27205 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
27206 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
27207 (ix86_handle_option): Handle OPT_mprefetchwt1.
27208 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
27209 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27210 PREFETCHWT1 CPUID.
27211 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27212 OPTION_MASK_ISA_PREFETCHWT1.
27213 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
27214 (PTA_PREFETCHWT1): New.
27215 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
27216 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
27217 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
27218 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
27219 (*prefetch_avx512pf_<mode>_: Change into ...
27220 (*prefetch_prefetchwt1_<mode>: This.
27221 * config/i386/i386.opt (mprefetchwt1): New.
27222 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
27223 (_mm_prefetch): Handle intent to write.
27224 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
27225
27226 2014-02-25 Richard Biener <rguenther@suse.de>
27227
27228 PR middle-end/60291
27229 * emit-rtl.c (mem_attrs_htab): Remove.
27230 (mem_attrs_htab_hash): Likewise.
27231 (mem_attrs_htab_eq): Likewise.
27232 (set_mem_attrs): Always allocate new mem-attrs when something changed.
27233 (init_emit_once): Do not allocate mem_attrs_htab.
27234
27235 2014-02-25 Richard Biener <rguenther@suse.de>
27236
27237 PR lto/60319
27238 * lto-opts.c (lto_write_options): Output non-explicit conservative
27239 -fwrapv, -fno-trapv and -fno-strict-overflow.
27240 * lto-wrapper.c (merge_and_complain): Handle merging those options.
27241 (run_gcc): And pass them through.
27242
27243 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
27244
27245 * sel-sched.c (calculate_new_fences): New parameter ptime.
27246 Calculate it as a maximum over all fence cycles.
27247 (sel_sched_region_2): Adjust the call to calculate_new_fences.
27248 Print the final schedule timing when sched_verbose.
27249
27250 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
27251
27252 PR rtl-optimization/60292
27253 * sel-sched.c (fill_vec_av_set): Do not reset target availability
27254 bit fot the fence instruction.
27255
27256 2014-02-24 Alangi Derick <alangiderick@gmail.com>
27257
27258 * calls.h: Fix typo in comment.
27259
27260 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
27261
27262 * config/pa/pa.c (pa_output_move_double): Don't valididate when
27263 adjusting offsetable addresses.
27264
27265 2014-02-24 Guozhi Wei <carrot@google.com>
27266
27267 * sparseset.h (sparseset_pop): Fix the wrong index.
27268
27269 2014-02-24 Walter Lee <walt@tilera.com>
27270
27271 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
27272 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
27273 triplet.
27274 * common/config/tilegx/tilegx-common.c
27275 (TARGET_DEFAULT_TARGET_FLAGS): Define.
27276 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
27277 (LINK_SPEC): Ditto.
27278 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
27279 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
27280 (tilegx_gimplify_va_arg_expr): Handle big endian.
27281 (tilegx_expand_unaligned_load): Ditto.
27282 (tilegx_expand_unaligned_store): Ditto.
27283 (TARGET_RETURN_IN_MSB): New.
27284 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
27285 (TARGET_ENDIAN_DEFAULT): New.
27286 (TARGET_BIG_ENDIAN): Handle big endian.
27287 (BYTES_BIG_ENDIAN): Ditto.
27288 (WORDS_BIG_ENDIAN): Ditto.
27289 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
27290 (ENDIAN_SPEC): New.
27291 (EXTRA_SPECS): New.
27292 * config/tilegx/tilegx.md (extv): Handle big endian.
27293 (extzv): Ditto.
27294 (insn_st<n>): Ditto.
27295 (insn_st<n>_add<bitsuffix>): Ditto.
27296 (insn_stnt<n>): Ditto.
27297 (insn_stnt<n>_add<bitsuffix>):Ditto.
27298 (vec_interleave_highv8qi): Handle big endian.
27299 (vec_interleave_highv8qi_be): New.
27300 (vec_interleave_highv8qi_le): New.
27301 (insn_v1int_h): Handle big endian.
27302 (vec_interleave_lowv8qi): Handle big endian.
27303 (vec_interleave_lowv8qi_be): New.
27304 (vec_interleave_lowv8qi_le): New.
27305 (insn_v1int_l): Handle big endian.
27306 (vec_interleave_highv4hi): Handle big endian.
27307 (vec_interleave_highv4hi_be): New.
27308 (vec_interleave_highv4hi_le): New.
27309 (insn_v2int_h): Handle big endian.
27310 (vec_interleave_lowv4hi): Handle big endian.
27311 (vec_interleave_lowv4hi_be): New.
27312 (vec_interleave_lowv4hi_le): New.
27313 (insn_v2int_l): Handle big endian.
27314 (vec_interleave_highv2si): Handle big endian.
27315 (vec_interleave_highv2si_be): New.
27316 (vec_interleave_highv2si_le): New.
27317 (insn_v4int_h): Handle big endian.
27318 (vec_interleave_lowv2si): Handle big endian.
27319 (vec_interleave_lowv2si_be): New.
27320 (vec_interleave_lowv2si_le): New.
27321 (insn_v4int_l): Handle big endian.
27322 * config/tilegx/tilegx.opt (mbig-endian): New option.
27323 (mlittle-endian): New option.
27324 * doc/install.texi: Document tilegxbe-linux.
27325 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
27326
27327 2014-02-24 Martin Jambor <mjambor@suse.cz>
27328
27329 PR ipa/60266
27330 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27331 there are no parameter descriptors.
27332
27333 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
27334
27335 PR rtl-optimization/60268
27336 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27337 initialization to ...
27338 (sched_rgn_init): ... here.
27339 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27340
27341 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27342
27343 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27344 names.
27345
27346 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
27347
27348 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27349 definition.
27350
27351 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27352
27353 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27354 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27355
27356 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27357
27358 * config/microblaze/predicates.md: Add cmp_op predicate.
27359 * config/microblaze/microblaze.md: Add branch_compare instruction
27360 which uses cmp_op predicate and emits cmp insn before branch.
27361 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27362 to microblaze_expand_conditional_branch and consolidate logic.
27363 (microblaze_expand_conditional_branch): emit branch_compare
27364 insn instead of handling cmp op separate from branch insn.
27365
27366 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27367
27368 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27369 to permit subregs.
27370
27371 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27372
27373 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27374 define_insn with define_expand and new define_insn
27375 *altivec_lve<VI_char>x_internal.
27376 (altivec_stve<VI_char>x): Replace define_insn with define_expand
27377 and new define_insn *altivec_stve<VI_char>x_internal.
27378 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27379 prototype.
27380 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27381 lve*x built-ins.
27382 (altivec_expand_stvex_be): New function.
27383
27384 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
27385
27386 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27387 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27388 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27389 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27390
27391 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
27392
27393 PR target/60298
27394 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27395 instead of emit_move_insn.
27396
27397 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27398
27399 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27400 vspltw with vsldoi.
27401 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27402 gen_altivec_vsumsws.
27403
27404 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27405
27406 * config/rs6000/altivec.md (altivec_lvxl): Rename as
27407 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27408 (altivec_lvxl_<mode>): New define_expand incorporating
27409 -maltivec=be semantics where needed.
27410 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27411 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27412 semantics where needed.
27413 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27414 (altivec_stvx_<mode>): New define_expand incorporating
27415 -maltivec=be semantics where needed.
27416 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27417 VM2 iterator instead of V4SI.
27418 (altivec_stvxl_<mode>): New define_expand incorporating
27419 -maltivec=be semantics where needed.
27420 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27421 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27422 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27423 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27424 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27425 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27426 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27427 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27428 ALTIVEC_BUILTIN_STVXL.
27429 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27430 (altivec_expand_stvx_be): Likewise.
27431 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27432 (altivec_expand_lvx_be): Likewise.
27433 (altivec_expand_stvx_be): Likewise.
27434 (altivec_expand_builtin): Add cases for
27435 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27436 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27437 (altivec_init_builtins): Add definitions for
27438 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27439 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27440
27441 2014-02-21 Catherine Moore <clm@codesourcery.com>
27442
27443 * doc/invoke.texi (mvirt, mno-virt): Document.
27444 * config/mips/mips.opt (mvirt): New option.
27445 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27446
27447 2014-02-21 Richard Biener <rguenther@suse.de>
27448
27449 PR tree-optimization/60276
27450 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27451 (STMT_VINFO_MIN_NEG_DIST): New macro.
27452 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27453 STMT_VINFO_MIN_NEG_DIST.
27454 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27455 made for negative dependence distances still hold.
27456
27457 2014-02-21 Richard Biener <rguenther@suse.de>
27458
27459 PR middle-end/60291
27460 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27461 DECL_INITIAL for globals not in the current function context.
27462
27463 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27464
27465 PR tree-optimization/56490
27466 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27467 * tree-ssa-uninit.c: Include params.h.
27468 (compute_control_dep_chain): Add num_calls argument, return false
27469 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27470 num_calls to recursive call.
27471 (find_predicates): Change dep_chain into normal array,
27472 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27473 variable and adjust compute_control_dep_chain caller.
27474 (find_def_preds): Likewise.
27475
27476 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
27477
27478 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27479 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27480
27481 2014-02-21 Nick Clifton <nickc@redhat.com>
27482
27483 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27484 (pushhi1): Likewise.
27485 (popqi1): Add mode to pre_dec.
27486 (pophi1): Likewise.
27487
27488 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27489
27490 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27491 mode for mask of V8SFmode permutation.
27492
27493 2014-02-20 Richard Henderson <rth@redhat.com>
27494
27495 PR c++/60272
27496 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27497 a new pseudo for OLDVAL.
27498
27499 2014-02-20 Jakub Jelinek <jakub@redhat.com>
27500
27501 PR target/57896
27502 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27503 gen_reg_rtx if d->testing_p.
27504 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27505 if d->testing_p and we will certainly return true.
27506 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
27507 if d->testing_p.
27508
27509 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
27510
27511 * emit-rtl.c (gen_reg_rtx): Assert that
27512 crtl->emit.regno_pointer_align_length is non-zero.
27513
27514 2014-02-20 Richard Henderson <rth@redhat.com>
27515
27516 PR c++/60272
27517 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27518 on failure the store back into EXPECT.
27519
27520 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27521 Sandra Loosemore <sandra@codesourcery.com>
27522
27523 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27524 * config/nios2/nios2.c (nios2_function_profiler): Add
27525 -fPIC (flag_pic == 2) support.
27526 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27527 (nios2_large_offset_p): New function.
27528 (nios2_unspec_reloc_p): Move up position, update to use
27529 nios2_large_offset_p.
27530 (nios2_unspec_address): Remove function.
27531 (nios2_unspec_offset): New function.
27532 (nios2_large_got_address): New function.
27533 (nios2_got_address): Add large offset support.
27534 (nios2_legitimize_tls_address): Update usage of removed and new
27535 functions.
27536 (nios2_symbol_binds_local_p): New function.
27537 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27538 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27539 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27540 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27541 processing for (const (unspec ...)).
27542 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27543
27544 2014-02-20 Richard Biener <rguenther@suse.de>
27545
27546 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27547 doing the substitution.
27548 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27549
27550 2014-02-20 Martin Jambor <mjambor@suse.cz>
27551
27552 PR ipa/55260
27553 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27554 info when checking whether lattices are bottom.
27555
27556 2014-02-20 Richard Biener <rguenther@suse.de>
27557
27558 PR middle-end/60221
27559 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27560 regions at -O0.
27561
27562 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27563
27564 PR ipa/58555
27565 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27566 parameter specifying the scaling.
27567 (inline_call): Update.
27568 (want_inline_recursively): Guard division by zero.
27569 (recursive_inlining): Update.
27570 * ipa-inline.h (clone_inlined_nodes): Update.
27571
27572 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27573
27574 PR target/60204
27575 * config/i386/i386.c (classify_argument): Pass structures of size
27576 64 bytes or less in register.
27577
27578 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27579 Kirill Yukhin <kirill.yukhin@intel.com>
27580
27581 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27582 (_mm_rcp28_round_ss): Ditto.
27583 (_mm_rsqrt28_round_sd): Ditto.
27584 (_mm_rsqrt28_round_ss): Ditto.
27585 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27586 (_mm_rcp14_round_ss): Ditto.
27587 (_mm_rsqrt14_round_sd): Ditto.
27588 (_mm_rsqrt14_round_ss): Ditto.
27589 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27590 the first input operand, get rid of match_dup.
27591 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27592 attribute to sse.
27593 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27594 Ditto.
27595 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27596 operand as the first input operand, set type attribute.
27597 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27598 Set type attribute.
27599 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27600 operand as the first input operand, set type attribute.
27601
27602 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27603
27604 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27605 bit of zero.
27606
27607 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27608
27609 PR target/60207
27610 * config/i386/i386.c (construct_container): Remove TFmode check
27611 for X86_64_INTEGER_CLASS.
27612
27613 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27614
27615 PR target/59794
27616 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27617 only when -Wpsabi is enabled.
27618
27619 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27620
27621 PR target/59799
27622 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27623 passing arrays in registers are the same as for structs, so remove the
27624 special case for them.
27625
27626 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27627
27628 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27629 destination type, extract only the valid bits if the source type is not
27630 integral and has a different mode.
27631
27632 2014-02-19 Richard Biener <rguenther@suse.de>
27633
27634 PR ipa/60243
27635 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27636 for all calls.
27637
27638 2014-02-19 Richard Biener <rguenther@suse.de>
27639
27640 PR ipa/60243
27641 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27642 (ipa_modify_call_arguments): Emit an argument load explicitely and
27643 preserve virtual SSA form there and for the replacement call.
27644 Do not update SSA form nor free dominance info.
27645
27646 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27647
27648 * ipa.c (function_and_variable_visibility): Also clear WEAK
27649 flag when disolving COMDAT_GROUP.
27650
27651 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27652
27653 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27654 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27655 not devirtualizing.
27656 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27657 do more sanity checks.
27658 (detect_type_change): Return true when giving up early.
27659 (compute_complex_assign_jump_func): Fix type parameter of
27660 ipa_set_ancestor_jf.
27661 (compute_complex_ancestor_jump_func): Likewise.
27662 (update_jump_functions_after_inlining): Fix updating of
27663 ancestor function.
27664 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27665
27666 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27667
27668 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27669 inline clones when edge disappears.
27670
27671 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27672
27673 PR target/60203
27674 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27675 Split 64-bit moves into 2 patterns. Do not allow the use of
27676 direct move for TDmode in little endian, since the decimal value
27677 has little endian bytes within a word, but the 64-bit pieces are
27678 ordered in a big endian fashion, and normal subreg's of TDmode are
27679 not allowed.
27680 (mov<mode>_64bit_dm): Likewise.
27681 (movtd_64bit_nodm): Likewise.
27682
27683 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27684
27685 PR tree-optimization/60174
27686 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27687 statement of an SSA_NAME that occurs in an abnormal PHI node.
27688
27689 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27690
27691 PR sanitizer/60142
27692 * final.c (SEEN_BB): Remove.
27693 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27694 (final_scan_insn): Don't force_source_line on second
27695 NOTE_INSN_BASIC_BLOCK.
27696
27697 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27698
27699 PR target/60205
27700 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27701 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27702 (type_natural_mode): Warn ABI change when %zmm register is not
27703 available for AVX512F vector value passing.
27704
27705 2014-02-18 Kai Tietz <ktietz@redhat.com>
27706
27707 PR target/60193
27708 * config/i386/i386.c (ix86_expand_prologue): Use value in
27709 rax register as displacement when restoring %r10 or %rax.
27710 Fix wrong offset when restoring both registers.
27711
27712 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27713
27714 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27715 assertion with conditional return.
27716
27717 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27718 Uros Bizjak <ubizjak@gmail.com>
27719
27720 PR driver/60233
27721 * config/i386/driver-i386.c (host_detect_local_cpu): If
27722 YMM state is not saved by the OS, also clear has_f16c. Move
27723 CPUID 0x80000001 handling before YMM state saving checking.
27724
27725 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27726
27727 PR rtl-optimization/58960
27728 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27729 factored out from ...
27730 (sched_init): ... here.
27731 (free_global_sched_pressure_data): New, factored out from ...
27732 (sched_finish): ... here.
27733 * sched-int.h (free_global_sched_pressure_data): Declare.
27734 * sched-rgn.c (nr_regions_initial): New static global.
27735 (haifa_find_rgns): Initialize it.
27736 (schedule_region): Disable sched-pressure for the newly
27737 generated regions.
27738
27739 2014-02-17 Richard Biener <rguenther@suse.de>
27740
27741 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27742 release SSA defs of pattern stmts.
27743
27744 2014-02-17 Richard Biener <rguenther@suse.de>
27745
27746 * tree-inline.c (expand_call_inline): Release the virtual
27747 operand defined by the call we are about to inline.
27748
27749 2014-02-17 Richard Biener <rguenther@suse.de>
27750
27751 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27752
27753 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27754 Ilya Tocar <ilya.tocar@intel.com>
27755
27756 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27757 arguments order in builtin.
27758 (_mm512_permutexvar_epi64): Ditto.
27759 (_mm512_mask_permutexvar_epi64): Ditto
27760 (_mm512_maskz_permutexvar_epi32): Ditto
27761 (_mm512_permutexvar_epi32): Ditto
27762 (_mm512_mask_permutexvar_epi32): Ditto
27763
27764 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27765
27766 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27767 (p8_vmrgow): Likewise.
27768
27769 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27770
27771 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27772 endian targets.
27773
27774 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27775
27776 PR target/60203
27777 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27778 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27779 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27780 using direct move instructions on ISA 2.07. Also adjust
27781 instruction length for 64-bit.
27782 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27783 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27784
27785 2014-02-15 Alan Modra <amodra@gmail.com>
27786
27787 PR target/58675
27788 PR target/57935
27789 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27790 find_replacement on parts of insn rtl that might be reloaded.
27791
27792 2014-02-15 Richard Biener <rguenther@suse.de>
27793
27794 PR tree-optimization/60183
27795 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27796 (tree_ssa_phiprop): Calculate and free post-dominators.
27797
27798 2014-02-14 Jeff Law <law@redhat.com>
27799
27800 PR rtl-optimization/60131
27801 * ree.c (get_extended_src_reg): New function.
27802 (combine_reaching_defs): Use it rather than assuming location of REG.
27803 (find_and_remove_re): Verify first operand of extension is
27804 a REG before adding the insns to the copy list.
27805
27806 2014-02-14 Roland McGrath <mcgrathr@google.com>
27807
27808 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27809 * configure: Regenerated.
27810 * config.in: Regenerated.
27811 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27812 instead of ASM_SHORT.
27813
27814 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27815 Richard Earnshaw <rearnsha@arm.com>
27816
27817 PR rtl-optimization/59535
27818 * lra-constraints.c (process_alt_operands): Encourage alternative
27819 when unassigned pseudo class is superset of the alternative class.
27820 (inherit_reload_reg): Don't inherit when optimizing for code size.
27821 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27822 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27823 modes not less than 4 for Thumb1.
27824
27825 2014-02-14 Kyle McMartin <kyle@redhat.com>
27826
27827 PR pch/60010
27828 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27829
27830 2014-02-14 Richard Biener <rguenther@suse.de>
27831
27832 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27833 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27834 Do not strip INDIRECT_REFs.
27835
27836 2014-02-14 Richard Biener <rguenther@suse.de>
27837
27838 PR lto/60179
27839 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27840 DECL_FUNCTION_SPECIFIC_TARGET.
27841 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27842 * tree-streamer-out.c (pack_ts_target_option): Remove.
27843 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27844 (write_ts_function_decl_tree_pointers): Do not stream
27845 DECL_FUNCTION_SPECIFIC_TARGET.
27846 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27847 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27848 (lto_input_ts_function_decl_tree_pointers): Do not stream
27849 DECL_FUNCTION_SPECIFIC_TARGET.
27850
27851 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27852
27853 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27854 (get_initial_def_for_induction, vectorizable_induction): Ignore
27855 debug stmts when looking for exit_phi.
27856 (vectorizable_live_operation): Fix up condition.
27857
27858 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27859
27860 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27861 nreverse() because it changes the content of original tree list.
27862
27863 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27864
27865 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27866 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27867
27868 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27869
27870 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27871 GNU coding standards.
27872
27873 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27874
27875 PR debug/60152
27876 * dwarf2out.c (gen_subprogram_die): Don't call
27877 add_calling_convention_attribute if subr_die is old_die.
27878
27879 2014-02-13 Sharad Singhai <singhai@google.com>
27880
27881 * doc/optinfo.texi: Fix order of nodes.
27882
27883 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27884
27885 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27886 operands[2], not operands[3].
27887
27888 2014-02-13 Richard Biener <rguenther@suse.de>
27889
27890 PR bootstrap/59878
27891 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27892 mention the possibility of an in-tree build.
27893 (CLooG): Update recommended version to 0.18.1, mention the
27894 possibility of an in-tree build and clarify that the ISL
27895 bundled with CLooG does not work.
27896
27897 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27898
27899 PR target/43546
27900 * expr.c (compress_float_constant): If x is a hard register,
27901 extend into a pseudo and then move to x.
27902
27903 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27904
27905 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27906 caused by bad second argument to warning_at() with -mhotpatch and
27907 nested functions (e.g. with gfortran).
27908
27909 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27910
27911 * opts.c (option_name): Remove "enabled by default" rider.
27912
27913 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27914
27915 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27916
27917 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27918 Uros Bizjak <ubizjak@gmail.com>
27919
27920 PR target/60151
27921 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27922 * configure: Regenerated.
27923
27924 2014-02-12 Richard Biener <rguenther@suse.de>
27925
27926 * vec.c (vec_prefix::calculate_allocation): Move as
27927 inline variant to vec.h.
27928 (vec_prefix::calculate_allocation_1): New out-of-line version.
27929 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27930 (vec_prefix::m_has_auto_buf): Rename to ...
27931 (vec_prefix::m_using_auto_storage): ... this.
27932 (vec_prefix::calculate_allocation): Inline the easy cases
27933 and dispatch to calculate_allocation_1 which doesn't need the
27934 prefix address.
27935 (va_heap::reserve): Use gcc_checking_assert.
27936 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27937 m_using_auto_storage.
27938 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27939 member and adjust.
27940 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27941 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27942 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27943
27944 2014-02-12 Richard Biener <rguenther@suse.de>
27945
27946 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27947 when we found a dependence.
27948
27949 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27950
27951 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27952 common code...
27953 (maybe_fold_stmt): ... into this new function.
27954 * omp-low.c (lower_omp): Update comment.
27955
27956 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27957 last use.
27958
27959 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27960 dereference.
27961
27962 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27963
27964 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27965 identifiers in comments.
27966 (cortexa53_extra_costs): Likewise.
27967 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27968 (cortexa7_extra_costs): Likewise.
27969 (cortexa12_extra_costs): Likewise.
27970 (cortexa15_extra_costs): Likewise.
27971 (v7m_extra_costs): Likewise.
27972
27973 2014-02-12 Richard Biener <rguenther@suse.de>
27974
27975 PR middle-end/60092
27976 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27977 of posix_memalign being successful.
27978 (lower_stmt): Restrict lowering of posix_memalign to when
27979 -ftree-bit-ccp is enabled.
27980
27981 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27982
27983 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27984 arg_loc.
27985 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27986
27987 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27988
27989 PR rtl-optimization/60116
27990 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27991 other_insn once the combination has been validated.
27992
27993 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27994
27995 PR lto/59468
27996 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27997 and wrapper.
27998 * ipa-devirt.c: Include demangle.h
27999 (odr_violation_reported): New static variable.
28000 (add_type_duplicate): Update odr_violations.
28001 (maybe_record_node): Add completep parameter; update it.
28002 (record_target_from_binfo): Add COMPLETEP parameter;
28003 update it as needed.
28004 (possible_polymorphic_call_targets_1): Likewise.
28005 (struct polymorphic_call_target_d): Add nonconstruction_targets;
28006 rename FINAL to COMPLETE.
28007 (record_targets_from_bases): Sanity check we found the binfo;
28008 fix COMPLETEP updating.
28009 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
28010 parameter, fix computing of COMPLETEP.
28011 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
28012 at LTO time do demangling.
28013 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
28014 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
28015 parameter.
28016 (gimple_get_virt_method_for_binfo): Likewise.
28017 * gimple-fold.h (gimple_get_virt_method_for_binfo,
28018 gimple_get_virt_method_for_vtable): Update prototypes.
28019
28020 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
28021
28022 PR target/49008
28023 * genautomata.c (add_presence_absence): Fix typo with
28024 {final_}presence_list.
28025
28026 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28027
28028 PR target/60137
28029 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
28030 for VSX/Altivec vectors that land in GPR registers.
28031
28032 2014-02-11 Richard Henderson <rth@redhat.com>
28033 Jakub Jelinek <jakub@redhat.com>
28034
28035 PR debug/59776
28036 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
28037 around drhs if type conversion to lacc->type is not useless.
28038
28039 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28040
28041 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
28042 tuning struct.
28043 (cortex-a57.cortex-a53): Likewise.
28044 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
28045
28046 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28047
28048 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
28049 arm_restrict_it.
28050
28051 2014-02-11 Renlin Li <Renlin.Li@arm.com>
28052
28053 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
28054 add_options_for_arm_vfp3.
28055
28056 2014-02-11 Jeff Law <law@redhat.com>
28057
28058 PR middle-end/54041
28059 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
28060 object with an undesirable mode.
28061
28062 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28063
28064 PR libgomp/60107
28065 * config/i386/sol2-9.h: New file.
28066 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
28067 *-*-solaris2.9*): Use it.
28068
28069 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
28070
28071 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
28072 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
28073
28074 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
28075
28076 * config/microblaze/microblaze.c: Extend mcpu version format
28077
28078 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
28079
28080 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
28081
28082 2014-02-10 Richard Henderson <rth@redhat.com>
28083
28084 PR target/59927
28085 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
28086 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
28087 ms-abi vs -mno-accumulate-outgoing-args.
28088 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
28089 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
28090 respect to ms-abi.
28091
28092 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
28093
28094 PR middle-end/60080
28095 * cfgexpand.c (expand_asm_operands): Attach source location to
28096 ASM_INPUT rtx objects.
28097 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
28098
28099 2014-02-10 Nick Clifton <nickc@redhat.com>
28100
28101 * config/mn10300/mn10300.c (popcount): New function.
28102 (mn10300_expand_prologue): Include saved registers in stack usage
28103 count.
28104
28105 2014-02-10 Jeff Law <law@redhat.com>
28106
28107 PR middle-end/52306
28108 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
28109 when changing the SET_DEST of a prior insn to avoid an input reload.
28110
28111 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28112
28113 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
28114 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
28115 -mcall-openbsd, or -mcall-linux.
28116 (CC1_ENDIAN_BIG_SPEC): Remove.
28117 (CC1_ENDIAN_LITTLE_SPEC): Remove.
28118 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28119 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
28120 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
28121 and %cc1_endian_default.
28122 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28123
28124 2014-02-10 Richard Biener <rguenther@suse.de>
28125
28126 PR tree-optimization/60115
28127 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
28128 MEM_REF handling. Properly verify that the accesses are not
28129 out of the objects bound.
28130
28131 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28132
28133 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
28134 coretex to cortex.
28135
28136 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
28137
28138 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
28139 proper constants and fix formatting.
28140 (possible_polymorphic_call_targets): Fix formatting.
28141
28142 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
28143 Ilya Tocar <ilya.tocar@intel.com>
28144
28145 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
28146 (_mm512_loadu_epi32): Renamed into...
28147 (_mm512_loadu_si512): This.
28148 (_mm512_storeu_epi32): Renamed into...
28149 (_mm512_storeu_si512): This.
28150 (_mm512_maskz_ceil_ps): Removed.
28151 (_mm512_maskz_ceil_pd): Ditto.
28152 (_mm512_maskz_floor_ps): Ditto.
28153 (_mm512_maskz_floor_pd): Ditto.
28154 (_mm512_floor_round_ps): Ditto.
28155 (_mm512_floor_round_pd): Ditto.
28156 (_mm512_ceil_round_ps): Ditto.
28157 (_mm512_ceil_round_pd): Ditto.
28158 (_mm512_mask_floor_round_ps): Ditto.
28159 (_mm512_mask_floor_round_pd): Ditto.
28160 (_mm512_mask_ceil_round_ps): Ditto.
28161 (_mm512_mask_ceil_round_pd): Ditto.
28162 (_mm512_maskz_floor_round_ps): Ditto.
28163 (_mm512_maskz_floor_round_pd): Ditto.
28164 (_mm512_maskz_ceil_round_ps): Ditto.
28165 (_mm512_maskz_ceil_round_pd): Ditto.
28166 (_mm512_expand_pd): Ditto.
28167 (_mm512_expand_ps): Ditto.
28168 * config/i386/i386.c (ix86_builtins): Remove
28169 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
28170 (bdesc_args): Ditto.
28171 * config/i386/predicates.md (const1256_operand): New.
28172 (const_1_to_2_operand): Ditto.
28173 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28174 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28175 (*avx512pf_gatherpf<mode>sf): Ditto.
28176 (avx512pf_gatherpf<mode>df): Ditto.
28177 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28178 (*avx512pf_gatherpf<mode>df): Ditto.
28179 (avx512pf_scatterpf<mode>sf): Ditto.
28180 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28181 (*avx512pf_scatterpf<mode>sf): Ditto.
28182 (avx512pf_scatterpf<mode>df): Ditto.
28183 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28184 (*avx512pf_scatterpf<mode>df): Ditto.
28185 (avx512f_expand<mode>): Removed.
28186 (<shift_insn><mode>3<mask_name>): Change predicate type.
28187
28188 2014-02-08 Jakub Jelinek <jakub@redhat.com>
28189
28190 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
28191 not at the end of datarefs vector use ordered_remove to avoid
28192 reordering datarefs vector.
28193
28194 PR c/59984
28195 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
28196 mark local addressable non-static vars as GOVD_PRIVATE
28197 instead of GOVD_LOCAL.
28198 * omp-low.c (lower_omp_for): Move gimple_bind_vars
28199 and BLOCK_VARS of gimple_bind_block to new_stmt rather
28200 than copying them.
28201
28202 PR middle-end/60092
28203 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
28204 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
28205 assume_aligned or alloc_align attributes.
28206 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
28207 arguments. Handle also assume_aligned and alloc_align attributes.
28208 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
28209 calls to functions with assume_aligned or alloc_align attributes.
28210 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
28211
28212 2014-02-08 Terry Guo <terry.guo@arm.com>
28213
28214 * doc/invoke.texi: Document ARM -march=armv7e-m.
28215
28216 2014-02-08 Jakub Jelinek <jakub@redhat.com>
28217
28218 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
28219 flag on __cilkrts_rethrow builtin.
28220
28221 PR ipa/60026
28222 * ipa-cp.c (determine_versionability): Fail at -O0
28223 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
28224 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
28225
28226 Revert:
28227 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28228
28229 PR ipa/60026
28230 * tree-inline.c (copy_forbidden): Fail for
28231 __attribute__((optimize (0))) functions.
28232
28233 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
28234
28235 * varpool.c: Include pointer-set.h.
28236 (varpool_remove_unreferenced_decls): Variables in other partitions
28237 will not be output; be however careful to not lose information
28238 about partitioning.
28239
28240 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
28241
28242 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
28243 lookup in the vtable constructor.
28244
28245 2014-02-07 Jeff Law <law@redhat.com>
28246
28247 PR target/40977
28248 * config/m68k/m68k.md (ashldi_extsi): Turn into a
28249 define_insn_and_split.
28250
28251 * ipa-inline.c (inline_small_functions): Fix typos.
28252
28253 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28254
28255 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
28256 (s390_can_use_return_insn): Declare.
28257 * config/s390/s390.h (EPILOGUE_USES): Define.
28258 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
28259 instructions.
28260 (s390_chunkify_start): Handle return JUMP_LABELs.
28261 (s390_early_mach): Emit a main_pool instruction on the entry edge.
28262 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
28263 (s390_can_use_return_insn): New functions.
28264 (s390_fix_long_loop_prediction): Handle conditional returns.
28265 (TARGET_SET_UP_BY_PROLOGUE): Define.
28266 * config/s390/s390.md (ANY_RETURN): New code iterator.
28267 (*creturn, *csimple_return, return, simple_return): New patterns.
28268
28269 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28270
28271 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
28272 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
28273 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
28274 REG_CFA_RESTORE list when deciding not to restore a register.
28275
28276 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28277
28278 * config/s390/s390.c: Include tree-pass.h and context.h.
28279 (s390_early_mach): New function, split out from...
28280 (s390_emit_prologue): ...here.
28281 (pass_data_s390_early_mach): New pass structure.
28282 (pass_s390_early_mach): New class.
28283 (s390_option_override): Create and register early_mach pass.
28284 Move to end of file.
28285
28286 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28287
28288 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
28289 to match for the exit block.
28290
28291 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28292
28293 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
28294 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
28295 Reject misaligned operands.
28296
28297 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28298
28299 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
28300
28301 2014-02-07 Richard Biener <rguenther@suse.de>
28302
28303 PR middle-end/60092
28304 * gimple-low.c (lower_builtin_posix_memalign): New function.
28305 (lower_stmt): Call it to lower posix_memalign in a way
28306 to make alignment info accessible.
28307
28308 2014-02-07 Jakub Jelinek <jakub@redhat.com>
28309
28310 PR c++/60082
28311 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
28312 __builtin_setjmp_receiver.
28313
28314 2014-02-07 Richard Biener <rguenther@suse.de>
28315
28316 PR middle-end/60092
28317 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
28318 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
28319 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28320 Handle BUILT_IN_POSIX_MEMALIGN.
28321 (find_func_clobbers): Likewise.
28322 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28323 (call_may_clobber_ref_p_1): Likewise.
28324
28325 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28326
28327 PR ipa/59918
28328 * ipa-devirt.c (record_target_from_binfo): Remove overactive
28329 sanity check.
28330
28331 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28332
28333 PR ipa/59469
28334 * lto-cgraph.c (lto_output_node): Use
28335 symtab_get_symbol_partitioning_class.
28336 (lto_output_varpool_node): likewise.
28337 (symtab_get_symbol_partitioning_class): Move here from
28338 lto/lto-partition.c
28339 * cgraph.h (symbol_partitioning_class): Likewise.
28340 (symtab_get_symbol_partitioning_class): Declare.
28341
28342 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28343
28344 * ggc.h (ggc_internal_cleared_alloc): New macro.
28345 * vec.h (vec_safe_copy): Handle memory stats.
28346 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28347 * target-globals.c (save_target_globals): Likewise.
28348
28349 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28350
28351 PR target/60077
28352 * expr.c (emit_move_resolve_push): Export; be bit more selective
28353 on when to clear alias set.
28354 * expr.h (emit_move_resolve_push): Declare.
28355 * function.h (struct function): Add tail_call_marked.
28356 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28357 * config/i386/i386-protos.h (ix86_expand_push): Remove.
28358 * config/i386/i386.md (TImode move expander): De not call
28359 ix86_expand_push.
28360 (FP push expanders): Preserve memory attributes.
28361 * config/i386/sse.md (push<mode>1): Remove.
28362 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28363 (ix86_expand_push): Remove.
28364 * config/i386/mmx.md (push<mode>1): Remove.
28365
28366 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28367
28368 PR rtl-optimization/60030
28369 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28370 lopart with paradoxical subreg before shifting it up by hprec.
28371
28372 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28373
28374 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28375 Remove extra newline at end of file.
28376 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28377 (arm_issue_rate): Handle cortexa57.
28378 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28379 (cortex-a57.cortex-a53): Likewise.
28380
28381 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28382
28383 PR target/59575
28384 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28385 don't record in REG_FRAME_RELATED_EXPR registers not set in that
28386 bitmask.
28387 (arm_expand_prologue): Adjust all callers.
28388 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28389 info, registers also at the lowest numbered registers side. Use
28390 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28391 XEXP.
28392
28393 PR debug/59992
28394 * var-tracking.c (adjust_mems): Before adding a SET to
28395 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28396
28397 2014-02-06 Alan Modra <amodra@gmail.com>
28398
28399 PR target/60032
28400 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28401 change SDmode to DDmode when lra_in_progress.
28402
28403 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28404
28405 PR middle-end/59150
28406 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28407 free_data_ref on the dr first, and before goto again also set dr
28408 to the next dr. For simd_lane_access, free old datarefs[i] before
28409 overwriting it. For get_vectype_for_scalar_type failure, don't
28410 free_data_ref if simd_lane_access.
28411
28412 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28413
28414 PR target/60062
28415 * tree.h (opts_for_fn): New inline function.
28416 (opt_for_fn): Define.
28417 * config/i386/i386.c (ix86_function_regparm): Use
28418 opt_for_fn (decl, optimize) instead of optimize.
28419
28420 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
28421
28422 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28423 for SYMBOL_REF in large memory model.
28424
28425 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28426
28427 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28428 and crypto support.
28429 (cortex-a57): Likewise.
28430 (cortex-a57.cortex-a53): Likewise.
28431
28432 2014-02-06 Yury Gribov <y.gribov@samsung.com>
28433 Kugan Vivekanandarajah <kuganv@linaro.org>
28434
28435 * config/arm/arm.c (arm_vector_alignment_reachable): Check
28436 unaligned_access.
28437 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28438
28439 2014-02-06 Richard Biener <rguenther@suse.de>
28440
28441 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28442 set_loop_copy and initialize_original_copy_tables.
28443
28444 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
28445
28446 * config/aarch64/aarch64-simd.md
28447 (aarch64_ashr_simddi): Change QI to SI.
28448
28449 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28450 Jakub Jelinek <jakub@redhat.com>
28451
28452 PR middle-end/60013
28453 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28454 of the dataflow.
28455
28456 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28457
28458 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28459 CODE_FOR_altivec_vpku[hw]um to
28460 CODE_FOR_altivec_vpku[hw]um_direct.
28461 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28462 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28463 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28464 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28465
28466 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28467
28468 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28469 generation for -maltivec=be.
28470 (altivec_vsumsws): Simplify redundant test.
28471
28472 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28473
28474 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28475 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28476 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28477 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28478 gen_altivec_vpkuwum.
28479 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28480 BYTES_BIG_ENDIAN.
28481 (altivec_vpks<VI_char>ss): Likewise.
28482 (altivec_vpks<VI_char>us): Likewise.
28483 (altivec_vpku<VI_char>us): Likewise.
28484 (altivec_vpku<VI_char>um): Likewise.
28485 (altivec_vpku<VI_char>um_direct): New (copy of
28486 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28487 internal use).
28488 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28489 target is little endian and -maltivec=be is not specified.
28490 (*altivec_vupkhs<VU_char>_direct): New (copy of
28491 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28492 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28493 target is little endian and -maltivec=be is not specified.
28494 (*altivec_vupkls<VU_char>_direct): New (copy of
28495 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28496 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28497 little endian and -maltivec=be is not specified.
28498 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28499 little endian and -maltivec=be is not specified.
28500
28501 2014-02-05 Richard Henderson <rth@redhat.com>
28502
28503 PR debug/52727
28504 * combine-stack-adj.c: Revert r206943.
28505 * sched-int.h (struct deps_desc): Add last_args_size.
28506 * sched-deps.c (init_deps): Initialize it.
28507 (sched_analyze_insn): Add OUTPUT dependencies between insns that
28508 contain REG_ARGS_SIZE notes.
28509
28510 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28511
28512 * lto-cgraph.c (asm_nodes_output): Make global.
28513 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28514 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28515 (driver_handle_option): Handle OPT_fwpa.
28516
28517 2014-02-05 Jakub Jelinek <jakub@redhat.com>
28518
28519 PR ipa/59947
28520 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28521 a comment typo and formatting issue. If odr_hash hasn't been
28522 created, return vNULL and set *completep to false.
28523
28524 PR middle-end/57499
28525 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28526 bb with no successors.
28527
28528 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28529
28530 PR target/59718
28531 * doc/invoke.texi (-march): Clarify documentation for ARM.
28532 (-mtune): Likewise.
28533 (-mcpu): Likewise.
28534
28535 2014-02-05 Richard Biener <rguenther@suse.de>
28536
28537 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28538 when not vectorizing because of too many alias checks.
28539 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28540 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28541
28542 2014-02-05 Nick Clifton <nickc@redhat.com>
28543
28544 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28545 accept extended registers in any mode when compiling for the MN10300.
28546
28547 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28548
28549 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28550 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28551 sanitization attributes.
28552 (can_inline_edge_p): Likewise.
28553 (sanitize_attrs_match_for_inline_p): New function.
28554
28555 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28556
28557 * ipa-prop.c (detect_type_change): Shor circuit testing of
28558 type changes on THIS pointer.
28559
28560 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28561
28562 PR target/59777
28563 * config/pa/pa.c (legitimize_tls_address): Return original address
28564 if not passed a SYMBOL_REF rtx.
28565 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28566 addresses.
28567 (pa_emit_move_sequence): Simplify TLS source operands.
28568 (pa_legitimate_constant_p): Reject all TLS constants.
28569 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28570 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28571
28572 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28573
28574 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28575 groups when we know they are controlled by LTO.
28576 * varasm.c (default_binds_local_p_1): If object is in other partition,
28577 it will be resolved locally.
28578
28579 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28580
28581 * config/host-linux.c (linux_gt_pch_use_address): Don't
28582 use SSIZE_MAX because it is not always defined.
28583
28584 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28585
28586 PR bootstrap/59913
28587 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28588 threshold for pseudo splitting.
28589 (update_ebb_live_info): Process call argument hard registers and
28590 hard registers from insn definition too.
28591 (max_small_class_regs_num): New constant.
28592 (inherit_in_ebb): Update live hard regs through EBBs. Update
28593 reloads_num only for small register classes. Don't split for
28594 outputs of jumps.
28595
28596 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28597
28598 PR ipa/60058
28599 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28600 is non-null.
28601
28602 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28603
28604 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28605 visibility is safe.
28606
28607 2014-02-04 Marek Polacek <polacek@redhat.com>
28608
28609 * gdbinit.in (pel): Define.
28610
28611 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28612
28613 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28614 behavior.
28615
28616 2014-02-04 Richard Biener <rguenther@suse.de>
28617
28618 PR lto/59723
28619 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28620 in function context local.
28621 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28622 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28623 similar to LTO_imported_decl_ref.
28624
28625 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28626
28627 PR tree-optimization/60002
28628 * cgraphclones.c (build_function_decl_skip_args): Clear
28629 DECL_LANG_SPECIFIC.
28630
28631 PR tree-optimization/60023
28632 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28633 false to gsi_replace.
28634 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28635 has been in some EH region and vec_stmt could throw, add
28636 vec_stmt into the same EH region.
28637 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28638 has no lhs, ignore it.
28639 * internal-fn.c (expand_MASK_LOAD): Likewise.
28640
28641 PR ipa/60026
28642 * tree-inline.c (copy_forbidden): Fail for
28643 __attribute__((optimize (0))) functions.
28644
28645 PR other/58712
28646 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28647 is set, copy one less argument.
28648 (expand_simd_clones): Don't subtract clone_info->inbranch
28649 from simd_clone_struct_alloc argument.
28650
28651 PR rtl-optimization/57915
28652 * recog.c (simplify_while_replacing): If all unary/binary/relational
28653 operation arguments are constant, attempt to simplify those.
28654
28655 PR middle-end/59261
28656 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28657 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28658
28659 2014-02-04 Richard Biener <rguenther@suse.de>
28660
28661 PR tree-optimization/60012
28662 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28663 TBAA disambiguation to all DDRs.
28664
28665 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28666
28667 PR target/59788
28668 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28669 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28670
28671 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28672
28673 PR ipa/59882
28674 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28675
28676 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28677
28678 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28679 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28680
28681 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28682
28683 PR ipa/59831
28684 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28685 to figure out targets of polymorphic calls with known decl.
28686 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28687 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28688 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28689 (get_polymorphic_call_info): ... here.
28690 (get_polymorphic_call_info_from_invariant): New function.
28691
28692 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28693
28694 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28695 lookup via vtable pointer; check for type consistency
28696 and turn inconsitent facts into UNREACHABLE.
28697 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28698 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28699 type inconsistent querries; return UNREACHABLE instead.
28700
28701 2014-02-03 Richard Henderson <rth@twiddle.net>
28702
28703 PR tree-opt/59924
28704 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28705 already processed this node.
28706 (normalize_one_pred_1): Pass along mark_set.
28707 (normalize_one_pred): Create and destroy a pointer_set_t.
28708 (normalize_one_pred_chain): Likewise.
28709
28710 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28711
28712 PR gcov-profile/58602
28713 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28714
28715 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28716
28717 PR ipa/59831
28718 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28719 -fno-devirtualize; try to devirtualize by the knowledge of
28720 virtual table pointer given by aggregate propagation.
28721 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28722 (ipa_print_node_jump_functions): Dump also offset that
28723 is relevant for polymorphic calls.
28724 (determine_known_aggregate_parts): Add arg_type parameter; use it
28725 instead of determining the type from pointer type.
28726 (ipa_compute_jump_functions_for_edge): Update call of
28727 determine_known_aggregate_parts.
28728 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28729 (gimple_get_virt_method_for_binfo): ... here; simplify using
28730 vtable_pointer_value_to_vtable.
28731 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28732 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28733 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28734 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28735 POINTER_PLUS_EXPR.
28736 (vtable_pointer_value_to_binfo): ... here.
28737 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28738
28739 2014-02-03 Teresa Johnson <tejohnson@google.com>
28740
28741 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28742 redef of outer loop index variable.
28743
28744 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28745
28746 PR c++/53017
28747 PR c++/59211
28748 * doc/extend.texi (Function Attributes): Typo.
28749
28750 2014-02-03 Cong Hou <congh@google.com>
28751
28752 PR tree-optimization/60000
28753 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28754 if the vectorized statement is a store. A store statement can only
28755 appear at the end of pattern statements.
28756
28757 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28758
28759 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28760 (ix86_option_override_internal): Default long double to 64-bit for
28761 32-bit Bionic and to 128-bit for 64-bit Bionic.
28762
28763 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28764 TARGET_LONG_DOUBLE_128 is true.
28765 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28766
28767 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28768 (mlong-double-64): Negate -mlong-double-128.
28769 (mlong-double-128): New option.
28770
28771 * config/i386/i386-c.c (ix86_target_macros): Define
28772 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28773
28774 * doc/invoke.texi: Document -mlong-double-128.
28775
28776 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28777
28778 PR rtl-optimization/60024
28779 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28780
28781 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28782
28783 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28784
28785 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28786
28787 PR rtl-optimization/57662
28788 * sel-sched.c (code_motion_path_driver): Do not mark already not
28789 existing blocks in the visiting bitmap.
28790
28791 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28792
28793 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28794 on the insn being emitted.
28795
28796 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28797 Will Deacon <will.deacon@arm.com>
28798
28799 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28800
28801 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28802
28803 * config/arm/arm-tables.opt: Regenerate.
28804
28805 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28806
28807 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28808 for vector types other than V16QImode.
28809 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28810 define_expand, and call altivec_expand_vec_perm_le when producing
28811 code with little endian element order.
28812 (*altivec_vperm_<mode>_internal): New insn having previous
28813 behavior of altivec_vperm_<mode>.
28814 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28815 altivec_expand_vec_perm_le when producing code with little endian
28816 element order.
28817 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28818 behavior of altivec_vperm_<mode>_uns.
28819
28820 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28821
28822 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28823 (altivec_vsumsws): Add handling for -maltivec=be with a little
28824 endian target.
28825 (altivec_vsumsws_direct): New.
28826 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28827 gen_altivec_vsumsws.
28828
28829 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28830
28831 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28832 vtable_pointer_value_to_binfo): New functions.
28833 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28834 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28835
28836 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28837
28838 * config/nios2/nios2.md (load_got_register): Initialize GOT
28839 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28840 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28841
28842 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28843
28844 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28845 preserverd by passthrough, do not propagate the type.
28846
28847 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28848
28849 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28850 (mips_atomic_assign_expand_fenv): New function.
28851 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28852
28853 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28854
28855 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28856 (__builtin_mips_set_fcsr): Likewise.
28857 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28858 MIPS_USI_FTYPE_VOID.
28859 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28860 (mips16_expand_set_fcsr): Likewise.
28861 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28862 (mips16_set_fcsr_stub): Likewise.
28863 (mips16_get_fcsr_one_only_stub): New class.
28864 (mips16_set_fcsr_one_only_stub): Likewise.
28865 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28866 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28867 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28868 (hard_float): New availability predicate.
28869 (mips_builtins): Add get_fcsr and set_fcsr.
28870 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28871 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28872 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28873 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28874 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28875 patterns.
28876
28877 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28878
28879 * config/mips/mips.c (mips_one_only_stub): New class.
28880 (mips_need_mips16_rdhwr_p): Replace with...
28881 (mips16_rdhwr_stub): ...this new variable.
28882 (mips16_stub_call_address): New function.
28883 (mips16_rdhwr_one_only_stub): New class.
28884 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28885 (mips_output_mips16_rdhwr): Delete.
28886 (mips_finish_stub): New function.
28887 (mips_code_end): Use it to handle rdhwr stubs.
28888
28889 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28890
28891 PR target/60017
28892 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28893 when calculating size of integer atomic types.
28894
28895 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28896
28897 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28898
28899 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28900
28901 PR tree-optimization/60003
28902 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28903 * profile.c (branch_prob): Use gimple_call_builtin_p
28904 to check for BUILT_IN_SETJMP_RECEIVER.
28905 * tree-inline.c (copy_bb): Call notice_special_calls.
28906
28907 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28908
28909 PR bootstrap/59985
28910 * lra-constraints.c (process_alt_operands): Update reload_sum only
28911 on the first pass.
28912
28913 2014-01-31 Richard Henderson <rth@redhat.com>
28914
28915 PR middle-end/60004
28916 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28917 until after else_eh is processed.
28918
28919 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28920
28921 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28922 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28923 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28924 in smmintrin.h, remove them.
28925 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28926 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28927 * config/i386/i386.md (ROUND_SAE): Fix value.
28928 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28929 (const48_operand): New.
28930 * config/i386/subst.md (round), (round_expand): Use
28931 const_4_or_8_to_11_operand.
28932 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28933
28934 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28935
28936 * config/i386/constraints.md (Yk): Swap meaning with k.
28937 * config/i386/i386.md (movhi_internal): Change Yk to k.
28938 (movqi_internal): Ditto.
28939 (*k<logic><mode>): Ditto.
28940 (*andhi_1): Ditto.
28941 (*andqi_1): Ditto.
28942 (kandn<mode>): Ditto.
28943 (*<code>hi_1): Ditto.
28944 (*<code>qi_1): Ditto.
28945 (kxnor<mode>): Ditto.
28946 (kortestzhi): Ditto.
28947 (kortestchi): Ditto.
28948 (kunpckhi): Ditto.
28949 (*one_cmplhi2_1): Ditto.
28950 (*one_cmplqi2_1): Ditto.
28951 * config/i386/sse.md (): Change k to Yk.
28952 (avx512f_load<mode>_mask): Ditto.
28953 (avx512f_blendm<mode>): Ditto.
28954 (avx512f_store<mode>_mask): Ditto.
28955 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28956 (avx512f_storedqu<mode>_mask): Ditto.
28957 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28958 Ditto.
28959 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28960 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28961 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28962 (avx512f_maskcmp<mode>3): Ditto.
28963 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28964 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28965 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28966 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28967 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28968 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28969 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28970 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28971 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28972 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28973 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28974 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28975 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28976 (vec_extract_lo_<mode>_maskm): Ditto.
28977 (vec_extract_hi_<mode>_maskm): Ditto.
28978 (avx512f_vternlog<mode>_mask): Ditto.
28979 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28980 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28981 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28982 (avx512f_<code>v8div16qi2_mask): Ditto.
28983 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28984 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28985 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28986 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28987 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28988 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28989 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28990 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28991 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28992 (avx512cd_maskb_vec_dupv8di): Ditto.
28993 (avx512cd_maskw_vec_dupv16si): Ditto.
28994 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28995 (avx512f_vpermi2var<mode>3_mask): Ditto.
28996 (avx512f_vpermi2var<mode>3_mask): Ditto.
28997 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28998 (*avx512f_gathersi<mode>): Ditto.
28999 (*avx512f_gathersi<mode>_2): Ditto.
29000 (*avx512f_gatherdi<mode>): Ditto.
29001 (*avx512f_gatherdi<mode>_2): Ditto.
29002 (*avx512f_scattersi<mode>): Ditto.
29003 (*avx512f_scatterdi<mode>): Ditto.
29004 (avx512f_compress<mode>_mask): Ditto.
29005 (avx512f_compressstore<mode>_mask): Ditto.
29006 (avx512f_expand<mode>_mask): Ditto.
29007 * config/i386/subst.md (mask): Change k to Yk.
29008 (mask_scalar_merge): Ditto.
29009 (sd): Ditto.
29010
29011 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
29012
29013 * doc/extend.texi (Vector Extensions): Document ?: in C++.
29014
29015 2014-01-31 Richard Biener <rguenther@suse.de>
29016
29017 PR middle-end/59990
29018 * builtins.c (fold_builtin_memory_op): Make sure to not
29019 use a floating-point mode or a boolean or enumeral type for
29020 the copy operation.
29021
29022 2014-01-30 DJ Delorie <dj@redhat.com>
29023
29024 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
29025 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
29026 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
29027 whenever main() has an epilogue.
29028
29029 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29030
29031 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
29032 unused variable "field".
29033 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
29034 (vsx_mergeh_<mode>): Likewise.
29035 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
29036 (altivec_vmrghh): Likewise.
29037 (altivec_vmrghw): Likewise.
29038 (altivec_vmrglb): Likewise.
29039 (altivec_vmrglh): Likewise.
29040 (altivec_vmrglw): Likewise.
29041 (altivec_vspltb): Add missing uses.
29042 (altivec_vsplth): Likewise.
29043 (altivec_vspltw): Likewise.
29044 (altivec_vspltsf): Likewise.
29045
29046 2014-01-30 Jakub Jelinek <jakub@redhat.com>
29047
29048 PR target/59923
29049 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
29050 frame related instructions.
29051
29052 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
29053
29054 PR rtl-optimization/59959
29055 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
29056 any reload of register whose subreg is invalid.
29057
29058 2014-01-30 Jakub Jelinek <jakub@redhat.com>
29059
29060 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
29061 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
29062 Add missing return type - void.
29063
29064 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29065
29066 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
29067 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
29068 remove element index adjustment for endian (now handled in vsx.md
29069 and altivec.md).
29070 (altivec_expand_vec_perm_const): Use
29071 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
29072 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
29073 (vsx_xxspltw_<mode>): Adjust element index for little endian.
29074 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
29075 define_expand and a new define_insn *altivec_vspltb_internal;
29076 adjust for -maltivec=be on a little endian target.
29077 (altivec_vspltb_direct): New.
29078 (altivec_vsplth): Divide into a define_expand and a new
29079 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
29080 little endian target.
29081 (altivec_vsplth_direct): New.
29082 (altivec_vspltw): Divide into a define_expand and a new
29083 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
29084 little endian target.
29085 (altivec_vspltw_direct): New.
29086 (altivec_vspltsf): Divide into a define_expand and a new
29087 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
29088 a little endian target.
29089
29090 2014-01-30 Richard Biener <rguenther@suse.de>
29091
29092 PR tree-optimization/59993
29093 * tree-ssa-forwprop.c (associate_pointerplus): Check we
29094 can propagate form the earlier stmt and avoid the transform
29095 when the intermediate result is needed.
29096
29097 2014-01-30 Alangi Derick <alangiderick@gmail.com>
29098
29099 * README.Portability: Fix typo.
29100
29101 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
29102
29103 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
29104 comparison_operator with ordered_comparison_operator.
29105
29106 2014-01-30 Nick Clifton <nickc@redhat.com>
29107
29108 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
29109 Rename to mn10300_store_multiple_regs.
29110 * config/mn10300/mn10300.c: Likewise.
29111 * config/mn10300/mn10300.md (store_movm): Fix typo: call
29112 store_multiple_regs.
29113 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
29114 Call mn10300_store_multiple_regs.
29115
29116 2014-01-30 Nick Clifton <nickc@redhat.com>
29117 DJ Delorie <dj@redhat.com>
29118
29119 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
29120 %fp 2 to keep registers after it properly word-aligned.
29121 (rl78_alloc_physical_registers_umul): Handle the case where both
29122 input operands are the same.
29123
29124 2014-01-30 Richard Biener <rguenther@suse.de>
29125
29126 PR tree-optimization/59903
29127 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
29128 check properly.
29129
29130 2014-01-30 Jason Merrill <jason@redhat.com>
29131
29132 PR c++/59633
29133 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
29134
29135 PR c++/59645
29136 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
29137
29138 2014-01-30 Richard Biener <rguenther@suse.de>
29139
29140 PR tree-optimization/59951
29141 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
29142
29143 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
29144
29145 PR target/59784
29146 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
29147 SFmode to DFmode case.
29148
29149 2014-01-29 DJ Delorie <dj@redhat.com>
29150
29151 * config/msp430/msp430.opt (-minrt): New.
29152 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
29153 if -minrt given.
29154 (ENDFILE_SPEC): Likewise.
29155
29156 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
29157
29158 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
29159 (estimate_function_body_sizes): Use it.
29160
29161 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
29162
29163 PR c++/58561
29164 * dwarf2out.c (is_cxx_auto): New.
29165 (is_base_type): Use it.
29166 (gen_type_die_with_usage): Likewise.
29167
29168 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29169
29170 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
29171 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
29172 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
29173 -maltivec=be with LE targets.
29174 (vsx_mergeh_<mode>): Likewise.
29175 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
29176 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
29177 (altivec_vmrghb): Replace with define_expand and new
29178 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
29179 (altivec_vmrghb_direct): New define_insn.
29180 (altivec_vmrghh): Replace with define_expand and new
29181 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
29182 (altivec_vmrghh_direct): New define_insn.
29183 (altivec_vmrghw): Replace with define_expand and new
29184 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
29185 (altivec_vmrghw_direct): New define_insn.
29186 (*altivec_vmrghsf): Adjust for endianness.
29187 (altivec_vmrglb): Replace with define_expand and new
29188 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
29189 (altivec_vmrglb_direct): New define_insn.
29190 (altivec_vmrglh): Replace with define_expand and new
29191 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
29192 (altivec_vmrglh_direct): New define_insn.
29193 (altivec_vmrglw): Replace with define_expand and new
29194 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
29195 (altivec_vmrglw_direct): New define_insn.
29196 (*altivec_vmrglsf): Adjust for endianness.
29197 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29198 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29199 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29200 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29201 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29202 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29203 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29204 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29205
29206 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
29207
29208 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
29209 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
29210 whitespace.
29211
29212 2014-01-29 Richard Biener <rguenther@suse.de>
29213
29214 PR tree-optimization/58742
29215 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
29216 associate_pointerplus_align.
29217 (associate_pointerplus_diff): New function.
29218 (associate_pointerplus): Likewise. Call associate_pointerplus_align
29219 and associate_pointerplus_diff.
29220
29221 2014-01-29 Richard Biener <rguenther@suse.de>
29222
29223 * lto-streamer.h (LTO_major_version): Bump to 3.
29224 (LTO_minor_version): Reset to 0.
29225
29226 2014-01-29 Renlin Li <Renlin.Li@arm.com>
29227
29228 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
29229 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
29230 (arm_file_start): Generate correct asm header for armv7ve.
29231 * config/arm/bpabi.h: Add multilib support for armv7ve.
29232 * config/arm/driver-arm.c: Change the architectures of cortex-a7
29233 and cortex-a15 to armv7ve.
29234 * config/arm/t-aprofile: Add multilib support for armv7ve.
29235 * doc/invoke.texi: Document -march=armv7ve.
29236
29237 2014-01-29 Richard Biener <rguenther@suse.de>
29238
29239 PR tree-optimization/58742
29240 * tree-ssa-forwprop.c (associate_plusminus): Return true
29241 if we changed sth, defer EH cleanup to ...
29242 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
29243 (simplify_mult): New function.
29244
29245 2014-01-29 Jakub Jelinek <jakub@redhat.com>
29246
29247 PR middle-end/59917
29248 PR tree-optimization/59920
29249 * tree.c (build_common_builtin_nodes): Remove
29250 __builtin_setjmp_dispatcher initialization.
29251 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
29252 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
29253 instead of gsi_after_labels + manually skipping debug stmts.
29254 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
29255 ignore bbs with IFN_ABNORMAL_DISPATCHER.
29256 * tree-inline.c (copy_edges_for_bb): Remove
29257 can_make_abnormal_goto argument, instead add abnormal_goto_dest
29258 argument. Ignore computed_goto_p stmts. Don't call
29259 make_abnormal_goto_edges. If a call might need abnormal edges
29260 for non-local gotos, see if it already has an edge to
29261 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
29262 with true argument, don't do anything then, otherwise add
29263 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
29264 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
29265 caller.
29266 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
29267 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
29268 (lower_stmt): Don't set data->calls_builtin_setjmp.
29269 (lower_builtin_setjmp): Adjust comment.
29270 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
29271 * tree-cfg.c (found_computed_goto): Remove.
29272 (factor_computed_gotos): Remove.
29273 (make_goto_expr_edges): Return bool, true for computed gotos.
29274 Don't call make_abnormal_goto_edges.
29275 (build_gimple_cfg): Don't set found_computed_goto, don't call
29276 factor_computed_gotos.
29277 (computed_goto_p): No longer static.
29278 (make_blocks): Don't set found_computed_goto.
29279 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
29280 (make_edges): If make_goto_expr_edges returns true, push bb
29281 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
29282 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
29283 vector. Record mapping between bbs and OpenMP regions if there
29284 are any, adjust make_gimple_omp_edges caller. Call
29285 handle_abnormal_edges.
29286 (make_abnormal_goto_edges): Remove.
29287 * tree-cfg.h (make_abnormal_goto_edges): Remove.
29288 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
29289 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
29290 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
29291 * internal-fn.def (ABNORMAL_DISPATCHER): New.
29292 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
29293 filling *region also set *region_idx to (*region)->entry->index.
29294
29295 PR other/58712
29296 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
29297 For REGs set ORIGINAL_REGNO.
29298
29299 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
29300
29301 * doc/md.texi: Mention that a target shouldn't implement
29302 vec_widen_(s|u)mul_even/odd pair if it is less efficient
29303 than hi/lo pair.
29304
29305 2014-01-29 Jakub Jelinek <jakub@redhat.com>
29306
29307 PR tree-optimization/59594
29308 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
29309 a copy of the datarefs vector rather than the vector itself.
29310
29311 2014-01-28 Jason Merrill <jason@redhat.com>
29312
29313 PR c++/53756
29314 * dwarf2out.c (auto_die): New static.
29315 (gen_type_die_with_usage): Handle C++1y 'auto'.
29316 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
29317 on definition.
29318
29319 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
29320
29321 PR target/59672
29322 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
29323 (SPEC_X32): Likewise.
29324 (SPEC_64): Likewise.
29325 * config/i386/i386.c (ix86_option_override_internal): Turn off
29326 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
29327 for TARGET_16BIT.
29328 (x86_file_start): Output .code16gcc for TARGET_16BIT.
29329 * config/i386/i386.h (TARGET_16BIT): New macro.
29330 (TARGET_16BIT_P): Likewise.
29331 * config/i386/i386.opt: Add m16.
29332 * doc/invoke.texi: Document -m16.
29333
29334 2014-01-28 Jakub Jelinek <jakub@redhat.com>
29335
29336 PR preprocessor/59935
29337 * input.c (location_get_source_line): Bail out on when line number
29338 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29339
29340 2014-01-28 Richard Biener <rguenther@suse.de>
29341
29342 PR tree-optimization/58742
29343 * tree-ssa-forwprop.c (associate_plusminus): Handle
29344 pointer subtraction of the form (T)(P + A) - (T)P.
29345
29346 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29347
29348 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29349 at const_int_cost.
29350
29351 2014-01-28 Richard Biener <rguenther@suse.de>
29352
29353 Revert
29354 2014-01-28 Richard Biener <rguenther@suse.de>
29355
29356 PR rtl-optimization/45364
29357 PR rtl-optimization/59890
29358 * var-tracking.c (local_get_addr_clear_given_value): Handle
29359 already cleared slot.
29360 (val_reset): Handle not allocated local_get_addr_cache.
29361 (vt_find_locations): Use post-order on the inverted CFG.
29362
29363 2014-01-28 Richard Biener <rguenther@suse.de>
29364
29365 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29366
29367 2014-01-28 Richard Biener <rguenther@suse.de>
29368
29369 PR rtl-optimization/45364
29370 PR rtl-optimization/59890
29371 * var-tracking.c (local_get_addr_clear_given_value): Handle
29372 already cleared slot.
29373 (val_reset): Handle not allocated local_get_addr_cache.
29374 (vt_find_locations): Use post-order on the inverted CFG.
29375
29376 2014-01-28 Alan Modra <amodra@gmail.com>
29377
29378 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29379 * configure.ac <recursive call for build != host>: Define
29380 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29381 and LD_FOR_BUILD too.
29382 * configure: Regenerate.
29383
29384 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
29385
29386 * config/i386/i386.c (get_builtin_code_for_version): Separate
29387 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29388 Broadwell from Haswell.
29389
29390 2014-01-27 Steve Ellcey <sellcey@mips.com>
29391
29392 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29393 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29394 * config/mips/mips.c (mips_option_override): Change setting
29395 of TARGET_DSP.
29396 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29397 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29398 Change from Mask to Var.
29399
29400 2014-01-27 Jeff Law <law@redhat.com>
29401
29402 * ipa-inline.c (inline_small_functions): Fix typo.
29403
29404 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
29405
29406 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29407 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29408 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29409 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29410 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29411 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29412 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29413 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29414 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29415 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29416 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29417 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29418 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29419 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29420 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29421 (_mm512_storeu_epi64): Ditto.
29422 (_mm512_cmpge_epi32_mask): Ditto.
29423 (_mm512_cmpge_epu32_mask): Ditto.
29424 (_mm512_cmpge_epi64_mask): Ditto.
29425 (_mm512_cmpge_epu64_mask): Ditto.
29426 (_mm512_cmple_epi32_mask): Ditto.
29427 (_mm512_cmple_epu32_mask): Ditto.
29428 (_mm512_cmple_epi64_mask): Ditto.
29429 (_mm512_cmple_epu64_mask): Ditto.
29430 (_mm512_cmplt_epi32_mask): Ditto.
29431 (_mm512_cmplt_epu32_mask): Ditto.
29432 (_mm512_cmplt_epi64_mask): Ditto.
29433 (_mm512_cmplt_epu64_mask): Ditto.
29434 (_mm512_cmpneq_epi32_mask): Ditto.
29435 (_mm512_cmpneq_epu32_mask): Ditto.
29436 (_mm512_cmpneq_epi64_mask): Ditto.
29437 (_mm512_cmpneq_epu64_mask): Ditto.
29438 (_mm512_expand_pd): Ditto.
29439 (_mm512_expand_ps): Ditto.
29440 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29441 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29442 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29443 * config/i386/i386.c (ix86_builtins): Add
29444 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29445 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29446 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29447 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29448 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29449 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29450 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29451 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29452 IX86_BUILTIN_PMOVUSQW512_MEM.
29453 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29454 __builtin_ia32_pmovsqd512mem_mask,
29455 __builtin_ia32_pmovqd512mem_mask,
29456 __builtin_ia32_pmovusqw512mem_mask,
29457 __builtin_ia32_pmovsqw512mem_mask,
29458 __builtin_ia32_pmovqw512mem_mask,
29459 __builtin_ia32_pmovusdw512mem_mask,
29460 __builtin_ia32_pmovsdw512mem_mask,
29461 __builtin_ia32_pmovdw512mem_mask,
29462 __builtin_ia32_pmovqb512mem_mask,
29463 __builtin_ia32_pmovusqb512mem_mask,
29464 __builtin_ia32_pmovsqb512mem_mask,
29465 __builtin_ia32_pmovusdb512mem_mask,
29466 __builtin_ia32_pmovsdb512mem_mask,
29467 __builtin_ia32_pmovdb512mem_mask.
29468 (bdesc_args): Add __builtin_ia32_expanddf512,
29469 __builtin_ia32_expandsf512.
29470 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29471 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29472 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29473 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29474 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29475 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29476 (avx512f_<code>v8div16qi2_mask_store): This.
29477 (avx512f_expand<mode>): New.
29478
29479 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
29480
29481 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29482 New.
29483 (_mm512_mask_prefetch_i64gather_pd): Ditto.
29484 (_mm512_prefetch_i32scatter_pd): Ditto.
29485 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29486 (_mm512_prefetch_i64scatter_pd): Ditto.
29487 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29488 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29489 (_mm512_mask_prefetch_i64gather_ps): Ditto.
29490 (_mm512_prefetch_i32scatter_ps): Ditto.
29491 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29492 (_mm512_prefetch_i64scatter_ps): Ditto.
29493 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29494 * config/i386/i386-builtin-types.def: Define
29495 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29496 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29497 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29498 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29499 IX86_BUILTIN_SCATTERPFQPD.
29500 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29501 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29502 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29503 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29504 __builtin_ia32_scatterpfqps.
29505 (ix86_expand_builtin): Expand new built-ins.
29506 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29507 fix memory access data type.
29508 (*avx512pf_gatherpf<mode>_mask): Ditto.
29509 (*avx512pf_gatherpf<mode>): Ditto.
29510 (avx512pf_scatterpf<mode>): Ditto.
29511 (*avx512pf_scatterpf<mode>_mask): Ditto.
29512 (*avx512pf_scatterpf<mode>): Ditto.
29513 (GATHER_SCATTER_SF_MEM_MODE): New.
29514 (avx512pf_gatherpf<mode>df): Ditto.
29515 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29516 (*avx512pf_scatterpf<mode>df): Ditto.
29517
29518 2014-01-27 Jakub Jelinek <jakub@redhat.com>
29519
29520 PR bootstrap/59934
29521 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29522 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29523 reached.
29524
29525 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29526
29527 * common/config/arm/arm-common.c
29528 (arm_rewrite_mcpu): Handle multiple names.
29529 * config/arm/arm.h
29530 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29531
29532 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29533
29534 * gimple-builder.h (create_gimple_tmp): Delete.
29535
29536 2014-01-27 Christian Bruel <christian.bruel@st.com>
29537
29538 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29539 words comparisons.
29540
29541 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29542
29543 * config/pa/pa.md (call): Generate indirect long calls to non-local
29544 functions when outputing 32-bit code.
29545 (call_value): Likewise except for special call to buggy powf function.
29546
29547 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29548 portable runtime and PIC indirect calls.
29549 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29550 and PIC call sequences. Use ldo instead of blr to set return register
29551 in PIC call sequence.
29552
29553 2014-01-25 Walter Lee <walt@tilera.com>
29554
29555 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29556 avoid clobbering a live register.
29557
29558 2014-01-25 Walter Lee <walt@tilera.com>
29559
29560 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29561 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29562 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29563 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29564
29565 2014-01-25 Walter Lee <walt@tilera.com>
29566
29567 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29568 arguments on even registers.
29569 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29570 STACK_BOUNDARY.
29571 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29572 (BIGGEST_ALIGNMENT): Ditto.
29573 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29574
29575 2014-01-25 Walter Lee <walt@tilera.com>
29576
29577 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29578 insns before bundling.
29579 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29580
29581 2014-01-25 Walter Lee <walt@tilera.com>
29582
29583 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29584 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29585 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29586
29587 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29588
29589 * config/mips/constraints.md (kl): Delete.
29590 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29591 define expands, using...
29592 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29593 instructions for MIPS16.
29594 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29595 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29596
29597 2014-01-25 Walter Lee <walt@tilera.com>
29598
29599 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29600 (clzdi2): Ditto.
29601 (ffsdi2): Ditto.
29602
29603 2014-01-25 Walter Lee <walt@tilera.com>
29604
29605 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29606 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29607
29608 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29609
29610 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29611 Handle XOR.
29612
29613 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29614
29615 * print-rtl.c (in_call_function_usage): New var.
29616 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29617 EXPR_LIST mode as mode and not as reg note name.
29618
29619 PR middle-end/59561
29620 * cfgloopmanip.c (copy_loop_info): If
29621 loop->warned_aggressive_loop_optimizations, make sure
29622 the flag is set in target loop too.
29623
29624 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29625
29626 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29627 flag_cilkplus.
29628 * builtins.def: Likewise.
29629 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29630 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29631 * ira.c (ira_setup_eliminable_regset): Likewise.
29632 * omp-low.c (gate_expand_omp): Likewise.
29633 (execute_lower_omp): Likewise.
29634 (diagnose_sb_0): Likewise.
29635 (gate_diagnose_omp_blocks): Likewise.
29636 (simd_clone_clauses_extract): Likewise.
29637 (gate): Likewise.
29638
29639 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29640
29641 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29642 correction for little endian...
29643 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29644 here.
29645
29646 2014-01-24 Jeff Law <law@redhat.com>
29647
29648 PR tree-optimization/59919
29649 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29650 for non-returning calls.
29651
29652 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29653
29654 * common/config/aarch64/aarch64-common.c
29655 (aarch64_rewrite_mcpu): Handle multiple names.
29656 * config/aarch64/aarch64.h
29657 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29658
29659 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29660
29661 * input.c (add_file_to_cache_tab): Handle the case where fopen
29662 returns NULL.
29663
29664 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29665
29666 PR target/59929
29667 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29668 from push operand if code of push isn't PRE_DEC.
29669
29670 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29671
29672 PR target/59909
29673 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29674 -mquad-memory-atomic. Update -mquad-memory documentation to say
29675 it is only used for non-atomic loads/stores.
29676
29677 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29678 -mquad-memory or -mquad-memory-atomic switches.
29679
29680 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29681 -mquad-memory-atomic to ISA 2.07 support.
29682
29683 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29684 to separate support of normal quad word memory operations (ldq, stq)
29685 from the atomic quad word memory operations.
29686
29687 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29688 support to separate non-atomic quad word operations from atomic
29689 quad word operations. Disable non-atomic quad word operations in
29690 little endian mode so that we don't have to swap words after the
29691 load and before the store.
29692 (quad_load_store_p): Add comment about atomic quad word support.
29693 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29694 options printed with -mdebug=reg.
29695
29696 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29697 -mquad-memory-atomic as the test for whether we have quad word
29698 atomic instructions.
29699 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29700 or -mp8-vector are used, allow byte/half-word atomic operations.
29701
29702 * config/rs6000/sync.md (load_lockedti): Insure that the address
29703 is a proper indexed or indirect address for the lqarx instruction.
29704 On little endian systems, swap the hi/lo registers after the lqarx
29705 instruction.
29706 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29707 insure the address is valid for the lqarx instruction.
29708 (store_conditionalti): Insure that the address is a proper indexed
29709 or indirect address for the stqcrx. instruction. On little endian
29710 systems, swap the hi/lo registers before doing the stqcrx.
29711 instruction.
29712 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29713 insure the address is valid for the stqcrx. instruction.
29714
29715 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29716 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29717 type of quad memory support is available.
29718
29719 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29720
29721 PR regression/59915
29722 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29723 there is a danger of looping.
29724
29725 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29726
29727 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29728 force flag_ira_loop_pressure if set via command line.
29729
29730 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29731
29732 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29733 (ashr_simd): New builtin handling DI mode.
29734 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29735 (aarch64_sshr_simddi): New match pattern.
29736 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29737 (vshrd_n_s64): Likewise.
29738 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29739
29740 2014-01-23 Nick Clifton <nickc@redhat.com>
29741
29742 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29743 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29744 favour of mcu specific scripts.
29745 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29746 430x multilibs.
29747
29748 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29749 Alex Velenko <Alex.Velenko@arm.com>
29750
29751 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29752 (vaddv_s16): Likewise.
29753 (vaddv_s32): Likewise.
29754 (vaddv_u8): Likewise.
29755 (vaddv_u16): Likewise.
29756 (vaddv_u32): Likewise.
29757 (vaddvq_s8): Likewise.
29758 (vaddvq_s16): Likewise.
29759 (vaddvq_s32): Likewise.
29760 (vaddvq_s64): Likewise.
29761 (vaddvq_u8): Likewise.
29762 (vaddvq_u16): Likewise.
29763 (vaddvq_u32): Likewise.
29764 (vaddvq_u64): Likewise.
29765 (vaddv_f32): Likewise.
29766 (vaddvq_f32): Likewise.
29767 (vaddvq_f64): Likewise.
29768 (vmaxv_f32): Likewise.
29769 (vmaxv_s8): Likewise.
29770 (vmaxv_s16): Likewise.
29771 (vmaxv_s32): Likewise.
29772 (vmaxv_u8): Likewise.
29773 (vmaxv_u16): Likewise.
29774 (vmaxv_u32): Likewise.
29775 (vmaxvq_f32): Likewise.
29776 (vmaxvq_f64): Likewise.
29777 (vmaxvq_s8): Likewise.
29778 (vmaxvq_s16): Likewise.
29779 (vmaxvq_s32): Likewise.
29780 (vmaxvq_u8): Likewise.
29781 (vmaxvq_u16): Likewise.
29782 (vmaxvq_u32): Likewise.
29783 (vmaxnmv_f32): Likewise.
29784 (vmaxnmvq_f32): Likewise.
29785 (vmaxnmvq_f64): Likewise.
29786 (vminv_f32): Likewise.
29787 (vminv_s8): Likewise.
29788 (vminv_s16): Likewise.
29789 (vminv_s32): Likewise.
29790 (vminv_u8): Likewise.
29791 (vminv_u16): Likewise.
29792 (vminv_u32): Likewise.
29793 (vminvq_f32): Likewise.
29794 (vminvq_f64): Likewise.
29795 (vminvq_s8): Likewise.
29796 (vminvq_s16): Likewise.
29797 (vminvq_s32): Likewise.
29798 (vminvq_u8): Likewise.
29799 (vminvq_u16): Likewise.
29800 (vminvq_u32): Likewise.
29801 (vminnmv_f32): Likewise.
29802 (vminnmvq_f32): Likewise.
29803 (vminnmvq_f64): Likewise.
29804
29805 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29806
29807 * config/aarch64/aarch64-simd.md
29808 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29809 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29810 (*aarch64_mul3_elt<mode>): Likewise.
29811 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29812 (*aarch64_mul3_elt_to_64v2df): Likewise.
29813 (*aarch64_mla_elt<mode>): Likewise.
29814 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29815 (*aarch64_mls_elt<mode>): Likewise.
29816 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29817 (*aarch64_fma4_elt<mode>): Likewise.
29818 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29819 (*aarch64_fma4_elt_to_64v2df): Likewise.
29820 (*aarch64_fnma4_elt<mode>): Likewise.
29821 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29822 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29823 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29824 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29825 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29826 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29827 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29828 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29829 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29830
29831 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29832
29833 * config/aarch64/aarch64-simd.md
29834 (aarch64_be_checked_get_lane<mode>): New define_expand.
29835 * config/aarch64/aarch64-simd-builtins.def
29836 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29837 New builtin definition.
29838 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29839 Use new safe be builtin.
29840
29841 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29842
29843 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29844 New define_insn.
29845 (aarch64_be_st1<mode>): Likewise.
29846 (aarch_ld1<VALL:mode>): Define_expand modified.
29847 (aarch_st1<VALL:mode>): Likewise.
29848 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29849 (UNSPEC_ST1): Likewise.
29850
29851 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29852
29853 * config/microblaze/microblaze.md: Add trap insn and attribute
29854
29855 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29856
29857 PR preprocessor/58580
29858 * input.h (location_get_source_line): Take an additional line_size
29859 parameter.
29860 (void diagnostics_file_cache_fini): Declare new function.
29861 * input.c (struct fcache): New type.
29862 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29863 New static constants.
29864 (diagnostic_file_cache_init, total_lines_num)
29865 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29866 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29867 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29868 (get_next_line, read_next_line, goto_next_line, read_line_num):
29869 New static function definitions.
29870 (diagnostic_file_cache_fini): New function.
29871 (location_get_source_line): Take an additional output line_len
29872 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29873 read_line_num.
29874 * diagnostic.c (diagnostic_finish): Call
29875 diagnostic_file_cache_fini.
29876 (adjust_line): Take an additional input parameter for the length
29877 of the line, rather than calculating it with strlen.
29878 (diagnostic_show_locus): Adjust the use of
29879 location_get_source_line and adjust_line with respect to their new
29880 signature. While displaying a line now, do not stop at the first
29881 null byte. Rather, display the zero byte as a space and keep
29882 going until we reach the size of the line.
29883 * Makefile.in: Add vec.o to OBJS-libcommon
29884
29885 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29886 Ilya Tocar <ilya.tocar@intel.com>
29887
29888 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29889 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29890 (__builtin_ia32_kmov16): Ditto.
29891 * config/i386/i386.md (UNSPEC_KMOV): New.
29892 (kmovw): Ditto.
29893
29894 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29895
29896 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29897 (_mm512_storeu_si512): Ditto.
29898
29899 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29900
29901 PR target/52125
29902 * rtl.h (get_referenced_operands): Declare.
29903 * recog.c (get_referenced_operands): New function.
29904 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29905 operands have been referenced when recording LO_SUM references.
29906
29907 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29908
29909 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29910
29911 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29912
29913 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29914 Enable for generic and recent AMD targets.
29915
29916 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29917
29918 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29919 ARG_SIZE note when adjustment was eliminated.
29920
29921 2014-01-22 Jeff Law <law@redhat.com>
29922
29923 PR tree-optimization/59597
29924 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29925 in file. Accept new argument REGISTERING and use it to modify
29926 dump output appropriately.
29927 (register_jump_thread): Corresponding changes.
29928 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29929 thread paths involving joiner blocks. Add code to dump cancelled
29930 jump threading paths.
29931
29932 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29933
29934 PR rtl-optimization/59477
29935 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29936 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29937
29938 2014-01-22 Tom Tromey <tromey@redhat.com>
29939
29940 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29941 PARAMS.
29942 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29943
29944 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29945
29946 PR rtl-optimization/59896
29947 * lra-constraints.c (process_alt_operands): Check unused note for
29948 matched operands of insn with no output reloads.
29949
29950 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29951
29952 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29953 (mips_move_from_gpr_cost): Likewise.
29954
29955 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29956
29957 PR rtl-optimization/59858
29958 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29959 ira_class_hard_regs_num.
29960 (process_alt_operands): Increase reject for dying matched operand.
29961
29962 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29963
29964 PR target/59003
29965 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29966 smaller than size, perform several stores or loads and stores
29967 at dst + count - size to store or copy all of size bytes, rather
29968 than just last modesize bytes.
29969
29970 2014-01-20 DJ Delorie <dj@redhat.com>
29971
29972 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29973 that CLOBBERs are REGs before propogating their values.
29974
29975 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29976
29977 PR middle-end/59789
29978 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29979 (cgraph_inline_failed_type): New function.
29980 * cgraph.h (DEFCIFCODE): Add type.
29981 (cgraph_inline_failed_type_t): New enum.
29982 (cgraph_inline_failed_type): New prototype.
29983 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29984 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29985 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29986 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29987 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29988 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29989 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29990 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29991 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29992 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29993 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29994 OPTIMIZATION_MISMATCH.
29995 * tree-inline.c (expand_call_inline): Emit errors during
29996 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29997
29998 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29999
30000 PR target/59685
30001 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
30002 mode attribute in insn output.
30003
30004 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
30005
30006 * output.h (output_constant): Delete.
30007 * varasm.c (output_constant): Make private.
30008
30009 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
30010
30011 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
30012
30013 2014-01-20 Jakub Jelinek <jakub@redhat.com>
30014
30015 PR middle-end/59860
30016 * tree.h (fold_builtin_strcat): New prototype.
30017 * builtins.c (fold_builtin_strcat): No longer static. Add len
30018 argument, if non-NULL, don't call c_strlen. Optimize
30019 directly into __builtin_memcpy instead of __builtin_strcpy.
30020 (fold_builtin_2): Adjust fold_builtin_strcat caller.
30021 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
30022
30023 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
30024
30025 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30026 for SImode_address_operand operands, having only a REG argument.
30027
30028 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
30029
30030 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
30031 loader name using mbig-endian.
30032 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
30033
30034 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
30035
30036 * doc/invoke.texi (-march): Clarify documentation for AArch64.
30037 (-mtune): Likewise.
30038 (-mcpu): Likewise.
30039
30040 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
30041
30042 * config/aarch64/aarch64-protos.h
30043 (aarch64_cannot_change_mode_class_ptr): Declare.
30044 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
30045 aarch64_cannot_change_mode_class_ptr): New.
30046 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
30047 backend hook aarch64_cannot_change_mode_class.
30048
30049 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
30050
30051 * common/config/aarch64/aarch64-common.c
30052 (aarch64_handle_option): Don't handle any option order logic here.
30053 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
30054 selected_cpu, warn on architecture version mismatch.
30055 (aarch64_override_options): Fix parsing order for option strings.
30056
30057 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30058 Iain Sandoe <iain@codesourcery.com>
30059
30060 PR bootstrap/59496
30061 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
30062 warning. Amend comment to reflect current functionality.
30063
30064 2014-01-20 Richard Biener <rguenther@suse.de>
30065
30066 PR middle-end/59860
30067 * builtins.c (fold_builtin_strcat): Remove case better handled
30068 by tree-ssa-strlen.c.
30069
30070 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
30071
30072 * config/aarch64/aarch64.opt
30073 (mcpu, march, mtune): Make case-insensitive.
30074
30075 2014-01-20 Jakub Jelinek <jakub@redhat.com>
30076
30077 PR target/59880
30078 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30079 if operands[1] is a REG or ZERO_EXTEND of a REG.
30080
30081 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
30082
30083 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
30084
30085 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
30086
30087 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
30088 long non-pic millicode calls.
30089
30090 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30091
30092 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
30093
30094 2014-01-19 Kito Cheng <kito@0xlab.org>
30095
30096 * builtins.c (expand_movstr): Check movstr expand done or fail.
30097
30098 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
30099 H.J. Lu <hongjiu.lu@intel.com>
30100
30101 PR target/59379
30102 * config/i386/i386.md (*lea<mode>): Zero-extend return register
30103 to DImode for zero-extended addresses.
30104
30105 2014-01-19 Jakub Jelinek <jakub@redhat.com>
30106
30107 PR rtl-optimization/57763
30108 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
30109 on the new indirect jump_insn and increment LABEL_NUSES (label).
30110
30111 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
30112
30113 PR bootstrap/59580
30114 PR bootstrap/59583
30115 * config.gcc (x86_archs): New variable.
30116 (x86_64_archs): Likewise.
30117 (x86_cpus): Likewise.
30118 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
30119 --with-arch/--with-cpu= options.
30120 Support --with-arch=/--with-cpu={nehalem,westmere,
30121 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
30122
30123 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
30124
30125 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
30126 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
30127
30128 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
30129
30130 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
30131
30132 2014-01-18 Jakub Jelinek <jakub@redhat.com>
30133
30134 PR target/58944
30135 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
30136 clear cpp_get_options (parse_in)->warn_unused_macros for
30137 ix86_target_macros_internal with cpp_define.
30138
30139 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
30140
30141 * jump.c (delete_related_insns): Keep (use (insn))s.
30142 * reorg.c (redundant_insn): Check for barriers too.
30143
30144 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
30145
30146 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
30147
30148 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
30149
30150 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
30151 call to $$dyncall when TARGET_LONG_CALLS is true.
30152
30153 2014-01-17 Jeff Law <law@redhat.com>
30154
30155 * ree.c (combine_set_extension): Temporarily disable test for
30156 changing number of hard registers.
30157
30158 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
30159
30160 PR middle-end/58125
30161 * ipa-inline-analysis.c (inline_free_summary):
30162 Do not free summary of aliases.
30163
30164 2014-01-17 Jakub Jelinek <jakub@redhat.com>
30165
30166 PR middle-end/59706
30167 * gimplify.c (gimplify_expr): Use create_tmp_var
30168 instead of create_tmp_var_raw. If cond doesn't have
30169 integral type, don't add the IFN_ANNOTATE builtin at all.
30170
30171 2014-01-17 Martin Jambor <mjambor@suse.cz>
30172
30173 PR ipa/59736
30174 * ipa-cp.c (prev_edge_clone): New variable.
30175 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
30176 Also resize prev_edge_clone vector.
30177 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
30178 (ipcp_edge_removal_hook): New function.
30179 (ipcp_driver): Register ipcp_edge_removal_hook.
30180
30181 2014-01-17 Andrew Pinski <apinski@cavium.com>
30182 Steve Ellcey <sellcey@mips.com>
30183
30184 PR target/59462
30185 * config/mips/mips.c (mips_print_operand): Check operand mode instead
30186 of operator mode.
30187
30188 2014-01-17 Jeff Law <law@redhat.com>
30189
30190 PR middle-end/57904
30191 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
30192 so that pass_ccp runs first.
30193
30194 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
30195
30196 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
30197 (ix86_adjust_cost): Use !TARGET_XXX.
30198 (do_reorder_for_imul): Likewise.
30199 (swap_top_of_ready_list): Likewise.
30200 (ix86_sched_reorder): Likewise.
30201
30202 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
30203
30204 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30205 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
30206 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
30207 (intel_memset): New. Duplicate slm_memset.
30208 (intel_cost): New. Duplicate slm_cost.
30209 (m_INTEL): New macro.
30210 (processor_target_table): Add "intel".
30211 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
30212 with PROCESSOR_INTEL for "intel".
30213 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
30214 PROCESSOR_SILVERMONT.
30215 (ix86_issue_rate): Likewise.
30216 (ix86_adjust_cost): Likewise.
30217 (ia32_multipass_dfa_lookahead): Likewise.
30218 (swap_top_of_ready_list): Likewise.
30219 (ix86_sched_reorder): Likewise.
30220 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
30221 instead of TARGET_OPT_AGU.
30222 * config/i386/i386.h (TARGET_INTEL): New.
30223 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
30224 (processor_type): Add PROCESSOR_INTEL.
30225 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
30226 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
30227
30228 2014-01-17 Marek Polacek <polacek@redhat.com>
30229
30230 PR c/58346
30231 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
30232 size is zero.
30233
30234 2014-01-17 Richard Biener <rguenther@suse.de>
30235
30236 PR tree-optimization/46590
30237 * opts.c (default_options_table): Add entries for
30238 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
30239 all enabled at -O1 but not for -Og.
30240 * common.opt (fbranch-count-reg): Remove Init(1).
30241 (fmove-loop-invariants): Likewise.
30242 (ftree-pta): Likewise.
30243
30244 2014-01-17 Jakub Jelinek <jakub@redhat.com>
30245
30246 * config/i386/i386.c (ix86_data_alignment): For compatibility with
30247 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
30248 decls to at least the GCC 4.8 used alignments.
30249
30250 PR fortran/59440
30251 * tree-nested.c (convert_nonlocal_reference_stmt,
30252 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
30253 of GIMPLE_BIND stmts, adjust associated decls.
30254
30255 2014-01-17 Richard Biener <rguenther@suse.de>
30256
30257 PR tree-optimization/46590
30258 * vec.h (vec<>::bseach): New member function implementing
30259 binary search according to C89 bsearch.
30260 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
30261 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
30262 bitmap pointer again. Make accesses_in_loop a flat array.
30263 (mem_ref_obstack): New global.
30264 (outermost_indep_loop): Adjust for mem_ref->stored changes.
30265 (mark_ref_stored): Likewise.
30266 (ref_indep_loop_p_2): Likewise.
30267 (set_ref_stored_in_loop): New helper function.
30268 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
30269 (memref_free): Adjust.
30270 (record_mem_ref_loc): Simplify.
30271 (gather_mem_refs_stmt): Adjust.
30272 (sort_locs_in_loop_postorder_cmp): New function.
30273 (analyze_memory_references): Sort accesses_in_loop after
30274 loop postorder number.
30275 (find_ref_loc_in_loop_cmp): New function.
30276 (for_all_locs_in_loop): Find relevant cluster of locs in
30277 accesses_in_loop and iterate without recursion.
30278 (execute_sm): Avoid uninit warning.
30279 (struct ref_always_accessed): Simplify.
30280 (ref_always_accessed::operator ()): Likewise.
30281 (ref_always_accessed_p): Likewise.
30282 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
30283 loop postorder numbers here.
30284 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
30285 numbers.
30286
30287 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
30288
30289 PR c++/57945
30290 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
30291 on decls for which assemble_alias has been called.
30292
30293 2014-01-17 Nick Clifton <nickc@redhat.com>
30294
30295 * config/msp430/msp430.opt: (mcpu): New option.
30296 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
30297 (msp430_option_override): Parse target_cpu. If the MCU name
30298 matches a generic string, clear target_mcu.
30299 (msp430_attr): Allow numeric interrupt values up to 63.
30300 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
30301 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
30302 option.
30303 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
30304 Add mcpu matches.
30305 * config/msp430/msp430.md (popm): Use %J rather than %I.
30306 (addsi3): Use msp430_nonimmediate_operand for operand 2.
30307 (addhi_cy_i): Use immediate_operand for operand 2.
30308 * doc/invoke.texi: Document -mcpu option.
30309
30310 2014-01-17 Richard Biener <rguenther@suse.de>
30311
30312 PR rtl-optimization/38518
30313 * df.h (df_analyze_loop): Declare.
30314 * df-core.c: Include cfgloop.h.
30315 (df_analyze_1): Split out main part of df_analyze.
30316 (df_analyze): Adjust.
30317 (loop_inverted_post_order_compute): New function.
30318 (loop_post_order_compute): Likewise.
30319 (df_analyze_loop): New function avoiding whole-function
30320 postorder computes.
30321 * loop-invariant.c (find_defs): Use df_analyze_loop.
30322 (find_invariants): Adjust.
30323 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
30324
30325 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
30326
30327 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
30328 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30329
30330 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30331
30332 * ipa-ref.c (ipa_remove_stmt_references): Fix references
30333 traversal when removing references.
30334
30335 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
30336
30337 PR ipa/59775
30338 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30339
30340 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
30341
30342 PR middle-end/56791
30343 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30344 pushing a reload for an autoinc when we had previously reloaded an
30345 inner part of the address.
30346
30347 2014-01-16 Jakub Jelinek <jakub@redhat.com>
30348
30349 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30350 field.
30351 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30352 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30353 when not giving up or versioning for alias only because of
30354 loop->safelen.
30355 (vect_analyze_data_ref_dependences): Set to true.
30356 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30357 is a GIMPLE_PHI.
30358 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30359 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30360 to the condition.
30361
30362 PR middle-end/58344
30363 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30364
30365 PR target/59839
30366 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30367 operand 0 predicate for gathers, use a new pseudo as subtarget.
30368
30369 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30370
30371 PR middle-end/59609
30372 * lra-constraints.c (process_alt_operands): Add printing debug info.
30373 Check absence of input/output reloads for matched operands too.
30374
30375 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30376
30377 PR rtl-optimization/59835
30378 * ira.c (ira_init_register_move_cost): Increase cost for
30379 impossible modes.
30380
30381 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
30382
30383 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30384
30385 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
30386
30387 PR target/59780
30388 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30389 non-register objects. Use gen_(high/low)part more consistently.
30390 Fix assertions.
30391
30392 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
30393
30394 PR target/59844
30395 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30396 endian support, remove tests for WORDS_BIG_ENDIAN.
30397 (p8_mfvsrd_3_<mode>): Likewise.
30398 (reload_gpr_from_vsx<mode>): Likewise.
30399 (reload_gpr_from_vsxsf): Likewise.
30400 (p8_mfvsrd_4_disf): Likewise.
30401
30402 2014-01-16 Richard Biener <rguenther@suse.de>
30403
30404 PR rtl-optimization/46590
30405 * lcm.c (compute_antinout_edge): Use postorder iteration.
30406 (compute_laterin): Use inverted postorder iteration.
30407
30408 2014-01-16 Nick Clifton <nickc@redhat.com>
30409
30410 PR middle-end/28865
30411 * varasm.c (output_constant): Return the number of bytes actually
30412 emitted.
30413 (output_constructor_array_range): Update the field size with the
30414 number of bytes emitted by output_constant.
30415 (output_constructor_regular_field): Likewise. Also do not
30416 complain if the total number of bytes emitted is now greater
30417 than the expected fieldpos.
30418 * output.h (output_constant): Update prototype and descriptive comment.
30419
30420 2014-01-16 Marek Polacek <polacek@redhat.com>
30421
30422 PR middle-end/59827
30423 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30424 it is error_mark_node.
30425
30426 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
30427
30428 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30429 VALID_AVX256_REG_OR_OI_MODE.
30430
30431 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
30432
30433 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30434 current procedure should be profiled.
30435
30436 2014-01-15 Andrew Pinski <apinski@cavium.com>
30437
30438 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30439 of moving from/to the STACK_REG register class.
30440
30441 2014-01-15 Richard Henderson <rth@redhat.com>
30442
30443 PR debug/54694
30444 * reginfo.c (global_regs_decl): Globalize.
30445 * rtl.h (global_regs_decl): Declare.
30446 * ira.c (do_reload): Diagnose frame_pointer_needed and it
30447 reserved via global_regs.
30448
30449 2014-01-15 Teresa Johnson <tejohnson@google.com>
30450
30451 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30452
30453 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
30454
30455 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30456 and vmulosh rather than call gen_vec_widen_smult_*.
30457 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30458 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30459 (vec_widen_smult_even_v16qi): Likewise.
30460 (vec_widen_umult_even_v8hi): Likewise.
30461 (vec_widen_smult_even_v8hi): Likewise.
30462 (vec_widen_umult_odd_v16qi): Likewise.
30463 (vec_widen_smult_odd_v16qi): Likewise.
30464 (vec_widen_umult_odd_v8hi): Likewise.
30465 (vec_widen_smult_odd_v8hi): Likewise.
30466 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30467 vmuloub rather than call gen_vec_widen_umult_*.
30468 (vec_widen_umult_lo_v16qi): Likewise.
30469 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30470 vmulosb rather than call gen_vec_widen_smult_*.
30471 (vec_widen_smult_lo_v16qi): Likewise.
30472 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30473 rather than call gen_vec_widen_umult_*.
30474 (vec_widen_umult_lo_v8hi): Likewise.
30475 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30476 rather than call gen_vec_widen_smult_*.
30477 (vec_widen_smult_lo_v8hi): Likewise.
30478
30479 2014-01-15 Jeff Law <law@redhat.com>
30480
30481 PR tree-optimization/59747
30482 * ree.c (find_and_remove_re): Properly handle case where a second
30483 eliminated extension requires widening a copy created for elimination
30484 of a prior extension.
30485 (combine_set_extension): Ensure that the number of hard regs needed
30486 for a destination register does not change when we widen it.
30487
30488 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30489
30490 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30491 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30492 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30493 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30494 (avr-*-rtems*): Likewise.
30495 (bfin*-rtems*): Likewise.
30496 (moxie-*-rtems*): Likewise.
30497 (h8300-*-rtems*): Likewise.
30498 (i[34567]86-*-rtems*): Likewise.
30499 (lm32-*-rtems*): Likewise.
30500 (m32r-*-rtems*): Likewise.
30501 (m68k-*-rtems*): Likewise.
30502 (microblaze*-*-rtems*): Likewise.
30503 (mips*-*-rtems*): Likewise.
30504 (powerpc-*-rtems*): Likewise.
30505 (sh-*-rtems*): Likewise.
30506 (sparc-*-rtems*): Likewise.
30507 (sparc64-*-rtems*): Likewise.
30508 (v850-*-rtems*): Likewise.
30509 (m32c-*-rtems*): Likewise.
30510
30511 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
30512
30513 PR rtl-optimization/59511
30514 * ira.c (ira_init_register_move_cost): Use memory costs for some
30515 cases of register move cost calculations.
30516 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30517 instead of BB frequency.
30518 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30519 * lra-assigns.c (find_hard_regno_for): Ditto.
30520
30521 2014-01-15 Richard Biener <rguenther@suse.de>
30522
30523 PR tree-optimization/59822
30524 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30525 (vectorizable_load): Use it to hoist defs of uses of invariant
30526 loads out of the loop.
30527
30528 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30529 Kugan Vivekanandarajah <kuganv@linaro.org>
30530
30531 PR target/59695
30532 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30533 truncation.
30534
30535 2014-01-15 Richard Biener <rguenther@suse.de>
30536
30537 PR rtl-optimization/59802
30538 * lcm.c (compute_available): Use inverted postorder to seed
30539 the initial worklist.
30540
30541 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30542
30543 PR target/59803
30544 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30545 ADDR_REGS for invalid symrefs in non-PIC code.
30546
30547 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30548
30549 PR other/58712
30550 * builtins.c (determine_block_size): Initialize *probable_max_size
30551 even if len_rtx is CONST_INT.
30552
30553 2014-01-14 Andrew Pinski <apinski@cavium.com>
30554
30555 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30556 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30557 (cortexa53_tunings): Likewise.
30558 (aarch64_sched_issue_rate): New function.
30559 (TARGET_SCHED_ISSUE_RATE): Define.
30560
30561 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30562
30563 * ira-costs.c (find_costs_and_classes): Add missed
30564 ira_init_register_move_cost_if_necessary.
30565
30566 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30567
30568 PR target/59787
30569 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30570
30571 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30572
30573 PR target/59794
30574 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30575 to indicate if type is used for function return value. Warn ABI
30576 change if the vector mode isn't available for function return value.
30577 (ix86_function_arg_advance): Pass false to type_natural_mode.
30578 (ix86_function_arg): Likewise.
30579 (ix86_gimplify_va_arg): Likewise.
30580 (function_arg_32): Don't warn ABI change.
30581 (ix86_function_value): Pass true to type_natural_mode.
30582 (ix86_return_in_memory): Likewise.
30583 (ix86_struct_value_rtx): Removed.
30584 (TARGET_STRUCT_VALUE_RTX): Likewise.
30585
30586 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30587
30588 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30589 converting a conditional jump into a conditional return.
30590
30591 2014-01-14 Richard Biener <rguenther@suse.de>
30592
30593 PR tree-optimization/58921
30594 PR tree-optimization/59006
30595 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30596 hoisting invariant stmts.
30597 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30598 invariant loads on the preheader edge if possible.
30599
30600 2014-01-14 Joey Ye <joey.ye@arm.com>
30601
30602 * doc/plugin.texi (Building GCC plugins): Update to C++.
30603
30604 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30605
30606 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30607 (_mm_rcp28_round_ss): Ditto.
30608 (_mm_rsqrt28_round_sd): Ditto.
30609 (_mm_rsqrt28_round_ss): Ditto.
30610 (_mm_rcp28_sd): Ditto.
30611 (_mm_rcp28_ss): Ditto.
30612 (_mm_rsqrt28_sd): Ditto.
30613 (_mm_rsqrt28_ss): Ditto.
30614 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30615 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30616 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30617 (IX86_BUILTIN_RCP28SD): Ditto.
30618 (IX86_BUILTIN_RCP28SS): Ditto.
30619 (IX86_BUILTIN_RSQRT28SD): Ditto.
30620 (IX86_BUILTIN_RSQRT28SS): Ditto.
30621 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30622 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30623 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30624 (ix86_expand_special_args_builtin): Expand new FTYPE.
30625 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30626 (srcp14<mode>): Make insn unary.
30627 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30628 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30629 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30630 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30631 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30632 Fix rounding: make it SAE only.
30633 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30634 Ditto.
30635 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30636 Ditto.
30637 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30638 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30639 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30640 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30641 (round_saeonly_mask_scalar_operand4): Ditto.
30642 (round_saeonly_mask_scalar_op3): Ditto.
30643 (round_saeonly_mask_scalar_op4): Ditto.
30644
30645 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30646
30647 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30648 Implement -maltivec=be for vec_insert and vec_extract.
30649
30650 2014-01-10 DJ Delorie <dj@redhat.com>
30651
30652 * config/msp430/msp430.md (call_internal): Don't allow memory
30653 references with SP as the base register.
30654 (call_value_internal): Likewise.
30655 * config/msp430/constraints.md (Yc): New. For memory references
30656 that don't use SP as a base register.
30657
30658 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30659 "an integer without a # prefix"
30660 * config/msp430/msp430.md (epilogue_helper): Use it.
30661
30662 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30663
30664 PR target/59617
30665 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30666 AVX512F gather builtins.
30667 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30668 on gather decls with INTEGER_TYPE masktype.
30669 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30670 directly into the builtin rather than hoisting it before loop.
30671
30672 PR tree-optimization/59387
30673 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30674 (scev_const_prop): If folded_casts and type has undefined overflow,
30675 use force_gimple_operand instead of force_gimple_operand_gsi and
30676 for each added stmt if it is assign with
30677 arith_code_with_undefined_signed_overflow, call
30678 rewrite_to_defined_overflow.
30679 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30680 gimple-fold.h instead.
30681 (arith_code_with_undefined_signed_overflow,
30682 rewrite_to_defined_overflow): Moved to ...
30683 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30684 rewrite_to_defined_overflow): ... here. No longer static.
30685 Include gimplify-me.h.
30686 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30687 rewrite_to_defined_overflow): New prototypes.
30688
30689 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30690
30691 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30692
30693 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30694
30695 * builtins.c (get_object_alignment_2): Minor tweak.
30696 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30697
30698 2014-01-13 Christian Bruel <christian.bruel@st.com>
30699
30700 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30701 optimized non constant lengths.
30702
30703 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30704
30705 PR libgomp/59194
30706 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30707 load as __atomic_load_N if possible.
30708
30709 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30710
30711 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30712 target parameter.
30713 (rs6000_expand_builtin): Adjust call.
30714
30715 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30716
30717 PR target/58115
30718 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30719 * config/rs6000/rs6000.c: Include target-globals.h.
30720 (rs6000_set_current_function): Instead of doing target_reinit
30721 unconditionally, use save_target_globals_default_opts and
30722 restore_target_globals.
30723
30724 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30725 FPSCR.
30726 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30727 (rs6000_expand_builtin): Handle mffs and mtfsf.
30728 (rs6000_init_builtins): Define mffs and mtfsf.
30729 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30730 (rs6000_mffs): New pattern.
30731 (rs6000_mtfsf): New pattern.
30732
30733 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30734
30735 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30736 Start narrowing with START. Apply candidate-use pair
30737 and check overall cost in narrowing.
30738 (iv_ca_prune): Pass new argument.
30739
30740 2014-01-10 Jeff Law <law@redhat.com>
30741
30742 PR middle-end/59743
30743 * ree.c (combine_reaching_defs): Ensure the defining statement
30744 occurs before the extension when optimizing extensions with
30745 different source and destination hard registers.
30746
30747 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30748
30749 PR ipa/58585
30750 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30751 vtables into the type inheritance graph.
30752
30753 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30754
30755 PR rtl-optimization/59754
30756 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30757 modes in the REGNO != REGNO case.
30758
30759 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30760
30761 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30762
30763 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30764
30765 PR tree-optimization/59745
30766 * tree-predcom.c (tree_predictive_commoning_loop): Call
30767 free_affine_expand_cache if giving up because components is NULL.
30768
30769 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30770 GC in payload of target_globals struct instead of allocating them on
30771 the heap and the larger structs separately using GC.
30772 * target-globals.h (struct target_globals): Make regs, hard_regs,
30773 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30774 of GTY((skip)) and change type to void *.
30775 (reset_target_globals): Cast loads from those fields to corresponding
30776 types.
30777
30778 2014-01-10 Steve Ellcey <sellcey@mips.com>
30779
30780 PR plugins/59335
30781 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30782 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30783 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30784
30785 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30786
30787 PR target/59744
30788 * aarch64-modes.def (CC_Zmode): New flags mode.
30789 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30790 represents an equality.
30791 (aarch64_get_condition_code): Handle CC_Zmode.
30792 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30793
30794 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30795
30796 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30797 extraction in good case.
30798
30799 2014-01-10 Richard Biener <rguenther@suse.de>
30800
30801 PR tree-optimization/59374
30802 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30803 checking after SLP discovery. Mark stmts not participating
30804 in any SLP instance properly.
30805
30806 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30807
30808 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30809 when handling a SET rtx.
30810
30811 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30812
30813 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30814 (cortex-a57): Likewise.
30815 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30816
30817 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30818
30819 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30820 non-iwmmxt builtins.
30821
30822 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30823
30824 PR ipa/58252
30825 PR ipa/59226
30826 * ipa-devirt.c record_target_from_binfo): Take as argument
30827 stack of binfos and lookup matching one for virtual inheritance.
30828 (possible_polymorphic_call_targets_1): Update.
30829
30830 2014-01-10 Huacai Chen <chenhc@lemote.com>
30831
30832 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30833 kernel strings for Loongson-2E/2F/3A.
30834
30835 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30836
30837 PR middle-end/59670
30838 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30839 is_gimple_call before calling gimple_call_internal_p.
30840
30841 2014-01-09 Steve Ellcey <sellcey@mips.com>
30842
30843 * Makefile.in (TREE_FLOW_H): Remove.
30844 (TREE_SSA_H): Add file names from tree-flow.h.
30845 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30846 * tree.h: Remove tree-flow.h reference.
30847 * hash-table.h: Remove tree-flow.h reference.
30848 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30849 reference with tree-ssa-loop.h.
30850
30851 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30852
30853 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30854 default element-order behavior for -maltivec.
30855 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30856 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30857 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30858 when targeting big endian, at least for now.
30859 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30860
30861 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30862
30863 PR middle-end/47735
30864 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30865 var satisfies use_register_for_decl, just take into account type
30866 alignment, rather than decl alignment.
30867
30868 PR tree-optimization/59622
30869 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30870 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30871 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30872 Don't devirtualize for inplace at all. For targets.length () == 1,
30873 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30874
30875 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30876
30877 * config/i386/i386.md (cpu): Remove the unused btver1.
30878
30879 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30880
30881 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30882
30883 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30884
30885 PR target/58115
30886 * tree-core.h (struct target_globals): New forward declaration.
30887 (struct tree_target_option): Add globals field.
30888 * tree.h (TREE_TARGET_GLOBALS): Define.
30889 (prepare_target_option_nodes_for_pch): New prototype.
30890 * target-globals.h (struct target_globals): Define even if
30891 !SWITCHABLE_TARGET.
30892 * tree.c (prepare_target_option_node_for_pch,
30893 prepare_target_option_nodes_for_pch): New functions.
30894 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30895 * config/i386/i386.c: Include target-globals.h.
30896 (ix86_set_current_function): Instead of doing target_reinit
30897 unconditionally, use save_target_globals_default_opts and
30898 restore_target_globals.
30899
30900 2014-01-09 Richard Biener <rguenther@suse.de>
30901
30902 PR tree-optimization/59715
30903 * tree-cfg.h (split_critical_edges): Declare.
30904 * tree-cfg.c (split_critical_edges): Export.
30905 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30906
30907 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30908
30909 * cfgexpand.c (expand_stack_vars): Optionally disable
30910 asan stack protection.
30911 (expand_used_vars): Likewise.
30912 (partition_stack_vars): Likewise.
30913 * asan.c (asan_emit_stack_protection): Optionally disable
30914 after return stack usage.
30915 (instrument_derefs): Optionally disable memory access instrumentation.
30916 (instrument_builtin_call): Likewise.
30917 (instrument_strlen_call): Likewise.
30918 (asan_protect_global): Optionally disable global variables protection.
30919 * doc/invoke.texi: Added doc for new options.
30920 * params.def: Added new options.
30921 * params.h: Likewise.
30922
30923 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30924
30925 PR rtl-optimization/59724
30926 * ifcvt.c (cond_exec_process_if_block): Don't call
30927 flow_find_head_matching_sequence with 0 longest_match.
30928 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30929 non-active insns if !stop_after.
30930 (try_head_merge_bb): Revert 2014-01-07 changes.
30931
30932 2014-01-08 Jeff Law <law@redhat.com>
30933
30934 * ree.c (get_sub_rtx): New function, extracted from...
30935 (merge_def_and_ext): Here.
30936 (combine_reaching_defs): Use get_sub_rtx.
30937
30938 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30939
30940 * cgraph.h (varpool_variable_node): Do not choke on null node.
30941
30942 2014-01-08 Catherine Moore <clm@codesourcery.com>
30943
30944 * config/mips/mips.md (simple_return): Attempt to use JRC
30945 for microMIPS.
30946 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30947
30948 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30949
30950 PR rtl-optimization/59137
30951 * reorg.c (steal_delay_list_from_target): Call update_block for
30952 elided insns.
30953 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30954
30955 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30956
30957 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30958 two duplicate entries.
30959
30960 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30961
30962 Revert:
30963 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30964
30965 * config/mips/mips.c (mips_truncated_op_cost): New function.
30966 (mips_rtx_costs): Adjust test for BADDU.
30967 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30968
30969 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30970
30971 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30972 (*baddu_si): ...this new pattern.
30973
30974 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30975
30976 PR ipa/59722
30977 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30978
30979 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30980
30981 PR middle-end/57748
30982 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30983 inner_reference_p.
30984 (expand_expr, expand_normal): Adjust.
30985 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30986 inner_reference_p. Use inner_reference_p to expand inner references.
30987 (store_expr): Adjust.
30988 * cfgexpand.c (expand_call_stmt): Adjust.
30989
30990 2014-01-08 Rong Xu <xur@google.com>
30991
30992 * gcov-io.c (gcov_var): Move from gcov-io.h.
30993 (gcov_position): Ditto.
30994 (gcov_is_error): Ditto.
30995 (gcov_rewrite): Ditto.
30996 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30997 only part to libgcc/libgcov.h.
30998
30999 2014-01-08 Marek Polacek <polacek@redhat.com>
31000
31001 PR middle-end/59669
31002 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
31003
31004 2014-01-08 Marek Polacek <polacek@redhat.com>
31005
31006 PR sanitizer/59667
31007 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
31008
31009 2014-01-08 Jakub Jelinek <jakub@redhat.com>
31010
31011 PR rtl-optimization/59649
31012 * stor-layout.c (get_mode_bounds): For BImode return
31013 0 and STORE_FLAG_VALUE.
31014
31015 2014-01-08 Richard Biener <rguenther@suse.de>
31016
31017 PR middle-end/59630
31018 * gimple.h (is_gimple_builtin_call): Remove.
31019 (gimple_builtin_call_types_compatible_p): New.
31020 (gimple_call_builtin_p): New overload.
31021 * gimple.c (is_gimple_builtin_call): Remove.
31022 (validate_call): Rename to ...
31023 (gimple_builtin_call_types_compatible_p): ... this and export. Also
31024 check return types.
31025 (validate_type): New static function.
31026 (gimple_call_builtin_p): New overload and adjust.
31027 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
31028 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
31029 (gimple_fold_stmt_to_constant_1): Likewise.
31030 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
31031
31032 2014-01-08 Richard Biener <rguenther@suse.de>
31033
31034 PR middle-end/59471
31035 * gimplify.c (gimplify_expr): Gimplify register-register type
31036 VIEW_CONVERT_EXPRs to separate stmts.
31037
31038 2014-01-07 Jeff Law <law@redhat.com>
31039
31040 PR middle-end/53623
31041 * ree.c (combine_set_extension): Handle case where source
31042 and destination registers in an extension insn are different.
31043 (combine_reaching_defs): Allow source and destination registers
31044 in extension to be different under limited circumstances.
31045 (add_removable_extension): Remove restriction that the
31046 source and destination registers in the extension are the same.
31047 (find_and_remove_re): Emit a copy from the extension's
31048 destination to its source after the defining insn if
31049 the source and destination registers are different.
31050
31051 PR middle-end/59285
31052 * ifcvt.c (merge_if_block): If we are merging a block with more than
31053 one successor with a block with no successors, remove any BARRIER
31054 after the second block.
31055
31056 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
31057
31058 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
31059
31060 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
31061
31062 PR target/59652
31063 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
31064 for 14-bit register offsets when INT14_OK_STRICT is false.
31065
31066 2014-01-07 Roland Stigge <stigge@antcom.de>
31067 Michael Meissner <meissner@linux.vnet.ibm.com>
31068
31069 PR 57386/target
31070 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
31071 Only check TFmode for SPE constants. Don't check TImode or TDmode.
31072
31073 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
31074
31075 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
31076 -mcpu.
31077
31078 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
31079
31080 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
31081 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
31082 rtx is const0_rtx or not.
31083
31084 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
31085
31086 PR target/58115
31087 * target-globals.c (save_target_globals): Remove this_fn_optab
31088 handling.
31089 * toplev.c: Include optabs.h.
31090 (target_reinit): Temporarily restore the global options if another
31091 set of options are in force.
31092
31093 2014-01-07 Jakub Jelinek <jakub@redhat.com>
31094
31095 PR rtl-optimization/58668
31096 * cfgcleanup.c (flow_find_cross_jump): Don't count
31097 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
31098 to determine what is counted.
31099 (flow_find_head_matching_sequence): Use active_insn_p to determine
31100 what is counted.
31101 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
31102 counting change.
31103 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
31104 determine what is counted.
31105
31106 PR tree-optimization/59643
31107 * tree-predcom.c (split_data_refs_to_components): If one dr is
31108 read and one write, determine_offset fails and the write isn't
31109 in the bad component, just put the read into the bad component.
31110
31111 2014-01-07 Mike Stump <mikestump@comcast.net>
31112 Jakub Jelinek <jakub@redhat.com>
31113
31114 PR pch/59436
31115 * tree-core.h (struct tree_optimization_option): Change optabs
31116 type from unsigned char * to void *.
31117 * optabs.c (init_tree_optimization_optabs): Adjust
31118 TREE_OPTIMIZATION_OPTABS initialization.
31119
31120 2014-01-06 Jakub Jelinek <jakub@redhat.com>
31121
31122 PR target/59644
31123 * config/i386/i386.h (struct machine_function): Add
31124 no_drap_save_restore field.
31125 * config/i386/i386.c (ix86_save_reg): Use
31126 !cfun->machine->no_drap_save_restore instead of
31127 crtl->stack_realign_needed.
31128 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
31129 this function clears frame_pointer_needed. Set
31130 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
31131 and DRAP reg is needed.
31132
31133 2014-01-06 Marek Polacek <polacek@redhat.com>
31134
31135 PR c/57773
31136 * doc/implement-c.texi: Mention that other integer types are
31137 permitted as bit-field types in strictly conforming mode.
31138
31139 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
31140
31141 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
31142 is newly allocated.
31143
31144 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
31145
31146 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
31147
31148 2014-01-06 Martin Jambor <mjambor@suse.cz>
31149
31150 PR ipa/59008
31151 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
31152 to int.
31153 * ipa-prop.c (ipa_print_node_params): Fix indentation.
31154
31155 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
31156
31157 PR debug/59350
31158 PR debug/59510
31159 * var-tracking.c (add_stores): Preserve the value of the source even if
31160 we don't record the store.
31161
31162 2014-01-06 Terry Guo <terry.guo@arm.com>
31163
31164 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
31165
31166 2014-01-05 Iain Sandoe <iain@codesourcery.com>
31167
31168 PR bootstrap/59541
31169 * config/darwin.c (darwin_function_section): Adjust return values to
31170 correspond to optimisation changes made in r206070.
31171
31172 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
31173
31174 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
31175 from prefetch_block tune setting.
31176 (nocona_cost): Correct size of prefetch block to 64.
31177
31178 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
31179
31180 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
31181 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
31182 used to save the static chain register in the computation of the offset
31183 from which the FP registers need to be restored.
31184
31185 2014-01-04 Jakub Jelinek <jakub@redhat.com>
31186
31187 PR tree-optimization/59519
31188 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
31189 ICE if get_current_def (current_new_name) is already non-NULL, as long
31190 as it is a phi result of some other phi in *new_exit_bb that has
31191 the same argument.
31192
31193 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
31194 or vmovdqu* for misaligned_operand.
31195 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
31196 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
31197 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
31198 aligned_mem for AVX512F masked aligned load and store builtins and for
31199 non-temporal moves.
31200
31201 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
31202
31203 PR tree-optimization/59651
31204 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31205 Address range for negative step should be added by TYPE_SIZE_UNIT.
31206
31207 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
31208
31209 * config/m68k/m68k.c (handle_move_double): Handle pushes with
31210 overlapping registers also for registers other than the stack pointer.
31211
31212 2014-01-03 Marek Polacek <polacek@redhat.com>
31213
31214 PR other/59661
31215 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
31216 __builtin_FILE.
31217
31218 2014-01-03 Jakub Jelinek <jakub@redhat.com>
31219
31220 PR target/59625
31221 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
31222 asm goto as jump.
31223
31224 * config/i386/i386.md (MODE_SIZE): New mode attribute.
31225 (push splitter): Use <P:MODE_SIZE> instead of
31226 GET_MODE_SIZE (<P:MODE>mode).
31227 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
31228 (mov -1, reg peephole2): Likewise.
31229 * config/i386/sse.md (*mov<mode>_internal,
31230 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
31231 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
31232 *<code><mode>3, *andnot<mode>3<mask_name>,
31233 <mask_codefor><code><mode>3<mask_name>): Likewise.
31234 * config/i386/subst.md (mask_mode512bit_condition,
31235 sd_mask_mode512bit_condition): Likewise.
31236
31237 2014-01-02 Xinliang David Li <davidxl@google.com>
31238
31239 PR tree-optimization/59303
31240 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
31241 (dump_predicates): Better output format.
31242 (pred_equal_p): New function.
31243 (is_neq_relop_p): Ditto.
31244 (is_neq_zero_form_p): Ditto.
31245 (pred_expr_equal_p): Ditto.
31246 (pred_neg_p): Ditto.
31247 (simplify_pred): Ditto.
31248 (simplify_preds_2): Ditto.
31249 (simplify_preds_3): Ditto.
31250 (simplify_preds_4): Ditto.
31251 (simplify_preds): Ditto.
31252 (push_pred): Ditto.
31253 (push_to_worklist): Ditto.
31254 (get_pred_info_from_cmp): Ditto.
31255 (is_degenerated_phi): Ditto.
31256 (normalize_one_pred_1): Ditto.
31257 (normalize_one_pred): Ditto.
31258 (normalize_one_pred_chain): Ditto.
31259 (normalize_preds): Ditto.
31260 (normalize_cond_1): Remove function.
31261 (normalize_cond): Ditto.
31262 (is_gcond_subset_of): Ditto.
31263 (is_subset_of_any): Ditto.
31264 (is_or_set_subset_of): Ditto.
31265 (is_and_set_subset_of): Ditto.
31266 (is_norm_cond_subset_of): Ditto.
31267 (pred_chain_length_cmp): Ditto.
31268 (convert_control_dep_chain_into_preds): Type change.
31269 (find_predicates): Ditto.
31270 (find_def_preds): Ditto.
31271 (destroy_predicates_vecs): Ditto.
31272 (find_matching_predicates_in_rest_chains): Ditto.
31273 (use_pred_not_overlap_with_undef_path_pred): Ditto.
31274 (is_pred_expr_subset): Ditto.
31275 (is_pred_chain_subset_of): Ditto.
31276 (is_included_in): Ditto.
31277 (is_superset_of): Ditto.
31278
31279 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31280
31281 Update copyright years.
31282
31283 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31284
31285 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
31286 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
31287 config/arc/arc.md, config/arc/arc.opt,
31288 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
31289 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
31290 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
31291 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
31292 config/linux-protos.h, config/linux.c, config/winnt-c.c,
31293 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
31294 vtable-verify.c, vtable-verify.h: Use the standard form for the
31295 copyright notice.
31296
31297 2014-01-02 Tobias Burnus <burnus@net-b.de>
31298
31299 * gcc.c (process_command): Update copyright notice dates.
31300 * gcov-dump.c: Ditto.
31301 * gcov.c: Ditto.
31302 * doc/cpp.texi: Bump @copying's copyright year.
31303 * doc/cppinternals.texi: Ditto.
31304 * doc/gcc.texi: Ditto.
31305 * doc/gccint.texi: Ditto.
31306 * doc/gcov.texi: Ditto.
31307 * doc/install.texi: Ditto.
31308 * doc/invoke.texi: Ditto.
31309
31310 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31311
31312 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
31313
31314 2014-01-01 Jakub Jelinek <jakub@redhat.com>
31315
31316 * config/i386/sse.md (*mov<mode>_internal): Guard
31317 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
31318
31319 PR rtl-optimization/59647
31320 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
31321 new_rtx into UNSIGNED_FLOAT rtxes.
31322 \f
31323 Copyright (C) 2014 Free Software Foundation, Inc.
31324
31325 Copying and distribution of this file, with or without modification,
31326 are permitted in any medium without royalty provided the copyright
31327 notice and this notice are preserved.