Disallow -mfpu=neon for unsuitable architectures.
[gcc.git] / gcc / ChangeLog
1 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
2
3 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4 when architecture is older than ARMv7.
5
6 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
7
8 PR target/61853
9 * config/pa/pa.c (pa_function_value): Directly handle aggregates
10 that fit exactly in a word or double word.
11
12 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
13
14 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
15 zmm/k regs support.
16
17 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
18 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19 Anna Tikhonova <anna.tikhonova@intel.com>
20 Ilya Tocar <ilya.tocar@intel.com>
21 Andrey Turetskiy <andrey.turetskiy@intel.com>
22 Ilya Verbin <ilya.verbin@intel.com>
23 Kirill Yukhin <kirill.yukhin@intel.com>
24 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25
26 * config/i386/i386.c
27 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
28 * config/i386/sse.md
29 (define_mode_iterator VI48F_256): New.
30 (define_mode_attr extract_type): Ditto.
31 (define_mode_attr extract_suf): Ditto.
32 (define_mode_iterator AVX512_VEC): Ditto.
33 (define_expand
34 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
35 AVX512_VEC.
36 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
37 (define_insn
38 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
39 Ditto.
40 (define_mode_attr extract_type_2): Ditto.
41 (define_mode_attr extract_suf_2): Ditto.
42 (define_mode_iterator AVX512_VEC_2): Ditto.
43 (define_expand
44 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
45 AVX512_VEC_2 mode iterator.
46 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
47 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
48 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
49 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
50 (define_split for V16FI mode): Ditto.
51 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
52 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
53 (define_split for VI8F_256 mode): Ditto.
54 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
55 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
56 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
57 (define_split for VI4F_256 mode): Ditto.
58 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
59 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
60 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
61 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
62 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
63 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
64 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
65 Update `type' attribute, remove explicit `memory' attribute calculation.
66
67 2014-09-16 Kito Cheng <kito@0xlab.org>
68
69 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
70 ira_spilled_reg_stack_slots_num if using lra.
71 (do_reload): Remove release ira_spilled_reg_stack_slots part.
72 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
73 make sure not using lra.
74 (ira_reuse_stack_slot): Likewise.
75 (ira_mark_new_stack_slot): Likewise.
76
77 2014-09-15 Andi Kleen <ak@linux.intel.com>
78
79 * function.c (allocate_struct_function): Force
80 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
81 profiling is disabled.
82
83 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
84
85 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
86 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
87 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
88 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
89 macro with statically checked member functions.
90 * rtl.h (rtx_insn::deleted): New method.
91 (rtx_insn::set_deleted): Likewise.
92 (rtx_insn::set_undeleted): Likewise.
93 (INSN_DELETED_P): Remove.
94
95 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
96
97 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
98 result of emit_jump_insn_before to a new variable.
99 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
100 (mark_jump_label_1): Likewise.
101 (mark_jump_label_asm): Likewise.
102 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
103 * rtl.h (mark_jump_label): Adjust.
104
105 2014-09-15 Jakub Jelinek <jakub@redhat.com>
106
107 * Makefile.in (dg_target_exps): Remove.
108 (check_gcc_parallelize): Change to just an upper bound number.
109 (check-%-subtargets): Always print the non-parallelized goals.
110 (check_p_vars, check_p_comma, check_p_subwork): Remove.
111 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
112 check_p_numbers3, check_p_numbers4, check_p_numbers5,
113 check_p_numbers6): New variables.
114 (check_p_numbers): Set to sequence from 1 to 9999.
115 (check_p_subdirs): Set to sequence from 1 to minimum of
116 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
117 or 128.
118 (check-%, check-parallel-%): Rewritten so that for parallelized
119 testing each job runs all the *.exp files, with
120 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
121
122 2014-09-15 David Malcolm <dmalcolm@redhat.com>
123
124 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
125 rtx to rtx_insn *.
126 (arc_sets_cc_p): Likewise.
127 * config/arc/arc.c (arc_print_operand): Use methods of
128 "final_sequence" for clarity, and to enable strengthening of
129 locals "jump" and "delay" from rtx to rtx_insn *.
130 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
131 rtx_insn *; use method of rtx_sequence for typesafety.
132 (arc_get_insn_variants): Use insn method of rtx_sequence for
133 typesafety.
134 (arc_pad_return): Likewise.
135 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
136 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
137 dyn_cast to rtx_sequence *, using insn method for typesafety.
138 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
139 rtx_sequence * and use insn method when invoking get_attr_length.
140 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
141 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
142 rtx_sequence *, introducing a local "seq", using its insn method
143 from typesafety and clarity.
144 (add_sched_insns_for_speculation): Strengthen local "next" from
145 rtx to rtx_insn *.
146 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
147 (predicate_insn): Likewise.
148 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
149 second param.
150 * config/cris/cris.c (cris_notice_update_cc): Likewise.
151 * config/epiphany/epiphany-protos.h
152 (extern void epiphany_insert_mode_switch_use): Likewise for param
153 "insn".
154 (get_attr_sched_use_fpu): Likewise for param.
155 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
156 Likewise for param "insn".
157 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
158 param "insn" of "target_insert_mode_switch_use" callback.
159 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
160 (frv_issues_to_branch_unit_p): Likewise.
161 (frv_pack_insn_p): Likewise.
162 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
163 const rtx * (i.e. mutable rtx_def * const *) to
164 rtx_insn * const *.
165 * config/i386/i386-protos.h (standard_sse_constant_opcode):
166 Strengthen first param from rtx to rtx_insn *.
167 (output_fix_trunc): Likewise.
168 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
169 (output_fix_trunc): Likewise.
170 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
171 local "insn".
172 (min_insn_size): Likewise for param "insn".
173 (get_mem_group): Likewise.
174 (is_cmp): Likewise.
175 (get_insn_path): Likewise.
176 (get_insn_group): Likewise.
177 (count_num_restricted): Likewise.
178 (fits_dispatch_window): Likewise.
179 (add_insn_window): Likewise.
180 (add_to_dispatch_window): Likewise.
181 (debug_insn_dispatch_info_file): Likewise.
182 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
183 first param.
184 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
185 "cmp" and local "prev".
186 (m32c_output_compare): Likewise for param "insn".
187 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
188 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
189 (define_predicate "large_insn_p"): Likewise.
190 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
191 param from rtx to rtx_insn *.
192 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
193 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
194 (m68k_sched_attr_size): Likewise.
195 (sched_get_opxy_mem_type): Likewise for param "insn".
196 (m68k_sched_attr_op_mem): Likewise.
197 (sched_mem_operand_p): Likewise.
198 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
199 * config/mep/mep.c (mep_multi_slot): Likewise.
200 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
201 first param.
202 (mips_sync_loop_insns): Likewise.
203 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
204 method of "final_sequence" for typesafety.
205 (mips_process_sync_loop): Strengthen param "insn" from rtx to
206 rtx_insn *.
207 (mips_output_sync_loop): Likewise.
208 (mips_sync_loop_insns): Likewise.
209 (mips_74k_agen_init): Likewise.
210 (mips_sched_init): Use NULL rather than NULL_RTX when working with
211 insns.
212 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
213 Strengthen param "insn" from rtx to rtx_insn *.
214 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
215 local "insn".
216 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
217 param.
218 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
219 "insn". Use method of rtx_sequence for typesafety.
220 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
221 rtx_insn *.
222 (branch_needs_nop_p): Likewise.
223 (use_skip_p): Likewise.
224 (pa_insn_refs_are_delayed): Likewise.
225 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
226 for locals "insn", "ninsn".
227 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
228 "insn".
229 (is_cracked_insn): Likewise.
230 (is_branch_slot_insn): Likewise.
231 (is_nonpipeline_insn): Likewise.
232 (insn_terminates_group_p): Likewise.
233 (insn_must_be_first_in_group): Likewise.
234 (insn_must_be_last_in_group): Likewise.
235 (force_new_group): Likewise for param "next_insn".
236 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
237 "insn".
238 (s390_sched_score): Likewise.
239 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
240 (rtx sfunc_uses_reg): Likewise for sole param.
241 * config/sh/sh.c (sh_print_operand): Use insn method of
242 final_sequence for typesafety.
243 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
244 Use insn method of final_sequence for typesafety.
245 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
246 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
247 for param.
248 (eligible_for_return_delay): Likewise.
249 (eligible_for_sibcall_delay): Likewise.
250 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
251 (eligible_for_return_delay): Likewise.
252 (eligible_for_sibcall_delay): Likewise.
253 * config/stormy16/stormy16-protos.h
254 (xstormy16_output_cbranch_hi): Likewise for final param.
255 (xstormy16_output_cbranch_si): Likewise.
256 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
257 (xstormy16_output_cbranch_si): Likewise.
258 * config/v850/v850-protos.h (notice_update_cc): Likewise.
259 * config/v850/v850.c (notice_update_cc): Likewise.
260
261 * final.c (get_attr_length_1): Strengthen param "insn" and param
262 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
263 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
264 (get_attr_min_length): Likewise.
265 (shorten_branches): Likewise for signature of locals "length_fun"
266 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
267 from a checked cast and use its methods for clarity and to enable
268 strengthening local "inner_insn" from rtx to rtx_insn *.
269 * genattr.c (gen_attr): When writing out the prototypes of the
270 various generated "get_attr_" functions, strengthen the params of
271 the non-const functions from rtx to rtx_insn *.
272 Similarly, strengthen the params of insn_default_length,
273 insn_min_length, insn_variable_length_p, insn_current_length.
274 (main): Similarly, strengthen the param of num_delay_slots,
275 internal_dfa_insn_code, insn_default_latency, bypass_p,
276 insn_latency, min_issue_delay, print_reservation,
277 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
278 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
279 to hook_int_rtx_insn_unreachable.
280 * genattrtab.c (write_attr_get): When writing out the generated
281 "get_attr_" functions, strengthen the param "insn" from rtx to
282 rtx_insn *, eliminating a checked cast.
283 (make_automaton_attrs): When writing out prototypes of
284 "internal_dfa_insn_code_", "insn_default_latency_" functions
285 and the "internal_dfa_insn_code" and "insn_default_latency"
286 callbacks, strengthen their params from rtx to rtx_insn *
287 * genautomata.c (output_internal_insn_code_evaluation): When
288 writing out code, add a checked cast from rtx to rtx_insn * when
289 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
290 (output_dfa_insn_code_func): Strengthen param of generated
291 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
292 (output_trans_func): Likewise for generated function
293 "state_transition".
294 (output_internal_insn_latency_func): When writing out generated
295 function "internal_insn_latency", rename params from "insn" and
296 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
297 locals "insn" and "insn2" as rtx_insn * with checked casts once
298 we've proven that we're not dealing with const0_rtx.
299 (output_insn_latency_func): Strengthen param of generated
300 function "insn_latency" from rtx to rtx_insn *.
301 (output_print_reservation_func): Likewise for generated function
302 "print_reservation".
303 (output_insn_has_dfa_reservation_p): Likewise for generated
304 function "insn_has_dfa_reservation_p".
305 * hooks.c (hook_int_rtx_unreachable): Rename to...
306 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
307 from rtx to rtx_insn *.
308 * hooks.h (hook_int_rtx_unreachable): Likewise.
309 (extern int hook_int_rtx_insn_unreachable): Likewise.
310 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
311 (get_attr_min_length): Likewise.
312 * recog.c (get_enabled_alternatives): Likewise.
313 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
314 * reorg.c (find_end_label): Introduce local rtx "pat" and
315 strengthen local "insn" from rtx to rtx_insn *.
316 (redundant_insn): Use insn method of "seq" rather than element for
317 typesafety; strengthen local "control" from rtx to rtx_insn *.
318 * resource.c (mark_referenced_resources): Add checked cast to
319 rtx_insn * within INSN/JUMP_INSN case.
320 (mark_set_resources): Likewise.
321 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
322 rtx to rtx_insn *.
323
324 2014-09-15 David Malcolm <dmalcolm@redhat.com>
325
326 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
327 param "label" from rtx to rtx_insn *.
328 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
329 and local "op".
330 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
331 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
332 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
333 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
334 * final.c (default_label_align_after_barrier_max_skip): Strengthen
335 param from rtx to rtx_insn *.
336 (default_loop_align_max_skip): Likewise.
337 (default_label_align_max_skip): Likewise.
338 (default_jump_align_max_skip): Likewise.
339 * target.def (label_align_after_barrier_max_skip): Likewise.
340 (loop_align_max_skip): Likewise.
341 (label_align_max_skip): Likewise.
342 (jump_align_max_skip): Likewise.
343 * targhooks.h (default_label_align_after_barrier_max_skip):
344 Likewise.
345 (default_loop_align_max_skip): Likewise.
346 (default_label_align_max_skip): Likewise.
347 (default_jump_align_max_skip): Likewise.
348
349 2014-09-15 David Malcolm <dmalcolm@redhat.com>
350
351 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
352 from const_rtx to const rtx_insn *. Update union members from rtx
353 to rtx_insn *.
354 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
355 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
356 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
357 strengthen both params from const_rtx to const rtx_insn *.
358 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
359 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
360 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
361 rtx_insn *.
362 * target.def (can_follow_jump): Strengthen both params from
363 const_rtx to const rtx_insn *, and update default implementation
364 from hook_bool_const_rtx_const_rtx_true to
365 hook_bool_const_rtx_insn_const_rtx_insn_true.
366
367 2014-09-15 David Malcolm <dmalcolm@redhat.com>
368
369 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
370 "insn" from rtx to rtx_insn *.
371 * sched-int.h (deps_start_bb): Likewise for 2nd param.
372
373 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
374 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
375 Anna Tikhonova <anna.tikhonova@intel.com>
376 Ilya Tocar <ilya.tocar@intel.com>
377 Andrey Turetskiy <andrey.turetskiy@intel.com>
378 Ilya Verbin <ilya.verbin@intel.com>
379 Kirill Yukhin <kirill.yukhin@intel.com>
380 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
381
382 * config/i386/sse.md
383 (define_insn "vcvtph2ps<mask_name>"): Add masking.
384 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
385 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
386 (define_expand "vcvtps2ph_mask"): New.
387 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
388 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
389 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
390
391 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
392 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
393 Anna Tikhonova <anna.tikhonova@intel.com>
394 Ilya Tocar <ilya.tocar@intel.com>
395 Andrey Turetskiy <andrey.turetskiy@intel.com>
396 Ilya Verbin <ilya.verbin@intel.com>
397 Kirill Yukhin <kirill.yukhin@intel.com>
398 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
399
400 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
401 New.
402 (define_mode_iterator VI24_AVX512BW_1): Ditto.
403 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
404 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
405 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
406 also for TARGET_AVX512VL.
407 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
408
409 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
410
411 * doc/install.texi (Options specification): add
412 --disable-libsanitizer item.
413
414 2014-09-14 James Clarke <jrtc27@jrtc27.com>
415 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
416
417 PR target/61407
418 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
419 and above.
420 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
421 kernel version check to avoid incrementing it after every major OS X
422 release.
423 (darwin_default_min_version): Avoid static memory buffer.
424
425 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
426
427 * tree.c (need_assembler_name_p): Store C++ type mangling only
428 for aggregates.
429
430 2014-09-13 Marek Polacek <polacek@redhat.com>
431
432 * tree.c (protected_set_expr_location): Don't check whether T is
433 non-null here.
434
435 2014-09-12 DJ Delorie <dj@redhat.com>
436
437 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
438 (extend_and_shift1_hipsi2): Likewise.
439 (extend_and_shift2_hipsi2): Likewise.
440
441 2014-09-12 David Malcolm <dmalcolm@redhat.com>
442
443 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
444 with NULL when dealing with an insn.
445 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
446 from rtx to rtx_insn *.
447 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
448 const_rtx to const rtx_insn *.
449 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
450
451 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
452
453 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
454 assert.
455
456 2014-09-12 Joseph Myers <joseph@codesourcery.com>
457
458 * target.def (libgcc_floating_mode_supported_p): New hook.
459 * targhooks.c (default_libgcc_floating_mode_supported_p): New
460 function.
461 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
462 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
463 (LIBGCC2_HAS_TF_MODE): Remove.
464 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
465 * doc/tm.texi: Regenerate.
466 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
467 machine mode.
468 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
469 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
470 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
471 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
472 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
473 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
474 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
475 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
476 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
477 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
478 function.
479 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
480 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
481 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
482 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
483 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
484 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
485 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
486 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
487 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
488 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
489 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
490 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
491 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
492 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
493 Remove.
494 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
495 New macro.
496 (ia64_libgcc_floating_mode_supported_p): New function.
497 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
498 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
499 (IA64_NO_LIBGCC_TFMODE): Define.
500 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
501 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
502 macro.
503 (pdp11_scalar_mode_supported_p): New function.
504 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
505 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
506
507 2014-09-12 Richard Biener <rguenther@suse.de>
508
509 PR middle-end/63237
510 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
511
512 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
513
514 * tree.c (integer_each_onep): New function.
515 * tree.h (integer_each_onep): Declare it.
516 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
517 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
518 (X & 1) == 0 for vector and complex.
519
520 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
521
522 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
523 for A57.
524 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
525 cost to spilling from integer to FP registers.
526
527 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
528
529 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
530 move handling.
531 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
532 are now handled correctly.
533
534 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
535
536 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
537 handling of CALLER_SAVE_REGS and POINTER_REGS.
538
539 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
540
541 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
542 the number of hard registers.
543
544 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
545 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
546 Anna Tikhonova <anna.tikhonova@intel.com>
547 Ilya Tocar <ilya.tocar@intel.com>
548 Andrey Turetskiy <andrey.turetskiy@intel.com>
549 Ilya Verbin <ilya.verbin@intel.com>
550 Kirill Yukhin <kirill.yukhin@intel.com>
551 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
552
553 * config/i386/sse.md
554 (define_mode_iterator VI48_AVX512VL): New.
555 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
556 "avx512f_vternlog<mode>_maskz" and update mode iterator.
557 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
558 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
559 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
560 "avx512f_vternlog<mode>_mask" and update mode iterator.
561 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
562 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
563 iterator.
564 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
565 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
566 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
567 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
568 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
569 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
570
571 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
572 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
573 Anna Tikhonova <anna.tikhonova@intel.com>
574 Ilya Tocar <ilya.tocar@intel.com>
575 Andrey Turetskiy <andrey.turetskiy@intel.com>
576 Ilya Verbin <ilya.verbin@intel.com>
577 Kirill Yukhin <kirill.yukhin@intel.com>
578 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
579
580 * config/i386/sse.md (VI128_256): Delete.
581 (define_mode_iterator VI124_256): New.
582 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
583 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
584 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
585 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
586 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
587 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
588 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
589 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
590 iterator.
591 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
592 in presence of AVX-512.
593
594 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
595 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
596 Anna Tikhonova <anna.tikhonova@intel.com>
597 Ilya Tocar <ilya.tocar@intel.com>
598 Andrey Turetskiy <andrey.turetskiy@intel.com>
599 Ilya Verbin <ilya.verbin@intel.com>
600 Kirill Yukhin <kirill.yukhin@intel.com>
601 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
602
603 * config/i386/sse.md
604 (define_expand "<avx512>_gathersi<mode>"): Rename from
605 "avx512f_gathersi<mode>".
606 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
607 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
608 (define_expand "<avx512>_gatherdi<mode>"): Rename from
609 "avx512f_gatherdi<mode>".
610 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
611 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
612 wide versions.
613 (define_expand "<avx512>_scattersi<mode>"): Rename from
614 "avx512f_scattersi<mode>".
615 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
616 (define_expand "<avx512>_scatterdi<mode>"): Rename from
617 "avx512f_scatterdi<mode>".
618 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
619
620 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
621
622 * ira.h (ira_finish_once): Delete.
623 * ira-int.h (target_ira_int::~target_ira_int): Declare.
624 (target_ira_int::free_ira_costs): Likewise.
625 (target_ira_int::free_register_move_costs): Likewise.
626 (ira_finish_costs_once): Delete.
627 * ira.c (free_register_move_costs): Replace with...
628 (target_ira_int::free_register_move_costs): ...this new function.
629 (target_ira_int::~target_ira_int): Define.
630 (ira_init): Call free_register_move_costs as a member function rather
631 than a global function.
632 (ira_finish_once): Delete.
633 * ira-costs.c (free_ira_costs): Replace with...
634 (target_ira_int::free_ira_costs): ...this new function.
635 (ira_init_costs): Call free_ira_costs as a member function rather
636 than a global function.
637 (ira_finish_costs_once): Delete.
638 * target-globals.c (target_globals::~target_globals): Call the
639 target_ira_int destructor.
640 * toplev.c: Include lra.h.
641 (finalize): Call lra_finish_once rather than ira_finish_once.
642
643 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
644
645 * common.opt (flto-odr-type-merging): New flag.
646 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
647 (types_same_for_odr): Likewise.
648 (odr_subtypes_equivalent_p): Likewise.
649 (add_type_duplicate): Do not walk type variants.
650 (register_odr_type): New function.
651 * ipa-utils.h (register_odr_type): Declare.
652 (odr_type_p): New function.
653 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
654 TYPE_DECLs
655 * doc/invoke.texi (-flto-odr-type-merging): Document.
656 * tree.c (need_assembler_name_p): Compute ODR names when asked
657 for it.
658 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
659
660 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
661
662 PR target/63228
663 * config/i386/i386.c (ix86_option_override_internal): Also turn
664 off OPTION_MASK_ABI_X32 for -m16.
665
666 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
667
668 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
669 GPR instead of P.
670
671 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
672
673 PR target/58757
674 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
675 Directly forward to __*_DENORM_MIN__.
676
677 2014-09-11 David Malcolm <dmalcolm@redhat.com>
678
679 * rtl.h (LABEL_REF_LABEL): New macro.
680
681 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
682 of XEXP (, 0), where we know that we have a LABEL_REF.
683 * cfgbuild.c (make_edges): Likewise.
684 (purge_dead_tablejump_edges): Likewise.
685 * cfgexpand.c (convert_debug_memory_address): Likewise.
686 * cfgrtl.c (patch_jump_insn): Likewise.
687 * combine.c (distribute_notes): Likewise.
688 * cse.c (hash_rtx_cb): Likewise.
689 (exp_equiv_p): Likewise.
690 (fold_rtx): Likewise.
691 (check_for_label_ref): Likewise.
692 * cselib.c (rtx_equal_for_cselib_1): Likewise.
693 (cselib_hash_rtx): Likewise.
694 * emit-rtl.c (mark_label_nuses): Likewise.
695 * explow.c (convert_memory_address_addr_space): Likewise.
696 * final.c (output_asm_label): Likewise.
697 (output_addr_const): Likewise.
698 * gcse.c (add_label_notes): Likewise.
699 * genconfig.c (walk_insn_part): Likewise.
700 * genrecog.c (validate_pattern): Likewise.
701 * ifcvt.c (cond_exec_get_condition): Likewise.
702 (noce_emit_store_flag): Likewise.
703 (noce_get_alt_condition): Likewise.
704 (noce_get_condition): Likewise.
705 * jump.c (maybe_propagate_label_ref): Likewise.
706 (mark_jump_label_1): Likewise.
707 (redirect_exp_1): Likewise.
708 (rtx_renumbered_equal_p): Likewise.
709 * lra-constraints.c (operands_match_p): Likewise.
710 * reload.c (operands_match_p): Likewise.
711 (find_reloads): Likewise.
712 * reload1.c (set_label_offsets): Likewise.
713 * reorg.c (get_branch_condition): Likewise.
714 * rtl.c (rtx_equal_p_cb): Likewise.
715 (rtx_equal_p): Likewise.
716 * rtlanal.c (reg_mentioned_p): Likewise.
717 (rtx_referenced_p): Likewise.
718 (get_condition): Likewise.
719 * sched-vis.c (print_value): Likewise.
720 * varasm.c (const_hash_1): Likewise.
721 (compare_constant): Likewise.
722 (const_rtx_hash_1): Likewise.
723 (output_constant_pool_1): Likewise.
724
725 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
726
727 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
728 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
729 instead of minus.
730 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
731 cr6_test_for_lt_reverse): Ditto.
732
733 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
734
735 PR c++/61489
736 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
737
738 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
739
740 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
741 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
742 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
743 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
744 Delete.
745
746 (aarch64_fold_builtin): Remove all reinterpret cases.
747
748 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
749
750 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
751
752 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
753 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
754 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
755 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
756 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
757 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
758 aarch64_reinterpretv2df<mode>): Delete.
759
760 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
761
762 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
763 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
764 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
765 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
766 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
767 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
768 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
769 vreinterpret_u32_f64): Use cast.
770
771 * config/aarch64/iterators.md (VD_RE): Delete.
772
773 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
774
775 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
776 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
777 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
778 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
779 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
780 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
781 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
782 Replace inline assembler with __aarch64_vset_lane_any.
783
784 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
785
786 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
787 types.
788 (vmull_high_lane_s32): Likewise.
789 (vmull_high_lane_u16): Likewise.
790 (vmull_high_lane_u32): Likewise.
791
792 2014-09-11 Jason Merrill <jason@redhat.com>
793
794 PR c++/58678
795 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
796
797 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
798
799 PR target/63223
800 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
801 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
802 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
803
804 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
805 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
806 Anna Tikhonova <anna.tikhonova@intel.com>
807 Ilya Tocar <ilya.tocar@intel.com>
808 Andrey Turetskiy <andrey.turetskiy@intel.com>
809 Ilya Verbin <ilya.verbin@intel.com>
810 Kirill Yukhin <kirill.yukhin@intel.com>
811 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
812
813 * config/i386/sse.md
814 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
815 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
816 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
817 New.
818 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
819 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
820 iterator.
821 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
822 New.
823 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
824 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
825 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
826 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
827 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
828 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
829 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
830 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
831 iterator.
832 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
833 New.
834 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
835 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
836 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
837
838 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
839
840 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
841 to access removed nodes.
842
843 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
844
845 PR tree-optimization/63186
846 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
847 (mark_nonssa_use): Likewise.
848 (verify_non_ssa_vars): Verify all header blocks for label
849 definitions.
850
851 2014-09-11 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_attr avx2_avx512): Rename from avx2_avx512bw.
862 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
863 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
864 "<avx2_avx512f>_permvar<mode><mask_name>".
865 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
866 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
867 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
868 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
869 Ditto.
870 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
871 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
872 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
873 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
874
875 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
876
877 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
878 V2DF, V4SF, DF, and DI modes.
879 (vsx_fmav2df2): Likewise.
880 (vsx_float_fix_<mode>2): Likewise.
881 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
882
883 2014-09-10 Xinliang David Li <davidxl@google.com>
884
885 PR target/63209
886 * config/arm/arm.md (movcond_addsi): Handle case where source
887 and target operands are the same.
888
889 2014-09-10 David Malcolm <dmalcolm@redhat.com>
890
891 * final.c (this_is_asm_operands): Strengthen this variable from
892 rtx to const rtx_insn *.
893 * output.h (this_is_asm_operands): Likewise.
894 * rtl-error.c (location_for_asm): Strengthen param "insn" from
895 const_rtx to const rtx_insn *.
896 (diagnostic_for_asm): Likewise.
897 * rtl-error.h (error_for_asm): Likewise.
898 (warning_for_asm): Likewise.
899
900 2014-09-10 David Malcolm <dmalcolm@redhat.com>
901
902 * genextract.c (print_header): When writing out insn_extract to
903 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
904 * recog.h (insn_extract): Strengthen the param from rtx to
905 rtx_insn *.
906
907 2014-09-10 Mike Stump <mikestump@comcast.net>
908
909 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
910 8.6.1.
911
912 2014-09-10 Martin Jambor <mjambor@suse.cz>
913
914 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
915 (analyze): Do not set analyze flag if expand_thunk returns false;.
916 (create_wrapper): Likewise.
917 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
918
919 2014-09-10 Martin Jambor <mjambor@suse.cz>
920
921 PR ipa/61654
922 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
923 new decl properly. Analyze the new thunk if it is expanded.
924
925 2014-09-10 Andreas Schwab <schwab@suse.de>
926
927 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
928 [USED_FOR_TARGET]: Define.
929
930 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
931
932 * config/mips/mips.c (mips_secondary_reload_class): Handle
933 regno < 0 case.
934
935 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
936
937 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
938 assignment.
939
940 2014-09-10 Jakub Jelinek <jakub@redhat.com>
941
942 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
943 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
944 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
945 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
946 flag_delete_null_pointer_checks for them.
947 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
948 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
949 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
950 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
951 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
952 stmt's iterator.
953 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
954 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
955 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
956 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
957 * doc/invoke.texi (-fsanitize=nonnull-attribute,
958 -fsanitize=returns-nonnull-attribute): Document.
959
960 * ubsan.h (struct ubsan_mismatch_data): Removed.
961 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
962 * ubsan.c (ubsan_source_location): For unknown locations,
963 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
964 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
965 Allow more than one location and arbitrary extra arguments passed
966 in ... instead of through MISMATCH pointer.
967 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
968 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
969 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
970 callers.
971
972 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
974 Anna Tikhonova <anna.tikhonova@intel.com>
975 Ilya Tocar <ilya.tocar@intel.com>
976 Andrey Turetskiy <andrey.turetskiy@intel.com>
977 Ilya Verbin <ilya.verbin@intel.com>
978 Kirill Yukhin <kirill.yukhin@intel.com>
979 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
980
981 * config/i386/sse.md
982 (define_mode_iterator VI48F): New.
983 (define_insn "<avx512>_compress<mode>_mask"): Rename from
984 "avx512f_compress<mode>_mask" and update mode iterator.
985 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
986 "avx512f_compressstore<mode>_mask" and update mode iterator.
987 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
988 "avx512f_expand<mode>_maskz" and update mode iterator.
989 (define_insn "<avx512>_expand<mode>_mask"): Rename from
990 "avx512f_expand<mode>_mask" and update mode iterator.
991
992 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
993 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
994 Anna Tikhonova <anna.tikhonova@intel.com>
995 Ilya Tocar <ilya.tocar@intel.com>
996 Andrey Turetskiy <andrey.turetskiy@intel.com>
997 Ilya Verbin <ilya.verbin@intel.com>
998 Kirill Yukhin <kirill.yukhin@intel.com>
999 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1000
1001 * config/i386/i386.c
1002 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
1003 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
1004 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
1005 avx512dq_rangepv4sf_mask.
1006 * config/i386/sse.md
1007 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
1008 UNSPEC_RANGE.
1009 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
1010 (define_insn "reduces<mode>"): Ditto.
1011 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1012 Ditto.
1013 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
1014 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
1015 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
1016
1017 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
1018 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1019 Anna Tikhonova <anna.tikhonova@intel.com>
1020 Ilya Tocar <ilya.tocar@intel.com>
1021 Andrey Turetskiy <andrey.turetskiy@intel.com>
1022 Ilya Verbin <ilya.verbin@intel.com>
1023 Kirill Yukhin <kirill.yukhin@intel.com>
1024 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1025
1026 * config/i386/i386.c
1027 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
1028 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
1029 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
1030 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
1031 avx512vl_getmantv2df_mask.
1032 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
1033 avx512f_vgetmantv4sf_round.
1034 * config/i386/sse.md
1035 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
1036 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
1037 mode iterator.
1038 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
1039 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
1040 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
1041 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
1042 iterator..
1043 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
1044 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
1045 update mode iterator.
1046 (define_expand
1047 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
1048 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
1049 mode iterator.
1050 (define_insn
1051 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
1052 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
1053 update mode iterator.
1054 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
1055 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
1056 iterator..
1057 (define_insn
1058 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
1059 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
1060 mode iterator..
1061 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
1062 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
1063 update mode iterator.
1064 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
1065 "avx512f_getmant<mode><round_saeonly_name>".
1066
1067 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
1068
1069 PR ipa/63166
1070 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
1071
1072 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
1073 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1074 Anna Tikhonova <anna.tikhonova@intel.com>
1075 Ilya Tocar <ilya.tocar@intel.com>
1076 Andrey Turetskiy <andrey.turetskiy@intel.com>
1077 Ilya Verbin <ilya.verbin@intel.com>
1078 Kirill Yukhin <kirill.yukhin@intel.com>
1079 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1080
1081 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
1082 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
1083 (define_mode_iterator FMAMODE_AVX512): New.
1084 (define_mode_iterator FMAMODE): Remove conditions.
1085 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
1086 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
1087 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
1088 mode iterator.
1089 (define_mode_iterator FMAMODE_NOVF512): Remove.
1090 (define_insn "*fma_fmadd_<mode>"): Rename from
1091 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
1092 FMAMODE mode iterator.
1093 (define_mode_iterator VF_SF_AVX512VL): New.
1094 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
1095 Use VF_SF_AVX512VL mode iterator.
1096 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
1097 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1098 iterator.
1099 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
1100 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1101 iterator.
1102 (define_insn "*fma_fmsub_<mode>"): Rename from
1103 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
1104 FMAMODE mode iterator.
1105 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
1106 Use VF_SF_AVX512VL mode iterator.
1107 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
1108 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1109 iterator.
1110 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
1111 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1112 iterator.
1113 (define_insn "*fma_fnmadd_<mode>"): Rename from
1114 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
1115 use FMAMODE mode iterator.
1116 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
1117 Use VF_SF_AVX512VL mode iterator.
1118 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
1119 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1120 iterator.
1121 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
1122 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1123 iterator.
1124 (define_insn "*fma_fnmsub_<mode>"): Rename from
1125 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
1126 FMAMODE mode iterator.
1127 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
1128 Use VF_SF_AVX512VL mode iterator.
1129 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
1130 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1131 iterator.
1132 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
1133 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1134 iterator.
1135 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
1136 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
1137 use VF_AVX512VL mode iterator.
1138 (define_insn "*fma_fmaddsub_<mode>"): Rename from
1139 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
1140 remove subst usage.
1141 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
1142 Use VF_SF_AVX512VL mode iterator.
1143 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
1144 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
1145 iterator.
1146 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
1147 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1148 iterator.
1149 (define_insn "*fma_fmsubadd_<mode>"): Rename from
1150 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
1151 remove usage of subst.
1152 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
1153 Use VF_SF_AVX512VL mode iterator.
1154 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
1155 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
1156 iterator.
1157 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
1158 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
1159 iterator.
1160
1161 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
1162
1163 Revert r213751:
1164 * calls.c (precompute_arguments): Check
1165 promoted_for_signed_and_unsigned_p and set the promoted mode.
1166 (promoted_for_signed_and_unsigned_p): New function.
1167 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
1168 and set the promoted mode.
1169 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
1170 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
1171 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
1172
1173 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1174
1175 * opth-gen.awk: Generate mapping from cpp message reasons to the
1176 options that enable them.
1177 * doc/options.texi (CppReason): Document.
1178
1179 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1180
1181 * doc/invoke.texi (Wnormalized=): Update.
1182
1183 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
1184
1185 PR target/63195
1186 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
1187 operands. Split off the constant operand alternative to ...
1188 (*bool<mode>3_imm): New.
1189
1190 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1191
1192 * rtl.h (single_set_2): Strengthen first param from const_rtx to
1193 const rtx_insn *, and move prototype to above...
1194 (single_set): ...this. Convert this from a macro to an inline
1195 function, enforcing the requirement that the param is a const
1196 rtx_insn *.
1197 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
1198
1199 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
1200 Strengthen both params from rtx to rtx_insn *.
1201 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
1202 Likewise; introduce locals "producer_set", "consumer_set", using
1203 them in place of "producer" and "consumer" when dealing with SET
1204 rather than insn.
1205 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
1206 when invoking single_set in region guarded by INSN_P.
1207 (avr_out_bitop): Likewise.
1208 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
1209 region guarded by GET_CODE check, using methods to strengthen
1210 local "this_insn" from rtx to rtx_insn *, and for clarity.
1211 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
1212 Strengthen local "insn" from rtx to rtx_insn *.
1213 (define_insn_and_split "xload<mode>_A"): Likewise.
1214 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
1215 "insn".
1216 (find_load): Likewise for return type.
1217 (workaround_speculation): Likewise for both locals named
1218 "load_insn".
1219 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
1220 local "cc0_user".
1221 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
1222 for local "prev".
1223 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
1224 param 2.
1225 * config/h8300/h8300.c (notice_update_cc): Likewise.
1226 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
1227 "insn" and "dep_insn".
1228 (exact_store_load_dependency): Likewise for both params.
1229 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
1230 since this now clashes with inline function. Instead, delay
1231 calling single_set until the point where its needed, and then
1232 assign the result to "compare_set" and rework the conditional that
1233 follows.
1234 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
1235 local "last" from rtx to rtx_insn *.
1236 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
1237 second param.
1238 (mips_store_data_bypass_p): Likewise for both params.
1239 * config/mips/mips.c (mips_load_store_insns): Likewise for second
1240 param.
1241 (mips_store_data_bypass_p): Likewise for both params.
1242 (mips_orphaned_high_part_p): Likewise for param "insn".
1243 * config/mn10300/mn10300.c (extract_bundle): Likewise.
1244 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
1245 Introduce local rtx "insn2_pat".
1246 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
1247 "ninsn".
1248 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
1249 Introduce local rtx "set", using it in place of "insn" for the
1250 result of single_set. This appears to fix a bug, since the call
1251 to find_regno_note on a SET does nothing.
1252 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
1253 params from rtx to rtx_insn *.
1254 (set_to_load_agen): Likewise.
1255 * config/s390/s390.c (s390_label_align): Likewise for local
1256 "prev_insn". Introduce new rtx locals "set" and "src", using
1257 them in place of "prev_insn" for the results of single_set
1258 and SET_SRC respectively.
1259 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
1260 Introduce new rtx local "set" using in place of "jump" for the
1261 result of single_set. Use SET_SRC (set) rather than plain
1262 XEXP (set, 1).
1263 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
1264 rtx to rtx_insn *.
1265 (noncall_uses_reg): Likewise.
1266 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
1267 guarded by GET_CODE check, using its methods for clarity, and to
1268 enable strengthening local "this_insn" from rtx to rtx_insn *.
1269 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
1270 "insn" from rtx to rtx_insn *.
1271 (define_expand "umulhisi3"): Likewise.
1272 (define_expand "smulsi3_highpart"): Likewise.
1273 (define_expand "umulsi3_highpart"): Likewise.
1274 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1275 local "after". Replace GET_CODE check with a dyn_cast,
1276 introducing new local rtx_sequence * "seq", using insn method for
1277 typesafety.
1278
1279 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
1280 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
1281 place of "insn" once we're dealing with patterns rather than the
1282 input insn.
1283 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
1284 (scan_trace): Likewise for local "elt", updating lookups within
1285 sequence to use insn method rather than element method.
1286 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
1287 to rtx_insn *.
1288 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
1289 * ifcvt.c (noce_try_abs): Likewise for local "insn".
1290 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
1291 invoking single_set.
1292 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
1293 "insn" from rtx to rtx_insn *.
1294 (skip_usage_debug_insns): Likewise for return type, adding a
1295 checked cast.
1296 (check_secondary_memory_needed_p): Likewise for local "insn".
1297 (inherit_reload_reg): Likewise.
1298 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
1299 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
1300 checked casts.
1301 (store_data_bypass_p): Likewise for both params.
1302 (if_test_bypass_p): Likewise.
1303 * recog.h (store_data_bypass_p): Likewise for both params.
1304 (if_test_bypass_p): Likewise.
1305 * reload.c (find_equiv_reg): Likewise for local "where".
1306 * reorg.c (delete_jump): Likewise for param "insn".
1307 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
1308 to const rtx_insn *.
1309 * store-motion.c (replace_store_insn): Likewise for param "del".
1310 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
1311 and use its methods for clarity, and to strengthen local "del"
1312 from rtx to rtx_insn *.
1313 (build_store_vectors): Use insn method of "st" when calling
1314 replace_store_insn for typesafety and clarity.
1315
1316 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1317
1318 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
1319 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
1320 on how to make it legal in future.
1321
1322 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1323
1324 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
1325 to rtx_insn *.
1326 (restinsn): Likewise.
1327 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
1328 Likewise for param.
1329 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
1330 Likewise.
1331 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
1332 first param.
1333 (arc_hazard): Likewise for both params.
1334 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
1335 checked casts to rtx_sequence * and uses of the insn method for
1336 type-safety.
1337 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
1338 (arc_adjust_insn_length): Likewise for param "insn".
1339 (struct insn_length_parameters_s): Likewise for first param of
1340 "get_variants" callback field.
1341 (arc_get_insn_variants): Likewise for first param and local
1342 "inner". Replace a check of GET_CODE with a dyn_cast to
1343 rtx_sequence *, using methods for type-safety and clarity.
1344 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
1345 rtx_sequence * and uses of the insn method for type-safety when
1346 invoking arc_adjust_insn_length.
1347 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
1348 for param.
1349 (arm_address_offset_is_imm): Likewise.
1350 (struct tune_params): Likewise for params 1 and 3 of the
1351 "sched_adjust_cost" callback field.
1352 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
1353 params 1 and 3 ("insn" and "dep").
1354 (xscale_sched_adjust_cost): Likewise.
1355 (fa726te_sched_adjust_cost): Likewise.
1356 (cortexa7_older_only): Likewise for param "insn".
1357 (cortexa7_younger): Likewise.
1358 (arm_attr_length_move_neon): Likewise.
1359 (arm_address_offset_is_imm): Likewise.
1360 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
1361 * config/avr/avr.c (avr_notice_update_cc): Likewise.
1362 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
1363 (workaround_speculation): Likewise for local "last_condjump".
1364 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
1365 (shadow_or_blockage_p): Likewise.
1366 (get_unit_reqs): Likewise.
1367 (get_unit_operand_masks): Likewise.
1368 (c6x_registers_update): Likewise.
1369 (returning_call_p): Likewise.
1370 (can_use_callp): Likewise.
1371 (convert_to_callp): Likewise.
1372 (find_last_same_clock): Likwise for local "t".
1373 (reorg_split_calls): Likewise for local "shadow".
1374 (hwloop_pattern_reg): Likewise for param "insn".
1375 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
1376 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1377 (frv_extract_membar): Likewise.
1378 (frv_optimize_membar_local): Strengthen param "last_membar" from
1379 rtx * to rtx_insn **.
1380 (frv_optimize_membar_global): Strengthen param "membar" from rtx
1381 to rtx_insn *.
1382 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
1383 to rtx_insn **.
1384 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
1385 both params from rtx to rtx_insn *.
1386 (ia64_ld_address_bypass_p): Likewise.
1387 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
1388 "insn".
1389 (ia64_safe_type): Likewise.
1390 (group_barrier_needed): Likewise.
1391 (safe_group_barrier_needed): Likewise.
1392 (ia64_single_set): Likewise.
1393 (is_load_p): Likewise.
1394 (record_memory_reference): Likewise.
1395 (get_mode_no_for_insn): Likewise.
1396 (important_for_bundling_p): Likewise.
1397 (unknown_for_bundling_p): Likewise.
1398 (ia64_st_address_bypass_p): Likewise for both params.
1399 (ia64_ld_address_bypass_p): Likewise.
1400 (expand_vselect): Introduce new local rtx_insn * "insn", using it
1401 in place of rtx "x" after the emit_insn call.
1402 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
1403 Strengthen param from rtx to rtx_insn *.
1404 (ix86_agi_dependent): Likewise for both params.
1405 (ix86_attr_length_immediate_default): Likewise for param 1.
1406 (ix86_attr_length_address_default): Likewise for param.
1407 (ix86_attr_length_vex_default): Likewise for param 1.
1408 * config/i386/i386.c (ix86_attr_length_immediate_default):
1409 Likewise for param "insn".
1410 (ix86_attr_length_address_default): Likewise.
1411 (ix86_attr_length_vex_default): Likewise.
1412 (ix86_agi_dependent): Likewise for both params.
1413 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
1414 (vselect_insn): Likewise for this variable.
1415 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
1416 for param 1.
1417 (m68k_sched_attr_opy_type): Likewise.
1418 * config/m68k/m68k.c (sched_get_operand): Likewise.
1419 (sched_attr_op_type): Likewise.
1420 (m68k_sched_attr_opx_type): Likewise.
1421 (m68k_sched_attr_opy_type): Likewise.
1422 (sched_get_reg_operand): Likewise.
1423 (sched_get_mem_operand): Likewise.
1424 (m68k_sched_address_bypass_p): Likewise for both params.
1425 (sched_get_indexed_address_scale): Likewise.
1426 (m68k_sched_indexed_address_bypass_p): Likewise.
1427 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
1428 (m68k_sched_indexed_address_bypass_p): Likewise.
1429 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
1430 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
1431 removing another.
1432 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
1433 params from rtx to rtx_insn *.
1434 (mips_fmadd_bypass): Likewise.
1435 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
1436 (mips_linked_madd_p): Likewise.
1437 (mips_macc_chains_last_hilo): Likewise for this variable.
1438 (mips_macc_chains_record): Likewise for param.
1439 (vr4130_last_insn): Likewise for this variable.
1440 (vr4130_swap_insns_p): Likewise for both params.
1441 (mips_ls2_variable_issue): Likewise for param.
1442 (mips_need_noat_wrapper_p): Likewise for param "insn".
1443 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
1444 in place of "x" after the emit_insn.
1445 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
1446 params from rtx to rtx_insn *.
1447 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
1448 (pa_combine_instructions): Introduce local "par" for result of
1449 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1450 to make_insn_raw.
1451 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1452 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1453 (rl78_alloc_physical_registers_op1): Likewise.
1454 (rl78_alloc_physical_registers_op2): Likewise.
1455 (rl78_alloc_physical_registers_ro1): Likewise.
1456 (rl78_alloc_physical_registers_cmp): Likewise.
1457 (rl78_alloc_physical_registers_umul): Likewise.
1458 (rl78_alloc_address_registers_macax): Likewise.
1459 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1460 * config/s390/predicates.md (execute_operation): Likewise for
1461 local "insn".
1462 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1463 params.
1464 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1465 (addr_generation_dependency_p): Likewise for param "insn".
1466 (s390_agen_dep_p): Likewise for both params.
1467 (s390_fpload_toreg): Likewise for param "insn".
1468 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1469 * config/sh/sh.c (sh_loop_align): Likewise for param and local
1470 "next".
1471 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1472 * config/sh/sh_treg_combine.cc
1473 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1474 and local "i".
1475 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1476 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1477 "and_insn", "load", "shift".
1478 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1479 "insn".
1480 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1481 for XEXP (note, 0) of the REG_CC_SETTER note.
1482 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1483 rtx_insn *, eliminating a checked cast made redundant by this.
1484 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1485 to rtx_insn *.
1486 * genattr.c (main): When writing out the prototype to
1487 const_num_delay_slots, strengthen the param from rtx to
1488 rtx_insn *.
1489 * genattrtab.c (write_const_num_delay_slots): Likewise when
1490 writing out the implementation of const_num_delay_slots.
1491 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1492 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1493 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1494 favor of new rtx locals "src" and "set" and new local rtx_insn *
1495 "insn" and "seq".
1496 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1497 to rtx_insn *.
1498 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1499 locals "cond", "if_then_else", "set" and new rtx_insn * locals
1500 "insn" and "seq".
1501 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1502 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
1503 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
1504 the top-level scope, replacing with new more tightly-scoped rtx
1505 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1506 "new_insn", "copy_of_insn_b", and make local rtx "set" more
1507 tightly-scoped.
1508 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1509 rtx_insn *.
1510 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1511 "move_insn".
1512 (ira_setup_alts): Likewise for param "insn".
1513 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1514 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1515 and an rtx_insn *.
1516 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1517 new more-tightly scoped rtx locals "add3_insn", "insn",
1518 "add2_insn" and rtx_insn * "move_insn".
1519 * postreload-gcse.c (eliminate_partially_redundant_load): Add
1520 checked cast on result of gen_move_insn when invoking
1521 extract_insn.
1522 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1523 rtx_insn *.
1524 (verify_changes): Add a checked cast on "object" when invoking
1525 insn_invalid_p.
1526 (extract_insn_cached): Strengthen param "insn" from rtx to
1527 rtx_insn *.
1528 (extract_constrain_insn_cached): Likewise.
1529 (extract_insn): Likewise.
1530 * recog.h (insn_invalid_p): Likewise for param 1.
1531 (recog_memoized): Likewise for param.
1532 (extract_insn): Likewise.
1533 (extract_constrain_insn_cached): Likewise.
1534 (extract_insn_cached): Likewise.
1535 * reload.c (can_reload_into): Likewise for local "test_insn".
1536 * reload.h (cleanup_subreg_operands): Likewise for param.
1537 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1538 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1539 result of emit_insn. Remove a checked cast made redundant by this
1540 change.
1541 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1542 rtx to rtx_insn *.
1543 * sel-sched.c (get_reg_class): Likewise.
1544
1545 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
1546 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1547
1548 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1549 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1550 Define.
1551 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1552
1553 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1554
1555 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1556 const rtx_insn *, and from rtx to rtx_insn * for the other
1557 overloaded variant.
1558 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1559 INSN_LOCATION, since we know INSN_P holds.
1560 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1561 (insn_file): Likewise.
1562 (insn_scope): Likewise.
1563 (insn_location): Likewise.
1564
1565 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1566 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1567 for the result of gen_load_const_gp.
1568 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1569 param from rtx to rtx_insn *.
1570 * config/rs6000/rs6000.c (output_call): Likewise.
1571 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1572 introducing a checked cast to rtx_sequence * and use of the insn
1573 method.
1574 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1575 from rtx to rtx_insn *.
1576 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1577 (insn_line): Likewise.
1578 (insn_file): Likewise.
1579 (insn_location): Likewise.
1580 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1581 from rtx to rtx_insn *.
1582 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1583 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1584 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1585 via a checked cast.
1586 * reorg.c (relax_delay_slots): Strengthen locals named "after"
1587 from rtx to rtx_insn *; use methods of "pat" for type-safety.
1588
1589 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1590
1591 * combine.c (try_combine): Eliminate checked cast on result of
1592 gen_rtx_INSN.
1593 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1594 autogenerated one by strengthening the return type and params 2 and 3
1595 from rtx to rtx_insn *, and by naming the params.
1596 * gengenrtl.c (special_rtx): Add INSN to those that are
1597 special-cased.
1598 * rtl.h (gen_rtx_INSN): New prototype.
1599
1600 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1601
1602 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1603 than NULL_RTX.
1604 (no_equiv): Likewise.
1605 (update_equiv_regs): Likewise.
1606 (setup_reg_equiv): Likewise. Strengthen locals "elem",
1607 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1608 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
1609 clarity.
1610 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1611 from rtx to rtx_insn_list *.
1612 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1613 rtx_insn_list * and use methods for clarity and typesafety.
1614 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1615 "list".
1616 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
1617 redundant check on INSN_P (insns): this cannot hold, as "insns" is
1618 an INSN_LIST, not an insn.
1619 (reverse_equiv_p): Strengthen local "insns" from rtx to
1620 rtx_insn_list * and use methods for clarity and typesafety.
1621 (contains_reloaded_insn_p): Likewise for local "list".
1622
1623 2014-09-09 Jiong Wang <jiong.wang@arm.com>
1624
1625 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1626 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1627 (arm_builtin_vectorized_function): Likewise.
1628 * config/arm/arm_neon_builtins.def: New macro for copysignf.
1629 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1630
1631 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
1632
1633 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1634 * builtins.h (default_target_builtins): Likewise.
1635 * gcse.h (default_target_gcse): Likewise.
1636 * target-globals.h (target_globals): Add a destructor. Convert
1637 void-pointer fields back to their real type and change from
1638 GTY((atomic)) to GTY((skip)).
1639 (restore_target_globals): Remove casts accordingly.
1640 * target-globals.c (save_target_globals): Use XCNEW rather than
1641 ggc_internal_cleared_alloc to allocate non-GC structures.
1642 Use ggc_cleared_alloc to allocate the target_globals structure
1643 itself.
1644 (target_globals::~target_globals): Define.
1645
1646 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1647
1648 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1649 mnemonic instead of fldmfdd.
1650 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1651 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1652 Output vpush when address register is SP.
1653 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1654 (vfp_output_vstmd): ... This.
1655 * config/arm/vfp.md (push_multi_vfp): Update call to
1656 vfp_output_vstmd.
1657
1658 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1659
1660 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1661
1662 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1663
1664 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1665 (*sqrtdf2_vfp): Likewise.
1666 (*cmpsf_vfp): Likewise.
1667 (*cmpsf_trap_vfp): Likewise.
1668 (*cmpdf_vfp): Likewise.
1669 (*cmpdf_trap_vfp): Likewise.
1670
1671 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1672
1673 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1674 (*truncdfsf2_vfp): Likewise.
1675 (*truncsisf2_vfp): Likewise.
1676 (*truncsidf2_vfp): Likewise.
1677 (fixuns_truncsfsi2): Likewise.
1678 (fixuns_truncdfsi2): Likewise.
1679 (*floatsisf2_vfp): Likewise.
1680 (*floatsidf2_vfp): Likewise.
1681 (floatunssisf2): Likewise.
1682 (floatunssidf2): Likewise.
1683
1684 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1685
1686 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1687 (*muldf3_vfp): Likewise.
1688 (*mulsf3negsf_vfp): Likewise.
1689 (*muldf3negdf_vfp): Likewise.
1690 (*mulsf3addsf_vfp): Likewise.
1691 (*muldf3adddf_vfp): Likewise.
1692 (*mulsf3subsf_vfp): Likewise.
1693 (*muldf3subdf_vfp): Likewise.
1694 (*mulsf3negsfaddsf_vfp): Likewise.
1695 (*fmuldf3negdfadddf_vfp): Likewise.
1696 (*mulsf3negsfsubsf_vfp): Likewise.
1697 (*muldf3negdfsubdf_vfp): Likewise.
1698
1699 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1700
1701 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1702 (*absdf2_vfp): Likewise.
1703 (*negsf2_vfp): Likewise.
1704 (*negdf2_vfp): Likewise.
1705 (*addsf3_vfp): Likewise.
1706 (*adddf3_vfp): Likewise.
1707 (*subsf3_vfp): Likewise.
1708 (*subdf3_vfp): Likewise.
1709 (*divsf3_vfp): Likewise.
1710 (*divdf3_vfp): Likewise.
1711
1712 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1713
1714 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1715 multiple.
1716 (arm_print_operand): Don't convert real values to decimal
1717 representation in default case.
1718 (fp_immediate_constant): Delete.
1719 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1720 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1721 syntax.
1722 (*thumb2_movsi_vfp): Likewise.
1723 (*movdi_vfp): Likewise.
1724 (*movdi_vfp_cortexa8): Likewise.
1725 (*movhf_vfp_neon): Likewise.
1726 (*movhf_vfp): Likewise.
1727 (*movsf_vfp): Likewise.
1728 (*thumb2_movsf_vfp): Likewise.
1729 (*movdf_vfp): Likewise.
1730 (*thumb2_movdf_vfp): Likewise.
1731 (*movsfcc_vfp): Likewise.
1732 (*thumb2_movsfcc_vfp): Likewise.
1733 (*movdfcc_vfp): Likewise.
1734 (*thumb2_movdfcc_vfp): Likewise.
1735
1736 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1737
1738 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1739 (-mtune): Likewise.
1740 (-mcpu): Likewise.
1741
1742 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1743
1744 PR target/61749
1745 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1746 Use qualifier_immediate for last operand. Rename to...
1747 (aarch64_types_ternop_lane_qualifiers): ... This.
1748 (TYPES_QUADOP): Rename to...
1749 (TYPES_TERNOP_LANE): ... This.
1750 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1751 error. Change return of 0 to return of NULL_RTX.
1752 (aarch64_crc32_expand_builtin): Likewise.
1753 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1754 ICE when expanding unknown builtin.
1755 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1756 TERNOP_LANE qualifiers.
1757 (sqdmlsl_lane): Likewise.
1758 (sqdmlal_laneq): Likewise.
1759 (sqdmlsl_laneq): Likewise.
1760 (sqdmlal2_lane): Likewise.
1761 (sqdmlsl2_lane): Likewise.
1762 (sqdmlal2_laneq): Likewise.
1763 (sqdmlsl2_laneq): Likewise.
1764
1765 2014-09-09 Nick Clifton <nickc@redhat.com>
1766
1767 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1768 end of a line.
1769 (S/390 and zSeries Options): Remove superfluous word from the
1770 description of the -mhotpatch option.
1771
1772 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1773
1774 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1775 * ira.c: #include "shrink-wrap.h"
1776 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1777 * ifcvt.c: #include "shrink-wrap.h"
1778 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1779
1780 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1781
1782 * common/config/picochip/picochip-common.c: Remove.
1783 * config.gcc: Remove support for picochip.
1784 * config/picochip/constraints.md: Remove.
1785 * config/picochip/dfa_space.md: Remove.
1786 * config/picochip/dfa_speed.md: Remove.
1787 * config/picochip/picochip-protos.h: Remove.
1788 * config/picochip/picochip.c: Remove.
1789 * config/picochip/picochip.h: Remove.
1790 * config/picochip/picochip.md: Remove.
1791 * config/picochip/picochip.opt: Remove.
1792 * config/picochip/predicates.md: Remove.
1793 * config/picochip/t-picochip: Remove.
1794 * doc/md.texi: Don't document picochi.
1795
1796 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1797
1798 * basic-block.h (control_flow_insn_p): Strengthen param from
1799 const_rtx to const rtx_insn *.
1800 * cfgbuild.c (control_flow_insn_p): Likewise.
1801
1802 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1803
1804 * gcse.c (modify_mem_list): Strengthen this variable from
1805 vec<rtx> * to vec<rtx_insn *> *.
1806 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1807 vec<rtx_insn *>.
1808 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1809 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1810 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1811 rtx_insn *.
1812 (record_last_set_info): Likewise for local "last_set_insn".
1813
1814 2014-09-08 DJ Delorie <dj@redhat.com>
1815
1816 * doc/invoke.texi (MSP430 Options): Add -minrt.
1817
1818 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1819
1820 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1821 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1822 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1823 handling SH_SPLAT.
1824 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1825 of extracted lane.
1826 (adjust_splat): New function.
1827 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1828 (dump_swap_insn_table): Add case for SH_SPLAT.
1829
1830 2014-09-08 Richard Biener <rguenther@suse.de>
1831
1832 PR ipa/63196
1833 * tree-inline.c (copy_loops): The source loop header should
1834 always be non-NULL.
1835 (tree_function_versioning): If loops need fixup after removing
1836 unreachable blocks fix them.
1837 * omp-low.c (simd_clone_adjust): Do not add incr block to
1838 loop under construction.
1839
1840 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1841
1842 * config/aarch64/aarch64-builtins.c
1843 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1844
1845 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1846
1847 * config/i386/cygming.h (TF_SIZE): Remove.
1848 * config/i386/darwin.h (TF_SIZE): Remove.
1849 * config/i386/dragonfly.h (TF_SIZE): Remove.
1850 * config/i386/freebsd.h (TF_SIZE): Remove.
1851 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1852 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1853 * config/i386/sol2.h (TF_SIZE): Remove.
1854 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1855 * config/ia64/linux.h (TF_SIZE): Remove.
1856 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1857 * doc/tm.texi: Regenerate.
1858 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1859
1860 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1861
1862 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1863 Remove.
1864 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1865 Remove.
1866 * doc/tm.texi: Regenerate.
1867 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1868 Poison.
1869 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1870 * config/cris/cris.h (__make_dp): Remove.
1871
1872 2014-09-08 Richard Biener <rguenther@suse.de>
1873
1874 PR bootstrap/63204
1875 * cfgloop.c (mark_loop_for_removal): Track former header
1876 unconditionally.
1877 * cfgloop.h (struct loop): Add former_header member unconditionally.
1878 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1879 diagnostic unconditionally.
1880
1881 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1882
1883 PR target/63190
1884 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1885 constraint for operand0 and remove write only modifier from operand3.
1886
1887 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1888
1889 PR rtl-optimization/62208
1890 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1891 rather than const0_rtx in eq/ne-xor simplifications.
1892
1893 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1894
1895 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1896 (arc_output_mi_thunk): Likewise.
1897
1898 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1899 arguments to silence bogus warning.
1900
1901 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1902
1903 PR middle-end/63171
1904 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1905
1906 2014-09-06 Tom de Vries <tom@codesourcery.com>
1907
1908 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1909 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1910 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1911
1912 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1913
1914 PR target/63188
1915 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1916 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1917
1918 2014-09-05 Easwaran Raman <eraman@google.com>
1919
1920 PR rtl-optimization/62146
1921 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1922 hoisted instruction unconditional.
1923
1924 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1925
1926 PR target/63187
1927 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1928 Do not allow any_mask_operand for operands[2].
1929 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1930
1931 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1932
1933 * config/arc/arc.c (arc_print_operand): Use insn method of
1934 final_sequence for type-safety.
1935 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1936 "insn" from rtx to rtx_insn *.
1937 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1938 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1939 Likewise for locals "branch", "label".
1940 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1941 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1942 (same_cmp_following_p): Likewise for locals "i2", "i3".
1943 * config/sh/sh_optimize_sett_clrt.cc
1944 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1945 param "cbranch_insn".
1946 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1947 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1948 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1949 const rtx_insn *.
1950 (condjump_p): Likewise.
1951 (condjump_in_parallel_p): Likewise.
1952 (pc_set): Likewise.
1953 (any_uncondjump_p): Likewise.
1954 (any_condjump_p): Likewise.
1955 (condjump_label): Likewise.
1956 (returnjump_p): Strengthen param "insn" from rtx to
1957 const rtx_insn *.
1958 (onlyjump_p): Strengthen param "insn" from const_rtx to
1959 const rtx_insn *.
1960 (jump_to_label_p): Likewise.
1961 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1962 (invert_jump): Likewise.
1963 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1964 simplejump_p.
1965 (get_jump_flags): Strengthen param "insn" from rtx to
1966 const rtx_insn *.
1967 (get_branch_condition): Likewise.
1968 (condition_dominates_p): Likewise.
1969 (make_return_insns): Move declaration of local "pat" earlier, to
1970 after we've handled NONJUMP_INSN_P and non-sequences, using its
1971 methods to simplify the code and for type-safety.
1972 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1973 const rtx_insn *.
1974 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1975 (condjump_p): Strengthen param from const_rtx to
1976 const rtx_insn *.
1977 (any_condjump_p): Likewise.
1978 (any_uncondjump_p): Likewise.
1979 (pc_set): Likewise.
1980 (condjump_label): Likewise.
1981 (simplejump_p): Likewise.
1982 (returnjump_p): Likewise.
1983 (onlyjump_p): Likewise.
1984 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1985 (invert_jump): Likewise.
1986 (condjump_in_parallel_p): Strengthen param from const_rtx to
1987 const rtx_insn *.
1988 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1989 to const rtx_insn *.
1990 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1991 to const rtx_insn *.
1992 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1993
1994 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1995
1996 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1997 above the conditional, and convert the check on GET_CODE to a
1998 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1999 the conditional. Simplify the conditional by using methods of
2000 "trial_seq".
2001
2002 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2003
2004 * haifa-sched.c (check_clobbered_conditions): Strengthen local
2005 "link" from rtx to rtx_insn_list *, and use its methods for
2006 clarity and type-safety.
2007 (toggle_cancelled_flags): Likewise.
2008 (restore_last_backtrack_point): Likewise.
2009 (queue_to_ready): Use insn method of "link" in one place.
2010 (schedule_block): Strengthen local "link" from rtx to
2011 rtx_insn_list *, and use its methods for clarity and type-safety.
2012
2013 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2014
2015 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
2016 param "insn" from const_rtx to const rtx_insn *.
2017 (sched_get_reverse_condition_uncached): Likewise.
2018 (sched_get_condition_with_rev): Likewise.
2019 (sched_has_condition_p): Likewise.
2020 (sched_insns_conditions_mutex_p): Likewise for both params.
2021 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
2022 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
2023 (setup_insn_reg_uses): Move local "list" to be more tightly
2024 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
2025 its methods for clarity and type-safety.
2026 (sched_analyze_1): Strengthen local "pending" from rtx to
2027 rtx_insn_list *, and local "pending_mem" from rtx to
2028 rtx_expr_list *. Use methods of each for clarity and type-safety.
2029 (sched_analyze_2): Likewise.
2030 (sched_analyze_insn): Likewise.
2031
2032 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
2033 param from const_rtx to const rtx_insn *.
2034 (sched_insns_conditions_mutex_p): Likewise for both params.
2035 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
2036 param.
2037
2038 * system.h (CONST_CAST_RTX_INSN): New macro.
2039
2040 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2041
2042 * recog.c (peep2_attempt): Strengthen return type from rtx to
2043 rtx_insn *.
2044 (peep2_update_life): Likewise for params "last", "prev", removing
2045 a checked cast made redundant by this.
2046 (peephole2_optimize): Likewise for local "last".
2047
2048 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2049
2050 * basic-block.h (set_block_for_insn): Eliminate this macro in
2051 favor of...
2052 * rtl.h (set_block_for_insn): New inline function, imposing the
2053 requirement that the "insn" param is an rtx_insn *.
2054
2055 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2056
2057 * caller-save.c (setup_save_areas): Strengthen local "insn" from
2058 rtx to rtx_insn *.
2059 * final.c (get_call_reg_set_usage): Likewise for first param,
2060 eliminating a checked cast.
2061 * regs.h (get_call_reg_set_usage): Likewise for first param.
2062 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
2063 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
2064 cast, replacing references to "x" with "call_insn" where
2065 appropriate.
2066 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
2067 rtx_insn *, adding a checked cast.
2068
2069 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2070
2071 * output.h (final_scan_insn): Strengthen first param from rtx to
2072 rtx_insn *.
2073
2074 * final.c (final_scan_insn): Likewise, renaming it back from
2075 "uncast_insn" to "insn", eliminating the checked cast.
2076
2077 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
2078 "vec" with an rtx_sequence * "seq", taking a copy of
2079 "final_sequence", and using methods of "seq" for clarity, and for
2080 type-safety in the calls to final_scan_insn.
2081 * config/mips/mips.c (mips_output_conditional_branch): Use methods
2082 of "final_sequence" for clarity, and for type-safety in the call to
2083 final_scan_insn.
2084 * config/sh/sh.c (print_slot): Strengthen param from rtx to
2085 rtx_sequence * and rename from "insn" to "seq".
2086
2087 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2088
2089 * jump.c (delete_related_insns): Introduce a new local "table" by
2090 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
2091 get_labels method of "table" to simplify access to the labels in
2092 the jump table.
2093
2094 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2095
2096 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
2097 f_minmaxs, f_minmaxd types.
2098
2099 2014-09-05 Richard Biener <rguenther@suse.de>
2100
2101 * cfgloop.c (mark_loop_for_removal): Record former header
2102 when ENABLE_CHECKING.
2103 * cfgloop.h (strut loop): Add former_header member when
2104 ENABLE_CHECKING.
2105 * loop-init.c (fix_loop_structure): Sanity check loops
2106 marked for removal if they re-appeared.
2107
2108 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2109
2110 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
2111 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
2112
2113 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
2114 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
2115 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
2116 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
2117 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
2118 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
2119 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
2120 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
2121 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
2122 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
2123 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
2124 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
2125 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
2126 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
2127 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
2128 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
2129 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
2130 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
2131 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
2132 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
2133 with int{32,16,8}_t.
2134
2135 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2136
2137 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
2138 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
2139 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
2140 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
2141 Remove temporary __asm__ and reimplement.
2142
2143 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2144
2145 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
2146 handling cmge, cmgt, cmeq, cmtst.
2147
2148 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
2149 cmlt, cmgeu, cmgtu, cmtst): Remove.
2150
2151 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
2152 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
2153 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
2154 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
2155
2156 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2157
2158 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
2159 TYPES_TST): Define.
2160 (aarch64_fold_builtin): Update pattern for cmtst.
2161
2162 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
2163 Declare.
2164
2165 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
2166
2167 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
2168 Switch operands, separate out more cases, refactor.
2169
2170 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
2171
2172 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
2173 argument; rename old version to...
2174 (aarch64_const_vec_all_same_in_range_p): ...this.
2175 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
2176
2177 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
2178
2179 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2180
2181 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2182 Remove qualifier_const_pointer, update comment.
2183
2184 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2185
2186 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
2187
2188 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2189
2190 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
2191 varargs with pointer parameter.
2192 (aarch64_simd_expand_builtin): pass pointer into previous.
2193
2194 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2195
2196 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
2197 alus_ext.
2198
2199 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
2200
2201 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
2202 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
2203 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
2204 Replace temporary asm with call to builtin.
2205 (vrbit_p8, vrbitq_p8): New functions.
2206
2207 2014-09-05 Richard Biener <rguenther@suse.de>
2208
2209 * cfgloop.c (mark_loop_for_removal): New function.
2210 * cfgloop.h (mark_loop_for_removal): Declare.
2211 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
2212 (merge_blocks): Likewise.
2213 (duplicate_block): Likewise.
2214 * except.c (sjlj_emit_dispatch_table): Likewise.
2215 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
2216 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
2217 (thread_through_loop_header): Likewise.
2218
2219 2014-09-05 Richard Biener <rguenther@suse.de>
2220
2221 PR middle-end/63148
2222 * fold-const.c (try_move_mult_to_index): Remove.
2223 (fold_binary_loc): Do not call it.
2224 * tree-data-ref.c (dr_analyze_indices): Strip conversions
2225 from the base object again.
2226
2227 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
2228
2229 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
2230 DImode.
2231
2232 2014-09-05 Bin Cheng <bin.cheng@arm.com>
2233
2234 PR target/55701
2235 * config/arm/arm.md (setmem): New pattern.
2236 * config/arm/arm-protos.h (struct tune_params): New fields.
2237 (arm_gen_setmem): New prototype.
2238 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
2239 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2240 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2241 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
2242 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
2243 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
2244 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
2245 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2246 (arm_const_inline_cost): New function.
2247 (arm_block_set_max_insns): New function.
2248 (arm_block_set_non_vect_profit_p): New function.
2249 (arm_block_set_vect_profit_p): New function.
2250 (arm_block_set_unaligned_vect): New function.
2251 (arm_block_set_aligned_vect): New function.
2252 (arm_block_set_unaligned_non_vect): New function.
2253 (arm_block_set_aligned_non_vect): New function.
2254 (arm_block_set_vect, arm_gen_setmem): New functions.
2255
2256 2014-09-05 Bin Cheng <bin.cheng@arm.com>
2257
2258 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
2259
2260 2014-09-05 Bin Cheng <bin.cheng@arm.com>
2261
2262 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
2263
2264 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
2265
2266 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
2267 an rtx.
2268 * valtrack.h: Adjust.
2269
2270 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
2271
2272 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
2273 an rtx.
2274 (emit_jump_insn_before_noloc): Likewise.
2275 (emit_call_insn_before_noloc): Likewise.
2276 (emit_label_before): Likewise.
2277 (emit_label_after): Likewise.
2278 (emit_insn_before_setloc): Likewise.
2279 (emit_jump_insn_before_setloc): Likewise.
2280 (emit_call_insn_before_setloc): Likewise.
2281 (emit_call_insn_before): Likewise.
2282 * rtl.h: Adjust.
2283
2284 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2285
2286 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
2287 rtx_insn *, eliminating a checked cast.
2288
2289 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2290
2291 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
2292 const_rtx to const rtx_insn *.
2293 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
2294 cast.
2295
2296 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2297
2298 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
2299 fixup_args_size_notes.
2300 * expr.c (fixup_args_size_notes): Strengthen first two params from
2301 rtx to rtx_insn *, eliminating a checked cast.
2302 * rtl.h (fixup_args_size_notes): Strengthen first two params from
2303 rtx to rtx_insn *.
2304
2305 2014-09-05 David Malcolm <dmalcolm@redhat.com>
2306
2307 * haifa-sched.c (get_ready_element): Strengthen return type from
2308 rtx to rtx_insn *.
2309 * sched-int.h (get_ready_element): Likewise.
2310
2311 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
2312
2313 PR target/63165
2314 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
2315 indexed_or_indirect_operand instead of memory_operand.
2316 (floatsi<mode>2_lfiwzx_mem): Ditto.
2317
2318 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
2319
2320 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
2321 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
2322 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
2323
2324 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
2325
2326 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
2327 rtx.
2328 (get_last_nonnote_insn): Likewise.
2329 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
2330 * resource.c (find_basic_block): Likewise.
2331 * rtl.h: Adjust.
2332 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
2333 const_rtx.
2334
2335 2014-09-04 David Malcolm <dmalcolm@redhat.com>
2336
2337 * genattr.c (main): Within the prototype of insn_latency written
2338 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
2339 * genautomata.c (output_internal_maximal_insn_latency_func):
2340 Within the implementation of insn_latency written out to
2341 insn-automata.c, strengthen both params from rtx to rtx_insn *,
2342 eliminating a pair of checked casts.
2343
2344 2014-09-04 David Malcolm <dmalcolm@redhat.com>
2345
2346 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
2347 rtx_insn *.
2348
2349 * rtl.h (eh_returnjump_p): Likewise.
2350
2351 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
2352
2353 * Makefile.in (TAGS): Handle constructs in timevar.def.
2354
2355 2014-09-04 Guozhi Wei <carrot@google.com>
2356
2357 PR target/62040
2358 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
2359 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
2360 it into two patterns.
2361 (move_lo_quad_internal_be_<mode>): Likewise.
2362
2363 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2364
2365 * doc/options.texi: Document that Var and Init are required if CPP
2366 is given.
2367 * optc-gen.awk: Require Var and Init if CPP is given.
2368 * common.opt (Wpedantic): Use Init.
2369
2370 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2371
2372 * config/rs6000/rs6000.c (special_handling_values): Add
2373 SH_EXTRACT.
2374 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
2375 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
2376 as swappable with special handling SH_EXTRACT. Remove
2377 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
2378 optimization.
2379 (adjust_extract): New function.
2380 (handle_special_swappables): Add default to case statement; add
2381 case for SH_EXTRACT that calls adjust_extract.
2382 (dump_swap_insn_table): Handle SH_EXTRACT.
2383
2384 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2385
2386 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
2387 selection of 0th memory doubleword, regardless of endianness.
2388
2389 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2390
2391 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
2392
2393 2014-09-04 Alan Modra <amodra@gmail.com>
2394
2395 PR debug/60655
2396 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
2397 can't be output.
2398
2399 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
2400
2401 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
2402 * targhooks.c (default_dwarf_frame_reg_mode): New function.
2403 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
2404 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
2405 * doc/tm.texi: Regenerate.
2406 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
2407 selection logic to default_dwarf_frame_reg_mode.
2408
2409 2014-09-03 Marek Polacek <polacek@redhat.com>
2410
2411 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
2412 by -Wall.
2413
2414 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
2415
2416 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
2417 the automodified register.
2418
2419 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
2420
2421 * output.h (get_some_local_dynamic_name): Declare.
2422 * final.c (some_local_dynamic_name): New variable.
2423 (get_some_local_dynamic_name): New function.
2424 (final_end_function): Clear some_local_dynamic_name.
2425 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
2426 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2427 (print_operand): Report an error if '%&' is used inappropriately.
2428 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
2429 (get_some_local_dynamic_name_1): Delete.
2430 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
2431 (rs6000_get_some_local_dynamic_name): Delete.
2432 (rs6000_get_some_local_dynamic_name_1): Delete.
2433 (print_operand): Report an error if '%&' is used inappropriately.
2434 * config/s390/s390.c (machine_function): Remove some_ld_name.
2435 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2436 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
2437 * config/sparc/sparc.c: Include rtl-iter.h.
2438 (machine_function): Remove some_ld_name.
2439 (sparc_print_operand): Report an error if '%&' is used inappropriately.
2440 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2441
2442 2014-09-03 Richard Henderson <rth@redhat.com>
2443
2444 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
2445 (aarch64_popwb_pair_reg): Remove.
2446 (aarch64_set_frame_expr): Remove.
2447 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
2448 the restore ops performed by the insns generated.
2449 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
2450 insn. Perform the calls_eh_return addition later; do not attempt to
2451 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
2452 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2453 special markup at all. Load cfun->machine->frame.hard_fp_offset
2454 into a local variable.
2455 (aarch64_frame_pointer_required): Don't check calls_alloca.
2456
2457 2014-09-03 Richard Biener <rguenther@suse.de>
2458
2459 * opts.c (default_options_optimization): Adjust
2460 max-combine-insns to 2 for -Og.
2461
2462 2014-09-03 Martin Jambor <mjambor@suse.cz>
2463
2464 PR ipa/62015
2465 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2466 pass-trough jump functions correctly.
2467
2468 2014-09-03 Martin Jambor <mjambor@suse.cz>
2469
2470 PR ipa/61986
2471 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2472 created replacements in ascending order of offsets.
2473 (known_aggs_to_agg_replacement_list): Likewise.
2474
2475 2014-09-03 Martin Liska <mliska@suse.cz>
2476
2477 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2478 is set to set uninitialized value for vnresult.
2479
2480 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2481
2482 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2483 for TARGET_MUST_PASS_IN_STACK.
2484
2485 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2486
2487 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2488 for TARGET_ARG_PARTIAL_BYTES.
2489
2490 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2491
2492 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2493 instructions for varargs implementation.
2494 (nds32_expand_epilogue): Emit stack adjustment instructions for
2495 varargs implementation.
2496
2497 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2498
2499 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2500 optimization detection.
2501
2502 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2503
2504 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2505 arguments.
2506 (nds32_function_arg_advance): Deal with nameless arguments.
2507 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2508 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2509 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2510
2511 2014-09-03 Richard Biener <rguenther@suse.de>
2512
2513 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2514 (struct bb_bitmap_sets): Remove deferred member.
2515 (BB_DEFERRED): Remove.
2516 (defer_or_phi_translate_block): Remove.
2517 (compute_antic_aux): Remove deferring of blocks, assert
2518 proper iteration order.
2519 (compute_antic): Do not set BB_DEFERRED.
2520 (eliminate): Allocate el_avail of proper size initially.
2521
2522 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2523
2524 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2525 according to the value of crtl->args.pretend_args_size.
2526
2527 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2528
2529 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2530 varargs information.
2531
2532 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2533
2534 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2535 implementation for TARGET_SETUP_INCOMING_VARARGS.
2536 (nds32_strict_argument_naming): Refine comment.
2537 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2538 Define for future implementation.
2539
2540 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
2541
2542 * config/i386/adxintrin.h (_subborrow_u32): New.
2543 (_addcarry_u32): Ditto.
2544 (_subborrow_u64): Ditto.
2545 (_addcarry_u64): Ditto.
2546 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2547 IX86_BUILTIN_SBB64.
2548 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2549 __builtin_ia32_sbb_u64
2550
2551 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2552
2553 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2554 GPR-specific stuff.
2555 (nds32_function_arg_advance): Likewise.
2556 (nds32_init_cumulative_args): Likewise.
2557 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2558 (NDS32_FIRST_GPR_REGNUM): Define.
2559 (NDS32_LAST_GPR_REGNUM): Define.
2560 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2561 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2562 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2563 (machine_function): Use GRP-specific stuff.
2564
2565 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2566
2567 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2568 (nds32_expand_epilogue): Likewise.
2569 (nds32_expand_prologue_v3push): Likewise.
2570 (nds32_expand_epilogue_v3pop): Likewise.
2571
2572 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2573
2574 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2575 v3push/v3pop for variadic function.
2576 * config/nds32/nds32.md (prologue, epilogue): Likewise.
2577
2578 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2579
2580 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2581 Check rtx for varargs implementation.
2582 (nds32_output_stack_pop): Likewise.
2583 * config/nds32/nds32-protos.h: Have a rtx argument for
2584 nds32_output_stack_push and nds32_output_stack_pop.
2585 * config/nds32/nds32.md: Likewise.
2586
2587 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2588
2589 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2590 to check if FUNC is an interrupt service routine.
2591 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2592
2593 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2594
2595 * config/nds32/nds32.h (machine_function): Add some fields for variadic
2596 arguments implementation.
2597
2598 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2599
2600 * config/nds32/nds32-predicates.c
2601 (nds32_valid_stack_push_pop): Rename to ...
2602 (nds32_valid_stack_push_pop_p): ... this.
2603 * config/nds32/nds32-protos.h: Likewise.
2604 * config/nds32/predicates.md: Likewise.
2605
2606 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2607
2608 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2609 (nds32_emit_stack_v3push): ... this.
2610 (nds32_gen_stack_v3pop): Rename to ...
2611 (nds32_emit_stack_v3pop): ... this and consider CFA restore
2612 information.
2613
2614 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2615
2616 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2617 (nds32_emit_stack_push_multiple): ... this.
2618 (nds32_gen_stack_pop_multiple): Rename to ...
2619 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2620 information.
2621
2622 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2623
2624 PR target/61078
2625 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2626 and add a second splitter to handle the remaining cases.
2627
2628 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2629
2630 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2631
2632 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2633
2634 * cfgexpand.c (label_rtx_for_bb): Change type to
2635 hash_map<basic_block, rtx_code_label *> *.
2636 (expand_gimple_basic_block): Adjust.
2637 (pass_expand::execute): Likewise.
2638
2639 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2640
2641 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2642 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2643 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2644 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2645 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2646 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2647 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2648 of rtx.
2649
2650 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2651
2652 * alloc-pool.c: Include coretypes.h.
2653 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2654 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2655 hash_set instead of htab.
2656 * ggc-page.c (in_gc): New variable.
2657 (ggc_free): Do nothing if a collection is taking place.
2658 (ggc_collect): Set in_gc appropriately.
2659 * ggc.h (gt_ggc_mx(const char *)): New function.
2660 (gt_pch_nx(const char *)): Likewise.
2661 (gt_ggc_mx(int)): Likewise.
2662 (gt_pch_nx(int)): Likewise.
2663 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2664 (hash_map::hash_entry::pch_nx): Likewise.
2665 (hash_map::hash_entry::pch_nx_helper): Likewise.
2666 (hash_map::hash_map): Adjust.
2667 (hash_map::create_ggc): New function.
2668 (gt_ggc_mx): Likewise.
2669 (gt_pch_nx): Likewise.
2670 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2671 (default_hashset_traits::pch_nx): Likewise.
2672 (hash_set::hash_entry::ggc_mx): Likewise.
2673 (hash_set::hash_entry::pch_nx): Likewise.
2674 (hash_set::hash_entry::pch_nx_helper): Likewise.
2675 (hash_set::hash_set): Adjust.
2676 (hash_set::create_ggc): New function.
2677 (hash_set::elements): Likewise.
2678 (gt_ggc_mx): Likewise.
2679 (gt_pch_nx): Likewise.
2680 * hash-table.h (hash_table::hash_table): Adjust.
2681 (hash_table::m_ggc): New member.
2682 (hash_table::~hash_table): Adjust.
2683 (hash_table::expand): Likewise.
2684 (hash_table::empty): Likewise.
2685 (gt_ggc_mx): New function.
2686 (hashtab_entry_note_pointers): Likewise.
2687 (gt_pch_nx): Likewise.
2688
2689 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2690
2691 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2692 built-in definition.
2693 (XVCVUXDDP_SCALE): Likewise.
2694 (XVCVDPSXDS_SCALE): Likewise.
2695 (XVCVDPUXDS_SCALE): Likewise.
2696 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2697 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2698 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2699 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2700 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2701 prototype.
2702 * config/rs6000/rs6000.c (real.h): New include.
2703 (rs6000_scale_v2df): New function.
2704 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2705 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2706 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2707 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2708 (vsx_xvcvsxddp_scale): New define_expand.
2709 (vsx_xvcvsxddp): New define_insn.
2710 (vsx_xvcvuxddp_scale): New define_expand.
2711 (vsx_xvcvuxddp): New define_insn.
2712 (vsx_xvcvdpsxds_scale): New define_expand.
2713 (vsx_xvcvdpsxds): New define_insn.
2714 (vsx_xvcvdpuxds_scale): New define_expand.
2715 (vsx_xvcvdpuxds): New define_insn.
2716 * doc/extend.texi (vec_ctf): Add new prototypes.
2717 (vec_cts): Likewise.
2718 (vec_ctu): Likewise.
2719 (vec_splat): Likewise.
2720 (vec_div): Likewise.
2721 (vec_mul): Likewise.
2722
2723 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2724
2725 PR target/62275
2726 * config/arm/neon.md
2727 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2728 <v_cmp_result>): New pattern.
2729 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2730 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2731 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2732 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2733 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2734 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2735
2736 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2737
2738 PR target/62275
2739 * config/arm/iterators.md (FIXUORS): New code iterator.
2740 (VCVT): New int iterator.
2741 (su_optab): New code attribute.
2742 (su): Likewise.
2743 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2744
2745 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2746
2747 * config/aarch64/predicates.md (aarch64_comparison_operation):
2748 New special predicate.
2749 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2750 aarch64_comparison_operation instead of matching an operator.
2751 Update operand numbers.
2752 (csinc3<mode>_insn): Likewise.
2753 (*csinv3<mode>_insn): Likewise.
2754 (*csneg3<mode>_insn): Likewise.
2755 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2756 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2757 Return -1 instead of aborting on invalid condition codes.
2758 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2759 to assert that the returned condition code is valid.
2760 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2761
2762 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2763
2764 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2765 tree.def, and gimple.def
2766
2767 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2768 Balaji V. Iyer <balaji.v.iyer@intel.com>
2769 Igor Zamyatin <igor.zamyatin@intel.com>
2770
2771 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2772 (__cilkrts_cilk_for_64): Likewise.
2773 * cilk-common.c (declare_cilk_for_builtin): New function.
2774 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2775 __cilkrts_cilk_for_64 bultins.
2776 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2777 CILK_TI_F_LOOP_64.
2778 (cilk_for_32_fndecl): New define.
2779 (cilk_for_64_fndecl): Likewise.
2780 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2781 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2782 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2783 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2784 GF_OMP_FOR_COMBINED_INTO.
2785 * gimplify.c (gimplify_scan_omp_clauses): Added
2786 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2787 (gimplify_adjust_omp_clauses): Ditto.
2788 (gimplify_omp_for): Added CILK_FOR case.
2789 (gimplify_expr): Ditto.
2790 * omp-low.c: Include cilk.h.
2791 (extract_omp_for_data): Set appropriate kind for
2792 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2793 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2794 (create_omp_child_function_name): Added second argument to handle
2795 cilk_for case.
2796 (cilk_for_check_loop_diff_type): New function.
2797 (expand_cilk_for_call): Likewise.
2798 (expand_cilk_for): Likewise.
2799 (create_omp_child_function): Set cilk_for_count; handle the cases when
2800 it is true; call create_omp_child_function_name with second argument.
2801 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2802 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2803 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2804 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2805 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2806 (convert_local_omp_clauses): Ditto.
2807 * tree-pretty-print.c (dump_omp_clause): Added
2808 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2809 (dump_generic_node): Added CILK_FOR case.
2810 * tree.c (omp_clause_num_ops): New element
2811 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2812 (omp_clause_code_name): New element _Cilk_for_count_.
2813 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2814 * tree.def: Add tree code for CILK_FOR.
2815
2816 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2817
2818 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2819 (ppc403-compare): Add "exts with dot" case.
2820 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2821 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2822 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2823 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2824 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2825 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2826 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2827 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2828 cell-cmp-microcoded): Similarly.
2829 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2830 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2831 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2832 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2833 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2834 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2835 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2836 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2837 (power6-compare): Add "exts with dot" case.
2838 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2839 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2840 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2841
2842 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2843 if avoiding Cell microcode.
2844 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2845 (is_cracked_insn): Ditto.
2846 (insn_must_be_first_in_group): Ditto.
2847 * config/rs6000/rs6000.md (dot): Adjust comment.
2848 (cell_micro): Handle exts+dot.
2849 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2850 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2851 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2852 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2853 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2854 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2855 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2856
2857 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2858
2859 * config/rs6000/rs6000.md (QHSI): Delete.
2860 (EXTQI, EXTHI, EXTSI): New mode iterators.
2861 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2862 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2863 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2864 9 anonymous instructions, and 8 splitters): Delete.
2865 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2866 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2867 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2868 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2869 *zero_extendsi<mode>2_dot2): New.
2870
2871 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2872
2873 * config/rs6000/rs6000.md (any_extend): New code iterator.
2874 (u, su): New code attributes.
2875 (dmode, DMODE): New mode attributes.
2876 (<su>mul<mode>3_highpart): New.
2877 (*<su>mul<mode>3_highpart): New.
2878 (<su>mulsi3_highpart_le): New.
2879 (<su>muldi3_highpart_le): New.
2880 (<su>mulsi3_highpart_64): New.
2881 (<u>mul<mode><dmode>3): New.
2882 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2883 splitters): Delete.
2884 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2885 splitters): Delete.
2886
2887 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2888
2889 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2890 *mulsi3_internal2, and two splitters): Delete.
2891 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2892 Delete.
2893 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2894
2895 2014-09-02 Richard Biener <rguenther@suse.de>
2896
2897 PR tree-optimization/62695
2898 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2899 vector truncate.
2900
2901 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2902
2903 PR target/62312
2904 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2905
2906 2014-09-01 Andi Kleen <ak@linux.intel.com>
2907
2908 * file-find.c (add_prefix_begin): Add.
2909 (do_add_prefix): Rename from add_prefix with first argument.
2910 (add_prefix): Add new wrapper.
2911 * file-find.h (add_prefix_begin): Add.
2912 * gcc-ar.c (main): Support -B option.
2913
2914 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2915
2916 * genemit.c: Include dumpfile.h.
2917 (gen_split): Print name of splitter function to dump file.
2918
2919 2014-09-01 Richard Biener <rguenther@suse.de>
2920
2921 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2922 Use stack auto_vecs for constraint expressions.
2923 (find_func_aliases_for_call): Likewise.
2924 (find_func_aliases): Likewise.
2925 (find_func_clobbers): Likewise.
2926
2927 2014-09-01 Richard Biener <rguenther@suse.de>
2928
2929 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2930 operands vector in most cases. Remove redundant code.
2931
2932 2014-09-01 Olivier Hainque <hainque@adacore.com>
2933
2934 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2935 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2936 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2937
2938 2014-09-01 Richard Biener <rguenther@suse.de>
2939
2940 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2941 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2942 vn_reference_compute_hash, vn_reference_insert): Remove.
2943 (vn_reference_lookup_call): New function.
2944 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2945 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2946 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2947 (create_reference_ops_from_call): Remove.
2948 (vn_reference_lookup_3): Properly update shared_lookup_references.
2949 (vn_reference_lookup_pieces): Assert that we updated
2950 shared_lookup_references properly.
2951 (vn_reference_lookup): Likewise.
2952 (vn_reference_lookup_call): New function.
2953 (visit_reference_op_call): Use it. Avoid re-building the
2954 reference ops.
2955 (visit_reference_op_load): Remove redundant lookup.
2956 (visit_reference_op_store): Perform special tail-merging work
2957 only when possibly doing tail-merging.
2958 (visit_use): Likewise.
2959 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2960
2961 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2962
2963 PR target/62025
2964 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2965 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2966 (find_inc): Revert 2014-08-13 change.
2967
2968 2014-09-01 Marek Polacek <polacek@redhat.com>
2969
2970 PR middle-end/61903
2971 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2972 Change the type of V to unsigned HOST_WIDE_INT.
2973
2974 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2975
2976 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2977 the size of byte markers.
2978 (do_shift_rotate): Fix confusion between host, target and marker byte
2979 size.
2980 (verify_symbolic_number_p): Likewise.
2981 (find_bswap_or_nop_1): Likewise.
2982 (find_bswap_or_nop): Likewise.
2983
2984 2014-09-01 Olivier Hainque <hainque@adacore.com>
2985
2986 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2987 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2988
2989 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2990
2991 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2992 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2993 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2994
2995 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2996
2997 PR sanitizer/61897
2998 PR sanitizer/62140
2999 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
3000 (build_check_stmt): Likewise.
3001 (instrument_strlen_call): Likewise.
3002 (asan_expand_check_ifn): Likewise and fix types.
3003 (maybe_cast_to_ptrmode): New function.
3004
3005 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3006
3007 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
3008
3009 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
3010
3011 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
3012
3013 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
3014
3015 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
3016 prefix to function labels when generating fast indirect calls.
3017
3018 2014-08-30 David Malcolm <dmalcolm@redhat.com>
3019
3020 PR bootstrap/62304
3021
3022 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
3023 param back from rtx_insn * to rtx. Rename param from "label" to
3024 "label_or_return", reintroducing "label" as an rtx_insn * after
3025 we've ensured it's not a RETURN.
3026 (first_active_target_insn): Likewise for return type and param;
3027 add a checked cast to rtx_insn * once we've ensured "insn" is not
3028 a RETURN.
3029 (steal_delay_list_from_target): Convert param "pnew_thread" back
3030 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
3031 with JUMP_LABEL.
3032 (own_thread_p): Convert param "thread" back from an rtx_insn * to
3033 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
3034 cast once we've established we're not dealing with a RETURN,
3035 renaming subsequent uses of "thread" to "thread_insn".
3036 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
3037 to JUMP_LABEL.
3038 (follow_jumps): Convert return type and param "label" from
3039 rtx_insn * back to rtx. Move initialization of "value" to after
3040 the handling for ANY_RETURN_P, adding a checked cast there to
3041 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
3042 rename to "this_label_or_return", reintroducing "this_label" as
3043 an rtx_insn * once we've handled the case where it could be an
3044 ANY_RETURN_P.
3045 (fill_slots_from_thread): Rename param "thread" to
3046 "thread_or_return", converting from an rtx_insn * back to an rtx.
3047 Reintroduce name "thread" as an rtx_insn * local with a checked
3048 cast once we've handled the case of it being an ANY_RETURN_P.
3049 Convert local "new_thread" from an rtx_insn * back to an rtx.
3050 Add a checked cast when assigning to "trial" from "new_thread".
3051 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
3052 checked cast to rtx_insn * from "new_thread" when invoking
3053 get_label_before.
3054 (fill_eager_delay_slots): Convert locals "target_label",
3055 "insn_at_target" from rtx_insn * back to rtx.
3056 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
3057 (relax_delay_slots): Convert locals "trial", "target_label" from
3058 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
3059 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
3060 invoking update_block.
3061 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
3062 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
3063
3064 * resource.h (mark_target_live_regs): Undo erroneous conversion
3065 of second param of r214693, converting it back from rtx_insn * to
3066 rtx, since it could be a RETURN.
3067
3068 * resource.c (find_dead_or_set_registers): Similarly, convert
3069 param "jump_target" back from an rtx_insn ** to an rtx *, as we
3070 could be writing back a RETURN. Rename local rtx_insn * "next" to
3071 "next_insn", and introduce "lab_or_return" as a local rtx,
3072 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
3073 (mark_target_live_regs): Undo erroneous conversion
3074 of second param of r214693, converting it back from rtx_insn * to
3075 rtx, since it could be a RETURN. Rename it from "target" to
3076 "target_maybe_return", reintroducing the name "target" as a local
3077 rtx_insn * with a checked cast, after we've handled the case of
3078 ANY_RETURN_P.
3079
3080 2014-08-29 DJ Delorie <dj@redhat.com>
3081
3082 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
3083 pointer size up to a power of two.
3084 * defaults.h (DWARF2_ADDR_SIZE): Round up.
3085 (POINTER_SIZE_UNITS): New, rounded up value.
3086 * dwarf2asm.c (size_of_encoded_value): Use it.
3087 (dw2_output_indirect_constant_1): Likewise.
3088 * expmed.c (init_expmed_one_conv): We now know the sizes of
3089 partial int modes.
3090 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
3091 * optabs.c (expand_float): Use precision, not size.
3092 (expand_fix): Likewise.
3093 * simplify-rtx (simplify_unary_operation_1): Likewise.
3094 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3095 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
3096 (default_assemble_integer) Likewise.
3097 (dump_tm_clone_pairs): Likewise.
3098 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
3099 * var-tracking.c (adjust_mems): Allow partial-int modes also.
3100 (prepare_call_arguments): Likewise.
3101 * stor-layout.c (finalize_type_size): Preserve precision.
3102 (layout_type): Use precision, not size.
3103
3104 * expr.c (convert_move): If the target has an explicit converter,
3105 use it.
3106
3107 2014-08-29 David Malcolm <dmalcolm@redhat.com>
3108
3109 * gdbinit.in: Skip various inline functions in rtl.h when
3110 stepping.
3111
3112 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
3113
3114 PR bootstrap/62301
3115 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
3116
3117 2014-08-29 Richard Biener <rguenther@suse.de>
3118
3119 PR tree-optimization/62291
3120 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
3121 exactly the vector size needed and use quick_push.
3122 (phi_translate_1): Adjust comment.
3123 (valid_in_sets): Remove block argument and remove pointless
3124 checking of NAMEs.
3125 (dependent_clean): Adjust for removal of block argument.
3126 (clean): Likewise.
3127 (compute_antic_aux): Likewise.
3128 (compute_partial_antic_aux): Likewise.
3129
3130 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
3131 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3132 Anna Tikhonova <anna.tikhonova@intel.com>
3133 Ilya Tocar <ilya.tocar@intel.com>
3134 Andrey Turetskiy <andrey.turetskiy@intel.com>
3135 Ilya Verbin <ilya.verbin@intel.com>
3136 Kirill Yukhin <kirill.yukhin@intel.com>
3137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3138
3139 * config/i386/sse.md
3140 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
3141 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
3142 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
3143 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
3144
3145 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
3146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3147 Anna Tikhonova <anna.tikhonova@intel.com>
3148 Ilya Tocar <ilya.tocar@intel.com>
3149 Andrey Turetskiy <andrey.turetskiy@intel.com>
3150 Ilya Verbin <ilya.verbin@intel.com>
3151 Kirill Yukhin <kirill.yukhin@intel.com>
3152 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3153
3154 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
3155 * config/i386/sse.md
3156 (define_mode_iterator VI4_128_8_256): New.
3157 (define_mode_iterator VI2_128_4_256): Ditto.
3158 (define_mode_iterator PMOV_DST_MODE): Rename into
3159 (define_mode_iterator PMOV_DST_MODE_1): this.
3160 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
3161 Use PMOV_DST_MODE_1 mode iterator.
3162 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3163 Ditto.
3164 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
3165 Ditto.
3166 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
3167 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
3168 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
3169 (define_mode_iterator PMOV_DST_MODE_2): New.
3170 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
3171 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
3172 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
3173 Ditto.
3174 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
3175 (define_mode_attr pmov_dst_3): Ditto.
3176 (define_mode_attr pmov_dst_zeroed_3): Ditto.
3177 (define_mode_attr pmov_suff_3): Ditto.
3178 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
3179 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
3180 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
3181 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
3182 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
3183 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
3184 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
3185 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
3186 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
3187 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
3188 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
3189 (define_mode_attr pmov_dst_4): Ditto.
3190 (define_mode_attr pmov_dst_zeroed_4): Ditto.
3191 (define_mode_attr pmov_suff_4): Ditto.
3192 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
3193 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
3194 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
3195 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
3196 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
3197 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
3198 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
3199 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
3200 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
3201 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
3202 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
3203
3204 2014-08-29 Richard Biener <rguenther@suse.de>
3205
3206 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
3207 NON_LVALUE_EXPR in gimple.
3208
3209 2014-08-29 Richard Biener <rguenther@suse.de>
3210
3211 PR middle-end/62292
3212 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
3213 from previous refactoring.
3214 (gimple_fold_builtin_strncpy): Likewise.
3215
3216 2014-08-29 David Malcolm <dmalcolm@redhat.com>
3217
3218 PR bootstrap/62300
3219 * function.c (assign_parm_setup_reg): Remove erroneous checked
3220 cast to rtx_insn * on result of gen_extend_insn in favor of
3221 introducing a new local rtx "pat".
3222
3223 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3224
3225 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
3226 to silence warning.
3227 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
3228
3229 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3230
3231 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
3232 (next_insn): Likewise.
3233 * emit-rtl.c (next_insn): Likewise.
3234 (previous_insn): Likewise.
3235 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
3236 "insn" and "next" from rtx to rtx_insn *.
3237 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
3238 "insn", "insn1", "vliw_start", "prologue_end_note",
3239 "last_insn_in_packet".
3240
3241 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3242
3243 * shrink-wrap.h (active_insn_between): Strengthen both params from
3244 rtx to rtx_insn *.
3245 * function.c (active_insn_between): Likewise.
3246
3247 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3248
3249 * genattr.c (main): When writing out insn-attr.h, strengthen param
3250 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
3251 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
3252 writing out the definition of dfa_clear_single_insn_cache to the
3253 generated insn-automata.c
3254
3255 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3256
3257 * resource.h (clear_hashed_info_for_insn): Strengthen param from
3258 rtx to rtx_insn *.
3259 (incr_ticks_for_insn): Likewise.
3260 (init_resource_info): Likewise.
3261
3262 * resource.c (init_resource_info): Likewise.
3263 (clear_hashed_info_for_insn): Likewise.
3264 (incr_ticks_for_insn): Likewise.
3265
3266 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
3267 rtx to rtx_insn *.
3268 (steal_delay_list_from_target): Use methods of "seq".
3269 (try_merge_delay_insns): Use methods of "merged_insns".
3270 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
3271 (reorg_redirect_jump): Likewise for param "jump".
3272
3273 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3274
3275 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
3276 rtx to rtx_insn *.
3277 * config/s390/s390.c (s390_split_branches): Eliminate top-level
3278 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
3279 "set_insn".
3280 (s390_mainpool_finish): In three places, split out a local rtx
3281 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
3282 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
3283 and split another local rtx "insn" out into rtx "pat" and
3284 rtx_insn * "insn".
3285 * config/sh/sh.c (output_branchy_insn): Rather than working
3286 directly on operands[9], introduce local rtx_code_label *
3287 variables named "lab" in two places, working on them, and then
3288 assigning them to operands[9], so that the intervening operations
3289 are known by the type system to be on insns.
3290
3291 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3292
3293 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
3294 const rtx_insn *.
3295
3296 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
3297 in invocation of INSN_HAS_LOCATION.
3298
3299 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3300
3301 * config/rs6000/altivec.h (vec_xl): New #define.
3302 (vec_xst): Likewise.
3303 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
3304 (XXSPLTD_V2DI): Likewise.
3305 (DIV_V2DI): Likewise.
3306 (UDIV_V2DI): Likewise.
3307 (MUL_V2DI): Likewise.
3308 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3309 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
3310 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
3311 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
3312 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
3313 (UNSPEC_VSX_DIVSD): Likewise.
3314 (UNSPEC_VSX_DIVUD): Likewise.
3315 (UNSPEC_VSX_MULSD): Likewise.
3316 (vsx_mul_v2di): New insn-and-split.
3317 (vsx_div_v2di): Likewise.
3318 (vsx_udiv_v2di): Likewise.
3319 (vsx_xxspltd_<mode>): New insn.
3320
3321 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3322
3323 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
3324 NEXT_INSN.
3325 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
3326 (NEXT_INSN): Likewise.
3327 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
3328 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
3329 const rtx_insn *.
3330 (no_labels_between_p): Likewise for both params.
3331
3332 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
3333 cast when using NEXT_INSN on operands[2].
3334 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
3335 "insn" from rtx to rtx_insn *, adding a checked cast.
3336 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
3337 rtx_insn *.
3338 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
3339 for third param.
3340 (arc_text_label): Likewise for param "insn".
3341 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
3342 "insn".
3343 (arc_ccfsm_record_condition): Likewise for param "jump".
3344 (arc_text_label): Likewise for local "label".
3345 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
3346 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
3347 a method for typesafety. Add a checked cast.
3348 * config/arc/constraints.md (Clb): Add a checked cast when getting
3349 the CODE_LABEL from a LABEL_REF.
3350 * config/arm/arm.c (require_pic_register): Strengthen locals
3351 "seq", "insn" from rtx to rtx_insn *.
3352 (create_fix_barrier): Likewise for locals "selected", "next".
3353 (thumb1_reorg): Likewise for locals "prev", "insn".
3354 (arm_expand_prologue): Likewise for local "last".
3355 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
3356 operands[0].
3357 (thumb2_output_casesi): Likewise for operands[2].
3358 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
3359 strengthen local "insn" from rtx to rtx_insn *.
3360 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
3361 type and param "insn".
3362 (find_prev_insn_start): Likewise.
3363 (hwloop_optimize): Likewise for locals "insn", "last_insn",
3364 "prev".
3365 (gen_one_bundle): Likewise for loal "t".
3366 (find_load): Likewise for param "insn".
3367 (workaround_speculation): Likewise for locals "insn", "next",
3368 "target", "next_tgt".
3369 * config/c6x/c6x.c (assign_reservations): Likewise for both params
3370 and for locals "insn", "within", "last".
3371 (count_unit_reqs): Likewise for params "head", "tail" and local
3372 "insn".
3373 (try_rename_operands): Likewise for params "head", "tail".
3374 (reshuffle_units): Likewise for locals "head", "tail", "insn".
3375 (struct c6x_sched_context): Likewise for fields
3376 "last_scheduled_insn", "last_scheduled_iter0".
3377 (init_sched_state): Replace NULL_RTX with NULL.
3378 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
3379 to rtx_insn *.
3380 (undo_split_delayed_nonbranch): Likewise for param and for local
3381 "prev".
3382 (conditionalize_after_sched): Likewise for local "insn".
3383 (bb_earliest_end_cycle): Likewise.
3384 (filter_insns_above): Likewise for locals "insn", "next".
3385 (hwloop_optimize): Remove redundant checked cast.
3386 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
3387 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
3388 NULL_RTX with NULL.
3389 (cris_simple_epilogue): Likewise.
3390 (cris_expand_prologue): Likewise.
3391 (cris_expand_epilogue): Likewise.
3392 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
3393 local "insn" from rtx to rtx_insn *.
3394 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
3395 (struct frv_packet_group): Likewise for the elements within array
3396 fields "insns", "sorted", and for field "nop".
3397 (frv_packet): Likewise for the elements within array field
3398 "insns".
3399 (frv_add_insn_to_packet): Likewise for param "insn".
3400 (frv_insert_nop_in_packet): Likewise for param "insn" and local
3401 "last".
3402 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
3403 (frv_sort_insn_group_1): Likewise for local "insn".
3404 (frv_optimize_membar_local): Likewise.
3405 (frv_align_label): Likewise for locals "x", "last", "barrier",
3406 "label".
3407 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
3408 local.
3409 (ia64_sched_init): Likewise for local "insn".
3410 (scheduled_good_insn): Likewise for param "last".
3411 (struct _ia64_sched_context): Likewise for field
3412 "last_scheduled_insn".
3413 (ia64_init_sched_context): Replace NULL_RTX with NULL.
3414 (struct bundle_state): Likewise for field "insn".
3415 (issue_nops_and_insn): Likewise for param "insn".
3416 (get_next_important_insn): Likewise for return type and both
3417 params.
3418 (ia64_add_bundle_selector_before): Likewise for param "insn".
3419 (bundling): Likewise for params "prev_head_insn", "tail" and
3420 locals "insn", "next_insn", "b". Eliminate top-level local rtx
3421 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
3422 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
3423 Strengthen final param from rtx to rtx_insn *.
3424 (iq2000_move_1word): Likewise for second param.
3425 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
3426 param "cur_insn" and local "next_insn".
3427 (iq2000_move_1word): Likewise for param "insn".
3428 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
3429 casts when using NEXT_INSN on operands[1].
3430 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
3431 "insn" from rtx to rtx_insn *.
3432 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
3433 "x", introducing local rtx_insn * "insn" for when working with the
3434 CODE_LABEL of the LABEL_REF.
3435 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
3436 rtx_insn *.
3437 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
3438 param.
3439 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
3440 type.
3441 (conditionalize_block): Likewise for return type and param.
3442 (mcore_is_dead): Likewise for param "first" and local "insn".
3443 (emit_new_cond_insn): Likewise for return type.
3444 (conditionalize_block): Likewise for return type, param, and
3445 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
3446 "newinsn".
3447 (conditionalize_optimization): Likewise for local "insn".
3448 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
3449 using NEXT_INSN.
3450 * config/microblaze/microblaze.md: Add checked casts when using
3451 NEXT_INSN.
3452 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3453 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3454 and rtx_insn * "insn".
3455 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3456 checked cast when using NEXT_INSN on operands[2].
3457 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3458 local "insn" from rtx to rtx_insn *.
3459 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3460 Likewise.
3461 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3462 Add a checked cast when using NEXT_INSN on operands[1].
3463 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3464 rtx to rtx_insn *.
3465 (pa_output_cbranch): Likewise for final param.
3466 (pa_output_lbranch): Likewise for second param.
3467 (pa_output_bb): Likewise for third param.
3468 (pa_output_bvb): Likewise.
3469 (pa_output_dbra): Likewise for second param.
3470 (pa_output_movb): Likewise.
3471 (pa_output_parallel_movb): Likewise.
3472 (pa_output_parallel_addb): Likewise.
3473 (pa_output_millicode_call): Likewise for first param.
3474 (pa_output_mul_insn): Likewise for second param.
3475 (pa_output_div_insn): Likewise for third param.
3476 (pa_output_mod_insn): Likewise for second param.
3477 (pa_jump_in_call_delay): Likewise for param.
3478 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3479 (pa_output_div_insn): Likewise.
3480 (pa_output_mod_insn): Likewise.
3481 (pa_output_cbranch): Likewise.
3482 (pa_output_lbranch): Likewise.
3483 (pa_output_bb): Likewise.
3484 (pa_output_bvb): Likewise.
3485 (pa_output_dbra): Likewise.
3486 (pa_output_movb): Likewise.
3487 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3488 to simplify and for typesafety.
3489 (pa_output_call): Use method of rtx_sequence *.
3490 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3491 (pa_jump_in_call_delay): Likewise.
3492 (pa_output_parallel_movb): Likewise.
3493 (pa_output_parallel_addb): Likewise.
3494 (pa_following_call): Likewise.
3495 (pa_combine_instructions): Likewise for locals "anchor",
3496 "floater".
3497 (pa_can_combine_p): Likewise for params "anchor", "floater" and
3498 locals "start", "end".
3499 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3500 param "insn" and local "local_insn".
3501 (picochip_final_prescan_insn): Likewise for local "local_insn".
3502 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3503 local "insn".
3504 (uses_TOC): Likewise.
3505 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3506 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3507 splitting out to more tightly-scoped locals, 3 as rtx and one as
3508 rtx_insn *.
3509 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3510 to rtx_insn *.
3511 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3512 where needed.
3513 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3514 to rtx_insn *.
3515 (fixup_addr_diff_vecs): Likewise.
3516 (reg_unused_after): Likewise for param 2.
3517 (sh_can_redirect_branch): Likewise for both params.
3518 (check_use_sfunc_addr): Likewise for param 1.
3519 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3520 (find_barrier): Likewise for local "last_got".
3521 (gen_block_redirect): Likewise for return type, param "jump" and
3522 locals "prev", "scan", "next", "insn".
3523 (struct far_branch): Likewise for fields "near_label",
3524 "insert_place", "far_label".
3525 (gen_far_branch): Likewise for local "jump".
3526 (fixup_addr_diff_vecs): Likewise for param "first" and locals
3527 "insn", "prev".
3528 (barrier_align): Likewise for param and for locals "prev", "x".
3529 Introduce local rtx_sequence * "prev_seq" and use insn method for
3530 typesafety and clarity.
3531 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3532 (get_dest_uid): Likewise for local "dest".
3533 (split_branches): Likewise for locals "next", "beyond", "label",
3534 "block", "far_label". Add checked casts when assigning to
3535 bp->far_label and "far_label".
3536 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3537 (sequence_insn_p): Likewise.
3538 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
3539 more loop-scoped rtx "insn" when walking LABEL_REFS.
3540 (sh_can_redirect_branch): Strengthen both params from rtx to
3541 rtx_insn *.
3542 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
3543 new local rtx_sequence * "seq" via a dyn_cast, and use a method
3544 for clarity and typesafety.
3545 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3546 "insn" from rtx to rtx_insn *.
3547 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3548 when using NEXT_INSN on the CODE_LABEL in operands[2].
3549 (define_insn "casesi_worker_2"): Likewise.
3550 (define_insn "casesi_shift_media"): Likewise.
3551 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3552 operands[3].
3553 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3554 Strengthen field "insn" from rtx to rtx_insn *.
3555 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3556 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3557 param "start_insn" and local "start_insn".
3558 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3559 field "insn".
3560 (find_set_of_reg_bb): Likewise for param "insn".
3561 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3562 (trace_reg_uses): Likewise for param "start_insn".
3563 (sh_treg_combine::cbranch_trace): Likewise for field
3564 "cbranch_insn".
3565 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3566 param "insn".
3567 (sh_treg_combine::record_set_of_reg): Likewise for param
3568 "start_insn" and local "i".
3569 (sh_treg_combine::can_remove_cstore): Likewise for local
3570 "prev_insn".
3571 (sh_treg_combine::try_optimize_cbranch): Likewise for param
3572 "insn".
3573 (sh_treg_combine::execute): Likewise for local "i".
3574 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3575 param.
3576 (sparc_check_64): Likewise for second param.
3577 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3578 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
3579 dyn_cast, using its insn method for typesafety and clarity.
3580 (empty_delay_slot): Strengthen param "insn" from rtx to
3581 rtx_insn *.
3582 (set_extends): Likewise.
3583 (sparc_check_64): Likewise.
3584 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3585 for locals "seq", "last_insn".
3586 (combine_bnp): Likewise for param "insn".
3587 (xstormy16_reorg): Likewise for local "insn".
3588 * config/v850/v850.c (substitute_ep_register): Likewise for params
3589 "first_insn", "last_insn" and local "insn".
3590 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3591 elements of "regs" array, and local "insn".
3592 * except.c (emit_note_eh_region_end): Likewise for param "insn".
3593 * final.c (final_sequence): Strengthen this global from rtx to
3594 rtx_sequence *.
3595 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3596 rtx_insn *.
3597 (final_scan_insn): Update assignment to "final_sequence" to be
3598 from "seq", the cast version of "body", for type-safety.
3599 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3600 "insns" from rtx to rtx_insn *.
3601 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3602 * genattr.c (main): When writing out generated insn-attr.h,
3603 strengthen params 1 and 3 of eligible_for_delay,
3604 eligible_for_annul_true, eligible_for_annul_false from rtx to
3605 rtx_insn *.
3606 * genattrtab.c (write_eligible_delay): Likewise when writing out
3607 generated insn-attrtab.c; also local "insn" the generated
3608 functions.
3609 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3610 to rtx_insn *.
3611 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3612 "start_label" from rtx to rtx_insn *.
3613 * ira.c (decrease_live_ranges_number): Likewise for local "p".
3614 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3615 "insns" and local "insn".
3616 (validate_equiv_mem): Likewise for param "start" and local "insn".
3617 (memref_used_between_p): Likewise for params "start", "end" and
3618 local "insn".
3619 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3620 final param.
3621 * loop-doloop.c (doloop_optimize): Within region guarded by
3622 INSN_P (doloop_pat), introduce a new local rtx_insn *
3623 "doloop_insn" via a checked cast, and use it for typesafety,
3624 eventually writing the value back into doloop_pat.
3625 * output.h (final_sequence): Strengthen this global from rtx to
3626 rtx_sequence *.
3627 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3628 reintroducing "insn" as an rtx_insn * via a checked cast.
3629 Strengthen param "attempt" and local "new_insn"from rtx to
3630 rtx_insn *.
3631 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3632 to rtx_insn *.
3633 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3634 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3635 "p" in favor of more tightly-scoped replacements, sometimes rtx
3636 and sometimes rtx_insn *, as appropriate.
3637 (delete_output_reload): Eliminate top-level rtx "i1", splitting
3638 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3639 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
3640 local "trial" from rtx to rtx_insn *.
3641 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3642 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3643 rtx_sequence * and use methods for clarity and typesafety.
3644 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3645 rtx to rtx_insn *. Strenghten local "li" from rtx to
3646 rtx_insn_list * and use its methods for clarity and typesafety.
3647 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3648 to rtx_insn *.
3649 (steal_delay_list_from_fallthrough): Likewise.
3650 (try_merge_delay_insns): Likewise for param "thread" and locals
3651 "trial", "next_trial", "delay_insn".
3652 (redundant_insn): Likewise for param "target" and local "trial".
3653 (own_thread_p): Likewise for param "thread" and locals
3654 "active_insn", "insn".
3655 (get_label_before): Likewise for param "insn".
3656 (fill_simple_delay_slots): Likewise for local "new_label"; use
3657 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3658 (label_before_next_insn): Strengthen return type and local "insn"
3659 from rtx to rtx_insn *.
3660 (relax_delay_slots): Likewise for locals "other", "tmp".
3661 (make_return_insns): Likewise for param "first" and locals "insn",
3662 "jump_insn", "prev". Move declaration of "pat" to its assignment
3663 and strengthen from rtx to rtx_sequence *. Use its methods for
3664 clarity and typesafety.
3665 * rtlanal.c (no_labels_between_p): Strengthen params from
3666 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3667 rtx_insn *.
3668 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3669 from const_rtx to const rtx_insn *.
3670 (reg_set_between_p): Rename param "from_insn" to
3671 "uncast_from_insn", and reintroduce "from_insn" as a
3672 const rtx_insn * via a checked cast.
3673 (modified_between_p): Likewise for param "start" as "uncast_start".
3674 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3675 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3676 "tmp", head" from rtx to rtx_insn *.
3677 (recompute_rev_top_order): Likewise for local "insn".
3678 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3679 * store-motion.c (build_store_vectors): Likewise for local "insn".
3680 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3681 for clarity and typesafety.
3682 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3683 rtx to rtx_insn *.
3684 (computation_cost): Likewise for local "seq".
3685 (get_address_cost): Likewise.
3686
3687 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3688
3689 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3690 const rtx_insn *.
3691 (label_is_jump_target_p): Likewise for second param.
3692
3693 * rtlanal.c (tablejump_p): Likewise for param "insn".
3694 (label_is_jump_target_p): Likewise for param "jump_insn".
3695
3696 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3697
3698 * rtl.h (find_first_parameter_load): Strengthen return type and
3699 both params from rtx to rtx_insn *.
3700 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3701 both params and locals "before", "first_set" from rtx to
3702 rtx_insn *. Remove now-redundant cast.
3703 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3704
3705 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3706
3707 * rtl.h (find_last_value): Delete.
3708 * rtlanal.c (find_last_value): Delete.
3709
3710 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3711
3712 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3713 from rtx to rtx_insn *.
3714 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3715 rtx "note" with new local rtx_insn * "new_head" when calculating
3716 head insn of new basic block.
3717 * combine.c (combine_split_insns): Strengthen return type and local
3718 "ret" from rtx to rtx_insn *.
3719 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3720 (try_combine): Eliminate local "m_split", splitting into new
3721 locals "m_split_insn" and "m_split_pat".
3722 (find_split_point): Strengthen local "seq" from rtx into
3723 rtx_insn *.
3724 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3725 locals "label", "branch".
3726 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3727 for local "insn".
3728 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3729 * dse.c (note_add_store_info): Likewise for fields "first",
3730 "current".
3731 (note_add_store): Likewise for local "insn".
3732 (emit_inc_dec_insn_before): Likewise for locals "insn",
3733 "new_insn", "cur".
3734 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3735 (replace_read): Likewise for locals "insns", "this_insn".
3736 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3737 (notice_eh_throw): Likewise for param "insn".
3738 (before_next_cfi_note): Likewise for return type, param, and local
3739 "prev".
3740 (connect_traces): Likewise for local "note".
3741 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3742 (verify_rtl_sharing): Likewise.
3743 (unshare_all_rtl_in_chain): Likewise for param "insn".
3744 (get_first_nonnote_insn): Likewise for local "insn".
3745 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3746 "seq" and use its methods to clarify things.
3747 (next_insn): Strengthen return type from rtx to rtx_insn *.
3748 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3749 local rtx_insn * using a checked cast, dropping a checked cast
3750 made redundant by this change. Use a cast to and method of
3751 rtx_sequence to clarify the code.
3752 (previous_insn): Rename param "insn" to "uncast_insn" and
3753 reintroduce "insn" as a local rtx_insn * using a checked cast,
3754 dropping a checked cast made redundant by this change. Use a cast
3755 to and method of rtx_sequence to clarify the code.
3756 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3757 reintroduce "insn" as a local rtx_insn * using a checked cast,
3758 dropping a checked cast made redundant by this change.
3759 (next_nonnote_insn_bb): Likewise.
3760 (prev_nonnote_insn): Likewise.
3761 (prev_nonnote_insn_bb): Likewise.
3762 (next_nondebug_insn): Likewise.
3763 (prev_nondebug_insn): Likewise.
3764 (next_nonnote_nondebug_insn): Likewise.
3765 (prev_nonnote_nondebug_insn): Likewise.
3766 (next_real_insn): Likewise.
3767 (prev_real_insn): Likewise.
3768 (next_active_insn): Likewise.
3769 (prev_active_insn): Likewise.
3770 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3771 clarity.
3772 (prev_cc0_setter): Likewise.
3773 (try_split): Rename param "trial" to "uncast_trial" and
3774 reintroduce "insn" as a local rtx_insn * using a checked cast,
3775 dropping checked casts made redundant by this change.
3776 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3777 rtx to rtx_insn *.
3778 (remove_insn): Rename param "insn" to "uncast_insn" and
3779 reintroduce "insn" as a local rtx_insn * using a checked cast.
3780 (emit_pattern_after_setloc): Likewise for param "after", as
3781 "uncast_after".
3782 (emit_pattern_after): Likewise. Strengthen local "prev" from
3783 rtx to rtx_insn *.
3784 (emit_pattern_before_setloc): Rename param "before" to
3785 "uncast_before" and reintroduce "before" as a local rtx_insn *
3786 using a checked cast. Strengthen locals "first", "last" from
3787 rtx to rtx_insn *.
3788 (emit_pattern_before): Likewise rename/cast param "before" to
3789 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3790 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3791 "first" and local "insn" from rtx to rtx_insn *.
3792 (copy_reg_eh_region_note_backward): Likewise for param "last"
3793 and local "insn".
3794 * expr.c (fixup_args_size_notes): Rename param "last" to
3795 "uncast_last" and reintroduce "last" as a local rtx_insn *
3796 using a checked cast. Strengthen local "insn" from rtx to
3797 rtx_insn *.
3798 * function.c (set_insn_locations): Strengthen param "insn" from
3799 rtx to rtx_insn *.
3800 (record_insns): Likewise for param "insns" and local "tmp".
3801 (active_insn_between): Rename param "tail" to
3802 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3803 using a checked cast.
3804 (thread_prologue_and_epilogue_insns): Split out top-level local
3805 rtx "seq" into three different rtx_insn * locals. Strengthen
3806 local "prologue_seq" from rtx to rtx_insn *.
3807 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3808 from rtx to rtx_insn *.
3809 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3810 (priority): Likewise for locals "prev_first", "twin".
3811 (setup_insn_max_reg_pressure): Likewise for param "after".
3812 (sched_setup_bb_reg_pressure_info): Likewise.
3813 (no_real_insns_p): Strengthen params from const_rtx to
3814 const rtx_insn *.
3815 (schedule_block): Strengthen local "next_tail" from rtx to
3816 rtx_insn *.
3817 * ifcvt.c (find_active_insn_before): Strengthen return type and
3818 param "insn" from rtx to rtx_insn *.
3819 (find_active_insn_after): Likewise.
3820 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3821 (cond_exec_process_if_block): Likewise for locals "then_start",
3822 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3823 (noce_process_if_block): Likewise for local "jump".
3824 (merge_if_block): Likewise for two locals named "end".
3825 (cond_exec_find_if_block): Likewise for local "last_insn".
3826 * jump.c (delete_related_insns): Rename param "insn" to
3827 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3828 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3829 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3830 NULL.
3831 (split_reg): Likewise.
3832 * lra.c (lra_process_new_insns): Likewise.
3833 * modulo-sched.c (permute_partial_schedule): Strengthen param
3834 "last" from rtx to rtx_insn *.
3835 * optabs.c (add_equal_note): Likewise for param "insns" and local
3836 "last_insn".
3837 (expand_binop_directly): Add checked casts to rtx_insn * within
3838 NEXT_INSN (pat) uses.
3839 (expand_unop_direct): Likewise.
3840 (maybe_emit_unop_insn): Likewise.
3841 * recog.c (peep2_attempt): Strengthen locals "last",
3842 "before_try", "x" from rtx to rtx_insn *.
3843 * reorg.c (optimize_skip): Strengthen return type and local
3844 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3845 and locals "trial", "next_trial" from rtx to rtx_insn *.
3846 * resource.c (next_insn_no_annul): Strengthen return type and
3847 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3848 rtx_sequence to clarify the code.
3849 (mark_referenced_resources): Add a checked cast to rtx_insn *
3850 within PREV_INSN (x).
3851 (find_dead_or_set_registers): Strengthen return type, param
3852 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3853 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3854 to rtx_insn **.
3855 (mark_target_live_regs): Strengthen params "insns" and "target",
3856 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3857 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3858 the code.
3859 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3860 from rtx to rtx_insn *.
3861 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3862 from rtx to rtx_insn *.
3863 (copy_reg_eh_region_note_backward): Likewise.
3864 (unshare_all_rtl_in_chain): Likewise for sole param.
3865 (dump_rtl_slim): Strengthen second and third params from const_rtx
3866 to const rtx_insn *.
3867 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3868 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3869 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3870 "next_tail" from rtx to rtx_insn *.
3871 (begin_move_insn): Likewise for local "next".
3872 * sched-int.h (sched_free_deps): Likewise for first and second
3873 params.
3874 (no_real_insns_p): Strengthen both params from const_rtx to
3875 const rtx_insn *.
3876 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3877 rtx to rtx_insn *.
3878 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3879 "next_tail".
3880 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3881 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3882 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3883 rtx_insn *.
3884 (debug_rtl_slim): Strengthen params "first" and "last" from
3885 const_rtx to const rtx_insn *.
3886 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3887 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3888 (convert_to_simple_return): Likewise for param "returnjump".
3889 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3890 "prologue_seq".
3891 (convert_to_simple_return): Likewise for param "returnjump".
3892 * valtrack.c (propagate_for_debug): Likewise for params
3893 "insn", "last".
3894 * valtrack.h (propagate_for_debug): Likewise for second param.
3895
3896 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3897
3898 * output.h (insn_current_reference_address): Strengthen param
3899 from rtx to rtx_insn *.
3900 * final.c (insn_current_reference_address): Likewise.
3901
3902 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3903
3904 * basic-block.h (inside_basic_block_p): Strengthen param from
3905 const_rtx to const rtx_insn *.
3906 * cfgbuild.c (inside_basic_block_p): Likewise.
3907
3908 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3909
3910 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3911 rtx_insn *.
3912 (get_trace_info): Likewise for param "insn".
3913 (save_point_p): Likewise.
3914 (maybe_record_trace_start): Likewise for both params.
3915 (maybe_record_trace_start_abnormal): Likewise.
3916 (create_trace_edges): Likewise for sole param and for three of the
3917 locals named "lab".
3918 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3919 to rtx_insn *, and update a call to pat->element to pat->insn.
3920
3921 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3922
3923 * function.h (struct expr_status): Convert field "x_forced_labels"
3924 from rtx_expr_list * to rtx_insn_list *.
3925
3926 * cfgbuild.c (make_edges): Convert local "x" from an
3927 rtx_expr_list * to an rtx_insn_list *, replacing use of
3928 "element" method with "insn" method.
3929 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3930 * except.c (sjlj_emit_dispatch_table): Replace use of
3931 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3932 forced_labels.
3933 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3934 rtx_expr_list * to an rtx_insn_list *, replacing use of
3935 "element" method with "insn" method.
3936 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3937 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3938 rtx_insn *, adding a checked cast. Replace use of
3939 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3940 forced_labels.
3941 (expand_label): Likewise for local "label_r".
3942
3943 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3944
3945 * function.h (struct rtl_data): Convert field
3946 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3947 rtx_insn_list *.
3948 * rtl.h (remove_node_from_insn_list): New prototype.
3949
3950 * builtins.c (expand_builtin): When prepending to
3951 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3952 gen_rtx_EXPR_LIST.
3953 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3954 to rtx_insn_list *, and use its "insn" method rather than
3955 "element" method.
3956 * cfgrtl.c (delete_insn): Use new function
3957 remove_node_from_insn_list rather than
3958 remove_node_from_expr_list.
3959 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3960 to rtx_insn_list *, and use its "insn" method rather than
3961 "element" method.
3962 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3963 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3964 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3965 from remove_node_from_expr_list.
3966 * stmt.c (expand_label): When prepending to
3967 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3968 gen_rtx_EXPR_LIST.
3969
3970 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3971
3972 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3973 and "x_naked_return_label" from rtx to rtx_code_label *.
3974
3975 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3976
3977 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3978 (SET_NEXT_INSN): Likewise.
3979 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3980
3981 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3982 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3983 to split out the SEQUENCE from local "bundle", strengthening the
3984 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3985 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3986 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3987 and the type of the elements of the "slot" array from rtx to
3988 rtx_insn *.
3989 (reorg_split_calls): Likewise for locals "insn" and "next", and
3990 the type of the elements of the "slot" array.
3991
3992 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3993 array.
3994 (frv_function_prologue): Likewise for locals "insn", "next",
3995 "last_call".
3996 (frv_register_nop): Introduce a local "nop_insn" to be the
3997 rtx_insn * containing rtx "nop".
3998
3999 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
4000 used as an insn and sometimes as a pattern, so rename it to
4001 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
4002 using it where dealing with the core insn.
4003
4004 * config/picochip/picochip.c (reorder_var_tracking_notes):
4005 Strengthen locals "insn", "next", "last_insn", "queue",
4006 "next_queue", "prev" from rtx to rtx_insn *.
4007
4008 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
4009 the second param is an rtx_insn ** rather than an rtx **.
4010 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
4011 from rtx to rtx_sequence *, and introduce local named "sequence",
4012 using methods of rtx_sequence to clarify the code.
4013 (remove_insn): Introduce local rtx_sequence * named "sequence" and
4014 use its methods.
4015 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
4016 Rename param "after" to "uncast_after", reintroducing "after" as a
4017 local rtx_insn * with a checked cast.
4018 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
4019 reintroducing "after" as a local rtx_insn * with a checked cast.
4020 Strengthen local "last" from rtx to rtx_insn * and remove the
4021 now-redundant checked casts.
4022 (copy_delay_slot_insn): Strengthen return type and param from rtx
4023 to rtx_insn *.
4024
4025 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
4026 "last" from rtx to rtx_insn *.
4027
4028 2014-08-28 David Malcolm <dmalcolm@redhat.com>
4029
4030 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
4031 param from rtx to rtx_insn *.
4032
4033 * emit-rtl.c (copy_delay_slot_insn): Likewise.
4034
4035 * reorg.c (skip_consecutive_labels): Strengthen return type, param
4036 and local "insn" from rtx to rtx_insn *.
4037 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
4038 (unfilled_slots_next): Likewise.
4039 (function_return_label): Strengthen from rtx to rtx_code_label *.
4040 (function_simple_return_label): Likewise.
4041 (first_active_target_insn): Strengthen return type and param from
4042 rtx to rtx_insn *.
4043 (find_end_label): Strengthen return type from rtx to
4044 rtx_code_label *; strengthen locals as appropriate.
4045 (emit_delay_sequence): Strengthen return type, param "insn" and
4046 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
4047 and local "li" from rtx to rtx_insn_list *, using methods of
4048 rtx_insn_list for clarity and typesafety.
4049 (add_to_delay_list): Strengthen return type and param "insn" from
4050 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
4051 rtx_insn_list * and use methods of rtx_insn_list.
4052 (delete_from_delay_slot): Strengthen return type, param "insn",
4053 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
4054 Strengthen local "seq" from rtx to rtx_sequence *, and local
4055 "delay_list" from rtx to rtx_insn_list *, using methods of
4056 rtx_sequence for clarity and type-safety.
4057 (delete_scheduled_jump): Add checked cast when invoking
4058 delete_from_delay_slot. Strengthen local "trial" from rtx to
4059 rtx_insn *.
4060 (optimize_skip): Strengthen return type and local "delay_list"
4061 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
4062 rtx_insn *.
4063 (steal_delay_list_from_target): Strengthen return type, param
4064 "delay_list" and local "new_delay_list" from rtx to
4065 rtx_insn_list *. Strengthen param "seq" from rtx to
4066 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
4067 rtx_insn **.
4068 Split out local "temp" into multiple more-tightly scoped locals:
4069 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
4070 of rtx_insn_list and rtx_sequence for clarity and typesafety.
4071 Strengthen locals named "trial" from rtx to rtx_insn *.
4072 (steal_delay_list_from_fallthrough): Strengthen return type and
4073 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
4074 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
4075 Strengthen local "trial" from rtx to rtx_insn *.
4076 (try_merge_delay_insns): Strength local "merged_insns" from rtx
4077 to rtx_insn_list * and use its methods. Strengthen local "pat"
4078 from rtx to rtx_sequence * and use its methods. Strengthen locals
4079 "dtrial" and "new_rtx" from rtx to rtx_insn *.
4080 (get_label_before): Strengthen return type and local "label" from
4081 rtx to rtx_insn *.
4082 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
4083 "next_trial", "next", prev". Strengthen local "delay_list" from
4084 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
4085 rtx_insn **.
4086 (follow_jumps): Strengthen return type, param "label" and locals
4087 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
4088 (fill_slots_from_thread): Strengthen return type, param
4089 "delay_list" from rtx to rtx_insn_list *. Strengthen params
4090 "insn", "thread", "opposite_thread" and locals "new_thread",
4091 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
4092 "sequence" from a checked cast to rtx_sequence so that we can call
4093 steal_delay_list_from_target and steal_delay_list_from_fallthrough
4094 with an rtx_sequence *.
4095 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
4096 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
4097 Strengthen local "delay_list" from rtx to rtx_insn_list *.
4098 (relax_delay_slots): Strengthen param "first" and locals "insn",
4099 "next", "trial", "delay_insn", "target_label" from rtx to
4100 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
4101 Introduce a local "trial_seq" for PATTERN (trial) of type
4102 rtx_sequence *, in both cases using methods of rtx_sequence.
4103 (dbr_schedule): Strengthen param "first" and locals "insn",
4104 "next", "epilogue_insn" from rtx to rtx_insn *.
4105
4106 2014-08-28 Richard Biener <rguenther@suse.de>
4107
4108 PR tree-optimization/62283
4109 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4110 Do not peel loops for alignment where the vector loop likely
4111 doesn't run at least VF times.
4112
4113 2014-08-28 Bin Cheng <bin.cheng@arm.com>
4114
4115 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
4116 important_candidates. Consider all important candidates if
4117 IVS doesn't give any result. Remove check on ivs->upto.
4118 (try_add_cand_for): Call iv_ca_add_use only once.
4119
4120 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4121 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4122 Anna Tikhonova <anna.tikhonova@intel.com>
4123 Ilya Tocar <ilya.tocar@intel.com>
4124 Andrey Turetskiy <andrey.turetskiy@intel.com>
4125 Ilya Verbin <ilya.verbin@intel.com>
4126 Kirill Yukhin <kirill.yukhin@intel.com>
4127 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4128
4129 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
4130 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
4131 masking.
4132 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
4133 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4134 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
4135 (define_insn "*mul<mode>3"): Add EVEX version.
4136
4137 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4138 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4139 Anna Tikhonova <anna.tikhonova@intel.com>
4140 Ilya Tocar <ilya.tocar@intel.com>
4141 Andrey Turetskiy <andrey.turetskiy@intel.com>
4142 Ilya Verbin <ilya.verbin@intel.com>
4143 Kirill Yukhin <kirill.yukhin@intel.com>
4144 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4145
4146 * config/i386/sse.md
4147 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
4148 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
4149 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
4150 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
4151 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
4152 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
4153 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
4154 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
4155 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
4156 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
4157 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
4158 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
4159 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
4160 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
4161 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
4162 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
4163
4164 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4165 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4166 Anna Tikhonova <anna.tikhonova@intel.com>
4167 Ilya Tocar <ilya.tocar@intel.com>
4168 Andrey Turetskiy <andrey.turetskiy@intel.com>
4169 Ilya Verbin <ilya.verbin@intel.com>
4170 Kirill Yukhin <kirill.yukhin@intel.com>
4171 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4172
4173 * config/i386/sse.md
4174 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
4175 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
4176 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
4177
4178 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4179 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4180 Anna Tikhonova <anna.tikhonova@intel.com>
4181 Ilya Tocar <ilya.tocar@intel.com>
4182 Andrey Turetskiy <andrey.turetskiy@intel.com>
4183 Ilya Verbin <ilya.verbin@intel.com>
4184 Kirill Yukhin <kirill.yukhin@intel.com>
4185 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4186
4187 * config/i386/sse.md
4188 (define_mode_iterator VI128_256): New.
4189 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
4190
4191 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
4192 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4193 Anna Tikhonova <anna.tikhonova@intel.com>
4194 Ilya Tocar <ilya.tocar@intel.com>
4195 Andrey Turetskiy <andrey.turetskiy@intel.com>
4196 Ilya Verbin <ilya.verbin@intel.com>
4197 Kirill Yukhin <kirill.yukhin@intel.com>
4198 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4199
4200 * config/i386/sse.md
4201 (define_mode_iterator VI8_256_512): New.
4202 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
4203 Ditto.
4204 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4205 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
4206 Ditto.
4207 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
4208
4209 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4210
4211 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
4212 pointer to the cumulative reloc value and return the value for
4213 this reloc instead.
4214 (compute_reloc_for_rtx): Take a const_rtx. Call
4215 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
4216 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
4217 for_each_rtx for the CONST case.
4218
4219 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4220
4221 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
4222 (mark_constants_in_pattern): ...this new function to iterate over
4223 all the subrtxes.
4224 (mark_constants): Update accordingly.
4225
4226 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4227
4228 * varasm.c: Include rtl-iter.h.
4229 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
4230 Remove the pointer to the cumulative hashval_t and just return
4231 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
4232 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4233 Accumulate the hashval_ts here instead of const_rtx_hash_1.
4234
4235 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4236
4237 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
4238 Give real type of data parameter. Remove return value.
4239 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
4240 to iterate over subrtxes.
4241
4242 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4243
4244 * var-tracking.c (use_narrower_mode_test): Turn from being a
4245 for_each_rtx callback to being a function that examines each
4246 subrtx itself.
4247 (adjust_mems): Update accordingly.
4248
4249 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4250
4251 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
4252 callback to being a function that examines each subrtx itself.
4253 Remove handling of null rtxes.
4254 (add_uses): Update accordingly.
4255
4256 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4257
4258 * var-tracking.c: Include rtl-iter.h.
4259 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
4260 to being a function that examines each subrtx itself.
4261 (use_type): Update accordingly.
4262
4263 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4264
4265 * store-motion.c: Include rtl-iter.h.
4266 (extract_mentioned_regs_1): Delete.
4267 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
4268 for_each_rtx to iterate over subrtxes.
4269
4270 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4271
4272 * sel-sched.c: Include rtl-iter.h
4273 (count_occurrences_1): Delete.
4274 (count_occurrences_equiv): Turn rtxes into const_rtxes.
4275 Use FOR_EACH_SUBRTX rather than for_each_rtx.
4276
4277 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4278
4279 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
4280 * rtlanal.c (tls_referenced_p_1): Delete.
4281 (tls_referenced_p): Take a const_rtx rather than an rtx.
4282 Use FOR_EACH_SUBRTX rather than for_each_rtx.
4283
4284 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4285
4286 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
4287 (for_each_inc_dec): Take an rtx rather than an rtx *.
4288 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
4289 (cselib_record_sets): Likewise.
4290 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
4291 (check_for_inc_dec): Likewise.
4292 * rtlanal.c (for_each_inc_dec_ops): Delete.
4293 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
4294 rather than a pointer to the memory address. Replace
4295 for_each_inc_dec_ops argument with separate function and data
4296 arguments. Abort on non-autoinc addresses.
4297 (for_each_inc_dec_find_mem): Delete.
4298 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
4299 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
4300
4301 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4302
4303 * rtl.h (find_all_hard_regs): Declare.
4304 * rtlanal.c (find_all_hard_regs): New function.
4305 (record_hard_reg_uses_1): Delete.
4306 (record_hard_reg_uses): Use find_all_hard_regs.
4307
4308 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4309
4310 * rtl.h (replace_label_data): Delete.
4311 (replace_label): Take the old label, new label and update-nuses flag
4312 as direct arguments. Return void.
4313 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
4314 * rtlanal.c (replace_label): Update interface as above. Handle
4315 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
4316 iterator. Use FOR_EACH_SUBRTX_PTR.
4317
4318 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4319
4320 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
4321 with const_rtx parameters.
4322 * varasm.c (get_pool_constant): Likewise.
4323 * rtlanal.c (rtx_referenced_p_1): Delete.
4324 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4325 Assert that the rtx we're looking for is nonnull. Allow searches
4326 for constant pool SYMBOL_REFs.
4327
4328 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4329
4330 * reload1.c: Include rtl-iter.h.
4331 (note_reg_elim_costly): Turn from being a for_each_rtx callback
4332 to being a function that examines each subrtx itself.
4333 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
4334
4335 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4336
4337 * regcprop.c (cprop_find_used_regs_1): Delete.
4338 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4339
4340 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4341
4342 * regcprop.c: Include rtl-iter.h.
4343 (kill_value): Take a const_rtx.
4344 (kill_autoinc_value): Turn from being a for_each_rtx callback
4345 to being a function that examines each subrtx itself.
4346 (copyprop_hardreg_forward_1): Update accordingly.
4347
4348 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4349
4350 * reg-stack.c: Include rtl-iter.h.
4351 (subst_stack_regs_in_debug_insn): Delete.
4352 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
4353 instead of for_each_rtx.
4354
4355 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4356
4357 * lower-subreg.c (find_decomposable_subregs): Turn from being
4358 a for_each_rtx callback to being a function that examines each
4359 subrtx itself. Remove handling of null rtxes.
4360 (decompose_multiword_subregs): Update accordingly.
4361
4362 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4363
4364 * lower-subreg.c (adjust_decomposed_uses): Delete.
4365 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
4366 Remove handling of null rtxes.
4367
4368 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4369
4370 * lower-subreg.c: Include rtl-iter.h.
4371 (resolve_subreg_use): Turn from being a for_each_rtx callback
4372 to being a function that examines each subrtx itself. Remove
4373 handling of null rtxes.
4374 (resolve_reg_notes, resolve_simple_move): Update accordingly.
4375 (decompose_multiword_subregs): Likewise.
4376
4377 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4378
4379 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
4380 to being a function that examines each subrtx itself.
4381 (simplify_using_condition, simplify_using_initial_values): Update
4382 accordingly.
4383
4384 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4385
4386 * loop-iv.c: Include rtl-iter.h.
4387 (find_single_def_src): New function.
4388 (replace_single_def_regs): Turn from being a for_each_rtx callback
4389 to being a function that examines each subrtx itself.
4390 (replace_in_expr, simplify_using_initial_values): Update accordingly.
4391
4392 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4393
4394 * jump.c (eh_returnjump_p_1): Delete.
4395 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4396 Remove handling of null rtxes.
4397
4398 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4399
4400 * jump.c: Include rtl-iter.h.
4401 (returnjump_p_1): Delete.
4402 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4403 Remove handling of null rtxes.
4404
4405 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4406
4407 * ira.c: Include rtl-iter.h.
4408 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
4409 to being a function that examines each subrtx itself. Remove
4410 handling of null rtxes.
4411 (update_equiv_regs): Update call accordingly.
4412
4413 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4414
4415 * fwprop.c: Include rtl-iter.h.
4416 (varying_mem_p): Turn from being a for_each_rtx callback to being
4417 a function that examines each subrtx itself.
4418 (propagate_rtx): Update accordingly.
4419
4420 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4421
4422 * function.c: Include rtl-iter.h
4423 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
4424 callback to being a function that examines each subrtx itself.
4425 Return the changed flag.
4426 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
4427 (instantiate_virtual_regs): Update calls accordingly.
4428
4429 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4430
4431 * final.c: Include rtl-iter.h.
4432 (mark_symbol_ref_as_used): Delete.
4433 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
4434 for_each_rtx.
4435
4436 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4437
4438 * emit-rtl.c: Include rtl-iter.h.
4439 (find_auto_inc): Turn from being a for_each_rtx callback to being
4440 a function that examines each subrtx itself. Assume the first operand
4441 to an RTX_AUTOINC is the automodified register.
4442 (try_split): Update call accordingly.
4443
4444 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4445
4446 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4447 Return a bool, inverting the result so that 0/false means "not ok".
4448 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
4449 subrtxes of a CONST.
4450 (mem_loc_descriptor, add_const_value_attribute)
4451 (resolve_addr_in_expr): Update calls accordingly.
4452
4453 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4454
4455 * dwarf2out.c: Include rtl-iter.h.
4456 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4457 Remove unused data parameter. Return a bool, inverting the result
4458 so that 0/false means "not ok".
4459 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
4460 instead of for_each_rtx.
4461
4462 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4463
4464 * dse.c: Include rtl-iter.h.
4465 (check_mem_read_rtx): Change void * parameter to real type.
4466 Remove return value.
4467 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
4468 for_each_rtx. Don't handle null rtxes.
4469
4470 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4471
4472 * df-problems.c: Include rtl-iter.h.
4473 (find_memory): Turn from being a for_each_rtx callback to being
4474 a function that examines each subrtx itself. Continue to look for
4475 volatile references even after a nonvolatile one has been found.
4476 (can_move_insns_across): Update calls accordingly.
4477
4478 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4479
4480 * ddg.c (walk_mems_2, walk_mems_1): Delete.
4481 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4482 to iterate over subrtxes. Return a bool rather than an int.
4483
4484 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4485
4486 * ddg.c: Include rtl-iter.h.
4487 (mark_mem_use_1): Rename to...
4488 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
4489 instead of for_each_rtx.
4490 (mem_read_insn_p): Update accordingly.
4491
4492 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4493
4494 * cse.c (change_cc_mode_args): Delete.
4495 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4496 a function that examines each subrtx itself. Take the fields of
4497 change_cc_mode_args as argument and return void.
4498 (cse_change_cc_mode_insn): Update calls accordingly.
4499
4500 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4501
4502 * cse.c (is_dead_reg): Change argument to const_rtx.
4503 (dead_debug_insn_data): Delete.
4504 (is_dead_debug_insn): Expand commentary. Turn from being a
4505 for_each_rtx callback to being a function that examines
4506 each subrtx itself. Take the fields of dead_debug_insn_data
4507 as argument.
4508 (delete_trivially_dead_insns): Update call accordingly.
4509
4510 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4511
4512 * cse.c (check_for_label_ref): Move earlier in file. Turn from
4513 being a for_each_rtx callback to being a function that examines
4514 each subrtx itself.
4515 (cse_extended_basic_block): Update call accordingly.
4516
4517 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4518
4519 * cse.c (check_dependence_data): Delete.
4520 (check_dependence): Change from being a for_each_rtx callback to being
4521 a function that examines all subrtxes itself. Don't handle null rtxes.
4522 (invalidate): Update call accordingly.
4523
4524 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4525
4526 * cse.c: Include rtl-iter.h.
4527 (approx_reg_cost_1): Delete.
4528 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4529 Don't handle null rtxes.
4530
4531 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4532
4533 * cfgcleanup.c: Include rtl-iter.h.
4534 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4535 to being a function that examines each subrtx itself.
4536 (thread_jump): Update accordingly.
4537
4538 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4539
4540 * combine-stack-adj.c: Include rtl-iter.h.
4541 (record_stack_refs_data): Delete.
4542 (record_stack_refs): Turn from being a for_each_rtx callback
4543 to being a function that examines each subrtx itself.
4544 Take a pointer to the reflist. Invert sense of return value
4545 so that true means success and false means failure. Don't
4546 handle null rtxes.
4547 (combine_stack_adjustments_for_block): Update accordingly.
4548
4549 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4550
4551 * combine.c (record_truncated_value): Turn from being a for_each_rtx
4552 callback to a function that takes an rtx and returns a bool
4553 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4554 for_each_rtx.
4555
4556 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4557
4558 * combine.c: Include rtl-iter.h.
4559 (unmentioned_reg_p_1): Delete.
4560 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4561 Don't handle null rtxes.
4562
4563 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4564
4565 * calls.c: Include rtl-iter.h.
4566 (internal_arg_pointer_based_exp_1): Delete.
4567 (internal_arg_pointer_based_exp): Take a const_rtx.
4568 Use FOR_EACH_SUBRTX to iterate over subrtxes.
4569
4570 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4571
4572 * caller-save.c: Include rtl-iter.h.
4573 (add_used_regs_1): Delete.
4574 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4575 to iterate over subrtxes. Assert that any remaining pseudos
4576 have been spilled.
4577
4578 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4579
4580 * bt-load.c: Include rtl-iter.h.
4581 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4582 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
4583 to iterate over subrtxes.
4584 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4585 find_btr_use rather than btr_referenced_p.
4586
4587 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4588
4589 * alias.c: Include rtl-iter.h.
4590 (refs_newer_value_cb): Delete.
4591 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4592
4593 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4594
4595 * rtl-iter.h: New file.
4596 * rtlanal.c: Include it.
4597 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4598 (generic_subrtx_iterator <T>::add_single_to_queue)
4599 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4600 (generic_subrtx_iterator <T>::free_array): New functions.
4601 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4602 (generic_subrtx_iterator <const_rtx_accessor>)
4603 (generic_subrtx_iterator <rtx_var_accessor>
4604 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4605 (setup_reg_subrtx_bounds): New function.
4606 (init_rtlanal): Call it.
4607
4608 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4609
4610 PR target/62261
4611 * config/sh/sh.md (ashlsi3): Handle negative shift count for
4612 TARGET_SHMEDIA.
4613 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4614
4615 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
4616
4617 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4618
4619 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4620
4621 * rtl.h (JUMP_LABEL_AS_INSN): New.
4622
4623 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4624
4625 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4626 rtx_expr_list **.
4627 (alloc_EXPR_LIST): Strengthen return type from rtx to
4628 rtx_expr_list *.
4629 (remove_free_EXPR_LIST_node): Likewise for param.
4630 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4631 from rtx to rtx_expr_list *.
4632 * sched-int.h (struct deps_desc): Strengthen fields
4633 "pending_read_mems" and "pending_write_mems" from rtx to
4634 rtx_expr_list *.
4635
4636 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4637 rtx to rtx_expr_list *.
4638 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4639 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4640 rtx_expr_list **.
4641 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4642 from rtx to rtx_expr_list *.
4643 * loop-iv.c (simplify_using_initial_values): Strengthen local
4644 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4645 "pnote_next" from rtx * to rtx_expr_list **.
4646 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4647 param "exprp" from rtx * to rtx_expr_list **.
4648 (add_insn_mem_dependence): Strengthen local "mem_list" from
4649 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4650 to rtx_expr_list *.
4651 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4652 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4653 param "old_mems_p" from rtx * to rtx_expr_list **.
4654 * var-tracking.c (struct adjust_mem_data): Strengthen field
4655 "side_effects" from rtx to rtx_expr_list *.
4656 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4657 rtx_expr_list *.
4658 (prepare_call_arguments): Likewise.
4659
4660 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4661
4662 * function.h (struct rtl_data): Strengthen field
4663 "x_stack_slot_list" from rtx to rtx_expr_list *.
4664
4665 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4666 when assigning to stack_slot_list.
4667
4668 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4669
4670 * function.h (struct rtl_data): Strengthen field
4671 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4672 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4673 rtx * to rtx_expr_list **.
4674
4675 * cfgbuild.c (make_edges): In loop over
4676 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4677 rtx_expr_list *, and use methods of the latter class to clarify
4678 the code.
4679 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4680 rtx_expr_list *, and use methods of the latter class to clarify
4681 the code.
4682 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4683 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4684 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4685 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4686 to rtx_expr_list *. Use methods of the latter class to clarify
4687 the code.
4688
4689 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4690
4691 * function.h (struct expr_status): Strengthen field
4692 "x_forced_labels" from rtx to rtx_expr_list *.
4693
4694 * cfgbuild.c (make_edges): Split local "x" into two locals,
4695 strengthening one from rtx to rtx_expr_list *, and using methods
4696 of said class.
4697 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4698 loop over forced_labels, introduce strengthen it from rtx to
4699 rtx_expr_list *, using methods to clarify the code.
4700 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4701 to rtx_expr_list *, using methods of said class to clarify the
4702 code.
4703 * reload1.c (set_initial_label_offsets): Split local "x" into two
4704 per-loop variables, strengthening the first from rtx to
4705 rtx_expr_list * and using methods.
4706
4707 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4708
4709 * coretypes.h (class rtx_expr_list): Add forward declaration.
4710 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4711 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4712 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4713 invariant: GET_CODE (X) == EXPR_LIST.
4714 (is_a_helper <rtx_expr_list *>::test): New.
4715 (rtx_expr_list::next): New.
4716 (rtx_expr_list::element): New.
4717 (gen_rtx_EXPR_LIST): New.
4718
4719 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4720
4721 * varasm.c (mark_constants): Convert a GET_CODE check into a
4722 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4723 Use methods of rtx_sequence to clarify the code.
4724
4725 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4726
4727 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4728 local "seq" via a checked cast, and use methods of rtx_sequence
4729 to simplify the code.
4730
4731 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4732
4733 * resource.c (mark_referenced_resources): Strengthen local
4734 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4735 using methods of rtx_sequence to clarify the code.
4736 (find_dead_or_set_registers): Within the switch statement, convert
4737 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4738 the JUMP_P handling, introduce another local "seq", adding a
4739 checked cast to rtx_sequence *. In both cases, use methods of
4740 rtx_sequence to clarify the code.
4741 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4742 via a checked cast, and use methods of rtx_sequence to simplify
4743 the code.
4744
4745 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4746
4747 * reorg.c (redundant_insn): In two places in the function, replace
4748 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4749 usings methods of rtx_sequence to clarify the code.
4750
4751 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4752
4753 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4754 local "seq" with a checked cast, and use methods of rtx_sequence
4755 to clarify the code.
4756
4757 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4758
4759 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4760 with a checked cast, in the region for where we know it's a
4761 SEQUENCE. Use methods of rtx_sequence.
4762
4763 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4764
4765 * final.c (get_attr_length_1): Replace GET_CODE check with a
4766 dyn_cast, introducing local "seq" and the use of methods of
4767 rtx_sequence.
4768 (shorten_branches): Likewise, introducing local "body_seq".
4769 Strengthen local "inner_insn" from rtx to rtx_insn *.
4770 (reemit_insn_block_notes): Replace GET_CODE check with a
4771 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4772 Use methods of rtx_sequence.
4773 (final_scan_insn): Likewise, introducing local "seq" for when
4774 "body" is known to be a SEQUENCE, using its methods.
4775
4776 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4777
4778 * except.c (can_throw_external): Strengthen local "seq" from rtx
4779 to rtx_sequence *. Use methods of rtx_sequence.
4780 (insn_nothrow_p): Likewise.
4781
4782 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4783
4784 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4785 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4786 Use methods of rtx_sequence.
4787 (scan_trace): Likewise for local "pat".
4788
4789 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4790
4791 * coretypes.h (class rtx_sequence): Add forward declaration.
4792 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4793 invariant: GET_CODE (X) == SEQUENCE.
4794 (is_a_helper <rtx_sequence *>::test): New.
4795 (is_a_helper <const rtx_sequence *>::test): New.
4796 (rtx_sequence::len): New.
4797 (rtx_sequence::element): New.
4798 (rtx_sequence::insn): New.
4799
4800 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4801
4802 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4803 rtx_insn_list **.
4804 (alloc_INSN_LIST): Strengthen return type from rtx to
4805 rtx_insn_list *.
4806 (copy_INSN_LIST): Likewise for return type and param.
4807 (concat_INSN_LIST): Likewise for both params and return type.
4808 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4809 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4810 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4811 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4812
4813 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4814 "implicit_sets", "control_uses", "clobbers" from rtx to
4815 rtx_insn_list *.
4816 (struct deps_desc): Likewise for fields "pending_read_insns",
4817 "pending_write_insns", "pending_jump_insns",
4818 "last_pending_memory_flush", "last_function_call",
4819 "last_function_call_may_noreturn", "sched_before_next_call",
4820 "sched_before_next_jump".
4821 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4822 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4823
4824 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4825 from rtx to rtx_insn_list *.
4826 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4827 rtx_insn_list *.
4828
4829 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4830 to rtx_insn_list **.
4831 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4832 rtx_insn_list *.
4833 (queue_insn): Likewise for local "link".
4834 (struct haifa_saved_data): Strengthen field "insn_queue" from
4835 rtx * to rtx_insn_list **.
4836 (save_backtrack_point): Update allocation of save->insn_queue to
4837 reflect the strengthening of elements from rtx to rtx_insn_list *.
4838 (queue_to_ready): Strengthen local "link" from rtx to
4839 rtx_insn_list *; use methods "next" and "insn" when traversing the
4840 list.
4841 (early_queue_to_ready): Likewise for locals "link", "next_link",
4842 "prev_link".
4843 (schedule_block): Update allocation of insn_queue to reflect the
4844 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4845 local "link" from rtx to rtx_insn_list *, and use methods when
4846 working it.
4847 (add_to_speculative_block): Strengthen locals "twins" and
4848 "next_node" from rtx to rtx_insn_list *, and use methods when
4849 working with them. Strengthen local "twin" from rtx to
4850 rtx_insn *, eliminating a checked cast.
4851 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4852 from rtx to rtx_insn_list *, and use methods when working with
4853 them.
4854
4855 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4856 from rtx to rtx_insn_list *, adding a checked cast.
4857 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4858 rtx_insn_list **.
4859 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4860 "newlink" from rtx to rtx_insn_list *. Strengthen local
4861 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4862 from rtx to rtx_insn *.
4863 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4864 from rtx to rtx_insn_list *. Use methods of the latter class.
4865 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4866 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4867 (remove_free_INSN_LIST_node): Strengthen return type and local
4868 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4869 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4870 rtx_insn_list *, using "insn" method.
4871
4872 * sched-deps.c (add_dependence_list): Strengthen param "list"
4873 from rtx to rtx_insn_list *, and use methods when working with it.
4874 (add_dependence_list_and_free): Strengthen param "listp" from
4875 rtx * to rtx_insn_list **.
4876 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4877 to rtx_insn_list **, and use methods when working with *listp.
4878 (remove_from_both_dependence_lists): Strengthen param "listp" from
4879 rtx * to rtx_insn_list **
4880 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4881 to rtx_insn_list **. Eliminate local "link", in favor of two new
4882 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4883 respectively.
4884 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4885 by introducing local "cond_deps".
4886 (remove_from_deps): Strengthen param "insn" from rtx to
4887 rtx_insn *.
4888
4889 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4890 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4891 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4892 Use methods of rtx_insn_list.
4893
4894 * store-motion.c (struct st_expr): Strengthen fields
4895 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4896 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4897 rtx_insn_list *.
4898 (find_moveable_store): Split out "tmp" into multiple more-tightly
4899 scoped locals. Use methods of rtx_insn_list *.
4900 (compute_store_table): Strengthen local "tmp" from rtx to
4901 rtx_insn *. Use methods of rtx_insn_list *.
4902
4903 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4904
4905 * coretypes.h (class rtx_insn_list): Add forward declaration.
4906 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4907 (is_a_helper <rtx_insn_list *>::test): New.
4908 (rtx_insn_list::next): New.
4909 (rtx_insn_list::insn): New.
4910 (gen_rtx_INSN_LIST): Add prototype.
4911 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4912 * gengenrtl.c (special_rtx): Add INSN_LIST.
4913
4914 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4915
4916 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4917 "prev" from rtx to rtx_insn *.
4918
4919 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4920
4921 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4922 functions. Require merely an rtx for now, not an rtx_insn *.
4923 (BLOCK_FOR_INSN): Likewise.
4924 (INSN_LOCATION): Likewise.
4925 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4926
4927 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4928
4929 * rtl.h (PATTERN): Convert this macro into a pair of inline
4930 functions, for now, requiring const_rtx and rtx.
4931
4932 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4933
4934 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4935 rtx_insn *.
4936 (final_postscan_insn): Likewise.
4937 (adjust_cost): Likewise.
4938 (adjust_priority): Likewise.
4939 (variable_issue): Likewise.
4940 (macro_fusion_pair_p): Likewise.
4941 (dfa_post_cycle_insn): Likewise.
4942 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4943 (first_cycle_multipass_issue): Likewise.
4944 (dfa_new_cycle): Likewise.
4945 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4946 (speculate_insn): Likewise for param "insn".
4947 (gen_spec_check): Likewise for params "insn" and "label".
4948 (get_insn_spec_ds): Likewise for param "insn".
4949 (get_insn_checked_ds): Likewise.
4950 (dispatch_do): Likewise.
4951 (dispatch): Likewise.
4952 (cannot_copy_insn_p): Likewise.
4953 (invalid_within_doloop): Likewise.
4954 (legitimate_combined_insn): Likewise.
4955 (needed): Likewise.
4956 (after): Likewise.
4957
4958 * doc/tm.texi: Automatically updated to reflect changes to
4959 target.def.
4960
4961 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4962 working with insn.
4963 (schedule_block): Likewise.
4964 (sched_init): Likewise.
4965 (sched_speculate_insn): Strengthen param "insn" from rtx to
4966 rtx_insn *.
4967 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4968 working with insn.
4969 * hooks.c (hook_bool_rtx_true): Rename to...
4970 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4971 rtx to rtx_insn *.
4972 (hook_constcharptr_const_rtx_null): Rename to...
4973 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4974 first param from const_rtx to const rtx_insn *.
4975 (hook_bool_rtx_int_false): Rename to...
4976 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4977 param from rtx to rtx_insn *.
4978 (hook_void_rtx_int): Rename to...
4979 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4980 rtx to rtx_insn *.
4981
4982 * hooks.h (hook_bool_rtx_true): Rename to...
4983 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4984 rtx to rtx_insn *.
4985 (hook_bool_rtx_int_false): Rename to...
4986 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4987 param from rtx to rtx_insn *.
4988 (hook_void_rtx_int): Rename to...
4989 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4990 rtx to rtx_insn *.
4991 (hook_constcharptr_const_rtx_null): Rename to...
4992 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4993 first param from const_rtx to const rtx_insn *.
4994
4995 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4996 and local "prev" from rtx to rtx_insn *.
4997
4998 * sched-int.h (sched_speculate_insn): Strengthen first param from
4999 rtx to rtx_insn *.
5000
5001 * sel-sched.c (create_speculation_check): Likewise for local "label".
5002 * targhooks.c (default_invalid_within_doloop): Strengthen param
5003 "insn" from const_rtx to const rtx_insn *.
5004 * targhooks.h (default_invalid_within_doloop): Strengthen param
5005 from const_rtx to const rtx_insn *.
5006
5007 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
5008 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
5009
5010 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
5011 "insn".
5012 (arc_invalid_within_doloop): Likewise, with const.
5013
5014 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
5015 (arm_cannot_copy_insn_p): Likewise for param "insn".
5016 (arm_unwind_emit): Likewise.
5017
5018 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
5019 "dep_insn".
5020
5021 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
5022 (c6x_variable_issue): Likewise. Removed now-redundant checked
5023 cast.
5024 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
5025
5026 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
5027 Likewise for param "insn".
5028 (epiphany_mode_after): Likewise.
5029 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
5030 params "insn", "dep_insn".
5031 (epiphany_mode_needed): Likewise for param "insn".
5032 (epiphany_mode_after): Likewise.
5033
5034 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
5035 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
5036 (ix86_avx_u128_mode_needed): Likewise.
5037 (ix86_i387_mode_needed): Likewise.
5038 (ix86_mode_needed): Likewise.
5039 (ix86_avx_u128_mode_after): Likewise.
5040 (ix86_mode_after): Likewise.
5041 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
5042 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
5043 (ix86_adjust_priority): Likewise for param "insn".
5044 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
5045 (do_dispatch): Likewise.
5046 (has_dispatch): Likewise.
5047 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
5048
5049 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
5050 reflect renaming of default hook implementation from
5051 hook_constcharptr_const_rtx_null to
5052 hook_constcharptr_const_rtx_insn_null.
5053 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
5054 rtx to rtx_insn *.
5055 (ia64_variable_issue): Likewise for param "insn".
5056 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
5057 (ia64_dfa_new_cycle): Likewise.
5058 (ia64_get_insn_spec_ds): Likewise.
5059 (ia64_get_insn_checked_ds): Likewise.
5060 (ia64_speculate_insn): Likewise.
5061 (ia64_gen_spec_check): Likewise for params "insn", "label".
5062 (ia64_asm_unwind_emit): Likewise for param "insn".
5063
5064 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
5065
5066 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
5067 "insn", "def_insn".
5068 (m68k_sched_variable_issue): Likewise for param "insn".
5069
5070 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
5071 "def_insn".
5072
5073 * config/microblaze/microblaze.c (microblaze_adjust_cost):
5074 Likewise for params "insn", "dep".
5075
5076 * config/mips/mips.c (mips_adjust_cost): Likewise.
5077 (mips_variable_issue): Likewise for param "insn".
5078 (mips_final_postscan_insn): Likewise.
5079
5080 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
5081 for params "insn", "dep".
5082
5083 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
5084 "dep_insn".
5085 (pa_adjust_priority): Likewise for param "insn".
5086
5087 * config/picochip/picochip.c (picochip_sched_adjust_cost):
5088 Likewise for params "insn", "dep_insn".
5089
5090 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
5091 param "insn".
5092 (rs6000_variable_issue): Likewise.
5093 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
5094 (rs6000_debug_adjust_cost): Likewise.
5095 (rs6000_adjust_priority): Likewise for param "insn".
5096 (rs6000_use_sched_lookahead_guard): Likewise.
5097 (get_next_active_insn): Likewise for return type and both params.
5098 (redefine_groups): Likewise for params "prev_head_insn", "tail"
5099 and locals "insn", "next_insn".
5100 (pad_groups): Likewise.
5101
5102 * config/s390/s390.c (s390_adjust_priority): Likewise for param
5103 "insn".
5104 (s390_cannot_copy_insn_p): Likewise.
5105 (s390_sched_variable_issue): Likewise for third param, eliminating
5106 checked cast.
5107 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
5108 default hook implementation from hook_constcharptr_const_rtx_null
5109 to hook_constcharptr_const_rtx_insn_null.
5110
5111 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
5112 from rtx to rtx_insn *.
5113 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
5114 (sh_variable_issue): Likewise for param "insn".
5115 (sh_dfa_new_cycle): Likewise.
5116 (sh_mode_needed): Likewise.
5117 (sh_mode_after): Likewise.
5118
5119 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
5120 params "insn", "dep_insn".
5121 (hypersparc_adjust_cost): Likewise.
5122 (sparc_adjust_cost): Likewise.
5123
5124 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
5125 param, eliminated checked cast.
5126 (spu_sched_adjust_cost): Likewise for first and third params.
5127
5128 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
5129 params "insn" and "dep_insn" from rtx to rtx_insn *.
5130
5131 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
5132
5133 2014-08-27 David Malcolm <dmalcolm@redhat.com>
5134
5135 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
5136 (set_is_load_p): ...this, updating to work on a SET pattern rather
5137 than an insn.
5138 (is_store_insn): Rename to...
5139 (set_is_store_p): ...this, updating to work on a SET pattern
5140 rather than an insn.
5141 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
5142 top of function to where it is needed. Rewrite the bogus
5143 condition that checks for "insn" and "dep" being PARALLEL to
5144 instead use single_set, introducing locals "insn_set" and
5145 "dep_set". Given that we only ever returned "cost" for a non-pair
5146 of SETs, bail out early if we don't have a pair of SET.
5147 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
5148 use the new locals "insn_set" and "dep_set", and update calls to
5149 is_load_insn and is_store_insn to be calls to set_is_load_p and
5150 set_is_store_p.
5151
5152 2014-08-27 Guozhi Wei <carrot@google.com>
5153
5154 PR target/62262
5155 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
5156 amount before using it.
5157
5158 2014-08-27 Richard Biener <rguenther@suse.de>
5159
5160 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
5161 get_maxval_strlen inside a more useful API.
5162 (gimple_fold_builtin_with_strlen): Remove and fold into ...
5163 (gimple_fold_builtin): ... caller.
5164 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
5165 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
5166 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
5167 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
5168 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
5169 gimple_fold_builtin_sprintf): Adjust to compute maxval
5170 themselves.
5171
5172 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
5173
5174 PR other/62248
5175 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
5176
5177 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5178 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5179 Anna Tikhonova <anna.tikhonova@intel.com>
5180 Ilya Tocar <ilya.tocar@intel.com>
5181 Andrey Turetskiy <andrey.turetskiy@intel.com>
5182 Ilya Verbin <ilya.verbin@intel.com>
5183 Kirill Yukhin <kirill.yukhin@intel.com>
5184 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5185
5186 * config/i386/sse.md
5187 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
5188 Use `concat_tg_mode' attribute to determine asm register size.
5189
5190 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5191 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5192 Anna Tikhonova <anna.tikhonova@intel.com>
5193 Ilya Tocar <ilya.tocar@intel.com>
5194 Andrey Turetskiy <andrey.turetskiy@intel.com>
5195 Ilya Verbin <ilya.verbin@intel.com>
5196 Kirill Yukhin <kirill.yukhin@intel.com>
5197 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5198
5199 * config/i386/sse.md
5200 (define_mode_iterator VI48_AVX512VL): New.
5201 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
5202 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
5203 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
5204 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5205 with VI1): Change mode iterator.
5206 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5207 with VI_ULOADSTORE_BW_AVX512VL): New.
5208 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5209 with VI_ULOADSTORE_F_AVX512VL): Ditto.
5210 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5211 with VI1): Change mode iterator.
5212 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5213 with VI_ULOADSTORE_BW_AVX512VL): New.
5214 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
5215 with VI_ULOADSTORE_F_AVX512VL): Ditto.
5216 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5217 with VI1): Change mode iterator.
5218 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5219 with VI_ULOADSTORE_BW_AVX512VL): New.
5220 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
5221 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
5222 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
5223 (define_insn "<avx512>_storedqu<mode>_mask" with
5224 VI48_AVX512VL): New.
5225 (define_insn "<avx512>_storedqu<mode>_mask" with
5226 VI12_AVX512VL): Ditto.
5227
5228 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5229 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5230 Anna Tikhonova <anna.tikhonova@intel.com>
5231 Ilya Tocar <ilya.tocar@intel.com>
5232 Andrey Turetskiy <andrey.turetskiy@intel.com>
5233 Ilya Verbin <ilya.verbin@intel.com>
5234 Kirill Yukhin <kirill.yukhin@intel.com>
5235 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5236
5237 * config/i386/sse.md
5238 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
5239 (define_mode_iterator VI48_AVX512BW): New.
5240 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
5241 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5242 with VI48_AVX2_48_AVX512F): New.
5243 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
5244 with VI2_AVX512VL): Ditto.
5245
5246 2014-08-27 Richard Biener <rguenther@suse.de>
5247
5248 PR middle-end/62239
5249 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
5250 (fold_builtin_3): Do not fold strcat_chk here.
5251 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
5252 from builtins.c.
5253 (gimple_fold_builtin): Fold strcat_chk here.
5254
5255 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
5256
5257 * dwarf2out.h (dwarf2out_decl): Remove prototype.
5258 * dwarf2out.c (dwarf2out_decl): Make static.
5259
5260 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
5261
5262 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
5263
5264 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5265
5266 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
5267 from rtx to rtx_insn *.
5268 (cselib_lookup_from_insn): Likewise for final param.
5269 (cselib_subst_to_values_from_insn): Likewise.
5270 (cselib_add_permanent_equiv): Likewise.
5271
5272 * cselib.c (cselib_current_insn): Likewise for this variable.
5273 (cselib_subst_to_values_from_insn): Likewise for param "insn".
5274 (cselib_lookup_from_insn): Likewise.
5275 (cselib_add_permanent_equiv): Likewise for param "insn" and local
5276 "save_cselib_current_insn".
5277 (cselib_process_insn): Replace use of NULL_RTX with NULL.
5278
5279 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
5280 from rtx to rtx_insn *.
5281
5282 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5283
5284 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
5285 rtx_insn *.
5286
5287 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5288
5289 * df.h (df_dump_insn_problem_function): Strengthen first param of
5290 this callback from const_rtx to const rtx_insn *.
5291 (struct df_insn_info): Strengthen field "insn" from rtx to
5292 rtx_insn *.
5293 (DF_REF_INSN): Eliminate this function, reinstating the older
5294 macro definition.
5295 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
5296 (df_reg_defined): Likewise.
5297 (df_find_use): Likewise.
5298 (df_reg_used): Likewise.
5299 (df_dump_insn_top): Strengthen param 1 from const_rtx to
5300 const rtx_insn *.
5301 (df_dump_insn_bottom): Likewise.
5302 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
5303 (df_insn_debug_regno): Likewise.
5304 (debug_df_insn): Likewise.
5305 (df_rd_simulate_one_insn): Likewise for param 2.
5306 (df_word_lr_simulate_defs): Likewise for param 1.
5307 (df_word_lr_simulate_uses): Likewise.
5308 (df_md_simulate_one_insn): Likewise for param 2.
5309 (df_simulate_find_noclobber_defs): Likewise for param 1.
5310 (df_simulate_find_defs): Likewise.
5311 (df_simulate_defs): Likewise.
5312 (df_simulate_uses): Likewise.
5313 (df_simulate_one_insn_backwards): Likewise for param 2.
5314 (df_simulate_one_insn_forwards): Likewise.
5315 (df_uses_create): Likewise for param 2.
5316 (df_insn_create_insn_record): Likewise for param 1.
5317 (df_insn_delete): Likewise.
5318 (df_insn_rescan): Likewise.
5319 (df_insn_rescan_debug_internal): Likewise.
5320 (df_insn_change_bb): Likewise.
5321 (df_notes_rescan): Likewise.
5322 * rtl.h (remove_death): Likewise for param 2.
5323 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
5324 const rtx_insn *.
5325 * sched-int.h (reemit_notes): Strengthen param from rtx to
5326 rtx_insn *.
5327 * valtrack.h (propagate_for_debug): Likewise for param 1.
5328
5329 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
5330 local "tmp_rtx" from const_rtx to const rtx_insn *.
5331 * combine.c (remove_death): Strengthen param "insn" from rtx to
5332 rtx_insn *.
5333 (move_deaths): Likewise for local "where_dead".
5334 * cse.c (delete_trivially_dead_insns): Introduce local
5335 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
5336 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
5337 rtx_insn *.
5338 (df_reg_defined): Likewise.
5339 (df_find_use): Likewise.
5340 (df_reg_used): Likewise.
5341 (df_dump_insn_problem_data): Strengthen param "insn" from
5342 const_rtx to const rtx_insn *.
5343 (df_dump_insn_top): Likewise.
5344 (df_dump_insn_bottom): Likewise.
5345 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
5346 (df_insn_debug_regno): Likewise.
5347 (debug_df_insn): Likewise.
5348 (DF_REF_INSN): Delete.
5349 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
5350 from rtx to rtx_insn *.
5351 (df_chain_insn_top_dump): Strengthen param "insn" from
5352 const_rtx to const rtx_insn *.
5353 (df_chain_insn_bottom_dump): Likewise.
5354 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
5355 rtx_insn *.
5356 (df_word_lr_simulate_uses): Likewise.
5357 (df_print_note): Likewise.
5358 (df_remove_dead_and_unused_notes): Likewise.
5359 (df_set_unused_notes_for_mw): Likewise.
5360 (df_set_dead_notes_for_mw): Likewise.
5361 (df_create_unused_note): Likewise.
5362 (df_simulate_find_defs): Likewise.
5363 (df_simulate_find_uses): Likewise.
5364 (df_simulate_find_noclobber_defs): Likewise.
5365 (df_simulate_defs): Likewise.
5366 (df_simulate_uses): Likewise.
5367 (df_simulate_one_insn_backwards): Likewise.
5368 (df_simulate_one_insn_forwards): Likewise.
5369 (df_md_simulate_one_insn): Likewise.
5370 * df-scan.c (df_uses_create): Likewise.
5371 (df_insn_create_insn_record): Likewise.
5372 (df_insn_delete): Likewise.
5373 (df_insn_rescan): Likewise.
5374 (df_insn_rescan_debug_internal): Likewise.
5375 (df_insn_change_bb): Likewise.
5376 (df_notes_rescan): Likewise.
5377 (df_refs_add_to_chains): Likewise.
5378 (df_insn_refs_verify): Likewise.
5379 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
5380 when invoking df_insn_delete.
5381 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
5382 (set_unique_reg_note): Add checked cast.
5383 * final.c (cleanup_subreg_operands): Likewise.
5384 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
5385 "insn" from rtx to rtx_insn *.
5386 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
5387 "last" from rtx to rtx_insn *.
5388 * ira-emit.c (change_regs_in_insn): New function.
5389 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
5390 Invoke change_regs_in_insn rather than change_regs.
5391 * ira.c (update_equiv_regs): Strengthen locals "insn",
5392 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
5393 for_each_rtx_in_insn rather than for_each_rtx.
5394 * recog.c (confirm_change_group): Add checked casts.
5395 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
5396 Add checked cast.
5397 (peep2_fill_buffer): Add checked cast.
5398 * rtlanal.c (remove_note): Likewise.
5399 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
5400 locals "next" "end" from rtx to rtx_insn *.
5401
5402 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5403
5404 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
5405 to rtx_insn *.
5406 (struct reg_use_data): Likewise for field "insn".
5407 (insn_cost): Likewise for param.
5408 (real_insn_for_shadow): Likewise for return type and param.
5409 (increase_insn_priority): Likewise for param 1.
5410 (debug_dependencies): Likewise for both params.
5411
5412 * haifa-sched.c (insn_delay): Likewise for param "insn".
5413 (real_insn_for_shadow): Likewise for return type and param "insn".
5414 (update_insn_after_change): Likewise for param "insn".
5415 (recompute_todo_spec): Likewise for param "next" and locals "pro",
5416 "other".
5417 (insn_cost): Likewise for param "insn".
5418 (increase_insn_priority): Likewise.
5419 (calculate_reg_deaths): Likewise.
5420 (setup_insn_reg_pressure_info): Likewise.
5421 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
5422 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
5423 (model_recompute): Likewise.
5424 (must_restore_pattern_p): Likewise for param "next".
5425 (model_excess_cost): Likewise for param "insn".
5426 (queue_remove): Likewise.
5427 (adjust_priority): Likewise for param "prev".
5428 (update_register_pressure): Likewise for param "insn".
5429 (setup_insn_max_reg_pressure): Likewise for local "insn".
5430 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
5431 (model_add_to_schedule): Likewise.
5432 (model_reset_queue_indices): Likewise for local "insn".
5433 (unschedule_insns_until): Strengthen local "recompute_vec" from
5434 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
5435 "con" from rtx to rtx_insn *.
5436 (restore_last_backtrack_point): Likewise for both locals "x". Add
5437 checked casts.
5438 (estimate_insn_tick): Likewise for param "insn".
5439 (commit_schedule): Likewise for params "prev_head", "tail" and
5440 local "x".
5441 (verify_shadows): Likewise for locals "i1", "i2".
5442 (dump_insn_stream): Likewise for params "head", "tail" and locals
5443 "next_tail", "insn".
5444 (schedule_block): Likewise for locals "insn", "x". Add a checked
5445 cast.
5446 (fix_inter_tick): Likewise for params "head", "tail".
5447 (create_check_block_twin): Likewise for local "jump".
5448 (haifa_change_pattern): Likewise for param "insn".
5449 (haifa_speculate_insn): Likewise.
5450 (dump_new_block_header): Likewise for params "head", "tail".
5451 (fix_jump_move): Likewise for param "jump".
5452 (move_block_after_check): Likewise.
5453 (sched_init_insn_luid): Likewise for param "insn".
5454 (sched_init_luids): Likewise for local "insn".
5455 (insn_luid): Likewise for param "insn".
5456 (init_h_i_d): Likewise.
5457 (haifa_init_h_i_d): Likewise for local "insn".
5458 (haifa_init_insn): Likewise for param "insn".
5459 * sched-deps.c (add_dependence): Likewise for local "real_pro",
5460 "other".
5461 (create_insn_reg_use): Likewise for param "insn".
5462 (setup_insn_reg_uses): Likewise. Add a checked cast.
5463 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5464 "tail" from rtx to rtx_insn *.
5465 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5466 "insn", "next_tail".
5467
5468 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5469
5470 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5471 from rtx to rtx_insn *.
5472 (model_add_to_schedule): Likewise for locals "start", "end",
5473 "iter".
5474
5475 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5476
5477 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5478 rtx_insn *.
5479 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
5480 "to" and locals "insn", "next", "copy". Remove now-redundant
5481 checked cast.
5482
5483 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5484
5485 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5486 rtx_insn * and param 4 from rtx * to rtx_insn **.
5487 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5488 param 2 from rtx * to rtx_insn **.
5489
5490 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5491 rtx_insn * and final param from rtx * to rtx_insn **.
5492
5493 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5494 from rtx to rtx_insn *.
5495 (try_head_merge_bb): Likewise for both locals named "move_upto".
5496 * df-problems.c (can_move_insns_across): Likewise for params
5497 "from", "to", "across_from", "across_to" and locals "insn",
5498 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
5499 rtx_insn **.
5500 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5501 from rtx to rtx_insn *.
5502 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5503 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5504 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5505 rtx_insn *.
5506 (noce_try_abs): Likewise.
5507 (noce_get_condition): Likewise for param "jump". Strengthen param
5508 "earliest" from rtx * to rtx_insn **.
5509 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5510 rtx_insn *.
5511 (find_cond_trap): Likewise.
5512 (dead_or_predicable): Likewise for local "earliest".
5513 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
5514 checked cast.
5515 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5516 and local "prev". Strengthen param "earliest" from rtx * to
5517 rtx_insn **.
5518 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5519 Strengthen param "earliest" from rtx * to rtx_insn **.
5520
5521 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5522
5523 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5524 "to" and local "insn" from rtx to rtx_insn *.
5525
5526 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5527
5528 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5529 from rtx to rtx_insn *.
5530 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5531 (code_motion_path_driver): Likewise for local "last_insn".
5532 (simplify_changed_insns): Likewise for local "insn".
5533
5534 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5535
5536 * rtl.h (push_to_sequence): Strengthen param from rtx to
5537 rtx_insn *.
5538 (push_to_sequence2): Likewise for both params.
5539 (delete_insns_since): Likewise for param.
5540 (reorder_insns_nobb): Likewise for all three params.
5541 (set_new_first_and_last_insn): Likewise for both params.
5542
5543 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5544 rtx_insn *. Remove now-redundant cast.
5545 (set_last_insn): Likewise.
5546
5547 * builtins.c (expand_builtin_return): Strengthen local
5548 "call_fusage" from rtx to rtx_insn *.
5549 * cfgrtl.c (create_basic_block_structure): Likewise for local
5550 "after".
5551 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5552 "first", "last" and local "insn".
5553 (delete_insns_since): Likewise for param "from".
5554 (reorder_insns_nobb): Likewise for params "from", "to", "after"
5555 and local "x".
5556 (push_to_sequence): Likewise for param "first" and local "last".
5557 (push_to_sequence2): Likewise for params "first" and "last".
5558 * lra.c (emit_add3_insn): Likewise for local "last".
5559 (lra_emit_add): Likewise.
5560 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5561 "last_insn".
5562 (process_address_1): Likewise for locals "insn", last".
5563 * modulo-sched.c (ps_first_note): Likewise for return type.
5564 * optabs.c (expand_binop_directly): Likewise for param "last".
5565
5566 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5567
5568 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5569 to rtx_insn*.
5570 * emit-rtl.c (get_last_insn_anywhere): Likewise.
5571
5572 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5573
5574 * function.h (struct sequence_stack): Strengthen fields "first"
5575 and "last" from rtx to rtx_insn *.
5576 (struct emit_status): Likewise for fields "x_first_insn" and
5577 "x_last_insn".
5578
5579 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5580 (set_first_insn): Add checked cast.
5581 (get_last_insn): Remove now-redundant checked cast.
5582 (set_last_insn): Add checked cast.
5583
5584 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5585 "saved_first" and "saved_last" from rtx to rtx_insn *.
5586
5587 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5588
5589 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5590 (unlink_insn_chain): Strengthen both params from rtx to
5591 rtx_insn *.
5592
5593 * cfgrtl.c (cfg_layout_function_header): Likewise for this
5594 variable.
5595 (unlink_insn_chain): Likewise for params "first" and "last".
5596 Remove now-redundant checked cast.
5597 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5598 (fixup_reorder_chain): Strengthen local "insn" from rtx to
5599 rtx_insn *.
5600 * emit-rtl.c (link_insn_into_chain): Likewise for all three
5601 params.
5602 (add_insn): Likewise for param "insn" and local "prev".
5603 (add_insn_after_nobb): Likewise for both params and local "next".
5604 (add_insn_before_nobb): Likewise for both params and local "prev".
5605 (add_insn_after): Rename param "after" to "uncast_after",
5606 introducing local "after" with another checked cast.
5607 (add_insn_before): Rename params "insn" and "before", giving them
5608 "uncast_" prefixes, adding the old names back using checked casts.
5609 (emit_note_after): Likewise for param "after".
5610 (emit_note_before): Likewise for param "before".
5611 (emit_label): Add a checked cast.
5612
5613 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5614
5615 * cselib.h (cselib_record_sets_hook): Strengthen initial param
5616 "insn" from rtx to rtx_insn *.
5617
5618 * cselib.c (cselib_record_sets_hook): Likewise.
5619
5620 * var-tracking.c (add_with_sets): Likewise, renaming back from
5621 "uncast_insn" to "insn" and eliminating the checked cast from rtx
5622 to rtx_insn *.
5623
5624 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5625
5626 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5627 and "header_" from rtx to rtx_insn *.
5628 (struct basic_block_d): Likewise for field "head_" within "x"
5629 field of union basic_block_il_dependent.
5630 (BB_HEAD): Drop function...
5631 (SET_BB_HEAD): ...and this function in favor of...
5632 (BB_HEAD): ...reinstate macro.
5633 (BB_END): Drop function...
5634 (SET_BB_END): ...and this function in favor of...
5635 (BB_END): ...reinstate macro.
5636 (BB_HEADER): Drop function...
5637 (SET_BB_HEADER): ...and this function in favor of...
5638 (BB_HEADER): ...reinstate macro.
5639
5640 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5641 (fix_crossing_unconditional_branches): Likewise.
5642 * caller-save.c (save_call_clobbered_regs): Likewise.
5643 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5644 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5645 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5646 (merge_blocks_move_successor_nojumps): Likewise.
5647 (outgoing_edges_match): Update use of for_each_rtx to
5648 for_each_rtx_in_insn.
5649 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5650 (expand_gimple_cond): Likewise.
5651 (expand_gimple_tailcall): Likewise.
5652 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5653 SET_BB_END.
5654 (construct_exit_block): Drop use of SET_BB_END.
5655 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5656 rtx_insn *.
5657 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5658 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5659 SET_BB_HEAD and SET_BB_END.
5660 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5661 SET_BB_END.
5662 (rtl_delete_block): Drop use of SET_BB_HEAD.
5663 (rtl_split_block): Drop use of SET_BB_END.
5664 (emit_nop_for_unique_locus_between): Likewise.
5665 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5666 (block_label): Drop use of SET_BB_HEAD.
5667 (fixup_abnormal_edges): Drop use of SET_BB_END.
5668 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5669 (relink_block_chain): Likewise.
5670 (fixup_reorder_chain): Drop use of SET_BB_END.
5671 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5672 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5673 rtx_insn **. Drop use of SET_BB_HEADER.
5674 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5675 SET_BB_HEAD.
5676 (BB_HEAD): Delete this function.
5677 (SET_BB_HEAD): Likewise.
5678 (BB_END): Likewise.
5679 (SET_BB_END): Likewise.
5680 (BB_HEADER): Likewise.
5681 (SET_BB_HEADER): Likewise.
5682 * emit-rtl.c (add_insn_after): Rename param "insn" to
5683 "uncast_insn", adding a new local "insn" and a checked cast to
5684 rtx_insn *. Drop use of SET_BB_END.
5685 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5686 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5687 (reorder_insns): Drop use of SET_BB_END.
5688 (emit_insn_after_1): Strengthen param "first" and locals "last",
5689 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5690 (emit_pattern_after_noloc): Add checked cast.
5691 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5692 (restore_other_notes): Likewise.
5693 (move_insn): Likewise.
5694 (sched_extend_bb): Likewise.
5695 (fix_jump_move): Likewise.
5696 * ifcvt.c (noce_process_if_block): Likewise.
5697 (dead_or_predicable): Likewise.
5698 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5699 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5700 * sel-sched-ir.c (sel_move_insn): Likewise.
5701 * sel-sched.c (move_nop_to_previous_block): Likewise.
5702
5703 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5704 SET_BB_END.
5705 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5706
5707 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5708
5709 * basic-block.h (create_basic_block_structure): Strengthen params
5710 1 "head" and 2 "end" from rtx to rtx_insn *.
5711 * cfgrtl.c (create_basic_block_structure): Likewise.
5712 (rtl_create_basic_block): Update casts from void * to rtx to
5713 rtx_insn *, so that we can pass them as rtx_insn * to
5714 create_basic_block_structure.
5715 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5716
5717 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5718
5719 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5720 rtx_insn **.
5721 (check_for_inc_dec): Strengthen param "insn" from rtx to
5722 rtx_insn *.
5723
5724 * cselib.h (cselib_process_insn): Likewise.
5725
5726 * cselib.c (cselib_record_sets): Likewise.
5727 (cselib_process_insn): Likewise.
5728
5729 * dse.c (struct insn_info): Likewise for field "insn".
5730 (check_for_inc_dec_1): Likewise for local "insn".
5731 (check_for_inc_dec): Likewise for param "insn".
5732 (scan_insn): Likewise.
5733 (dse_step1): Likewise for local "insn".
5734
5735 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5736 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5737
5738 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5739
5740 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5741 from rtx to rtx_insn *.
5742 (DEP_PRO): Delete this function and...
5743 (SET_DEP_PRO): ...this function in favor of...
5744 (DEP_PRO): ...reinstate this macro.
5745 (DEP_CON): Delete this function and...
5746 (SET_DEP_CON): ...this function in favor of...
5747 (DEP_CON): ...reinstate this old macro.
5748 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5749 (init_dep): Likewise.
5750 (set_priorities): Likewise for both params.
5751 (sd_copy_back_deps): Likewise for params 1 and 2.
5752
5753 * haifa-sched.c (priority): Likewise for param "insn" and local
5754 "next".
5755 (set_priorities): Likewise for params "head" and "tail" and local
5756 "insn".
5757 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5758 local "consumer".
5759 (add_to_speculative_block): Add a checked cast.
5760 (create_check_block_twin): Drop use of SET_DEP_CON.
5761 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5762 rtx to rtx_insn *.
5763
5764 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5765 Drop use of SET_DEP_PRO
5766 (init_dep): Strengthen params "pro" and "con" from rtx to
5767 rtx_insn *.
5768 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5769 use of SET_DEP_CON.
5770 (DEP_PRO): Delete.
5771 (DEP_CON): Delete.
5772 (SET_DEP_PRO): Delete.
5773 (SET_DEP_CON): Delete.
5774
5775 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5776
5777 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5778 from rtx to rtx_insn *.
5779 (VINSN_INSN_RTX): Eliminate rvalue function and...
5780 (SET_VINSN_INSN): ...lvalue function in favor of...
5781 (VINSN_INSN_RTX): reinstate this old macro.
5782
5783 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5784 in favor of VINSN_INSN_RTX.
5785 (VINSN_INSN_RTX): Delete this function.
5786 (SET_VINSN_INSN_RTX): Likewise.
5787
5788 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5789
5790 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5791 (BND_TO): Delete this function and...
5792 (SET_BND_TO): ...this functions in favor of...
5793 (BND_TO): ...reinstating this macro.
5794 (struct _fence): Strengthen field "executing_insns" from
5795 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5796 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5797 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5798 and param "insn" from rtx to insn_t.
5799 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5800 rtx_insn *.
5801
5802 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5803 vec<rtx_insn *> .
5804 (rtx_vec_t): Likewise.
5805 (struct sched_deps_info_def): Strengthen param of "start_insn"
5806 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5807 "note_mem_dep" callback and first param of "note_dep" callback.
5808
5809 * haifa-sched.c (add_to_speculative_block): Strengthen param
5810 "insn" from rtx to rtx_insn *.
5811 (clear_priorities): Likewise.
5812 (calc_priorities): Likewise for local "insn".
5813
5814 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5815 Remove redundant checked cast.
5816 (haifa_note_mem_dep): Likewise for param "pending_insn".
5817 (haifa_note_dep): Likewise for param "elem".
5818 (note_mem_dep): Likewise for param "e".
5819 (sched_analyze_1): Add checked casts.
5820 (sched_analyze_2): Likewise.
5821
5822 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5823 from rtx to rtx_insn *.
5824 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5825 from vec<rtx> * to vec<rtx_insn *> *.
5826
5827 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5828 scaffolding.
5829 (flist_add): Strengthen param "executing_insns" from
5830 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5831 (advance_deps_context): Remove now-redundant checked cast.
5832 (init_fences): Replace uses of NULL_RTX with NULL.
5833 (merge_fences): Strengthen params "last_scheduled_insn" and
5834 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5835 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5836 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5837 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5838 an instruction, rather than doing double-duty as a pattern.
5839 (return_nop_to_pool): Update for change of insn_t.
5840 (deps_init_id): Remove now-redundant checked cast.
5841 (struct sched_scan_info_def): Strengthen param of "init_insn"
5842 callback from rtx to insn_t.
5843 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5844 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5845 NULL.
5846 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5847 "end" from rtx to rtx_insn *.
5848 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5849 (rtx insn_rtx, bool force_unique_p)
5850 (BND_TO): Delete function.
5851 (SET_BND_TO): Delete function.
5852
5853 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5854 rtx to rtx_insn *.
5855 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5856 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5857 rtx to rtx_insn *.
5858 (undo_transformations): Likewise for param "insn".
5859 (update_liveness_on_insn): Likewise.
5860 (compute_live_below_insn): Likewise for param "insn" and local
5861 "succ".
5862 (update_data_sets): Likewise for param "insn".
5863 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5864 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5865 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5866 rtx_insn *.
5867 (move_cond_jump): Likewise for param "insn".
5868 (move_cond_jump): Drop use of SET_BND_TO.
5869 (compute_av_set_on_boundaries): Likewise.
5870 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5871 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5872 from rtx to rtx_insn *.
5873 (maybe_emit_renaming_copy): Likewise for param "insn".
5874 (maybe_emit_speculative_check): Likewise.
5875 (handle_emitting_transformations): Likewise.
5876 (remove_insn_from_stream): Likewise.
5877 (code_motion_process_successors): Strengthen local "succ" from rtx
5878 to insn_t.
5879
5880 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5881
5882 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5883 ilist_t, not _xlist_t;
5884 (ILIST_INSN): Define in terms of new union field "insn".
5885 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5886 _XLIST_NEXT.
5887 (struct _list_node): Add new field "insn" to the union, of type
5888 insn_t.
5889 (ilist_add): Replace macro with an inline function, requiring an
5890 insn_t.
5891 (ilist_remove): Define this macro directly in terms of
5892 _list_remove, rather than indirectly via _xlist_remove.
5893 (ilist_clear): Likewise, in terms of _list_clear rather than
5894 _xlist_clear.
5895 (ilist_is_in_p): Replace macro with an inline function, requiring
5896 an insn_t.
5897 (_list_iter_cond_insn): New function.
5898 (ilist_iter_remove): Define this macro directly in terms of
5899 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5900 (ilist_iterator): Define directly in terms of _list_iterator
5901 rather than indirectly through _xlist_iterator.
5902 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5903 than in terms of _FOR_EACH_X.
5904 (FOR_EACH_INSN_1): Likewise.
5905
5906 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5907
5908 PR target/60606
5909 PR target/61330
5910 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5911 DECL_HARD_REGISTER and return for invalid register specifications.
5912 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5913 DECL_HARD_REGISTER, call expand_one_error_var.
5914 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5915 CC_REGNUM with non-MODE_CC modes.
5916 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5917
5918 2014-08-26 Marek Polacek <polacek@redhat.com>
5919
5920 PR c/61271
5921 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5922
5923 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5924
5925 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5926 qi cost; add di cost.
5927 (cortexa57_addrcost_table): Likewise.
5928
5929 2014-08-26 Marek Polacek <polacek@redhat.com>
5930
5931 PR c/61271
5932 * expr.c (is_aligning_offset): Remove logical not.
5933
5934 2014-08-26 Marek Polacek <polacek@redhat.com>
5935
5936 PR c/61271
5937 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5938 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5939
5940 2014-08-26 Richard Biener <rguenther@suse.de>
5941
5942 PR tree-optimization/62175
5943 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5944 expand possibly trapping operations.
5945
5946 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5947
5948 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5949 "insn" from rtx to rtx_insn *.
5950 (permute_load): Likewise for param "insn".
5951 (permute_store): Likewise.
5952 (handle_special_swappables): Likewise for local "insn".
5953 (replace_swap_with_copy): Likewise for locals "insn" and
5954 "new_insn".
5955 (rs6000_analyze_swaps): Likewise for local "insn".
5956
5957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5958
5959 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5960 to rtx_insn *.
5961
5962 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5963
5964 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5965 "note_list" from rtx to rtx_insn *.
5966 (BB_NOTE_LIST): Replace this function and...
5967 (SET_BB_NOTE_LIST): ...this function with...
5968 (BB_NOTE_LIST): ...the former macro implementation.
5969
5970 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5971 local "from_start" from rtx to rtx_insn *. Strengthen param
5972 "to_endp" from rtx * to rtx_insn **.
5973
5974 * haifa-sched.c (concat_note_lists): Likewise.
5975 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5976 BB_NOTE_LIST.
5977 (sel_restore_notes): Likewise.
5978 (move_bb_info): Likewise.
5979 (BB_NOTE_LIST): Delete this function.
5980 (SET_BB_NOTE_LIST): Delete this function.
5981 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5982 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5983
5984 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5985
5986 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5987 from rtx * to rtx_insn **.
5988 (reorder2): Likewise.
5989 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5990 from rtx to rtx_insn *.
5991
5992 * doc/tm.texi: Update mechanically for above change to target.def.
5993
5994 * sched-int.h (note_list): Strengthen this variable from rtx to
5995 rtx_insn *.
5996 (remove_notes): Likewise for both params.
5997 (restore_other_notes): Likewise for return type and first param.
5998 (struct ready_list): Strengthen field "vec" from rtx * to
5999 rtx_insn **.
6000 (struct dep_replacement): Strenghten field "insn" from rtx to
6001 rtx_insn *.
6002 (struct deps_desc): Likewise for fields "last_debug_insn",
6003 "last_args_size".
6004 (struct haifa_sched_info): Likewise for callback field
6005 "can_schedule_ready_p"'s param, for first param of "new_ready"
6006 callback field, for both params of "rank" callback field, for
6007 first field of "print_insn" callback field (with a const), for
6008 both params of "contributes_to_priority" callback, for param
6009 of "insn_finishes_block_p" callback, for fields "prev_head",
6010 "next_tail", "head", "tail", for first param of "add_remove_insn"
6011 callback, for first param of "begin_schedule_ready" callback, for
6012 both params of "begin_move_insn" callback, and for second param
6013 of "advance_target_bb" callback.
6014 (add_dependence): Likewise for params 1 and 2.
6015 (sched_analyze): Likewise for params 2 and 3.
6016 (deps_analyze_insn): Likewise for param 2.
6017 (ready_element): Likewise for return type.
6018 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6019 (try_ready): Strenghten param from rtx to rtx_insn *.
6020 (sched_emit_insn): Likewise for return type.
6021 (record_delay_slot_pair): Likewise for params 1 and 2.
6022 (add_delay_dependencies): Likewise for param.
6023 (contributes_to_priority): Likewise for both params.
6024 (find_modifiable_mems): Likewise.
6025
6026 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
6027 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
6028 "first_older_only_insn" from rtx to rtx_insn *.
6029 (arm_sched_reorder): Strengthen param "ready" from rtx * to
6030 rtx_insn **.
6031
6032 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
6033 "last_scheduled_iter0" from rtx to rtx_insn *.
6034 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
6035 (c6x_sched_reorder_1): Strengthen param "ready" and locals
6036 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
6037 "insn" from rtx to rtx_insn *.
6038 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
6039 rtx_insn **.
6040 (c6x_sched_reorder2): Strengthen param "ready" and locals
6041 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
6042 "insn" from rtx to rtx_insn *.
6043 (c6x_variable_issue): Add a checked cast when assigning from insn
6044 to ss.last_scheduled_iter0.
6045 (split_delayed_branch): Strengthen param "insn" and local "i1"
6046 from rtx to rtx_insn *.
6047 (split_delayed_nonbranch): Likewise.
6048 (undo_split_delayed_nonbranch): Likewise for local "insn".
6049 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
6050 "entry_after", "end_packet", "head_insn", "tail_insn",
6051 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
6052 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
6053 to rtx_insn **. Remove now-redundant checked cast on last_insn,
6054 but add a checked cast on loop->start_label. Consolidate calls to
6055 avoid assigning result of gen_spkernel to "insn", now an
6056 rtx_insn *.
6057
6058 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
6059 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
6060 rtx to rtx_insn *.
6061 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
6062 rtx_insn **. Strengthen locals "top", "next" from rtx to
6063 rtx_insn *.
6064 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
6065 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
6066 (add_parameter_dependencies): Strengthen params "call", "head" and
6067 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
6068 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
6069 (add_dependee_for_func_arg): Likewise for param "arg" and local
6070 "insn".
6071 (ix86_dependencies_evaluation_hook): Likewise for params "head",
6072 "tail" and locals "insn", "first_arg".
6073
6074 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
6075 for params "head", "tail" and locals "insn", "next", "next_tail".
6076 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
6077 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
6078 "insn", "lowest", "highest" from rtx to rtx_insn *.
6079 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
6080 rtx_insn **.
6081 (ia64_sched_reorder2): Likewise.
6082
6083 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
6084 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
6085 from rtx * to rtx_insn **.
6086 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
6087 rtx_insn **.
6088 (mep_print_sched_insn): Strengthen param "insn" from rtx to
6089 rtx_insn *.
6090 (mep_sched_reorder): Strengthen param "ready" from rtx * to
6091 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
6092 to rtx_insn *.
6093
6094 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
6095 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
6096 to rtx_insn *.
6097 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
6098 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
6099 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
6100 rtx_insn **.
6101 (vr4130_reorder): Likewise.
6102 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
6103 rtx to rtx_insn *.
6104 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
6105 rtx_insn **.
6106 (mips_sched_reorder): Likewise.
6107 (mips_sched_reorder2): Likewise.
6108
6109 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
6110
6111 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
6112 Strengthen local "tmp" from rtx to rtx_insn *.
6113 (rs6000_sched_reorder2): Likewise.
6114
6115 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
6116 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
6117 (s390_sched_reorder): Strengthen param "ready" from rtx * to
6118 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
6119
6120 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
6121 "tmp2" from rtx to rtx_insn *.
6122 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
6123 Strengthen local "insn" from rtx to rtx_insn *.
6124 (ready_reorder): Strengthen param "ready" from rtx * to
6125 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
6126 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
6127 (sh_reorder2): Likewise.
6128
6129 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
6130 local "insn" from rtx to rtx_insn *.
6131
6132 * haifa-sched.c (note_list): Strengthen this variable from rtx to
6133 rtx_insn *.
6134 (scheduled_insns): Strengthen this variable from vec<rtx> to
6135 vec<rtx_insn *>.
6136 (set_modulo_params): Likewise for locals "i1", "i2".
6137 (record_delay_slot_pair): Likewise for params "i1", "i2".
6138 (add_delay_dependencies): Likewise for param "insn".
6139 (cond_clobbered_p): Likewise.
6140 (recompute_todo_spec): Likewise for local "prev".
6141 (last_scheduled_insn): Likewise for this variable.
6142 (nonscheduled_insns_begin): Likewise.
6143 (model_set_excess_costs): Strengthen param "insns" from rtx * to
6144 rtx_insn **.
6145 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
6146 rtx_insn *.
6147 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
6148 Strengthen local "insn" from rtx to rtx_insn *.
6149 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
6150 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
6151 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
6152 (ready_remove_first): Likewise for return type and local "t".
6153 (ready_element): Likewise for return type.
6154 (ready_remove): Likewise for return type and local "t".
6155 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
6156 (check_clobbered_conditions): Strengthen local "x" from rtx to
6157 rtx_insn *, adding a checked cast.
6158 (schedule_insn): Likewise for param "insn".
6159 (remove_notes): Likewise for params "head", "tail" and locals
6160 "next_tail", "insn", "next".
6161 (struct haifa_saved_data): Likewise for fields
6162 "last_scheduled_insn", "nonscheduled_insns_begin".
6163 (save_backtrack_point): Update for change to field "vec" of
6164 struct ready_list.
6165 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
6166 rtx_insn **.
6167 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
6168 from rtx to rtx_insn *
6169 (resolve_dependencies): Strengthen param "insn" from rtx to
6170 rtx_insn *
6171 (restore_other_notes): Likewise for return type, for param "head"
6172 and local "note_head".
6173 (undo_all_replacements): Likewise for local "insn".
6174 (first_nonscheduled_insn): Likewise for return type and local "insn".
6175 (queue_to_ready): Likewise for local "insn", adding checked casts.
6176 (early_queue_to_ready): Likewise for local "insn".
6177 (debug_ready_list_1): Strengthen local "p" from rtx * to
6178 rtx_insn **.
6179 (move_insn): Strengthen param "insn" and local "note" from rtx to
6180 rtx_insn *
6181 (insn_finishes_cycle_p): Likewise for param "insn".
6182 (max_issue): Likewise for local "insn".
6183 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
6184 to rtx_insn **.
6185 (commit_schedule): Strengthen param "prev_head" and local "insn"
6186 from rtx to rtx_insn *
6187 (prune_ready_list): Likewise for local "insn".
6188 (schedule_block): Likewise for locals "prev_head", "head", "tail",
6189 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
6190 (set_priorities): Likewise for local "prev_head".
6191 (try_ready): Likewise for param "next".
6192 (fix_tick_ready): Likewise.
6193 (change_queue_index): Likewise.
6194 (sched_extend_ready_list): Update for change to field "vec" of
6195 struct ready_list.
6196 (generate_recovery_code): Strengthen param "insn" from rtx to
6197 rtx_insn *.
6198 (begin_speculative_block): Likewise.
6199 (create_check_block_twin): Likewise for param "insn" and locals
6200 "label", "check", "twin". Introduce local "check_pat" to avoid
6201 "check" being used as a plain rtx before being used as an insn.
6202 (fix_recovery_deps): Add a checked cast to rtx_insn * when
6203 extracting elements from ready_list.
6204 (sched_remove_insn): Strengthen param "insn" from rtx to
6205 rtx_insn *.
6206 (sched_emit_insn): Likewise for return type.
6207 (ready_remove_first_dispatch): Likewise for return type and local
6208 "insn".
6209
6210 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
6211
6212 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
6213 const rtx_insn *.
6214
6215 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
6216 from rtx to rtx_insn *.
6217 (add_dependence_list): Likewise for param "insn". Add a checked
6218 cast.
6219 (add_dependence_list_and_free): Strengthen param "insn" from rtx
6220 to rtx_insn *. Strengthen param "list_p" from rtx * to
6221 rtx_insn **.
6222 (chain_to_prev_insn): Strengthen param "insn" and locals
6223 "prec_nonnote", "i" from rtx to rtx_insn *.
6224 (flush_pending_lists): Likewise for param "insn".
6225 (cur_insn): Likewise for this variable.
6226 (haifa_start_insn): Add a checked cast.
6227 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
6228 (sched_analyze_reg): Likewise for param "insn".
6229 (sched_analyze_1): Likewise.
6230 (sched_analyze_2): Likewise. Add checked casts.
6231 (sched_analyze_insn): Likewise. Also for local "prev".
6232 (deps_analyze_insn): Likewise for param "insn".
6233 (sched_analyze): Likewise for params "head", "tail" and local "insn".
6234 (add_dependence_1): Likewise for params "insn", "elem".
6235 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
6236 (parse_add_or_inc): Likewise for param "insn".
6237 (find_inc): Likewise for local "inc_cand".
6238 (find_modifiable_mems): Likewise for params "head", "tail" and
6239 locals "insn", "next_tail".
6240
6241 * sched-ebb.c (init_ready_list): Likewise for local "insn".
6242 (begin_schedule_ready): Likewise for param "insn".
6243 (begin_move_insn): Likewise for params "insn" and "last".
6244 (ebb_print_insn): Strengthen param "insn" from const_rtx to
6245 const rtx_insn *.
6246 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
6247 (ebb_contributes_to_priority): Likewise for params "next", "insn".
6248 (ebb_add_remove_insn): Likewise for param "insn".
6249 (advance_target_bb): Likewise.
6250
6251 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
6252 "insn".
6253 (check_live): Likewise for param "insn".
6254 (init_ready_list): Likewise for local "insn".
6255 (can_schedule_ready_p): Likewise for param "insn".
6256 (begin_schedule_ready): Likewise.
6257 (new_ready): Likewise for param "next".
6258 (rgn_print_insn): Likewise for param "insn".
6259 (rgn_rank): Likewise for params "insn1", "insn2".
6260 (contributes_to_priority): Likewise for params "next", "insn".
6261 (rgn_insn_finishes_block_p): Likewise for param "insn".
6262 (add_branch_dependences): Likewise for params "head", "tail" and
6263 locals "insn", "last".
6264 (rgn_add_remove_insn): Likewise for param "insn".
6265 (advance_target_bb): Likewise.
6266
6267 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
6268 const_rtx to const rtx_insn *.
6269
6270 * sel-sched-dump.h (sel_print_insn): Likewise.
6271
6272 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
6273 (deps_init_id): Likewise.
6274
6275 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
6276 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
6277 rtx_insn **.
6278
6279 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6280
6281 * output.h (final_start_function): Strengthen param 1 from rtx to
6282 rtx_insn *.
6283
6284 * final.c (final_start_function): Likewise, renaming back from
6285 "uncast_first" to "first", and dropping the checked cast from rtx
6286 to rtx_insn *.
6287
6288 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6289
6290 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
6291 * final.c (final): Likewise. Rename param back from
6292 "uncast_first" to "first" and eliminate the checked cast from rtx
6293 to rtx_insn *.
6294
6295 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6296
6297 * output.h (shorten_branches): Strengthen param from rtx to
6298 rtx_insn *.
6299
6300 * final.c (shorten_branches): Likewise, renaming param back from
6301 "uncast_first" to "first", and dropping the checked cast from rtx
6302 to rtx_insn *.
6303
6304 * genattr.c (gen_attr): Likewise when writing out the prototype of
6305 shorten_branches.
6306
6307 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6308
6309 * sched-int.h (struct haifa_sched_info): Strengthen fields
6310 "prev_head" and "next_tail" from rtx to rtx_insn *.
6311
6312 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6313
6314 * rtl.h (rtx_jump_table_data::get_labels): New method.
6315 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
6316 with use of the new rtx_jump_table_data::get_labels method.
6317 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
6318 to rtx_jump_table_data *. Simplify by using get_labels method.
6319 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
6320 a dyn_cast, introducing local "table", using it to replace
6321 label-lookup logic with a get_labels method call.
6322 (patch_jump_insn): Simplify using get_labels method.
6323 * dwarf2cfi.c (create_trace_edges): Likewise.
6324 * rtlanal.c (label_is_jump_target_p): Likewise.
6325
6326 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6327
6328 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
6329 to rtx_insn *.
6330
6331 * emit-rtl.c (unshare_all_rtl_1): Likewise.
6332 (unshare_all_rtl_again): Likewise, also for local "p".
6333
6334 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6335
6336 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
6337 to rtx_insn *.
6338 * cfgrtl.c (delete_insn_and_edges): Likewise.
6339
6340 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6341
6342 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
6343 from rtx to rtx_insn *.
6344
6345 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
6346
6347 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6348
6349 * function.c (thread_prologue_and_epilogue_insns): Likewise for
6350 locals "returnjump", "epilogue_end", "insn", "next".
6351
6352 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
6353 "returnjump" from rtx * to rtx_insn **.
6354 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
6355
6356 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6357
6358 * basic-block.h (struct edge_def). Strengthen "r" within
6359 union edge_def_insns from rtx to rtx_insn *.
6360
6361 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
6362 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
6363 rtx_insn *.
6364 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
6365 from rtx to rtx_insn *.
6366 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
6367 rtx_insn *.
6368 * postreload-gcse.c (reg_killed_on_edge): Likewise.
6369 (reg_used_on_edge): Likewise.
6370 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
6371 (gt_pch_nx): New overload for rtx_insn *&.
6372 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
6373 from rtx to rtx_insn *.
6374
6375 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6376
6377 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
6378 from rtx to rtx_insn *.
6379 (BB_FOOTER): Replace function with access macro.
6380 (SET_BB_FOOTER): Delete.
6381
6382 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
6383 with BB_FOOTER.
6384 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6385 (emit_barrier_after_bb): Likewise.
6386 (record_effective_endpoints): Likewise.
6387 (relink_block_chain): Likewise.
6388 (fixup_fallthru_exit_predecessor): Likewise.
6389 (cfg_layout_duplicate_bb): Likewise.
6390 (cfg_layout_split_block): Likewise.
6391 (cfg_layout_delete_block): Likewise.
6392 (cfg_layout_merge_blocks): Likewise.
6393 (BB_FOOTER): Delete function.
6394 (SET_BB_FOOTER): Delete function.
6395 * combine.c (update_cfg_for_uncondjump): Replace uses of
6396 SET_BB_FOOTER with BB_FOOTER.
6397
6398 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6399
6400 * except.h (struct eh_landing_pad_d): Strengthen field
6401 "landing_pad" from rtx to rtx_code_label *.
6402
6403 * except.c (sjlj_emit_dispatch_table): Likewise for param
6404 "dispatch_label"
6405 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
6406
6407 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6408
6409 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
6410 first param from rtx to rtx_insn *.
6411 * config/xtensa/xtensa.c (struct machine_function): Likewise for
6412 field "set_frame_ptr_insn".
6413 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
6414 "csend" from rtx to rtx_code_label *.
6415 (xtensa_expand_atomic): Likewise for local "csloop".
6416 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
6417 rtx_insn *.
6418 (xtensa_call_tls_desc): Likewise for return type and locals
6419 "call_insn", "insns".
6420 (xtensa_legitimize_tls_address): Likewise for local "insns".
6421 (xtensa_expand_prologue): Likewise for locals "insn", "first".
6422
6423 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6424
6425 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
6426 first param from rtx to rtx_insn *.
6427 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
6428 "insn".
6429
6430 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6431
6432 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
6433 Strengthen param 1 from rtx to rtx_insn *.
6434 (tilepro_output_cbranch): Likewise.
6435 (tilepro_adjust_insn_length): Likewise.
6436 (tilepro_final_prescan_insn): Likewise for sole param.
6437
6438 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
6439 Likewise for local "last".
6440 (cbranch_predicted_p): Likewise for param "insn".
6441 (tilepro_output_simple_cbranch_with_opcode): Likewise.
6442 (tilepro_output_cbranch_with_opcode): Likewise.
6443 (tilepro_output_cbranch): Likewise.
6444 (frame_emit_load): Likewise for return type and locals "seq",
6445 "insn".
6446 (emit_sp_adjust): Likewise for return type and local "insn".
6447 (tilepro_expand_epilogue): Likewise for locals "last_insn",
6448 "insn".
6449 (tilepro_adjust_insn_length): Likewise for param "insn".
6450 (next_insn_to_bundle): Likewise for return type and params
6451 "r", "end".
6452 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6453 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6454 local "new_insns".
6455 (match_addli_pcrel): Likewise for param "insn".
6456 (replace_addli_pcrel): Likewise.
6457 (match_auli_pcrel): Likewise.
6458 (replace_auli_pcrel): Likewise.
6459 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6460 "next_insn".
6461 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6462 "queue", "next_queue", "prev".
6463 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6464 (tilepro_final_prescan_insn): Likewise for param "insn".
6465
6466 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6467
6468 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6469 Strengthen param 1 from rtx to rtx_insn *.
6470 (tilegx_output_cbranch): Likewise.
6471 (tilegx_adjust_insn_length): Likewise.
6472 (tilegx_final_prescan_insn): Likewise for sole param.
6473
6474 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6475 or local "last".
6476 (cbranch_predicted_p): Likewise for param "insn".
6477 (tilegx_output_simple_cbranch_with_opcode): Likewise.
6478 (tilegx_output_cbranch_with_opcode): Likewise.
6479 (tilegx_output_cbranch): Likewise.
6480 (frame_emit_load): Likewise for return type.
6481 (set_frame_related_p): Likewise for locals "seq", "insn".
6482 (emit_sp_adjust): Likewise for return type, and for local "insn".
6483 Introduce local "pat" for use in place of "insn" where the latter
6484 isn't an instruction.
6485 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6486 from rtx to rtx_insn *.
6487 (tilegx_adjust_insn_length): Likewise for param "insn".
6488 (next_insn_to_bundle): Likewise for return type and params "r" and
6489 "end".
6490 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6491 "end".
6492 (replace_insns): Likewise for params "old_insn", "new_insns".
6493 (replace_mov_pcrel_step1): Likewise for param "insn" and local
6494 "new_insns".
6495 (replace_mov_pcrel_step2): Likewise.
6496 (replace_mov_pcrel_step3): Likewise.
6497 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6498 "next_insn".
6499 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6500 "queue", "next_queue", "prev".
6501 (tilegx_output_mi_thunk): Likewise for local "insn".
6502 (tilegx_final_prescan_insn): Likewise for param "insn".
6503
6504 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6505
6506 * config/spu/spu.c (frame_emit_store): Strengthen return type from
6507 rtx to rtx_insn *.
6508 (frame_emit_load): Likewise.
6509 (frame_emit_add_imm): Likewise, also for local "insn".
6510 (spu_expand_prologue): Likewise for local "insn".
6511 (struct spu_bb_info): Likewise for field "prop_jump".
6512 (emit_nop_for_insn): Likewise for param "insn" and local
6513 "new_insn".
6514 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6515 "hbr_insn".
6516 (spu_emit_branch_hint): Likewise for params "before", "branch" and
6517 locals "hint", "insn".
6518 (get_branch_target): Likewise for param "branch".
6519 (insn_clobbers_hbr): Likewise for param "insn".
6520 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6521 locals "insn", "before_4", "before_16".
6522 (insert_hbrp): Likewise for local "insn".
6523 (spu_machine_dependent_reorg): Likewise for locals "branch",
6524 "insn", "next", "bbend".
6525 (uses_ls_unit): Likewise for param "insn".
6526 (get_pipe): Likewise.
6527 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6528 introducing a checked cast.
6529 (spu_sched_adjust_cost): Likewise for params "insn" and
6530 "dep_insn".
6531 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6532 (spu_sms_res_mii): Likewise.
6533
6534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6535
6536 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6537 from rtx to rtx_insn *.
6538 (output_cbranch): Likewise for param 6.
6539 (output_return): Likewise for param 1.
6540 (output_sibcall): Likewise.
6541 (output_v8plus_shift): Likewise.
6542 (output_v8plus_mult): Likewise.
6543 (output_v9branch): Likewise for param 7.
6544 (output_cbcond): Likewise for param 3.
6545
6546 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6547 for local "insn".
6548 (sparc_legitimize_pic_address): Likewise.
6549 (sparc_emit_call_insn): Likewise.
6550 (emit_save_or_restore_regs): Likewise.
6551 (emit_window_save): Likewise for return type and local "insn".
6552 (sparc_expand_prologue): Likewise for local "insn".
6553 (sparc_flat_expand_prologue): Likewise.
6554 (output_return): Likewise for param "insn".
6555 (output_sibcall): Likewise for param "insn" and local "delay".
6556 (output_ubranch): Likewise for param "insn".
6557 (output_cbranch): Likewise.
6558 (output_cbcond): Likewise.
6559 (output_v9branch): Likewise.
6560 (output_v8plus_shift): Likewise.
6561 (sparc_output_mi_thunk): Likewise for local "insn".
6562 (get_some_local_dynamic_name): Likewise.
6563 (output_v8plus_mult): Likewise for param "insn".
6564
6565 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6566
6567 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6568 from rtx to rtx_insn *.
6569 (output_branchy_insn): Likewise for param 3.
6570 (output_far_jump): Likewise for param 1.
6571 (final_prescan_insn): Likewise.
6572 (sh_insn_length_adjustment): Likewise for sole param.
6573
6574 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6575 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6576 rtx_code_label *.
6577 (sh_emit_compare_and_set): Likewise for local "lab".
6578 (output_far_jump): Strengthen param "insn" and local "prev" from
6579 rtx to rtx_insn *.
6580 (output_branchy_insn): Likewise for param "insn" and local
6581 "next_insn".
6582 (output_ieee_ccmpeq): Likewise for param "insn".
6583 (struct label_ref_list_d): Strengthen field "label" from rtx to
6584 rtx_code_label *.
6585 (pool_node): Likewise.
6586 (pool_window_label): Likewise for this global.
6587 (add_constant): Likewise for return type and locals "lab", "new_rtx".
6588 (dump_table): Strengthen params "start", "barrier" and local
6589 "scan" from rtx to rtx_insn *.
6590 (broken_move): Likewise for param "insn".
6591 (untangle_mova): Likewise for params "first_mova" and "new_mova".
6592 Strengthen param "first_mova" from rtx * to rtx_insn **.
6593 (mova_p): Likewise for param "insn".
6594 (fixup_mova): Likewise for param "mova".
6595 (find_barrier): Likewise for return type, params "mova" and
6596 "from", and locals "barrier_before_mova", "found_barrier",
6597 "good_barrier", "orig", "last_symoff", "next". Strengthen local
6598 "label" from rtx to rtx_code_label *.
6599 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6600 rtx to rtx_insn *.
6601 (sh_reorg): Likewise for locals "link", "scan", "barrier".
6602 (split_branches): Likewise for param "first" and local "insn".
6603 (final_prescan_insn): Likewise for param "insn".
6604 (sequence_insn_p): Likewise for locals "prev", "next".
6605 (sh_insn_length_adjustment): Likewise for param "insn".
6606 (sh_can_redirect_branch): Likewise for local "insn".
6607 (find_r0_life_regions): Likewise for locals "end", "insn".
6608 (sh_output_mi_thunk): Likewise for local "insns".
6609
6610 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6611
6612 * config/score/score.c (score_output_mi_thunk): Strengthen local
6613 "insn" from rtx to rtx_insn *.
6614 (score_prologue): Likewise.
6615
6616 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6617
6618 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6619 1 from rtx to rtx_insn *.
6620 (s390_emit_jump): Likewise for return type.
6621 (s390_emit_call): Likewise.
6622 (s390_load_got): Likewise.
6623
6624 * config/s390/s390.c (last_scheduled_insn): Likewise for this
6625 variable.
6626 (s390_match_ccmode): Likewise for param "insn".
6627 (s390_emit_jump): Likewise for return type.
6628 (s390_split_branches): Likewise for local "label".
6629 (struct constant): Strengthen field "label" from rtx to
6630 rtx_code_label *.
6631 (struct constant_pool): Likewise for field "label". Strengthen
6632 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6633 rtx_insn *.
6634 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6635 insns.
6636 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6637 (s390_end_pool): Likewise.
6638 (s390_dump_pool): Likewise for local "insn".
6639 (s390_mainpool_start): Likewise.
6640 (s390_chunkify_start): Likewise.
6641 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6642 with insns. Strengthen locals "label", "jump", "barrier", "next",
6643 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6644 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6645 rtx_insn *.
6646 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6647 "jump", "label", "next_insn".
6648 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6649 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6650 "tbegin_insn".
6651 (s390_load_got): Likewise for return type and local "insns".
6652 (s390_save_gprs_to_fprs): Likewise for local "insn".
6653 (s390_restore_gprs_from_fprs): Likewise.
6654 (pass_s390_early_mach::execute): Likewise.
6655 (s390_emit_prologue): Likewise for local "insns".
6656 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6657 rtx_code_label *.
6658 (s390_emit_call): Strengthen return type and local "insn" from
6659 rtx to rtx_insn *.
6660 (s390_emit_tpf_eh_return): Likewise for local "insn".
6661 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6662 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6663 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6664 local "cur_insn".
6665 (s390_non_addr_reg_read_p): Likewise for param "insn".
6666 (find_cond_jump): Likewise for return type and param "insn".
6667 (s390_swap_cmp): Likewise for param "insn".
6668 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6669 "prev_insn", "next_insn".
6670 (s390_reorg): Likewise for locals "insn", "target".
6671 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6672 (s390_sched_variable_issue): For now, rename param "insn" to
6673 "uncast_insn", introducing a checked cast.
6674 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6675 insn.
6676 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6677 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6678
6679 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6680
6681 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6682 param from rtx to rtx_insn *.
6683 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6684
6685 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6686
6687 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6688 4 from rtx to rtx_insn *.
6689 (rs6000_final_prescan_insn): Likewise for first param.
6690 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6691 local "insn".
6692 (rs6000_get_some_local_dynamic_name): Likewise.
6693 (output_cbranch): Likewise for param "insn".
6694 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6695 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6696 (rs6000_emit_allocate_stack): Likewise for local "insn".
6697 (load_cr_save): Likewise.
6698 (restore_saved_cr): Likewise.
6699 (restore_saved_lr): Likewise.
6700 (emit_cfa_restores): Likewise.
6701 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6702 "deleted_debug_label".
6703 (rs6000_output_mi_thunk): Likewise for local "insn".
6704 (rs6000_final_prescan_insn): Likewise for param "insn".
6705
6706 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6707
6708 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6709 Strengthen param "insn" from rtx to rtx_insn *.
6710 * config/picochip/picochip.c (picochip_current_prescan_insn):
6711 Likewise for this variable.
6712 (picochip_final_prescan_insn): Likewise for param "insn".
6713
6714 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6715
6716 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6717 from rtx to rtx_insn *.
6718 (pa_output_indirect_call): Likewise.
6719 (pa_adjust_insn_length): Likewise.
6720 (pa_attr_length_millicode_call): Likewise.
6721 (pa_attr_length_call): Likewise.
6722 (pa_attr_length_indirect_call): Likewise.
6723
6724 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6725 "insn".
6726 (pa_attr_length_millicode_call): Likewise.
6727 (pa_attr_length_call): Likewise.
6728 (pa_output_call): Likewise.
6729 (pa_attr_length_indirect_call): Likewise.
6730 (pa_output_indirect_call): Likewise.
6731
6732 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6733
6734 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6735 Strengthen first param from rtx to rtx_insn *.
6736 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6737 param "insn".
6738
6739 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6740
6741 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6742 type from rtx to rtx_insn *.
6743 (mips_expand_call): Likewise.
6744 (mips_adjust_insn_length): Likewise for first param.
6745 (mips_output_conditional_branch): Likewise.
6746 (mips_output_order_conditional_branch): Likewise.
6747 (mips_final_prescan_insn): Likewise.
6748
6749 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6750 rtx_insn * for the SEQUENCE case.
6751 (SEQ_END): Likewise.
6752 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6753 (mips_emit_call_insn): Likewise, also for local "insn".
6754 (mips16_gp_pseudo_reg): Likewise for local "scan".
6755 (mips16_build_call_stub): Likewise for return type and for local
6756 "insn". Introduce a new local "pattern" so that "insn" can indeed
6757 be an insn.
6758 (mips_expand_call): Strengthen return type and local "insn" from
6759 rtx to rtx_insn *.
6760 (mips_block_move_loop): Strengthen local "label" from rtx to
6761 rtx_code_label *.
6762 (mips_expand_synci_loop): Likewise for locals "label",
6763 "end_label".
6764 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6765 rtx_insn *.
6766 (mips16e_collect_argument_saves): Likewise for locals "insn",
6767 "next".
6768 (mips_find_gp_ref): Likewise for param of callback for "pred"
6769 param, and for local "insn".
6770 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6771 (mips_insn_has_flexible_gp_ref_p): Likewise.
6772 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6773 local "insn".
6774 (mips_epilogue_set_cfa): Likewise for local "insn".
6775 (mips_expand_epilogue): Likewise.
6776 (mips_adjust_insn_length): Likewise for param "insn".
6777 (mips_output_conditional_branch): Likewise.
6778 (mips_output_order_conditional_branch): Likewise.
6779 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6780 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6781 "falu2_turn_enabled_insn".
6782 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6783 "done_label" from rtx to rtx_code_label *.
6784 (struct mips16_constant): Likewise for field "label".
6785 (mips16_add_constant): Likewise for return type.
6786 (mips16_emit_constants_1): Strengthen return type and param "insn"
6787 from rtx to rtx_insn *.
6788 (mips16_emit_constants): Likewise for param "insn".
6789 (mips16_insn_length): Likewise.
6790 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6791 to rtx_code_label *.
6792 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6793 from rtx to rtx_insn *.
6794 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6795 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6796 (r10k_simplify_address): Strengthen param "insn" and local
6797 "def_insn" from rtx to rtx_insn *.
6798 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6799 rtx_insn *.
6800 (r10k_needs_protection_p_1): Update target type of cast of data
6801 from to rtx to rtx_insn *.
6802 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6803 rtx * to rtx_insn **.
6804 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6805 rtx_insn *.
6806 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6807 (mips_call_expr_from_insn): Likewise for param "insn".
6808 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6809 (mips_find_pic_call_symbol): Likewise for param "insn".
6810 (mips_annotate_pic_calls): Likewise for local "insn".
6811 (mips_sim_insn): Likewise for this variable.
6812 (struct mips_sim): Likewise for field "insn" within elements of
6813 last_set array.
6814 (mips_sim_wait_reg): Likewise for param "insn".
6815 (mips_sim_wait_regs): Likewise.
6816 (mips_sim_wait_units): Likewise.
6817 (mips_sim_wait_insn): Likewise.
6818 (mips_sim_issue_insn): Likewise.
6819 (mips_sim_finish_insn): Likewise.
6820 (mips_seq_time): Likewise for param "seq" and local "insn".
6821 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6822 locals "first", "second".
6823 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6824 "last", "last2", "next".
6825 (mips_avoid_hazard): Likewise for params "after", "insn".
6826 (mips_reorg_process_insns): Likewise for locals "insn",
6827 "last_insn", "subinsn", "next_insn".
6828 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6829 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6830 "jump_sequence".
6831 (mips_output_mi_thunk): Likewise for local "insn".
6832 (mips_final_prescan_insn): Likewise for param "insn".
6833
6834 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6835
6836 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6837 Strengthen return type and local "insns" from rtx to rtx_insn *.
6838 (microblaze_legitimize_tls_address): Likewise for local "insns".
6839 (microblaze_block_move_loop): Strengthen local "label" from rtx
6840 to rtx_code_label *.
6841 (microblaze_expand_prologue): Strengthen two locals named "insn"
6842 from rtx to rtx_insn *.
6843 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6844 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6845 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6846 to rtx_code_label *.
6847
6848 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6849
6850 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6851 param from rtx to rtx_insn *.
6852 (mep_reuse_lo): Likewise for third param.
6853 (mep_use_post_modify_p): Likewise for first param.
6854 (mep_core_address_length): Likewise.
6855 (mep_cop_address_length): Likewise.
6856 (mep_final_prescan_insn): Likewise.
6857 (mep_store_data_bypass_p): Likewise for both params.
6858 (mep_mul_hilo_bypass_p): Likewise.
6859 (mep_ipipe_ldc_p): Likewise for param.
6860
6861 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6862 (mep_rewrite_mult): Likewise.
6863 (mep_rewrite_mulsi3): Likewise.
6864 (mep_rewrite_maddsi3): Likewise.
6865 (mep_reuse_lo_p_1): Likewise.
6866 (mep_reuse_lo_p): Likewise.
6867 (mep_frame_expr): Likewise.
6868 (mep_make_parallel): Likewise for both params.
6869 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6870 local "insn".
6871 (mep_use_post_modify_p): Likewise for param "insn".
6872 (mep_core_address_length): Likewise.
6873 (mep_cop_address_length): Likewise.
6874 (mep_reg_set_in_function): Likewise for local "insn".
6875 (mep_asm_without_operands_p): Likewise.
6876 (F): Likewise for return type and param "x".
6877 (add_constant): Likewise for local "insn".
6878 (maybe_dead_move): Likewise for return type and local "insn".
6879 (mep_expand_prologue): Likewise for local "insn".
6880 (mep_final_prescan_insn): Likewise for param "insn".
6881 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6882 "next", "follow", "x".
6883 (mep_insert_repeat_label_last): Likewise for return type, param
6884 "last_insn", and locals "next", "prev". Strengthen param "label"
6885 from rtx to rtx_code_label *.
6886 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6887 rtx_insn *.
6888 (struct mep_doloop_end): Likewise for fields "insn" and
6889 "fallthrough".
6890 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6891 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6892 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6893 rtx_insn *.
6894 (mep_invert_branch): Likewise for params "insn" and "after".
6895 (mep_reorg_erepeat): Likewise for param "insns" and locals
6896 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6897 "l" from rtx to rtx_code_label *.
6898 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6899 from rtx to rtx_insn *.
6900 (mep_reorg_addcombine): Likewise for param "insns" and locals
6901 "i", "n".
6902 (add_sp_insn_p): Likewise for param "insn".
6903 (mep_reorg_noframe): Likewise for param "insns" and locals
6904 "start_frame_insn", "end_frame_insn", "next".
6905 (mep_reorg): Likewise for local "insns".
6906 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6907 cast.
6908 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6909 (mep_mul_hilo_bypass_p): Likewise.
6910 (mep_ipipe_ldc_p): Likewise for param "insn".
6911 (mep_make_bundle): Likewise for return type, param "cop" and local
6912 "insn", splitting out the latter into a new local "seq" for when it
6913 is a SEQUENCE rather than an insn.
6914 (core_insn_p): Likewise for param "insn".
6915 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6916 "last", "first", "note", "prev", "core_insn".
6917
6918 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6919
6920 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6921 rtx to rtx_insn *.
6922 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6923 (m68k_final_prescan_insn): Likewise for first param.
6924
6925 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6926 (m68k_set_frame_related): Likewise for param "insn".
6927 (output_btst): Likewise for param "insn".
6928 (m68k_final_prescan_insn): Likewise.
6929 (m68k_move_to_reg): Likewise for local "insn".
6930 (m68k_call_tls_get_addr): Likewise for local "insns".
6931 (m68k_call_m68k_read_tp): Likewise.
6932 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6933 (m68k_output_mi_thunk): Likewise for local "insn".
6934
6935 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6936
6937 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6938 first param from rtx to rtx_insn *.
6939 (iq2000_adjust_insn_length): Likewise.
6940 (iq2000_output_conditional_branch): Likewise.
6941 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6942 "insn" and local "nop_insn".
6943 (iq2000_annotate_frame_insn): Likewise for param "insn".
6944 (iq2000_expand_prologue): Likewise for both locals "insn".
6945 (iq2000_adjust_insn_length): Likewise for param "insn".
6946 (iq2000_output_conditional_branch): Likewise.
6947
6948 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6949
6950 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6951 "insns" from rtx to rtx_insn *.
6952 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6953 (struct spill_fill_data): Likewise for field "init_after" and for
6954 elements of array field "prev_insn".
6955 (spill_restore_mem): Likewise for locals "insn", "first".
6956 (do_spill): Likewise for local "insn".
6957 (do_restore): Likewise.
6958 (ia64_expand_prologue): Likewise.
6959 (ia64_expand_epilogue): Likewise.
6960 (emit_insn_group_barriers): Likewise for locals "insn",
6961 "last_label".
6962 (emit_all_insn_group_barriers): Likewise for locals "insn",
6963 "last".
6964 (dfa_stop_insn): Likewise for this global.
6965 (dfa_pre_cycle_insn): Likewise.
6966 (ia64_nop): Likewise.
6967 (final_emit_insn_group_barriers): Likewise for locals "insn",
6968 "last".
6969 (emit_predicate_relation_info): Likewise for locals "head", "n",
6970 "insn", "b", "a".
6971 (ia64_reorg): Likewise for local "insn".
6972 (ia64_output_mi_thunk): Likewise.
6973 (expand_vec_perm_interleave_2): Likewise for local "seq".
6974
6975 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6976
6977 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6978 param 1 "insn" from rtx to rtx_insn *.
6979 (ix86_use_lea_for_mov): Likewise.
6980 (ix86_avoid_lea_for_addr): Likewise.
6981 (ix86_split_lea_for_addr): Likewise.
6982 (ix86_lea_for_add_ok): Likewise.
6983 (ix86_output_call_insn): Likewise.
6984
6985 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6986 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6987 (ix86_output_function_epilogue): Likewise for locals "insn",
6988 "deleted_debug_label".
6989 (legitimize_tls_address): Likewise for local "insn".
6990 (get_some_local_dynamic_name): Likewise.
6991 (increase_distance): Likewise for params "prev", "next".
6992 (distance_non_agu_define_in_bb): Likewise for params "insn",
6993 "start" and locals "prev", "next".
6994 (distance_non_agu_define): Likewise for param "insn".
6995 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6996 locals "next", "prev".
6997 (distance_agu_use): Likewise for param "insn".
6998 (ix86_lea_outperforms): Likewise.
6999 (ix86_ok_to_clobber_flags): Likewise.
7000 (ix86_avoid_lea_for_add): Likewise.
7001 (ix86_use_lea_for_mov): Likewise.
7002 (ix86_avoid_lea_for_addr): Likewise.
7003 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
7004 (ix86_split_lea_for_addr): Likewise for param "insn".
7005 (ix86_lea_for_add_ok): Likewise for param "insn".
7006 (ix86_expand_carry_flag_compare): Likewise for local
7007 "compare_seq".
7008 (ix86_expand_int_movcc): Likewise.
7009 (ix86_output_call_insn): Likewise for param "insn".
7010 (ix86_output_call_insn): Likewise for local "i".
7011 (x86_output_mi_thunk): Introduce local "insn", using it in place
7012 of "tmp" when dealing with insns.
7013 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
7014 "start".
7015 (ix86_pad_returns): Likewise for locals "ret", "prev".
7016 (ix86_count_insn_bb): Likewise for local "insn".
7017 (ix86_pad_short_function): Likewise for locals "ret", "insn".
7018 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
7019 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
7020 (expand_vec_perm_interleave2): Likewise for local "seq".
7021 (expand_vec_perm_vperm2f128_vblend): Likewise.
7022 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
7023 call to for_each_rtx with for_each_rtx_in_insn.
7024
7025 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7026
7027 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
7028 "label" from rtx to rtx_code_label *.
7029 (ix86_expand_prologue): Likewise.
7030 (ix86_expand_split_stack_prologue): Likewise for locals "label",
7031 "varargs_label".
7032 (ix86_split_idivmod): Likewise for locals "end_label" and
7033 "qimode_label".
7034 (ix86_expand_branch): Likewise for local "label2".
7035 (ix86_expand_aligntest): Likewise for return type and local "label".
7036 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
7037 "top_label".
7038 (expand_movmem_epilogue): Likewise for the various locals named
7039 "label".
7040 (expand_setmem_epilogue): Likewise.
7041 (expand_small_movmem_or_setmem): Likewise for local "label".
7042 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7043 Strengthen param "done_label" from rtx * to rtx_code_label **.
7044 Strengthen locals "loop_label" and "label" from rtx to
7045 rtx_code_label *.
7046 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
7047 Likewise for locals "loop_label", "label".
7048 (ix86_expand_set_or_movmem): Likewise for locals "label",
7049 "jump_around_label", "hot_label".
7050 (ix86_expand_strlensi_unroll_1): Likewise for locals
7051 "align_2_label", align_3_label", "align_4_label", "end_0_label",
7052 "end_2_label".
7053 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
7054 (void ix86_emit_i387_log1p): Likewise for locals "label1",
7055 "label2", "jump_label".
7056 (ix86_expand_sse_compare_and_jump): Likewise for return type and
7057 local "label".
7058 (ix86_expand_lfloorceil): Likewise for local "label".
7059 (ix86_expand_rint): Likewise.
7060 (ix86_expand_floorceildf_32): Likewise.
7061 (ix86_expand_floorceil): Likewise.
7062 (ix86_expand_rounddf_32): Likewise.
7063 (ix86_expand_trunc): Likewise.
7064 (ix86_expand_truncdf_32): Likewise.
7065 (ix86_expand_round): Likewise.
7066
7067 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7068
7069 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
7070 first param from rtx to rtx_insn *.
7071 (h8300_insn_length_from_table): Likewise.
7072 * config/h8300/h8300.c (F): Likewise for return type and param
7073 "x".
7074 (Fpa): Add a checked cast to rtx_insn *.
7075 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
7076 rtx_insn *.
7077 (final_prescan_insn): Likewise for param "insn".
7078 (h8300_binary_length): Likewise.
7079 (h8300_insn_length_from_table): Likewise.
7080
7081 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7082
7083 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
7084 Strengthen first param "insn" from rtx to rtx_insn *.
7085
7086 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
7087 Likewise.
7088 (frame_insn): Likewise for return type. Introduce local "insn"
7089 for use in place of local "x" for use as an rtx_insn *.
7090 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
7091 (epiphany_expand_prologue): Likewise for local "insn".
7092 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
7093 * config/epiphany/resolve-sw-modes.c
7094 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
7095 "seq".
7096
7097 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7098
7099 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
7100 param from rtx to rtx_insn *.
7101 (c6x_final_prescan_insn): Likewise for first param.
7102
7103 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
7104 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
7105 (c6x_expand_compare): Strengthen local "insns" from rtx to
7106 rtx_insn *.
7107 (c6x_get_unit_specifier): Likewise for param "insn".
7108 (c6x_print_unit_specifier_field): Likewise.
7109 (c6x_final_prescan_insn): Likewise.
7110 (emit_add_sp_const): Likewise for local "insn".
7111 (c6x_expand_prologue): Likewise.
7112
7113 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7114
7115 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
7116 param 1 from rtx to rtx_insn *.
7117 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
7118 the various locals named "insn".
7119 (expand_epilogue_reg_restore): Likewise.
7120 (frame_related_constant_load): Likewise.
7121 (add_to_reg): Likewise.
7122 (emit_link_insn): Likewise.
7123 (do_link): Likewise.
7124 (expand_interrupt_handler_prologue): Likewise.
7125 (branch_dest): Likewise for param "branch".
7126 (asm_conditional_branch): Likewise for param "insn".
7127 (gen_one_bundle): Likewise for elements of param "slot" and local
7128 "t".
7129 (bfin_gen_bundles): Likewise for locals "insn", "next" and
7130 elements of local "slot".
7131 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7132 "queue", "next_queue", "prev".
7133 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
7134 (add_sched_insns_for_speculation): Likewise for local "insn".
7135
7136 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7137
7138 * config/avr/avr-protos.h (output_movqi): Strengthen first param
7139 from rtx to rtx_insn *.
7140 (output_movhi): Likewise.
7141 (output_movsisf): Likewise.
7142 (avr_out_tstsi): Likewise.
7143 (avr_out_tsthi): Likewise.
7144 (avr_out_tstpsi): Likewise.
7145 (avr_out_compare): Likewise.
7146 (avr_out_compare64): Likewise.
7147 (avr_out_movpsi): Likewise.
7148 (ashlqi3_out): Likewise.
7149 (ashlhi3_out): Likewise.
7150 (ashlsi3_out): Likewise.
7151 (ashrqi3_out): Likewise.
7152 (ashrhi3_out): Likewise.
7153 (ashrsi3_out): Likewise.
7154 (lshrqi3_out): Likewise.
7155 (lshrhi3_out): Likewise.
7156 (lshrsi3_out): Likewise.
7157 (avr_out_ashlpsi3): Likewise.
7158 (avr_out_ashrpsi3): Likewise.
7159 (avr_out_lshrpsi3): Likewise.
7160 (avr_out_fract): Likewise.
7161 (avr_out_sbxx_branch): Likewise.
7162 (avr_out_round): Likewise.
7163 (avr_out_xload): Likewise.
7164 (avr_out_movmem): Likewise.
7165 (adjust_insn_length): Likewise.
7166 (avr_out_lpm): Likewise.
7167 (reg_unused_after): Likewise.
7168 (_reg_unused_after): Likewise.
7169 (avr_jump_mode): Likewise for second param.
7170 (jump_over_one_insn): Likewise for first param.
7171 (avr_final_prescan_insn): Likewise.
7172 (out_shift_with_cnt): Likewise for second param.
7173
7174 * config/avr/avr.c (get_sequence_length): Likewise for param
7175 "insns" and local "insn".
7176 (emit_push_byte): Likewise for local "insn".
7177 (emit_push_sfr): Likewise.
7178 (avr_prologue_setup_frame): Likewise for locals "insn",
7179 "fp_plus_insns", "sp_plus_insns".
7180 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
7181 "sp_plus_insns".
7182 (avr_jump_mode): Likewise for param "insn".
7183 (avr_final_prescan_insn): Likewise.
7184 (avr_find_unused_d_reg): Likewise.
7185 (avr_out_lpm_no_lpmx): Likewise.
7186 (avr_out_lpm): Likewise.
7187 (avr_out_xload): Likewise.
7188 (output_movqi): Likewise.
7189 (output_movhi): Likewise.
7190 (out_movqi_r_mr): Likewise.
7191 (out_movhi_r_mr): Likewise.
7192 (out_movsi_r_mr): Likewise.
7193 (out_movsi_mr_r): Likewise.
7194 (output_movsisf): Likewise.
7195 (avr_out_load_psi): Likewise.
7196 (avr_out_store_psi): Likewise.
7197 (avr_out_movpsi): Likewise.
7198 (out_movqi_mr_r): Likewise.
7199 (avr_out_movhi_mr_r_xmega): Likewise.
7200 (out_movhi_mr_r): Likewise.
7201 (compare_condition): Likewise for param "insn" and local "next".
7202 (compare_sign_p): Likewise for param "insn".
7203 (compare_diff_p): Likewise.
7204 (compare_eq_p): Likewise.
7205 (avr_out_compare): Likewise.
7206 (avr_out_compare64): Likewise.
7207 (avr_out_tsthi): Likewise.
7208 (avr_out_tstpsi): Likewise.
7209 (avr_out_tstsi): Likewise.
7210 (out_shift_with_cnt): Likewise.
7211 (ashlqi3_out): Likewise.
7212 (ashlhi3_out): Likewise.
7213 (avr_out_ashlpsi3): Likewise.
7214 (ashlsi3_out): Likewise.
7215 (ashrqi3_out): Likewise.
7216 (ashrhi3_out): Likewise.
7217 (avr_out_ashrpsi3): Likewise.
7218 (ashrsi3_out): Likewise.
7219 (lshrqi3_out): Likewise.
7220 (lshrhi3_out): Likewise.
7221 (avr_out_lshrpsi3): Likewise.
7222 (lshrsi3_out): Likewise.
7223 (avr_out_fract): Likewise.
7224 (avr_out_round): Likewise.
7225 (avr_adjust_insn_length): Likewise.
7226 (reg_unused_after): Likewise.
7227 (_reg_unused_after): Likewise.
7228 (avr_compare_pattern): Likewise.
7229 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
7230 and locals "branch1", "branch2", "insn2", "jump".
7231 (avr_reorg): Likewise for local "insn".
7232 (avr_2word_insn_p): Likewise for param "insn".
7233 (jump_over_one_insn_p): Likewise.
7234 (avr_out_sbxx_branch): Likewise.
7235 (avr_out_movmem): Likewise.
7236
7237 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7238
7239 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
7240 param from rtx to rtx_insn *.
7241 (thumb1_final_prescan_insn): Likewise.
7242 (thumb2_final_prescan_insn): Likewise.
7243
7244 * config/arm/arm.c (emit_set_insn): Strengthen return type from
7245 rtx to rtx_insn *.
7246 (struct minipool_node): Likewise for field "insn".
7247 (dump_minipool): Likewise for param "scan".
7248 (create_fix_barrier): Likewise for local "from". Strengthen local
7249 "label" from rtx to rtx_code_label *.
7250 (push_minipool_barrier): Strengthen param "insn" from rtx to
7251 rtx_insn *.
7252 (push_minipool_fix): Likewise.
7253 (note_invalid_constants): Likewise.
7254 (thumb2_reorg): Likewise for local "insn".
7255 (arm_reorg): Likewise.
7256 (thumb2_final_prescan_insn): Likewise for param
7257 "insn" and local "first_insn".
7258 (arm_final_prescan_insn): Likewise for param "insn" and locals
7259 "start_insn", "this_insn".
7260 (arm_debugger_arg_offset): Likewise for param "insn".
7261 (thumb1_emit_multi_reg_push): Likewise for return type and local
7262 "insn".
7263 (thumb1_final_prescan_insn): Likewise for param "insn".
7264 (thumb_far_jump_used_p): Likewise for local "insn".
7265 (thumb1_expand_prologue): Likewise.
7266 (arm_expand_epilogue_apcs_frame): Likewise.
7267 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
7268 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
7269 from rtx to rtx_code_label *.
7270 (arm_split_atomic_op): Likewise for local "label".
7271 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
7272
7273 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7274
7275 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
7276 first param from rtx to rtx_insn *.
7277 (arc_verify_short): Likewise.
7278 (arc_short_long): Likewise.
7279 (arc_need_delay): Likewise.
7280
7281 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
7282 "target_insn".
7283 (arc_ccfsm_advance): Likewise for param "insn" and locals
7284 "start_insn", "this_insn".
7285 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
7286 (arc_ccfsm_post_advance): Likewise for param "insn".
7287 (arc_next_active_insn): Likewise for return type and param "insn".
7288 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
7289 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
7290 (output_short_suffix): Likewise for local "insn".
7291 (arc_final_prescan_insn): Likewise for param "insn". Remove
7292 now-redundant checked cast.
7293 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
7294 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
7295 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
7296 for use where lc_set became an insn.
7297 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
7298 rtx to rtx_insn *.
7299 (arc_get_insn_variants): Likewise for local "prev".
7300 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
7301 "next".
7302 (arc_predicate_delay_insns): Likewise for local "insn".
7303 (arc_pad_return): Likewise for local "prev". For now, add a
7304 checked cast when extracting the insn from "final_sequence".
7305 (arc_short_long): Likewise for param "insn".
7306 (arc_need_delay): Likewise for param "insn" and local "next".
7307 (arc_label_align): Likewise for locals "prev", "next".
7308
7309 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7310
7311 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
7312 "insn" from rtx to rtx_insn *.
7313 (alpha_gp_save_rtx): Likewise for local "seq".
7314 (alpha_instantiate_decls): Likewise for local "top".
7315 (get_some_local_dynamic_name): Likewise for local "insn".
7316 (alpha_does_function_need_gp): Likewise.
7317 (set_frame_related_p): Likewise for return type and for locals
7318 "seq" and "insn".
7319 (emit_frame_store_1): Likewise for local "insn".
7320 (alpha_expand_prologue): Likewise for locals "insn", "seq".
7321 (alpha_end_function): Likewise for local "insn".
7322 (alpha_output_mi_thunk_osf): Likewise.
7323 (alphaev4_insn_pipe): Likewise for param "insn".
7324 (alphaev5_insn_pipe): Likewise.
7325 (alphaev4_next_group): Likewise for return type and param 1
7326 "insn".
7327 (alphaev5_next_group): Likewise.
7328 (alpha_align_insns_1): Likewise for return type and param 1 of
7329 callback param "next_group", and for locals "i", "next", "prev",
7330 "where", "where2", "insn".
7331
7332 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
7333
7334 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
7335 rather than modifying the stmt.
7336
7337 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7338
7339 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
7340 cgraph_state conversion.
7341
7342 2014-08-25 David Malcolm <dmalcolm@redhat.com>
7343
7344 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7345 Strengthen local "insns" from rtx to rtx_insn *.
7346 (aarch64_set_frame_expr): Likewise for local "insn".
7347 (aarch64_save_or_restore_fprs): Likewise.
7348 (aarch64_save_or_restore_callee_save_registers): Likewise.
7349 (aarch64_expand_prologue): Likewise.
7350 (aarch64_expand_epilogue): Likewise.
7351 (aarch64_output_mi_thunk): Likewise.
7352 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
7353 "label2" from rtx to rtx_code_label *.
7354 (aarch64_split_atomic_op): Likewise for local "label".
7355
7356 2014-08-25 Martin Liska <mliska@suse.cz>
7357
7358 * cgraph.h (symtab_node):
7359 (bool needed_p (void)): created from decide_is_symbol_needed
7360 (bool referred_to_p (void)): created from referred_to_p
7361 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
7362 * cgraph.h (cgraph_node):
7363 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
7364 (void expand (void)): created from expand_function
7365 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
7366 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
7367 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
7368 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
7369 * cgraph.h (varpool_node):
7370 (static void add (tree decl): created from varpool_add_new_variable
7371 * cgraph.h (cgraph_edge):
7372 void remove (void);
7373 (void remove_caller (void)): created from cgraph_edge_remove_caller
7374 (void remove_callee (void)): created from cgraph_edge_remove_callee
7375 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
7376 created from cgraph_set_call_stmt
7377 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
7378 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
7379 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
7380 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
7381 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
7382 created from cgraph_speculative_call_info
7383 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
7384 int freq_scale, bool update_original)): created from cgraph_clone_edge
7385 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
7386 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
7387 (bool recursive_p (void)): created from cgraph_edge_recursive_p
7388 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
7389 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
7390 (static void rebuild_references (void)): created from cgraph_rebuild_references
7391 * cgraph.h (symbol_table):
7392 (create_reference): renamed from add_reference
7393 (maybe_create_reference): renamed from maybe_add_reference
7394 (void register_symbol (symtab_node *node)): new function
7395 (void clear_asm_symbols (void)): new function
7396 (void unregister (symtab_node *node)): new function
7397 (void release_symbol (cgraph_node *node, int uid)): new function
7398 (cgraph_node * allocate_cgraph_symbol (void)): new function
7399 (void initialize (void)): created from cgraph_init
7400 (symtab_node *first_symbol (void)):new function
7401 (asm_node *first_asm_symbol (void)):new function
7402 (symtab_node *first_defined_symbol (void)):new function
7403 (varpool_node *first_variable (void)):new function
7404 (varpool_node *next_variable (varpool_node *node)):new function
7405 (varpool_node *first_static_initializer (void)):new function
7406 (varpool_node *next_static_initializer (varpool_node *node)):new function
7407 (varpool_node *first_defined_variable (void)):new function
7408 (varpool_node *next_defined_variable (varpool_node *node)):new function
7409 (cgraph_node *first_defined_function (void)):new function
7410 (cgraph_node *next_defined_function (cgraph_node *node)):new function
7411 (cgraph_node *first_function (void)):new function
7412 (cgraph_node *next_function (cgraph_node *node)):new function
7413 (cgraph_node *first_function_with_gimple_body (void)):new function
7414 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
7415 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
7416 created from symtab_remove_unreachable_nodes
7417 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
7418 (void process_new_functions (void)): created from cgraph_process_new_functions
7419 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
7420 (bool output_variables (void)): created from varpool_node::output_variables
7421 (void output_asm_statements (void)): created from output_asm_statements
7422 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
7423 (void compile (void)): created from compile
7424 (void output_weakrefs (void)): created from output_weakrefs
7425 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
7426 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
7427 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
7428 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
7429 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
7430 created from cgraph_next_function_with_gimple_body
7431 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
7432 created from cgraph_remove_edge_removal_hook
7433 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
7434 created from cgraph_add_node_removal_hook
7435 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
7436 created from cgraph_remove_node_removal_hook
7437 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
7438 created from varpool_add_node_removal_hook
7439 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
7440 created from varpool_remove_node_removal_hook
7441 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
7442 created from cgraph_add_function_insertion_hook
7443 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
7444 created from cgraph_remove_function_insertion_hook
7445 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
7446 created from varpool_add_variable_insertion_hook
7447 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
7448 created from varpool_remove_variable_insertion_hook
7449 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
7450 created from cgraph_add_edge_duplication_hook
7451 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7452 created from cgraph_remove_edge_duplication_hook
7453 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7454 created from cgraph_add_node_duplication_hook
7455 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7456 created from cgraph_remove_node_duplication_hook
7457 (void call_edge_removal_hooks (cgraph_edge *e)):
7458 created from cgraph_call_edge_removal_hooks
7459 (void call_cgraph_insertion_hooks (cgraph_node *node)):
7460 created from call_function_insertion_hooks
7461 (void call_cgraph_removal_hooks (cgraph_node *node)):
7462 created from cgraph_call_node_removal_hooks
7463 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7464 created from cgraph_node::call_duplication_hooks
7465 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7466 created from cgraph_call_edge_duplication_hooks
7467 (void call_varpool_removal_hooks (varpool_node *node)):
7468 created from varpool_call_node_removal_hooks
7469 (void call_varpool_insertion_hooks (varpool_node *node)):
7470 created from varpool_call_variable_insertion_hooks
7471 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7472 created from insert_to_assembler_name_hash
7473 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7474 created from unlink_from_assembler_name_hash
7475 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7476 created from symtab_prevail_in_asm_name_hash
7477 (void symtab_initialize_asm_name_hash (void)):
7478 created from symtab_initialize_asm_name_hash
7479 (void change_decl_assembler_name (tree decl, tree name)):
7480 created from change_decl_assembler_name
7481 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7482 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7483 created from decl_assembler_name_hash
7484 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7485 created from decl_assembler_name_equal
7486 (static hashval_t hash_node_by_assembler_name (const void *p)):
7487 created from hash_node_by_assembler_name
7488 (static int eq_assembler_name (const void *p1, const void *p2)):
7489 created from eq_assembler_name
7490
7491 2014-08-25 Marek Polacek <polacek@redhat.com>
7492
7493 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7494
7495 2014-08-25 Petr Murzin <petr.murzin@intel.com>
7496
7497 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7498 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7499 SWI1248_AVX512BW mode iterator.
7500
7501 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
7502
7503 PR target/62111
7504 * config/sh/predicates.md (general_extend_operand): Disable
7505 TRUNCATE before reload completes.
7506
7507 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
7508
7509 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7510
7511 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
7512
7513 PR target/61996
7514 * config/sh/sh.opt (musermode): Allow negative form.
7515 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7516 targets that don't support it.
7517 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7518 Document -mno-usermode option.
7519
7520 2014-08-24 Kito Cheng <kito@0xlab.org>
7521
7522 * system.h (CALLER_SAVE_PROFITABLE): Poison.
7523 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7524 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7525 * doc/tm.texi: Regenerate.
7526
7527 2014-08-24 Kito Cheng <kito@0xlab.org>
7528
7529 * ira.c: Fix typo in comment.
7530
7531 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
7532
7533 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7534 Deprecate c++1y. Change language to reflect greater confidence in C++14.
7535
7536 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
7537
7538 PR target/62038
7539 * config/pa/pa.c (pa_output_function_epilogue): Don't set
7540 last_address when the current function is a thunk.
7541 (pa_asm_output_mi_thunk): When we don't have named sections or they
7542 are not being used, check that thunk can reach the stub table with a
7543 short branch.
7544
7545 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7546
7547 * web.c (union_match_dups): Strengthen param "insn" from rtx to
7548 rtx_insn *.
7549 (pass_web::execute): Likewise for local "insn".
7550
7551 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7552
7553 * var-tracking.c (struct micro_operation_def): Strengthen field
7554 "insn" from rtx to rtx_insn *.
7555 (struct emit_note_data_def): Likewise.
7556 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7557 (vt_stack_adjustments): Likewise for local "insn".
7558 (adjust_insn): Likewise for param "insn".
7559 (val_store): Likewise.
7560 (val_resolve): Likewise.
7561 (struct count_use_info): Likewise for field "insn".
7562 (log_op_type): Likewise for param "insn".
7563 (reverse_op): Likewise.
7564 (prepare_call_arguments): Likewise.
7565 (add_with_sets): The initial param takes an insn, but we can't
7566 yet strengthen it from rtx to rtx_insn * since it's used as a
7567 cselib_record_sets_hook callback. For now rename initial param
7568 from "insn" to "uncast_insn", and introduce a local "insn" of
7569 the stronger rtx_insn * type, with a checked cast.
7570 (compute_bb_dataflow): Strengthen local "insn" from rtx to
7571 rtx_insn *.
7572 (emit_note_insn_var_location): Likewise.
7573 (emit_notes_for_changes): Likewise.
7574 (emit_notes_for_differences): Likewise.
7575 (next_non_note_insn_var_location): Likewise for return type and
7576 for param "insn".
7577 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7578 (vt_initialize): Likewise for local "insn".
7579 (delete_debug_insns): Likewise for locals "insn" and "next".
7580
7581 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7582
7583 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7584 rtx_insn *.
7585 (mark_constant_pool): Likewise for local "insn".
7586
7587 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7588
7589 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7590 rtx to rtx_insn *.
7591 (dead_debug_promote_uses): Likewise.
7592 (dead_debug_insert_temp): Likewise.
7593
7594 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7595
7596 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7597 from const_rtx to const rtx_insn *.
7598 (store_killed_after): Likewise. Strengthen locals "last", "act"
7599 from rtx to rtx_insn *.
7600 (store_killed_before): Strengthen param "insn" from const_rtx to
7601 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
7602 (find_moveable_store): Strengthen param "insn" from rtx to
7603 rtx_insn *.
7604 (compute_store_table): Likewise for local "insn".
7605 (insert_insn_start_basic_block): Likewise for param "insn" and
7606 locals "prev", "before", "insn".
7607 (insert_store): For now, add a checked cast to rtx_insn * on the
7608 result of gen_move_insn.
7609 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7610 to rtx_insn *.
7611 (replace_store_insn): Likewise. For now, add a checked cast to
7612 rtx_insn * on the result of gen_move_insn.
7613
7614 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7615
7616 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7617 rtx_insn *.
7618 (expand_sjlj_dispatch_table): Likewise.
7619
7620 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7621
7622 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7623 "insn" from rtx to rtx_insn *.
7624
7625 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7626
7627 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7628 "insn" from rtx to rtx_insn *.
7629 (dup_block_and_redirect): Likewise for param 3 "before".
7630
7631 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7632 from rtx to rtx_insn *.
7633 (move_insn_for_shrink_wrap): Likewise.
7634 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7635 (dup_block_and_redirect): Likewise for param "before" and local
7636 "insn".
7637 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7638 "end".
7639 (convert_to_simple_return): Likewise for local "start".
7640
7641 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7642 Strengthen local "insn" from rtx to rtx_insn *, for use when
7643 invoking requires_stack_frame_p.
7644
7645 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7646
7647 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7648 rtx_insn *.
7649 (speculate_expr): Likewise for locals "orig_insn_rtx",
7650 "spec_insn_rtx".
7651 (eq_transformed_insns): Likewise for locals "i1", "i2".
7652 (check_for_new_jump): Likewise for return type and local "end".
7653 (find_new_jump): Likewise for return type and local "jump".
7654 (sel_split_edge): Likewise for local "jump".
7655 (sel_create_recovery_block): Likewise.
7656 (sel_redirect_edge_and_branch_force): Likewise.
7657 (sel_redirect_edge_and_branch): Likewise.
7658
7659 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7660
7661 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7662 "new_insn" from rtx to rtx_insn *.
7663 (create_insn_rtx_with_rhs): Likewise for return type and for local
7664 "insn_rtx".
7665 (create_insn_rtx_with_lhs): Likewise.
7666 (create_speculation_check): Likewise for local "insn_rtx".
7667 (implicit_clobber_conflict_p): Likewise for local "insn".
7668 (get_expr_cost): Likewise.
7669 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7670 (move_cond_jump): Likewise for locals "next", "prev", "link",
7671 "head", "from", "to".
7672
7673 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7674
7675 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7676 "next" from rtx to rtx_insn *.
7677 (find_conditional_protection): Likewise for local "next".
7678 (is_conditionally_protected): Likewise for local "insn1".
7679 (is_pfree): Likewise for locals "insn1", "insn2".
7680
7681 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7682
7683 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7684 from rtx to rtx_insn *.
7685
7686 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7687 locals "insn1", "insn2" from rtx to rtx_insn *.
7688 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7689 locals "insn", "prev", "last_jump", "next_tail".
7690 (schedule_ebb): Likewise for params "head", "tail".
7691 (schedule_ebbs): Likewise for locals "tail", "head".
7692
7693 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7694 to rtx_insn on "last_insn" in one of the invocations of
7695 schedule_ebb.
7696
7697 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7698
7699 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7700 "elem", "insn" from rtx to rtx_insn *.
7701 (change_spec_dep_to_hard): Likewise.
7702 (get_back_and_forw_lists): Likewise for local "con".
7703 (sd_add_dep): Likewise for locals "elem", "insn".
7704 (sd_resolve_dep): Likewise for locals "pro", "con".
7705 (sd_unresolve_dep): Likewise.
7706 (sd_delete_dep): Likewise.
7707 (chain_to_prev_insn): Likewise for local "pro".
7708 (find_inc): Likewise for locals "pro", "con".
7709
7710 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7711
7712 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7713 to rtx_insn *.
7714 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7715 const rtx_insn *.
7716 (modified_between_p): Strengthen local "insn" from rtx to
7717 rtx_insn *.
7718 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7719 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7720 const rtx_insn *.
7721
7722 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7723
7724 * resource.c (next_insn_no_annul): Strengthen local "next" from
7725 rtx to rtx_insn *.
7726 (mark_referenced_resources): Likewise for local "insn".
7727
7728 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7729
7730 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7731 to rtx_insn *.
7732 (find_reloads): Likewise for param 1.
7733 (subst_reloads): Likewise for sole param.
7734 (find_equiv_reg): Likwise for param 2.
7735 (regno_clobbered_p): Likwise for param 2.
7736 (reload): Likewise for param 1.
7737
7738 * caller-save.c (save_call_clobbered_regs): Strengthen local
7739 "insn" from rtx to rtx_insn *.
7740 (insert_one_insn): Likewise for local "insn".
7741
7742 * reload.c (this_insn): Likewise for this global.
7743 (find_reloads): Likewise for param "insn".
7744 (find_reloads_toplev): Likewise.
7745 (find_reloads_address): Likewise.
7746 (subst_reg_equivs): Likewise.
7747 (update_auto_inc_notes): Likewise.
7748 (find_reloads_address_1): Likewise.
7749 (find_reloads_subreg_address): Likewise.
7750 (subst_reloads): Likewise.
7751 (find_equiv_reg): Likewise, also for local "p".
7752 (regno_clobbered_p): Likewise for param "insn".
7753
7754 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7755 array.
7756 (spill_reg_store): Likewise for the elements of this array.
7757 (remove_init_insns): Likewise for local "equiv_insn".
7758 (will_delete_init_insn_p): Likewise for param "insn".
7759 (reload): Likewise for param ""first" and local "insn".
7760 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7761 rtx_insn *.
7762 (calculate_elim_costs_all_insns): Likewise.
7763 (delete_caller_save_insns): Likewise.
7764 (spill_failure): Likewise for param "insn".
7765 (delete_dead_insn): Likewise.
7766 (set_label_offsets): Likewise.
7767 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7768 "prev_insn".
7769 (elimination_costs_in_insn): Likewise for param "insn".
7770 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7771 when referring to an insn.
7772 (set_initial_label_offsets): Likewise.
7773 (set_offsets_for_label): Strengthen param "insn" from rtx to
7774 rtx_insn *.
7775 (init_eliminable_invariants): Likewise for param "first" and local
7776 "insn".
7777 (fixup_eh_region_note): Likewise for param "insn".
7778 (reload_as_needed): Likewise for locals "prev", "insn",
7779 "old_next", "old_prev", "next".
7780 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7781 "last".
7782 (reload_inheritance_insn): Strengthen elements of this array from
7783 rtx to rtx_insn *.
7784 (failed_reload): Likewise for param "insn".
7785 (choose_reload_regs): Likewise for local "insn". Replace use of
7786 NULL_RTX with NULL when referring to an insn.
7787 (input_reload_insns): Strengthen elements of this array from rtx
7788 to rtx_insn *.
7789 (other_input_address_reload_insns): Likewise for this global.
7790 (other_input_reload_insns): Likewise for this global.
7791 (input_address_reload_insns): Likwise for the elements of this
7792 array.
7793 (inpaddr_address_reload_insns): Likwise for the elements of this
7794 array.
7795 (output_reload_insns): Likewise for the elements of this array.
7796 (output_address_reload_insns): Likewise for the elements of this
7797 array.
7798 (outaddr_address_reload_insns): Likewise for the elements of this
7799 array.
7800 (operand_reload_insns): Likewise for this global.
7801 (other_operand_reload_insns): Likewise for this global.
7802 (other_output_reload_insns): Likewise for the elements of this
7803 array.
7804 (new_spill_reg_store): Likewise for the elements of this
7805 array.
7806 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7807 Strengthen local "where" from rtx * to rtx_insn **.
7808 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7809 from rtx to rtx_insn *.
7810 (do_input_reload): Likewise for local "insn".
7811 (do_output_reload): Likewise for local "insn".
7812 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7813 (emit_insn_if_valid_for_reload): Likewise for return type and local
7814 "last". Add checked cast to rtx_insn when returning "insn" since
7815 this has been through emit_insn.
7816 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7817 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7818 returning "insn" since it's been through
7819 emit_insn_if_valid_for_reload at this point.
7820 (delete_output_reload): Strengthen param "insn" and locals
7821 "output_reload_insn", "i2" from rtx to rtx_insn *.
7822 (delete_address_reloads): Likewise for params "dead_insn",
7823 "current_insn" and locals "prev", "next".
7824 (delete_address_reloads_1): Likewise for params "dead_insn",
7825 "current_insn" and locals "prev", "i2".
7826 (inc_for_reload): Likewise for locals "last", "add_insn".
7827 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7828 rtx_insn *.
7829
7830 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7831 param of this duplicate of the prototype from reload.h
7832
7833 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7834
7835 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7836 rtx to rtx_insn *.
7837 (regstat_bb_compute_calls_crossed): Likewise.
7838
7839 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7840
7841 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7842 to rtx_insn *.
7843 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7844 with an insn.
7845 (regrename_analyze): Strengthen local "insn" from rtx to
7846 rtx_insn *.
7847 (scan_rtx_reg): Likewise for param "insn".
7848 (scan_rtx_address): Likewise.
7849 (scan_rtx): Likewise.
7850 (restore_operands): Likewise.
7851 (record_out_operands): Likewise.
7852 (build_def_use): Likewise for local "insn". Replace use of
7853 NULL_RTX with NULL when dealing with an insn.
7854
7855 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7856
7857 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7858 * reginfo.c (reg_scan): Likewise, also for local "insn".
7859 (reg_scan_mark_refs): Likewise for param "insn".
7860 (init_subregs_of_mode): Likewise for local "insn".
7861
7862 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7863
7864 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7865 "insn" from rtx to rtx_insn *.
7866 (replace_oldest_value_reg): Likewise for param "insn".
7867 (replace_oldest_value_addr): Likewise.
7868 (replace_oldest_value_mem): Likewise.
7869 (apply_debug_insn_changes): Likewise for local "last_insn".
7870 (copyprop_hardreg_forward_1): Likewise for local "insn".
7871
7872 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7873
7874 * reg-stack.c (next_flags_user): Strengthen return type and param
7875 "insn" from rtx to rtx_insn *.
7876 (straighten_stack): Likewise for param "insn".
7877 (check_asm_stack_operands): Likewise.
7878 (remove_regno_note): Likewise.
7879 (emit_pop_insn): Likewise for return type, param "insn", local
7880 "pop_insn".
7881 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7882 "limit" from rtx to rtx_insn *.
7883 (swap_to_top): Likewise for param "insn".
7884 (move_for_stack_reg): Likewise.
7885 (move_nan_for_stack_reg): Likewise.
7886 (swap_rtx_condition): Likewise.
7887 (compare_for_stack_reg): Likewise.
7888 (subst_all_stack_regs_in_debug_insn): Likewise.
7889 (subst_stack_regs_pat): Likewise, and local "insn2".
7890 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7891 rtx_insn *.
7892 (subst_stack_regs): Likewise.
7893 (change_stack): Likewise.
7894 (convert_regs_1): Likewise for locals "insn", "next".
7895
7896 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7897
7898 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7899 rtx_insn *.
7900 (combine_set_extension): Likewise for param "curr_insn".
7901 (transform_ifelse): Likewise for param "def_insn".
7902 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7903 from vec<rtx> * to vec<rtx_insn *> *.
7904 (is_cond_copy_insn): Likewise for param "insn".
7905 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7906 to vec<rtx_insn *>.
7907 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7908 local "def_insn" from rtx to rtx_insn *.
7909 (get_sub_rtx): Likewise for param "def_insn".
7910 (merge_def_and_ext): Likewise.
7911 (combine_reaching_defs): Likewise.
7912 (add_removable_extension): Likewise for param "insn".
7913 (find_removable_extensions): Likewise for local "insn".
7914 (find_and_remove_re): Likewise for locals "curr_insn" and
7915 "def_insn". Strengthen locals "reinsn_del_list" and
7916 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7917
7918 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7919
7920 * recog.c (split_insn): Strengthen param "insn" and locals
7921 "first", "last" from rtx to rtx_insn *.
7922 (split_all_insns): Likewise for locals "insn", "next".
7923 (split_all_insns_noflow): Likewise.
7924
7925 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7926
7927 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7928 const rtx_insn *.
7929 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7930 (debug_rtx_find): Likewise for param 1 "x".
7931
7932 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7933 const_rtx to const rtx_insn *. Likewise for local "insn".
7934 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7935 (debug_rtx_find): Likewise for param 1 "x".
7936 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7937 from const_rtx to const rtx_insn * within the appropriate cases of
7938 the switch statement.
7939
7940 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7941 Strengthen local "insns" from rtx to rtx_insn * since this is
7942 passed to a call to debug_rtx_list.
7943
7944 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7945
7946 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7947 to rtx_insn *.
7948
7949 * function.c (stack_protect_epilogue): Add checked cast to
7950 rtx_insn for now when invoking predict_insn_def.
7951
7952 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7953 rtx_insn *.
7954 (predict_insn_def): Likewise.
7955 (rtl_predict_edge): Likewise for local "last_insn".
7956 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7957 const rtx_insn *.
7958 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7959 to rtx_insn *.
7960 (bb_estimate_probability_locally): Likewise for local "last_insn".
7961 (expensive_function_p): Likewise for local "insn".
7962
7963 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7964 local "jmp", since this is used when invoking predict_insn_def.
7965
7966 2014-08-22 Marek Polacek <polacek@redhat.com>
7967
7968 PR c++/62199
7969 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7970
7971 2014-08-22 Marek Polacek <polacek@redhat.com>
7972
7973 PR c/61271
7974 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7975 a comparison in parens.
7976 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7977 in parens.
7978
7979 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7980
7981 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7982 rtx_insn *.
7983
7984 * cprop.c (fis_get_condition): Likewise.
7985
7986 * postreload.c (reload_cse_regs): Likewise for param "first".
7987 (reload_cse_simplify): Likewise for param "insn".
7988 (reload_cse_regs_1): Likewise for local "insn".
7989 (reload_cse_simplify_set): Likewise for param "insn".
7990 (reload_cse_simplify_operands): Likewise.
7991 (struct reg_use): Likewise for field "insn".
7992 (reload_combine_purge_insn_uses): Likewise for param "insn".
7993 (fixup_debug_insns): Likewise for params "from", "to" and local
7994 "insn".
7995 (try_replace_in_use): Likewise for local "use_insn".
7996 (reload_combine_recognize_const_pattern): Likewise for param
7997 "insn" and locals "add_moved_after_insn", "use_insn".
7998 (reload_combine_recognize_pattern): Likewise for param "insn" and
7999 local "prev".
8000 (reload_combine): Likewise for locals "insn", "prev".
8001 (reload_combine_note_use): Likewise for param "insn".
8002 (move2add_use_add2_insn): Likewise.
8003 (move2add_use_add3_insn): Likewise.
8004 (reload_cse_move2add): Likewise, also for local "next".
8005 (move2add_note_store): Likewise for local "insn".
8006
8007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8008
8009 * postreload-gcse.c (struct occr): Strengthen field "insn" from
8010 rtx to rtx_insn *.
8011 (struct unoccr): Likewise.
8012 (struct modifies_mem): Likewise.
8013 (alloc_mem): Likewise for local "insn".
8014 (insert_expr_in_table): Likewise for param "insn".
8015 (dump_expr_hash_table_entry): Likewise for local "insn".
8016 (oprs_unchanged_p): Likewise for param "insn".
8017 (load_killed_in_block_p): Likewise for local "setter".
8018 (record_last_reg_set_info): Likewise for param "insn".
8019 (record_last_reg_set_info_regno): Likewise.
8020 (record_last_mem_set_info): Likewise.
8021 (record_last_set_info): Likewise for local "last_set_insn".
8022 (record_opr_changes): Likewise for param "insn".
8023 (hash_scan_set): Likewise.
8024 (compute_hash_table): Likewise for local "insn".
8025 (get_avail_load_store_reg): Likewise for param "insn".
8026 (eliminate_partially_redundant_load): Likewise, also for locals
8027 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
8028 RTX for insns.
8029 (eliminate_partially_redundant_loads): Likewise for local "insn".
8030
8031 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8032
8033 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
8034 rtx to rtx_insn *.
8035 (expand_binop): Likewise for locals "entry_last", "last", "insns"
8036 (expand_twoval_unop): Likewise for locals entry_last", "last".
8037 (expand_twoval_binop): Likewise.
8038 (expand_twoval_binop_libfunc): Likewise for local "insns".
8039 (widen_leading): Likewise for local "last".
8040 (expand_doubleword_clz): Likewise for local "seq". Strengthen
8041 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
8042 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
8043 (expand_parity): Likewise for locals "last" and "seq".
8044 (expand_ffs): Likewise for local "seq". Strengthen local
8045 "nonzero_label" from rtx to rtx_code_label *.
8046 (expand_absneg_bit): Strengthen local "insns" from rtx to
8047 rtx_insn *.
8048 (expand_unop_direct): Likewise for local "last".
8049 (expand_unop): Likewise for locals "last", "insns".
8050 (expand_abs_nojump): Likewise for local "last".
8051 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
8052 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
8053 rtx_insn *.
8054 (expand_copysign_absneg): Strengthen local "label" from rtx to
8055 rtx_code_label *.
8056 (expand_copysign_bit): Strengthen local "insns" from rtx to
8057 rtx_insn *.
8058 (struct no_conflict_data): Likewise for fields "first", "insn".
8059 (emit_libcall_block_1): Likewise for param "insns" and locals
8060 "next", "last", "insn".
8061 (emit_libcall_block): For now, add a checked cast to rtx_insn *
8062 on "insns" when invoking emit_libcall_block_1. Ultimately we
8063 want to strengthen insns itself.
8064 (prepare_cmp_insn): Strengthen local "last" from rtx to
8065 rtx_insn *.
8066 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
8067 (prepare_float_lib_cmp): Likewise for local "insns".
8068 (emit_conditional_move): Likewise for local "last".
8069 (emit_conditional_add): Likewise.
8070 (have_sub2_insn): Likewise for local "seq".
8071 (expand_float): Likewise for local "insns". Strengthen locals
8072 "label", "neglabel" from rtx to rtx_code_label *.
8073 (expand_fix): Likewise for locals "last", "insn", "insns" (to
8074 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
8075 (expand_fixed_convert): Likewise for local "insns" (to
8076 rtx_insn *).
8077 (expand_sfix_optab): Likewise for local "last".
8078 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
8079 to rtx_code_label *.
8080 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
8081 from rtx to rtx_insn *.
8082 (expand_atomic_fetch_op): Likewise for local "insn".
8083 (maybe_legitimize_operand_same_code): Likewise for local "last".
8084 (maybe_legitimize_operands): Likewise.
8085
8086 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8087
8088 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
8089 "insn" from rtx to rtx_insn *.
8090 (ps_rtl_insn): Likewise for return type.
8091 (doloop_register_get): Likewise for params "head", "tail" and
8092 locals "insn", "first_insn_not_to_check".
8093 (schedule_reg_move): Likewise for local "this_insn".
8094 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
8095 of gen_move_insn for now.
8096 (reset_sched_times): Strengthen local "insn" from rtx to
8097 rtx_insn *.
8098 (permute_partial_schedule): Likewise.
8099 (duplicate_insns_of_cycles): Likewise for local "u_insn".
8100 (dump_insn_location): Likewise for param "insn".
8101 (loop_canon_p): Likewise for local "insn".
8102 (sms_schedule): Likewise.
8103 (print_partial_schedule): Likewise.
8104 (ps_has_conflicts): Likewise.
8105
8106 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8107
8108 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
8109 "tailp" from rtx * to rtx_insn **.
8110
8111 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
8112 from rtx to rtx_insn *.
8113 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
8114 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
8115 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
8116 rtx to rtx_insn *.
8117 * modulo-sched.c (const_iteration_count): Strengthen return type
8118 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
8119 use of NULL_RTX with NULL when working with insns.
8120 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
8121 to rtx_insn *.
8122 (sms_schedule): Likewise.
8123 * sched-rgn.c (init_ready_list): Likewise, also for locals
8124 "src_head" and "src_next_tail".
8125 (compute_block_dependences): Likewise.
8126 (free_block_dependencies): Likewise.
8127 (debug_rgn_dependencies): Likewise.
8128 (free_rgn_deps): Likewise.
8129 (compute_priorities): Likewise.
8130 (schedule_region): Likewise.
8131 * sel-sched.c (find_ebb_boundaries): Likewise.
8132
8133 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
8134 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
8135
8136 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8137
8138 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
8139 from rtx to rtx_insn *.
8140 (new_seginfo): Likewise for param "insn".
8141 (create_pre_exit): Likewise for locals "last_insn",
8142 "before_return_copy", "return_copy".
8143 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
8144 "mode_set".
8145
8146 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8147
8148 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
8149 from rtx to rtx_insn *.
8150 (lra_push_insn): Likewise for 1st param.
8151 (lra_push_insn_and_update_insn_regno_info): Likewise.
8152 (lra_pop_insn): Likewise for return type.
8153 (lra_invalidate_insn_data): Likewise for 1st param.
8154 (lra_set_insn_deleted): Likewise.
8155 (lra_delete_dead_insn): Likewise.
8156 (lra_process_new_insns): Likewise for first 3 params.
8157 (lra_set_insn_recog_data): Likewise for 1st param.
8158 (lra_update_insn_recog_data): Likewise.
8159 (lra_set_used_insn_alternative): Likewise.
8160 (lra_invalidate_insn_regno_info): Likewise.
8161 (lra_update_insn_regno_info): Likewise.
8162 (lra_former_scratch_operand_p): Likewise.
8163 (lra_eliminate_regs_1): Likewise.
8164 (lra_get_insn_recog_data): Likewise.
8165
8166 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
8167 rtx to rtx_insn *.
8168
8169 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
8170 "mv1" and "mv2".
8171 (substitute_within_insn): New.
8172 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
8173 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
8174 Replace call to "substitute" with call to substitute_within_insn.
8175
8176 * lra-constraints.c (curr_insn): Strengthen from rtx to
8177 rtx_insn *.
8178 (get_equiv_with_elimination): Likewise for param "insn".
8179 (match_reload): Strengthen params "before" and "after" from rtx *
8180 to rtx_insn **.
8181 (emit_spill_move): Likewise for return type. Add a checked cast
8182 to rtx_insn * on result of gen_move_insn for now.
8183 (check_and_process_move): Likewise for local "before". Replace
8184 NULL_RTX with NULL when referring to insns.
8185 (process_addr_reg): Strengthen params "before" and "after" from
8186 rtx * to rtx_insn **.
8187 (insert_move_for_subreg): Likewise.
8188 (simplify_operand_subreg): Strengthen locals "before" and "after"
8189 from rtx to rtx_insn *.
8190 (process_address_1): Strengthen params "before" and "after" from
8191 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
8192 rtx to rtx_insn *.
8193 (process_address): Strengthen params "before" and "after" from
8194 rtx * to rtx_insn **.
8195 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
8196 (curr_insn_transform): Strengthen locals "before" and "after"
8197 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
8198 to insns.
8199 (loc_equivalence_callback): Update cast of "data", changing
8200 resulting type from rtx to rtx_insn *.
8201 (substitute_pseudo_within_insn): New.
8202 (inherit_reload_reg): Strengthen param "insn" from rtx to
8203 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
8204 NULL when referring to insns. Add a checked cast to rtx_insn *
8205 when using usage_insn to invoke lra_update_insn_regno_info.
8206 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
8207 likewise for locals "restore", "save". Add checked casts to
8208 rtx_insn * when using usage_insn to invoke
8209 lra_update_insn_regno_info and lra_process_new_insns. Replace
8210 NULL_RTX with NULL when referring to insns.
8211 (split_if_necessary): Strengthen param "insn" from rtx to
8212 rtx_insn *.
8213 (update_ebb_live_info): Likewise for params "head", "tail" and local
8214 "prev_insn".
8215 (get_last_insertion_point): Likewise for return type and local "insn".
8216 (get_live_on_other_edges): Likewise for local "last".
8217 (inherit_in_ebb): Likewise for params "head", "tail" and locals
8218 "prev_insn", "next_insn", "restore".
8219 (remove_inheritance_pseudos): Likewise for local "prev_insn".
8220 (undo_optional_reloads): Likewise for local "insn".
8221
8222 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
8223 "insn".
8224 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
8225 insns.
8226 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
8227 rtx_insn *.
8228 (spill_pseudos): Likewise for local "insn".
8229 (init_elimination): Likewise.
8230 (process_insn_for_elimination): Likewise for param "insn".
8231
8232 * lra-lives.c (curr_insn): Likewise.;
8233
8234 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
8235 (remove_pseudos): Likewise for param "insn".
8236 (spill_pseudos): Likewise for local "insn".
8237 (lra_final_code_change): Likewise for locals "insn", "curr".
8238
8239 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
8240 (lra_set_insn_deleted): Likewise.
8241 (lra_delete_dead_insn): Likewise, and for local "prev".
8242 (new_insn_reg): Likewise for param "insn".
8243 (lra_set_insn_recog_data): Likewise.
8244 (lra_update_insn_recog_data): Likewise.
8245 (lra_set_used_insn_alternative): Likewise.
8246 (get_insn_freq): Likewise.
8247 (invalidate_insn_data_regno_info): Likewise.
8248 (lra_invalidate_insn_regno_info): Likewise.
8249 (lra_update_insn_regno_info): Likewise.
8250 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
8251 vec<rtx_insn *>.
8252 (lra_push_insn_1): Strengthen param "insn" from rtx to
8253 rtx_insn *.
8254 (lra_push_insn): Likewise.
8255 (lra_push_insn_and_update_insn_regno_info): Likewise.
8256 (lra_pop_insn): Likewise for return type and local "insn".
8257 (push_insns): Likewise for params "from", "to", and local "insn".
8258 (setup_sp_offset): Likewise for params "from", "last" and locals
8259 "before", "insn".
8260 (lra_process_new_insns): Likewise for params "insn", "before",
8261 "after" and local "last".
8262 (struct sloc): Likewise for field "insn".
8263 (lra_former_scratch_operand_p): Likewise for param "insn".
8264 (remove_scratches): Likewise for locals "insn", "last".
8265 (check_rtl): Likewise for local "insn".
8266 (add_auto_inc_notes): Likewise for param "insn".
8267 (update_inc_notes): Likewise for local "insn".
8268 (lra): Replace NULL_RTX with NULL when referring to insn.
8269
8270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8271
8272 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
8273 to rtx_insn *.
8274 (resolve_reg_notes): Likewise.
8275 (resolve_simple_move): Likewise for return type, param "insn", and
8276 locals "insns", "minsn".
8277 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
8278 (resolve_use): Likewise.
8279 (resolve_debug): Likewise.
8280 (find_decomposable_shift_zext): Likewise.
8281 (resolve_shift_zext): Likewise for return type, param "insn", and
8282 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
8283 (decompose_multiword_subregs): Likewise for local "insn",
8284 "orig_insn", "decomposed_shift", "end".
8285
8286 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8287
8288 * basic-block.h (basic_block split_edge_and_insert): Strengthen
8289 param "insns" from rtx to rtx_insn *.
8290
8291 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
8292 rtx to rtx_insn *.
8293 (struct iv_to_split): Likewise.
8294 (loop_exit_at_end_p): Likewise for local "insn".
8295 (split_edge_and_insert): Likewise for param "insns".
8296 (compare_and_jump_seq): Likewise for return type, param "cinsn",
8297 and locals "seq", "jump".
8298 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
8299 "branch_code"; update invocations of compare_and_jump_seq to
8300 eliminate NULL_RTX in favor of NULL.
8301 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
8302 rtx to rtx_insn *.
8303 (reset_debug_uses_in_loop): Likewise.
8304 (analyze_insn_to_expand_var): Likewise for param "insn".
8305 (analyze_iv_to_split_insn): Likewise.
8306 (analyze_insns_in_loop): Likewise for local "insn".
8307 (insert_base_initialization): Likewise for param
8308 "insn" and local "seq".
8309 (split_iv): Likewise for param "insn" and local "seq".
8310 (expand_var_during_unrolling): Likewise for param "insn".
8311 (insert_var_expansion_initialization): Likewise for local "seq".
8312 (combine_var_copies_in_loop_exit): Likewise.
8313 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
8314 "insn".
8315 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
8316 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
8317 "next".
8318
8319 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8320
8321 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
8322 rtx_insn *.
8323 (iv_analyze_result): Likewise.
8324 (iv_analyze_expr): Likewise.
8325 (biv_p): Likewise.
8326
8327 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
8328 local "def_insn" from rtx to rtx_insn *.
8329 (get_biv_step_1): Likewise for local "insn".
8330 (iv_analyze_expr): Likewise for param "insn".
8331 (iv_analyze_def): Likewise for local "insn".
8332 (iv_analyze_op): Likewise for param "insn".
8333 (iv_analyze): Likewise.
8334 (iv_analyze_result): Likewise.
8335 (biv_p): Likewise.
8336 (suitable_set_for_replacement): Likewise.
8337 (simplify_using_initial_values): Likewise for local "insn".
8338 (iv_number_of_iterations): Likewise for param "insn".
8339 (check_simple_exit): Add checked cast to rtx_insn when invoking
8340 iv_number_of_iterations for now (until get_condition is
8341 strengthened).
8342
8343 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
8344 "insn" from rtx to rtx_insn *.
8345 (analyze_insns_in_loop): Likewise for local "insn".
8346
8347 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8348
8349 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
8350 to rtx_insn *.
8351 (struct invariant): Likewise.
8352 (hash_invariant_expr_1): Likewise for param "insn".
8353 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
8354 (find_exits): Likewise for local "insn".
8355 (create_new_invariant): Likewise for param "insn".
8356 (check_dependencies): Likewise.
8357 (find_invariant_insn): Likewise.
8358 (record_uses): Likewise.
8359 (find_invariants_insn): Likewise.
8360 (find_invariants_bb): Likewise for local "insn".
8361 (get_pressure_class_and_nregs): Likewise for param "insn".
8362 (calculate_loop_reg_pressure): Likewise for local "insn".
8363
8364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8365
8366 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
8367 to rtx_insn *.
8368 (add_test): Likewise for locals "seq", "jump".
8369 (doloop_modify): Likewise for locals "sequence", "jump_insn".
8370
8371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8372
8373 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
8374 rtx_insn *.
8375 (rebuild_jump_labels_chain): Likewise for param "chain".
8376
8377 * cfgexpand.c (pass_expand::execute): Add checked cast to
8378 rtx_insn * when calling rebuild_jump_labels_chain in region where
8379 we know e->insns.r is non-NULL.
8380
8381 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
8382 rtx_insn *.
8383 (rebuild_jump_labels): Likewise.
8384 (rebuild_jump_labels_chain): Likewise for param "chain".
8385 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
8386 (init_label_info): Likewise for param "f".
8387 (maybe_propagate_label_ref): Likewise for params "jump_insn",
8388 "prev_nonjump_insn".
8389 (mark_all_labels): Likewise for param "f" and locals "insn",
8390 "prev_nonjump_insn".
8391
8392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8393
8394 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
8395 from rtx to rtx_insn *insn.
8396 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
8397 (ira_add_allocno_copy): Likewise.
8398 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
8399 rtx to rtx_insn *.
8400 (ira_create_copy): Likewise.
8401 (ira_add_allocno_copy): Likewise.
8402 (create_bb_allocnos): Likewise for local "insn".
8403 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
8404 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
8405 process_regs_for_copy for rtx_insn * param.
8406 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
8407 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
8408 process_regs_for_copy for rtx_insn * param.
8409 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
8410 * ira-costs.c (record_reg_classes): Likewise for param "insn".
8411 (record_operand_costs): Likewise.
8412 (scan_one_insn): Likewise for return type, and for param "insn".
8413 (process_bb_for_costs): Likewise for local "insn".
8414 (process_bb_node_for_hard_reg_moves): Likewise.
8415 * ira-emit.c (struct move): Likewise for field "insn".
8416 (create_move): Eliminate use of NULL_RTX when dealing with an
8417 rtx_insn *.
8418 (emit_move_list): Strengthen return type and locals "result",
8419 "insn" from rtx to rtx_insn *insn.
8420 (emit_moves): Likewise for locals "insns", "tmp".
8421 (ira_emit): Likewise for local "insn".
8422 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
8423 "insn".
8424 (find_call_crossed_cheap_reg): Likewise.
8425 (process_bb_node_lives): Likewise for local "insn".
8426 * ira.c (decrease_live_ranges_number): Likewise.
8427 (compute_regs_asm_clobbered): Likewise.
8428 (build_insn_chain): Likewise.
8429 (find_moveable_pseudos): Likewise, also locals "def_insn",
8430 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
8431 to rtx_insn **. Add a checked cast when assigning from
8432 "closest_use" into closest_uses array in a region where we know
8433 it's a non-NULL insn.
8434 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
8435 to rtx_insn *.
8436 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
8437 "last_interesting_insn", "uin".
8438 (move_unallocated_pseudos): Likewise for locals "def_insn",
8439 "move_insn", "newinsn".
8440
8441 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8442
8443 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
8444 Strengthen locals "done_label", "do_error" from rtx to
8445 rtx_code_label *.
8446 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
8447 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
8448 rtx_code_label *.
8449 (ubsan_expand_si_overflow_neg_check): Likewise for locals
8450 "done_label", "do_error" to rtx_code_label * and local "last" to
8451 rtx_insn *.
8452 (ubsan_expand_si_overflow_mul_check): Likewise for locals
8453 "done_label", "do_error", "large_op0", "small_op0_large_op1",
8454 "one_small_one_large", "both_ops_large", "after_hipart_neg",
8455 "after_lopart_neg", "do_overflow", "hipart_different" to
8456 rtx_code_label * and local "last" to rtx_insn *.
8457
8458 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8459
8460 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8461 "insn" and "move_insn" from rtx to rtx_insn *.
8462
8463 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8464
8465 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8466 rtx_insn *.
8467 (cheap_bb_rtx_cost_p): Likewise.
8468 (first_active_insn): Likewise for return type and local "insn".
8469 (last_active_insn): Likewise for return type and locals "insn",
8470 "head".
8471 (struct noce_if_info): Likewise for fields "jump", "insn_a",
8472 "insn_b".
8473 (end_ifcvt_sequence): Likewise for return type and locals "insn",
8474 "seq".
8475 (noce_try_move): Likewise for local "seq".
8476 (noce_try_store_flag): Likewise.
8477 (noce_try_store_flag_constants): Likewise.
8478 (noce_try_addcc): Likewise.
8479 (noce_try_store_flag_mask): Likewise.
8480 (noce_try_cmove): Likewise.
8481 (noce_try_minmax): Likewise.
8482 (noce_try_abs): Likewise.
8483 (noce_try_sign_mask): Likewise.
8484 (noce_try_bitop): Likewise.
8485 (noce_can_store_speculate_p): Likewise for local "insn".
8486 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8487 seq".
8488 (check_cond_move_block): Likewise for local "insn".
8489 (cond_move_convert_if_block): Likewise.
8490 (cond_move_process_if_block): Likewise for locals "seq",
8491 "loc_insn".
8492 (noce_find_if_block): Likewise for local "jump".
8493 (merge_if_block): Likewise for local "last".
8494 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8495 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8496 (block_has_only_trap): Likewise for return type and local "trap".
8497 (find_if_case_1): Likewise for local "jump".
8498 (dead_or_predicable): Likewise for locals "head", "end", "jump",
8499 "insn".
8500
8501 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8502
8503 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8504 "last_insn", "loop_end" from rtx to rtx_insn *.
8505
8506 * hw-doloop.c (scan_loop): Likewise for local "insn".
8507 (discover_loop): Likewise for param "tail_insn".
8508 (discover_loops): Likewise for local "tail".
8509
8510 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8511 cast to rtx_insn * when assigning from an rtx local to a
8512 hwloop_info's "last_insn" field.
8513
8514 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8515
8516 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8517 (add_delay_dependencies): Strengthen local "pro" from rtx to
8518 rtx_insn *.
8519 (recompute_todo_spec): Likewise.
8520 (dep_cost_1): Likewise for locals "insn", "used".
8521 (schedule_insn): Likewise for local "dbg".
8522 (schedule_insn): Likewise for locals "pro", "next".
8523 (unschedule_insns_until): Likewise for local "con".
8524 (restore_pattern): Likewise for local "next".
8525 (estimate_insn_tick): Likewise for local "pro".
8526 (resolve_dependencies): Likewise for local "next".
8527 (fix_inter_tick): Likewise.
8528 (fix_tick_ready): Likewise for local "pro".
8529 (add_to_speculative_block): Likewise for locals "check", "twin",
8530 "pro".
8531 (sched_extend_bb): Likewise for locals "end", "insn".
8532 (init_before_recovery): Likewise for local "x".
8533 (sched_create_recovery_block): Likewise for local "barrier".
8534 (create_check_block_twin): Likewise for local "pro".
8535 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8536 "consumer".
8537 (unlink_bb_notes): Update for change to type of bb_header.
8538 Strengthen locals "prev", "label", "note", "next" from rtx to
8539 rtx_insn *.
8540 (clear_priorities): Likewise for local "pro".
8541
8542 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8543
8544 * gcse.c (struct occr): Strengthen field "insn" from rtx to
8545 rtx_insn *.
8546 (test_insn): Likewise for this global.
8547 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8548 const rtx_insn *.
8549 (oprs_anticipatable_p): Likewise.
8550 (oprs_available_p): Likewise.
8551 (insert_expr_in_table): Strengthen param "insn" from rtx to
8552 rtx_insn *.
8553 (hash_scan_set): Likewise.
8554 (hash_scan_clobber): Likewise.
8555 (hash_scan_call): Likewise.
8556 (hash_scan_insn): Likewise.
8557 (compute_hash_table_work): Likewise for local "insn".
8558 (process_insert_insn): Likewise for return type and local "pat".
8559 (insert_insn_end_basic_block): Likewise for locals "new_insn",
8560 "pat", "pat_end", "maybe_cc0_setter".
8561 (pre_edge_insert): Likewise for local "insn".
8562 (pre_insert_copy_insn): Likewise for param "insn".
8563 (pre_insert_copies): Likewise for local "insn".
8564 (struct set_data): Likewise for field "insn".
8565 (single_set_gcse): Likewise for param "insn".
8566 (gcse_emit_move_after): Likewise.
8567 (pre_delete): Likewise for local "insn".
8568 (update_bb_reg_pressure): Likewise for param "from" and local
8569 "insn".
8570 (should_hoist_expr_to_dom): Likewise for param "from".
8571 (hoist_code): Likewise for local "insn".
8572 (get_pressure_class_and_nregs): Likewise for param "insn".
8573 (calculate_bb_reg_pressure): Likewise for local "insn".
8574 (compute_ld_motion_mems): Likewise.
8575
8576 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8577
8578 * genpeep.c (main): Rename param back from "uncast_ins1" to
8579 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
8580 checked cast.
8581
8582 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8583
8584 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8585
8586 PR target/62195
8587 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8588 documentation to state it is only for VSX operations.
8589
8590 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8591 constraint only active if VSX.
8592
8593 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8594 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8595 (lfiwzx): Likewise.
8596
8597 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8598
8599 * fwprop.c (single_def_use_dom_walker::before_dom_children):
8600 Strengthen local "insn" from rtx to rtx_insn *.
8601 (use_killed_between): Likewise for param "target_insn".
8602 (all_uses_available_at): Likewise for param "target_insn" and
8603 local "next".
8604 (update_df_init): Likewise for params "def_insn", "insn".
8605 (update_df): Likewise for param "insn".
8606 (try_fwprop_subst): Likewise for param "def_insn" and local
8607 "insn".
8608 (free_load_extend): Likewise for param "insn".
8609 (forward_propagate_subreg): Likewise for param "def_insn" and
8610 local "use_insn".
8611 (forward_propagate_asm): Likewise for param "def_insn" and local
8612 "use_insn".
8613 (forward_propagate_and_simplify): Likewise for param "def_insn"
8614 and local "use_insn".
8615 (forward_propagate_into): Likewise for locals "def_insn" and
8616 "use_insn".
8617
8618 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8619
8620 * function.c (emit_initial_value_sets): Strengthen local "seq"
8621 from rtx to rtx_insn *.
8622 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8623 local "seq".
8624 (instantiate_virtual_regs): Likewise for local "insn".
8625 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8626 (reorder_blocks_1): Likewise for param "insns" and local "insn".
8627 (expand_function_end): Likewise for locals "insn" and "seq".
8628 (epilogue_done): Likewise for local "insn".
8629 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8630 "last", "trial".
8631 (reposition_prologue_and_epilogue_notes): Likewise for locals
8632 "insn", "last", "note", "first".
8633 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8634 (pass_match_asm_constraints::execute): Likewise for local "insn".
8635
8636 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8637
8638 * output.h (final_scan_insn): Strengthen return type from rtx to
8639 rtx_insn *.
8640 (final_forward_branch_p): Likewise for param.
8641 (current_output_insn): Likewise for this global.
8642
8643 * final.c (rtx debug_insn): Likewise for this variable.
8644 (current_output_insn): Likewise.
8645 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8646 adding "insn" back in as an rtx_insn * with a checked cast, so
8647 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8648 first param.
8649 (compute_alignments): Strengthen local "label" from rtx to
8650 rtx_insn *.
8651 (shorten_branches): Rename param from "first" to "uncast_first",
8652 introducing a new local rtx_insn * "first" using a checked cast to
8653 effectively strengthen "first" from rtx to rtx_insn * without
8654 affecting the type signature. Strengthen locals "insn", "seq",
8655 "next", "label" from rtx to rtx_insn *.
8656 (change_scope): Strengthen param "orig_insn" and local "insn" from
8657 rtx to rtx_insn *.
8658 (final_start_function): Rename param from "first" to "uncast_first",
8659 introducing a new local rtx_insn * "first" using a checked cast to
8660 effectively strengthen "first" from rtx to rtx_insn * without
8661 affecting the type signature. Strengthen local "insn" from rtx to
8662 rtx_insn *.
8663 (dump_basic_block_info): Strengthen param "insn" from rtx to
8664 rtx_insn *.
8665 (final): Rename param from "first" to "uncast_first",
8666 introducing a new local rtx_insn * "first" using a checked cast to
8667 effectively strengthen "first" from rtx to rtx_insn * without
8668 affecting the type signature. Strengthen locals "insn", "next"
8669 from rtx to rtx_insn *.
8670 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8671 rtx_insn *.
8672 (call_from_call_insn): Strengthen param "insn" from rtx to
8673 rtx_call_insn *.
8674 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8675 introducing a new local rtx_insn * "insn" using a checked cast to
8676 effectively strengthen "insn" from rtx to rtx_insn * without
8677 affecting the type signature. Strengthen return type and locals
8678 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8679 now-redundant checked cast to rtx_insn * from both invocations of
8680 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8681 introducing a local "call_insn" for use when invoking
8682 call_from_call_insn.
8683 (notice_source_line): Strengthen param "insn" from rtx to
8684 rtx_insn *.
8685 (leaf_function_p): Likewise for local "insn".
8686 (final_forward_branch_p): Likewise.
8687 (leaf_renumber_regs): Likewise for param "first".
8688 (rest_of_clean_state): Likewise for locals "insn" and "next".
8689 (self_recursive_call_p): Likewise for param "insn".
8690 (collect_fn_hard_reg_usage): Likewise for local "insn".
8691 (get_call_fndecl): Likewise for param "insn".
8692 (get_call_cgraph_rtl_info): Likewise.
8693 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8694 introducing a new local rtx_insn * "insn" using a checked cast to
8695 effectively strengthen "insn" from rtx to rtx_insn * without
8696 affecting the type signature.
8697
8698 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8699 cast when assigning from param "insn" to current_output_insn.
8700 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8701 so that we can assign it back to current_output_insn.
8702
8703 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8704
8705 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8706 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8707 atmxt540s and atmxt540sreva devices.
8708 * config/avr/avr-tables.opt: Regenerate.
8709 * config/avr/t-multilib: Regenerate.
8710 * doc/avr-mmcu.texi: Regenerate.
8711
8712 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8713
8714 * expr.c (convert_move): Strengthen local "insns" from rtx to
8715 rtx_insn *.
8716 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8717 "top_label" from rtx to rtx_code_label *.
8718 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8719 rtx_insn *.
8720 (emit_single_push_insn): Likewise for locals "prev", "last".
8721 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8722 to rtx_code_label *.
8723 (store_constructor): Likewise for locals "loop_start", "loop_end".
8724 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8725 rtx_insn *.
8726 (expand_expr_real_2): Likewise.
8727 (expand_expr_real_1): Strengthen local "label" from rtx to
8728 rtx_code_label *.
8729
8730 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8731
8732 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8733 from rtx to rtx_insn *.
8734 (store_bit_field_1): Likewise.
8735 (extract_bit_field_1): Likewise.
8736 (expand_mult_const): Likewise for local "insns".
8737 (expmed_mult_highpart): Strengthen local "label" from rtx to
8738 rtx_code_label *.
8739 (expand_smod_pow2): Likewise.
8740 (expand_sdiv_pow2): Likewise.
8741 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8742 rtx_insn *. Strengthen locals "label", "label1", "label2",
8743 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8744 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8745 (emit_store_flag): Likewise.
8746 (emit_store_flag_force): Strengthen local "label" from rtx to
8747 rtx_code_label *.
8748 (do_cmp_and_jump): Likewise for param "label".
8749
8750 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8751
8752 * explow.c (force_reg): Strengthen local "insn" from rtx to
8753 rtx_insn *.
8754 (adjust_stack_1): Likewise.
8755 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8756 "final_label", "available_label", "space_available" from rtx to
8757 rtx_code_label *.
8758 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8759 (anti_adjust_stack_and_probe): Likewise.
8760
8761 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8762
8763 * except.h (sjlj_emit_function_exit_after): Strengthen param
8764 "after" from rtx to rtx_insn *. This is only called with
8765 result of get_last_insn (in function.c) so type-change should be
8766 self-contained.
8767
8768 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8769 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8770 to rtx_insn *. These fields are only used from except.c so this
8771 type-change should be self-contained to this patch.
8772
8773 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8774 local "last" from rtx to rtx_insn *.
8775 (dw2_build_landing_pads): Likewise for local "seq".
8776 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8777 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8778 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8779 rtx to rtx_insn *.
8780 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8781 to rtx_insn *.
8782 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8783 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8784 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8785 referring to an insn. Strengthen local "dispatch_label" from
8786 rtx to rtx_code_label *.
8787 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8788 rtx_insn *.
8789 (expand_eh_return): Strengthen local "around_label" from
8790 rtx to rtx_code_label *.
8791 (convert_to_eh_region_ranges): Strengthen locals "iter",
8792 "last_action_insn", "first_no_action_insn",
8793 "first_no_action_insn_before_switch",
8794 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8795
8796 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8797
8798 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8799 from rtx to rtx_insn *.
8800 (cached_next_real_insn): Likewise.
8801 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8802 working with insns.
8803 (dwarf2out_var_location): Strengthen locals "next_real",
8804 "next_note", "expected_next_loc_note", "last_start", "insn" from
8805 rtx to rtx_insn *.
8806
8807 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8808
8809 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8810 from rtx to rtx_insn *.
8811 (create_pseudo_cfg): Likewise for local "insn".
8812
8813 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8814
8815 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8816 from rtx to rtx_insn *.
8817 (df_bb_regno_last_def_find): Likewise.
8818
8819 * df-problems.c (df_rd_bb_local_compute): Likewise.
8820 (df_lr_bb_local_compute): Likewise.
8821 (df_live_bb_local_compute): Likewise.
8822 (df_chain_remove_problem): Likewise.
8823 (df_chain_create_bb): Likewise.
8824 (df_word_lr_bb_local_compute): Likewise.
8825 (df_remove_dead_eq_notes): Likewise for param "insn".
8826 (df_note_bb_compute): Likewise for local "insn".
8827 (simulate_backwards_to_point): Likewise.
8828 (df_md_bb_local_compute): Likewise.
8829
8830 * df-scan.c (df_scan_free_bb_info): Likewise.
8831 (df_scan_start_dump): Likewise.
8832 (df_scan_start_block): Likewise.
8833 (df_install_ref_incremental): Likewise for local "insn".
8834 (df_insn_rescan_all): Likewise.
8835 (df_reorganize_refs_by_reg_by_insn): Likewise.
8836 (df_reorganize_refs_by_insn_bb): Likewise.
8837 (df_recompute_luids): Likewise.
8838 (df_bb_refs_record): Likewise.
8839 (df_update_entry_exit_and_calls): Likewise.
8840 (df_bb_verify): Likewise.
8841
8842 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8843
8844 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8845 "first_note" from rtx to rtx_insn *.
8846 (get_node_of_insn): Likewise for param 2 "insn".
8847 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8848
8849 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8850 rtx_insn *.
8851 (mem_write_insn_p): Likewise.
8852 (mem_access_insn_p): Likewise.
8853 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8854 (def_has_ccmode_p): Likewise for param "insn".
8855 (add_cross_iteration_register_deps): Likewise for locals
8856 "def_insn" and "use_insn".
8857 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8858 (build_intra_loop_deps): Likewise for local "src_insn".
8859 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8860 to rtx_insn *.
8861 (get_node_of_insn): Likewise for param "insn".
8862
8863 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8864
8865 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8866 (deletable_insn_p): Strengthen param "insn" from rtx to
8867 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8868 find_call_stack_args, since this is guarded by CALL_P (insn).
8869 (marked_insn_p): Strengthen param "insn" from rtx to
8870 rtx_insn *.
8871 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8872 invoking find_call_stack_args, since this is guarded by
8873 CALL_P (insn).
8874 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8875 rtx_insn *; we know this is an insn since this was called by
8876 mark_nonreg_stores.
8877 (mark_nonreg_stores_2): Likewise.
8878 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8879 rtx_insn *.
8880 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8881 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8882 to rtx_insn *.
8883 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8884 from rtx to rtx_insn *.
8885 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8886 "next", "ref_insn".
8887 (delete_unmarked_insns): Likewise for locals "insn", "next".
8888 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8889 (mark_reg_dependencies): Likewise for param "insn".
8890 (rest_of_handle_ud_dce): Likewise for local "insn".
8891 (word_dce_process_block): Likewise.
8892 (dce_process_block): Likewise.
8893
8894 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8895
8896 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8897 from rtx to rtx_insn *.
8898 (struct change_cc_mode_args): Likewise for field "insn".
8899 (this_insn): Strengthen from rtx to rtx_insn *.
8900 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8901 with insn.
8902 (validate_canon_reg): Strengthen param "insn" from rtx to
8903 rtx_insn *.
8904 (canon_reg): Likewise.
8905 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8906 dealing with insn.
8907 (record_jump_equiv): Strengthen param "insn" from rtx to
8908 rtx_insn *.
8909 (try_back_substitute_reg): Likewise, also for locals "prev",
8910 "bb_head".
8911 (find_sets_in_insn): Likewise for param "insn".
8912 (canonicalize_insn): Likewise.
8913 (cse_insn): Likewise. Add a checked cast.
8914 (invalidate_from_clobbers): Likewise for param "insn".
8915 (invalidate_from_sets_and_clobbers): Likewise.
8916 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8917 dealing with insn.
8918 (cse_prescan_path): Strengthen local "insn" from rtx to
8919 rtx_insn *.
8920 (cse_extended_basic_block): Likewise for locals "insn" and
8921 "prev_insn".
8922 (cse_main): Likewise for param "f".
8923 (check_for_label_ref): Likewise for local "insn".
8924 (set_live_p): Likewise for second param ("insn").
8925 (insn_live_p): Likewise for first param ("insn") and for local
8926 "next".
8927 (cse_change_cc_mode_insn): Likewise for first param "insn".
8928 (cse_change_cc_mode_insns): Likewise for first and second params
8929 "start" and "end".
8930 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8931 and "end".
8932 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8933 "cc_src_insn".
8934
8935 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8936 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8937 Anna Tikhonova <anna.tikhonova@intel.com>
8938 Ilya Tocar <ilya.tocar@intel.com>
8939 Andrey Turetskiy <andrey.turetskiy@intel.com>
8940 Ilya Verbin <ilya.verbin@intel.com>
8941 Kirill Yukhin <kirill.yukhin@intel.com>
8942 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8943
8944 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8945 New.
8946 * config/i386/sse.md
8947 (define_mode_iterator VI248_AVX2): Delete.
8948 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8949 (define_mode_iterator VI48_AVX2): Ditto.
8950 (define_insn <shift_insn><mode>3): Delete.
8951 (define_insn "<shift_insn><mode>3<mask_name>" with
8952 VI2_AVX2_AVX512BW): New.
8953 (define_insn "<shift_insn><mode>3<mask_name>" with
8954 VI48_AVX2): Ditto.
8955
8956 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8957 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8958 Anna Tikhonova <anna.tikhonova@intel.com>
8959 Ilya Tocar <ilya.tocar@intel.com>
8960 Andrey Turetskiy <andrey.turetskiy@intel.com>
8961 Ilya Verbin <ilya.verbin@intel.com>
8962 Kirill Yukhin <kirill.yukhin@intel.com>
8963 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8964
8965 * config/i386/sse.md
8966 (define_mode_iterator VI4F_BRCST32x2): New.
8967 (define_mode_attr 64x2_mode): Ditto.
8968 (define_mode_attr 32x2mode): Ditto.
8969 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8970 with VI4F_BRCST32x2): Ditto.
8971 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8972 with V16FI mode iterator): Ditto.
8973 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8974 with V16FI): Ditto.
8975 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8976 with VI8F_BRCST64x2): Ditto.
8977
8978 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8979 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8980 Anna Tikhonova <anna.tikhonova@intel.com>
8981 Ilya Tocar <ilya.tocar@intel.com>
8982 Andrey Turetskiy <andrey.turetskiy@intel.com>
8983 Ilya Verbin <ilya.verbin@intel.com>
8984 Kirill Yukhin <kirill.yukhin@intel.com>
8985 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8986
8987 * config/i386/sse.md
8988 (define_mode_iterator VI8_AVX512VL): New.
8989 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8990
8991 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8992
8993 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8994 (define_mode_iterator V48_AVX512VL): New.
8995 (define_mode_iterator V12_AVX512VL): Ditto.
8996 (define_insn <avx512>_load<mode>_mask): Split into two similar
8997 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8998 Refactor output template.
8999 (define_insn "<avx512>_store<mode>_mask"): Ditto.
9000
9001 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9002
9003 * cprop.c (struct occr): Strengthen field "insn" from rtx to
9004 rtx_insn *.
9005 (reg_available_p): Likewise for param "insn".
9006 (insert_set_in_table): Likewise.
9007 (hash_scan_set): Likewise.
9008 (hash_scan_insn): Likewise.
9009 (make_set_regs_unavailable): Likewise.
9010 (compute_hash_table_work): Likewise for local "insn".
9011 (reg_not_set_p): Strengthen param "insn" from const_rtx to
9012 const rtx_insn *.
9013 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
9014 (try_replace_reg): Likewise.
9015 (find_avail_set): Likewise.
9016 (cprop_jump): Likewise for params "setcc", "jump".
9017 (constprop_register): Likewise for param "insn".
9018 (cprop_insn): Likewise.
9019 (do_local_cprop): Likewise.
9020 (local_cprop_pass): Likewise for local "insn".
9021 (bypass_block): Likewise for params "setcc" and "jump".
9022 (bypass_conditional_jumps): Likewise for locals "setcc" and
9023 "insn".
9024 (one_cprop_pass): Likewise for local "insn".
9025
9026 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9027
9028 * compare-elim.c (struct comparison_use): Strengthen field "insn"
9029 from rtx to rtx_insn *.
9030 (struct comparison): Likewise, also for field "prev_clobber".
9031 (conforming_compare): Likewise for param "insn".
9032 (arithmetic_flags_clobber_p): Likewise.
9033 (find_flags_uses_in_insn): Likewise.
9034 (find_comparison_dom_walker::before_dom_children): Likewise for
9035 locals "insn", "next", "last_clobber".
9036 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
9037
9038 2014-08-22 David Malcolm <dmalcolm@redhat.com>
9039
9040 * combine-stack-adj.c (struct csa_reflist): Strengthen field
9041 "insn" from rtx to rtx_insn *.
9042 (single_set_for_csa): Likewise for param "insn".
9043 (record_one_stack_ref): Likewise.
9044 (try_apply_stack_adjustment): Likewise.
9045 (struct record_stack_refs_data): Likewise for field "insn".
9046 (maybe_move_args_size_note): Likewise for params "last" and "insn".
9047 (prev_active_insn_bb): Likewise for return type and param "insn".
9048 (next_active_insn_bb): Likewise.
9049 (force_move_args_size_note): Likewise for params "prev" and "last"
9050 and locals "test", "next_candidate", "prev_candidate".
9051 (combine_stack_adjustments_for_block): Strengthen locals
9052 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
9053 rtx_insn *.
9054
9055 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9056
9057 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
9058 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
9059 (subst_insn): Likewise for this variable.
9060 (added_links_insn): Likewise.
9061 (struct insn_link): Likewise for field "insn".
9062 (alloc_insn_link): Likewise for param "insn".
9063 (struct undobuf): Likewise for field "other_insn".
9064 (find_single_use): Likewise for param "insn" and local "next".
9065 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
9066 (delete_noop_moves): Likewise for locals "insn", "next".
9067 (create_log_links): Likewise for locals "insn", "use_insn".
9068 Strengthen local "next_use" from rtx * to rtx_insn **.
9069 (insn_a_feeds_b): Likewise for params "a", "b".
9070 (combine_instructions): Likewise for param "f" and locals "insn",
9071 "next", "prev", "first", "last_combined_insn", "link", "link1",
9072 "temp". Replace use of NULL_RTX with NULL when referring to
9073 insns.
9074 (setup_incoming_promotions): Likewise for param "first"
9075 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
9076 (can_combine_p): Likewise for params "insn", "i3", "pred",
9077 "pred2", "succ", "succ2" and for local "p".
9078 (combinable_i3pat): Likewise for param "i3".
9079 (cant_combine_insn_p): Likewise for param "insn".
9080 (likely_spilled_retval_p): Likewise.
9081 (adjust_for_new_dest): Likewise.
9082 (update_cfg_for_uncondjump): Likewise, also for local "insn".
9083 (try_combine): Likewise for return type and for params "i3", "i2",
9084 "i1", "i0", "last_combined_insn", and for locals "insn",
9085 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
9086 "i0_insn". Eliminate local "tem" in favor of new locals
9087 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
9088 checked cast for now to rtx_insn * on the return type of
9089 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
9090 insns.
9091 (find_split_point): Strengthen param "insn" from rtx to
9092 rtx_insn *.
9093 (simplify_set): Likewise for local "other_insn".
9094 (recog_for_combine): Likewise for param "insn".
9095 (record_value_for_reg): Likewise.
9096 (record_dead_and_set_regs_1): Likewise for local
9097 "record_dead_insn".
9098 (record_dead_and_set_regs): Likewise for param "insn".
9099 (record_promoted_value): Likewise.
9100 (check_promoted_subreg): Likewise.
9101 (get_last_value_validate): Likewise.
9102 (reg_dead_at_p): Likewise.
9103 (move_deaths): Likewise for param "to_insn".
9104 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
9105 and locals "place", "place2", "cc0_setter". Eliminate local "tem
9106 in favor of new locals "tem_note" and "tem_insn", the latter being
9107 an rtx_insn *.
9108 (distribute_links): Strengthen locals "place", "insn" from rtx to
9109 rtx_insn *.
9110
9111 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9112
9113 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
9114 than a const_rtx.
9115 (can_delete_label_p): Require a const rtx_code_label * rather than
9116 a const_rtx.
9117 (delete_insn): Add checked cast to rtx_code_label * when we know
9118 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
9119 rtx to rtx_insn *.
9120 (delete_insn_chain): Strengthen locals "prev" and "current" from
9121 rtx to rtx_insn *. Add a checked cast when assigning from
9122 "finish" (strengthening the params will come later). Add a
9123 checked cast to rtx_note * in region where we know
9124 NOTE_P (current).
9125 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
9126 rtx_insn *.
9127 (compute_bb_for_insn): Likewise.
9128 (free_bb_for_insn): Likewise for local "insn".
9129 (compute_bb_for_insn): Likewise.
9130 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
9131 local "insn" from rtx to rtx_insn *
9132 (flow_active_insn_p): Require a const rtx_insn * rather than a
9133 const_rtx.
9134 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
9135 rtx_insn *.
9136 (can_fallthru): Likewise for locals "insn" and "insn2".
9137 (bb_note): Likewise for local "note".
9138 (first_insn_after_basic_block_note): Likewise for local "note" and
9139 for return type.
9140 (rtl_split_block): Likewise for locals "insn" and "next".
9141 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
9142 "end".
9143 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
9144 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
9145 "prev", "tmp".
9146 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
9147 them), "kill_from", "barrier", "new_insn".
9148 (patch_jump_insn): Likewise for params "insn", "old_label".
9149 (redirect_branch_edge): Likewise for locals "old_label", "insn".
9150 (force_nonfallthru_and_redirect): Likewise for locals "insn",
9151 "old_label", "new_label".
9152 (rtl_tidy_fallthru_edge): Likewise for local "q".
9153 (rtl_split_edge): Likewise for locals "before", "last".
9154 (commit_one_edge_insertion): Likewise for locals "before",
9155 "after", "insns", "tmp", "last", adding a checked cast where
9156 currently necessary.
9157 (commit_edge_insertions): Likewise.
9158 (rtl_dump_bb): Likewise for locals "insn", "last".
9159 (print_rtl_with_bb): Likewise for local "x".
9160 (rtl_verify_bb_insns): Likewise for local "x".
9161 (rtl_verify_bb_pointers): Likewise for local "insn".
9162 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
9163 "head", "end".
9164 (rtl_verify_fallthru): Likewise for local "insn".
9165 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
9166 (purge_dead_edges): Likewise for local "insn".
9167 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
9168 (skip_insns_after_block): Likewise for return type and for locals
9169 "insn", "last_insn", "next_head", "prev".
9170 (record_effective_endpoints): Likewise for locals "next_insn",
9171 "insn", "end".
9172 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
9173 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
9174 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
9175 (duplicate_insn_chain): For now, add checked cast from rtx to
9176 rtx_insn * when returning insn.
9177 (cfg_layout_duplicate_bb): Likewise for local "insn".
9178 (cfg_layout_delete_block): Likewise for locals "insn", "next",
9179 "prev", "remaints".
9180 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
9181 (rtl_block_empty_p): Likewise.
9182 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
9183 "split_point", "last".
9184 (rtl_block_ends_with_call_p): Likewise for local "insn".
9185 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
9186 const rtx_insn *.
9187 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
9188 "split_at_insn" from rtx to rtx_insn *.
9189 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
9190 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
9191 to const rtx_insn *.
9192 (rtl_account_profile_record): Likewise.
9193
9194 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9195
9196 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
9197 rtx to rtx_insn *.
9198 (average_num_loop_insns): Likewise.
9199 (init_set_costs): Likewise for local "seq".
9200 (seq_cost): Likewise for param "seq", from const_rtx to const
9201 rtx_insn *.
9202
9203 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9204
9205 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
9206 rtx to rtx_insn *.
9207
9208 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9209
9210 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
9211 "f1" and "f2" from rtx * to rtx_insn **.
9212 (flow_find_head_matching_sequence): Likewise.
9213
9214 * cfgcleanup.c (try_simplify_condjump): Strengthen local
9215 "cbranch_insn" from rtx to rtx_insn *.
9216 (thread_jump): Likewise for local "insn".
9217 (try_forward_edges): Likewise for local "last".
9218 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
9219 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
9220 "real_b_end".
9221 (can_replace_by): Likewise for params "i1", "i2".
9222 (old_insns_match_p): Likewise.
9223 (merge_notes): Likewise.
9224 (walk_to_nondebug_insn): Likewise for param "i1".
9225 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
9226 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
9227 "afterlast1", "afterlast2" from rtx to rtx_insn *.
9228 (flow_find_head_matching_sequence): Strengthen params "f1" and
9229 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
9230 "last1", "last2", "beforelast1", "beforelast2" from rtx to
9231 rtx_insn *.
9232 (outgoing_edges_match): Likewise for locals "last1", "last2".
9233 (try_crossjump_to_edge): Likewise for local "insn".
9234 Replace call to for_each_rtx with for_each_rtx_in_insn.
9235
9236 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
9237 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
9238 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
9239 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
9240 (try_optimize_cfg): Strengthen local "last" from rtx to
9241 rtx_insn *.
9242 (delete_dead_jumptables): Likewise for locals "insn", "next",
9243 "label".
9244
9245 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
9246 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
9247 "rtx else_first_tail", to reflect the basic-block.h changes above.
9248
9249 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9250
9251 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
9252 rtx_insn *.
9253 (purge_dead_tablejump_edges): Likewise.
9254 (find_bb_boundaries): Likewise for locals "insn", "end",
9255 "flow_transfer_insn".
9256
9257 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9258
9259 * caller-save.c (save_call_clobbered_regs): Strengthen locals
9260 "ins" and "prev" from rtx to rtx_insn *.
9261
9262 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9263
9264 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
9265 rtx_insn *.
9266 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
9267 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
9268 "scan_start".
9269 (load_register_parameters): Likewise for local "before_arg".
9270 (check_sibcall_argument_overlap): Likewise for param "insn".
9271 (expand_call): Likewise for locals "normal_call_insns",
9272 "tail_call_insns", "insns", "before_call", "after_args",
9273 "before_arg", "last", "prev". Strengthen one of the "last" from
9274 rtx to rtx_call_insn *.
9275 (fixup_tail_calls): Strengthen local "insn" from rtx to
9276 rtx_insn *.
9277 (emit_library_call_value_1): Likewise for locals "before_call" and
9278 "last".
9279
9280 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9281
9282 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
9283 and "last" from rtx to rtx_insn *.
9284 (expand_builtin_nonlocal_goto): Likewise for local "insn".
9285 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
9286 rtx_call_insn *.
9287 (expand_errno_check): Strengthen local "lab" from rtx to
9288 rtx_code_label *.
9289 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
9290 rtx_insn *.
9291 (expand_builtin_mathfn_2): Likewise.
9292 (expand_builtin_mathfn_ternary): Likewise.
9293 (expand_builtin_mathfn_3): Likewise.
9294 (expand_builtin_interclass_mathfn): Likewise for local "last".
9295 (expand_builtin_int_roundingfn): Likewise for local "insns".
9296 (expand_builtin_int_roundingfn_2): Likewise.
9297 (expand_builtin_strlen): Likewise for local "before_strlen".
9298 (expand_builtin_strncmp): Likewise for local "seq".
9299 (expand_builtin_signbit): Likewise for local "last".
9300 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
9301 from rtx to rtx_code_label *.
9302 (expand_stack_restore): Strengthen local "prev" from rtx to
9303 rtx_insn *.
9304
9305 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9306
9307 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
9308 to rtx_insn *.
9309 (struct btr_def_s): Likewise.
9310 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
9311 const rtx_insn *.
9312 (add_btr_def): Likewise.
9313 (new_btr_user): Likewise.
9314 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
9315 rtx to rtx_insn *.
9316 (link_btr_uses): Likewise.
9317 (move_btr_def): Likewise for locals "insp", "old_insn",
9318 "new_insn". Add checked cast to rtx_insn * for now on result of
9319 gen_move_insn.
9320 (can_move_up): Strengthen param "insn" from const_rtx to
9321 const rtx_insn *.
9322
9323 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9324
9325 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
9326 rtx_insn *.
9327 (get_uncond_jump_length): Likewise for locals "label", "jump".
9328 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
9329 "jump", "insn".
9330 (add_labels_and_missing_jumps): Likewise for local "new_jump".
9331 (fix_up_fall_thru_edges): Likewise for local "old_jump".
9332 (find_jump_block): Likewise for local "insn".
9333 (fix_crossing_conditional_branches): Likewise for locals
9334 "old_jump", "new_jump".
9335 (fix_crossing_unconditional_branches): Likewise for locals
9336 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
9337 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
9338
9339 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9340
9341 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
9342 rtx to rtx_insn *.
9343 (struct mem_insn): Likewise for field "insn".
9344 (reg_next_use): Strengthen from rtx * to rtx_insn **.
9345 (reg_next_inc_use): Likewise.
9346 (reg_next_def): Likewise.
9347 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
9348 from rtx to rtx_insn *.
9349 (move_insn_before): Likewise for param "next_insn" and local "insns".
9350 (attempt_change): Likewise for local "mov_insn".
9351 (try_merge): Likewise for param "last_insn".
9352 (get_next_ref): Likewise for return type and local "insn".
9353 Strengthen param "next_array" from rtx * to rtx_insn **.
9354 (parse_add_or_inc): Strengthen param "insn" from rtx to
9355 rtx_insn *.
9356 (find_inc): Likewise for locals "insn" and "other_insn" (three of
9357 the latter).
9358 (merge_in_block): Likewise for locals "insn", "curr",
9359 "other_insn".
9360 (pass_inc_dec::execute): Update allocations of the arrays to
9361 reflect the stronger types.
9362
9363 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9364
9365 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
9366 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
9367 from rtx to rtx_code_label *.
9368
9369 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9370
9371 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
9372 to rtx_insn *.
9373
9374 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9375
9376 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
9377 generated a warning and prevented bootstrapping the compiler.
9378
9379 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9380
9381 * rtl.h (delete_related_insns): Strengthen return type from rtx to
9382 rtx_insn *.
9383
9384 * jump.c (delete_related_insns): Likewise, also for locals "next"
9385 and "prev".
9386
9387 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9388
9389 * genautomata.c (output_internal_insn_latency_func): When writing
9390 the function "internal_insn_latency" to insn-automata.c,
9391 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
9392 allowing the optional guard function of (define_bypass) clauses to
9393 expect a pair of rtx_insn *, rather than a pair of rtx.
9394 (output_insn_latency_func): When writing the function
9395 "insn_latency", add an "uncast_" prefix to params "insn" and
9396 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
9397 using checked casts from the params, thus enabling the above
9398 change to the generated "internal_insn_latency" function.
9399
9400 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
9401
9402 PR tree-optimization/62091
9403 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
9404 handle correctly arrays.
9405 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
9406 inheritance binfos.
9407 (record_known_type): Walk into inner type.
9408 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
9409 condition on no type changes.
9410
9411 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9412
9413 * genattrtab.c (write_attr_get): Within the generated get_attr_
9414 functions, rename param "insn" to "uncast_insn" and reintroduce
9415 "insn" as an local rtx_insn * using a checked cast, so that "insn"
9416 is an rtx_insn * within insn-attrtab.c
9417
9418 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9419
9420 * output.h (peephole): Strengthen return type from rtx to
9421 rtx_insn *.
9422 * rtl.h (delete_for_peephole): Likewise for both params.
9423 * genpeep.c (main): In generated "peephole" function, strengthen
9424 return type and local "insn" from rtx to rtx_insn *. For now,
9425 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
9426 rtx_insn *, with a checked cast.
9427 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
9428 locals "insn", "next", "prev" from rtx to rtx_insn *.
9429
9430 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
9431
9432 PR tree-optimization/62112
9433 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
9434 * gimple-iterator.h (gsi_replace): Return bool.
9435 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
9436 moved from ref_may_alias_global_p.
9437 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
9438 New overloads.
9439 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
9440 (stmt_kills_ref_p_1): Rename...
9441 (stmt_kills_ref_p): ... to this.
9442 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
9443 stmt_kills_ref_p): Declare.
9444 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
9445 Move the self-assignment case...
9446 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
9447
9448 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9449
9450 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9451
9452 * emit-rtl.c (try_split): Likewise, also for locals "before" and
9453 "after". For now, don't strengthen param "trial", which requires
9454 adding checked casts when returning it.
9455
9456 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9457
9458 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9459 "label" from rtx to rtx_code_label *. Strengthen param 1 of
9460 "var_location" hook from rtx to rtx_insn *.
9461 (debug_nothing_rtx): Delete in favor of...
9462 (debug_nothing_rtx_code_label): New prototype.
9463 (debug_nothing_rtx_rtx): Delete unused prototype.
9464 (debug_nothing_rtx_insn): New prototype.
9465
9466 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9467 invoking debug_hooks->var_location (in two places, one in a NOTE
9468 case of a switch statement, the other guarded by a CALL_P
9469 conditional. Add checked cast to rtx_code_label * when invoking
9470 debug_hooks->label (within CODE_LABEL case of switch statement).
9471
9472 * dbxout.c (dbx_debug_hooks): Update "label" hook from
9473 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9474 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9475 (xcoff_debug_hooks): Likewise.
9476 * debug.c (do_nothing_debug_hooks): Likewise.
9477 (debug_nothing_rtx): Delete in favor of...
9478 (debug_nothing_rtx_insn): New function.
9479 (debug_nothing_rtx_rtx): Delete unused function.
9480 (debug_nothing_rtx_code_label): New function.
9481 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9482 debug_nothing_rtx to debug_nothing_rtx_code_label.
9483 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9484 to rtx_insn *.
9485 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9486 debug_nothing_rtx to debug_nothing_rtx_insn.
9487 (sdbout_label): Strengthen param "insn" from rtx to
9488 rtx_code_label *.
9489 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9490 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9491 "var_location" hook from debug_nothing_rtx to
9492 debug_nothing_rtx_insn.
9493
9494 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9495
9496 * recog.h (insn_output_fn): Update this function typedef to match
9497 the changes below to the generated output functions, strengthening
9498 the 2nd param from rtx to rtx_insn *.
9499
9500 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9501 insn when invoking an output function, to match the new signature
9502 of insn_output_fn with a stronger second param.
9503
9504 * genconditions.c (write_header): In the generated code for
9505 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9506 to match the other changes in this patch.
9507
9508 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9509 the generated "gen_" functions from rtx to rtx_insn * within their
9510 implementations.
9511
9512 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9513 the subfunctions within the generated "recog_", "split", "peephole2"
9514 function trees from rtx to rtx_insn *. For now, the top-level
9515 generated functions ("recog", "split", "peephole2") continue to
9516 take a plain rtx for "insn", to avoid introducing dependencies on
9517 other patches. Rename this 2nd param from "insn" to
9518 "uncast_insn", and reintroduce "insn" as a local variable of type
9519 rtx_insn *, initialized at the top of the generated function with
9520 a checked cast on "uncast_insn".
9521 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9522 the generated "gen_" functions from rtx to rtx_insn * within their
9523 prototypes.
9524
9525 * genoutput.c (process_template): Strengthen the 2nd param within
9526 the generated "output_" functions "insn" from rtx to rtx_insn *.
9527
9528 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9529
9530 * tree-profile.c (tree_profiling): Skip external functions
9531 when doing coverage instrumentation.
9532 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9533
9534 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9535
9536 * config/rs6000/altivec.h (vec_cpsgn): New #define.
9537 (vec_mergee): Likewise.
9538 (vec_mergeo): Likewise.
9539 (vec_cntlz): Likewise.
9540 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9541 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9542 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9543 VMRGEW, and VMRGOW.
9544 * doc/extend.texi: Document various forms of vec_cpsgn,
9545 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9546 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9547 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9548 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9549 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9550
9551 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9552
9553 * config/rs6000/rs6000.c (context.h): New include.
9554 (tree-pass.h): Likewise.
9555 (make_pass_analyze_swaps): New decl.
9556 (rs6000_option_override): Register pass_analyze_swaps.
9557 (swap_web_entry): New subsclass of web_entry_base (df.h).
9558 (special_handling_values): New enum.
9559 (union_defs): New function.
9560 (union_uses): Likewise.
9561 (insn_is_load_p): Likewise.
9562 (insn_is_store_p): Likewise.
9563 (insn_is_swap_p): Likewise.
9564 (rtx_is_swappable_p): Likewise.
9565 (insn_is_swappable_p): Likewise.
9566 (chain_purpose): New enum.
9567 (chain_contains_only_swaps): New function.
9568 (mark_swaps_for_removal): Likewise.
9569 (swap_const_vector_halves): Likewise.
9570 (adjust_subreg_index): Likewise.
9571 (permute_load): Likewise.
9572 (permute_store): Likewise.
9573 (handle_special_swappables): Likewise.
9574 (replace_swap_with_copy): Likewise.
9575 (dump_swap_insn_table): Likewise.
9576 (rs6000_analyze_swaps): Likewise.
9577 (pass_data_analyze_swaps): New pass_data.
9578 (pass_analyze_swaps): New rtl_opt_pass.
9579 (make_pass_analyze_swaps): New function.
9580 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9581
9582 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9583
9584 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9585 type from rtx to rtx_insn *.
9586 (create_copy_of_insn_rtx): Likewise.
9587 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9588 (create_copy_of_insn_rtx): Likewise, also for local "res".
9589
9590 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9591
9592 * rtl.h (find_first_parameter_load): Strengthen return type from
9593 rtx to rtx_insn *.
9594 * rtlanal.c (find_first_parameter_load): Strengthen return type
9595 from rtx to rtx_insn *. Add checked cast for now, to postpone
9596 strengthening the params.
9597
9598 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9599
9600 PR fortran/44054
9601 * diagnostic.c: Set default caret.
9602 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9603 line is needed.
9604 * diagnostic.h (struct diagnostic_context):
9605
9606 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9607
9608 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9609 (sel_bb_head): Strengthen return type insn_t (currently just an
9610 rtx) to rtx_insn *.
9611 (sel_bb_end): Likewise.
9612
9613 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9614 (sel_bb_head): Strengthen return type and local "head" from
9615 insn_t (currently just an rtx) to rtx_insn *.
9616 (sel_bb_end): Likewise for return type.
9617 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9618 working with insn.
9619
9620 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9621
9622 * basic-block.h (get_last_bb_insn): Strengthen return type from
9623 rtx to rtx_insn *.
9624 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9625 end".
9626
9627 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9628
9629 PR fortran/44054
9630 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9631 to here ...
9632 (diagnostic_report_diagnostic): ... from here.
9633 * toplev.c (general_init): Move code to c-family.
9634
9635 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9636
9637 * df.h (web_entry_base): Replace existing struct web_entry with a
9638 new class web_entry_base with only the predecessor member.
9639 (unionfind_root): Remove declaration and move to class member.
9640 (unionfind_union): Remove declaration and move to friend
9641 function.
9642 (union_defs): Remove declaration.
9643 * web.c (web_entry_base::unionfind_root): Modify to be member
9644 function and adjust accessors.
9645 (unionfind_union): Modify to be friend function and adjust
9646 accessors.
9647 (web_entry): New subclass of web_entry_base containing the reg
9648 member.
9649 (union_match_dups): Modify for struct -> class changes.
9650 (union_defs): Likewise.
9651 (entry_register): Likewise.
9652 (pass_web::execute): Likewise.
9653
9654 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9655
9656 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9657 builtin define __VEC_ELEMENT_REG_ORDER__.
9658
9659 2014-08-20 Martin Jambor <mjambor@suse.cz>
9660 Wei Mi <wmi@google.com>
9661
9662 PR ipa/60449
9663 PR middle-end/61776
9664 * tree-ssa-operands.c (update_stmt_operands): Remove
9665 MODIFIED_NORETURN_CALLS.
9666 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9667 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9668 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9669 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9670 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9671 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9672 (gimple_call_set_ctrl_altering): New func.
9673 (gimple_call_ctrl_altering_p): Ditto.
9674 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9675 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9676 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9677 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9678 remove MODIFIED_NORETURN_CALLS.
9679
9680 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9681
9682 * coverage.c (coverage_compute_profile_id): Return non-0;
9683 also handle symbols with unique name.
9684 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9685
9686 2014-08-20 Steve Ellcey <sellcey@mips.com>
9687
9688 PR middle-end/49191
9689 * doc/sourcebuild.texi (non_strict_align): New.
9690
9691 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9692
9693 * cgraphunit.c (ipa_passes, compile): Reshedule
9694 symtab_remove_unreachable_nodes passes; update comments.
9695 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9696 TODO_remove_functions before the pass; the functions ought to be
9697 already removed.
9698 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9699 TODO_remove_functions.
9700 * passes.c (pass_data_early_local_passes): Do not schedule function
9701 removal.
9702 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9703
9704 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9705
9706 PR c/59304
9707 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9708 before setting the option.
9709 * diagnostic.c (diagnostic_classify_diagnostic): Record
9710 command-line status.
9711
9712 2014-08-20 Richard Biener <rguenther@suse.de>
9713
9714 PR lto/62190
9715 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9716 to build uint{16,32,64}_type_node.
9717
9718 2014-08-20 Terry Guo <terry.guo@arm.com>
9719
9720 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9721 with immediate_operand.
9722
9723 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9724
9725 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9726 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9727 NULL.
9728
9729 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9730
9731 PR preprocessor/51303
9732 * incpath.c (remove_duplicates): Use cpp_warning.
9733
9734 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9735
9736 PR c/60975
9737 PR c/53063
9738 * doc/options.texi (CPP): Document it.
9739 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9740 * optc-gen.awk: Handle CPP.
9741 * opth-gen.awk: Likewise.
9742
9743 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9744
9745 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9746 rtx_insn *.
9747 (duplicate_insn_chain): Likewise.
9748 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9749 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9750 checked cast for now (until we can strengthen the params in the
9751 same way).
9752 (duplicate_insn_chain): Likewise.
9753
9754 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9755
9756 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9757 rtx_insn *.
9758 (prev_cc0_setter): Likewise.
9759
9760 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9761 rtx_insn *, adding checked casts for now as necessary.
9762 (prev_cc0_setter): Likewise.
9763
9764 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9765
9766 * expr.h (emit_move_insn): Strengthen return type from rtx to
9767 rtx_insn *.
9768 (emit_move_insn_1): Likewise.
9769 (emit_move_complex_push): Likewise.
9770 (emit_move_complex_parts): Likewise.
9771
9772 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9773 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9774 with insns.
9775 (emit_move_complex_push): Strengthen return type from rtx to
9776 rtx_insn *.
9777 (emit_move_complex): Likewise, also for local "ret".
9778 (emit_move_ccmode): Likewise.
9779 (emit_move_multi_word): Likewise for return type and locals
9780 "last_insn", "seq".
9781 (emit_move_insn_1): Likewise for return type and locals "result",
9782 "ret".
9783 (emit_move_insn): Likewise for return type and local "last_insn".
9784 (compress_float_constant): Likewise.
9785
9786 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9787
9788 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9789 from rtx to rtx_insn *.
9790
9791 * rtl.h (emit_insn_before): Likewise.
9792 (emit_insn_before_noloc): Likewise.
9793 (emit_insn_before_setloc): Likewise.
9794 (emit_jump_insn_before): Likewise.
9795 (emit_jump_insn_before_noloc): Likewise.
9796 (emit_jump_insn_before_setloc): Likewise.
9797 (emit_call_insn_before): Likewise.
9798 (emit_call_insn_before_noloc): Likewise.
9799 (emit_call_insn_before_setloc): Likewise.
9800 (emit_debug_insn_before): Likewise.
9801 (emit_debug_insn_before_noloc): Likewise.
9802 (emit_debug_insn_before_setloc): Likewise.
9803 (emit_label_before): Likewise.
9804 (emit_insn_after): Likewise.
9805 (emit_insn_after_noloc): Likewise.
9806 (emit_insn_after_setloc): Likewise.
9807 (emit_jump_insn_after): Likewise.
9808 (emit_jump_insn_after_noloc): Likewise.
9809 (emit_jump_insn_after_setloc): Likewise.
9810 (emit_call_insn_after): Likewise.
9811 (emit_call_insn_after_noloc): Likewise.
9812 (emit_call_insn_after_setloc): Likewise.
9813 (emit_debug_insn_after): Likewise.
9814 (emit_debug_insn_after_noloc): Likewise.
9815 (emit_debug_insn_after_setloc): Likewise.
9816 (emit_label_after): Likewise.
9817 (emit_insn): Likewise.
9818 (emit_debug_insn): Likewise.
9819 (emit_jump_insn): Likewise.
9820 (emit_call_insn): Likewise.
9821 (emit_label): Likewise.
9822 (gen_clobber): Likewise.
9823 (emit_clobber): Likewise.
9824 (gen_use): Likewise.
9825 (emit_use): Likewise.
9826 (emit): Likewise.
9827
9828 (emit_barrier_before): Strengthen return type from rtx to
9829 rtx_barrier *.
9830 (emit_barrier_after): Likewise.
9831 (emit_barrier): Likewise.
9832
9833 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9834 from rtx to rtx_insn *. Add checked casts for now when converting
9835 "last" from rtx to rtx_insn *.
9836 (emit_insn_before_noloc): Likewise for return type.
9837 (emit_jump_insn_before_noloc): Likewise.
9838 (emit_call_insn_before_noloc): Likewise.
9839 (emit_debug_insn_before_noloc): Likewise.
9840 (emit_barrier_before): Strengthen return type and local "insn"
9841 from rtx to rtx_barrier *.
9842 (emit_label_before): Strengthen return type from rtx to
9843 rtx_insn *. Add checked cast for now when returning param
9844 (emit_pattern_after_noloc): Strengthen return type from rtx to
9845 rtx_insn *. Add checked casts for now when converting "last" from
9846 rtx to rtx_insn *.
9847 (emit_insn_after_noloc): Strengthen return type from rtx to
9848 rtx_insn *.
9849 (emit_jump_insn_after_noloc): Likewise.
9850 (emit_call_insn_after_noloc): Likewise.
9851 (emit_debug_insn_after_noloc): Likewise.
9852 (emit_barrier_after): Strengthen return type from rtx to
9853 rtx_barrier *.
9854 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9855 Add checked cast for now when converting "label" from rtx to
9856 rtx_insn *.
9857 (emit_pattern_after_setloc): Strengthen return type from rtx to
9858 rtx_insn *. Add checked casts for now when converting "last" from
9859 rtx to rtx_insn *.
9860 (emit_pattern_after): Strengthen return type from rtx to
9861 rtx_insn *.
9862 (emit_insn_after_setloc): Likewise.
9863 (emit_insn_after): Likewise.
9864 (emit_jump_insn_after_setloc): Likewise.
9865 (emit_jump_insn_after): Likewise.
9866 (emit_call_insn_after_setloc): Likewise.
9867 (emit_call_insn_after): Likewise.
9868 (emit_debug_insn_after_setloc): Likewise.
9869 (emit_debug_insn_after): Likewise.
9870 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9871 when converting "last" from rtx to rtx_insn *.
9872 (emit_pattern_before): Strengthen return type from rtx to
9873 rtx_insn *.
9874 (emit_insn_before_setloc): Likewise.
9875 (emit_insn_before): Likewise.
9876 (emit_jump_insn_before_setloc): Likewise.
9877 (emit_jump_insn_before): Likewise.
9878 (emit_call_insn_before_setloc): Likewise.
9879 (emit_call_insn_before): Likewise.
9880 (emit_debug_insn_before_setloc): Likewise.
9881 (emit_debug_insn_before): Likewise.
9882 (emit_insn): Strengthen return type and locals "last", "insn",
9883 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9884 within cases where we know we have an insn.
9885 (emit_debug_insn): Likewise.
9886 (emit_jump_insn): Likewise.
9887 (emit_call_insn): Strengthen return type and local "insn" from rtx
9888 to rtx_insn *.
9889 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9890 a checked cast to rtx_insn * for now on "label".
9891 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9892 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9893 (emit_use): Likewise.
9894 (gen_use): Likewise, also for local "seq".
9895 (emit): Likewise for return type and local "insn".
9896 (rtx_insn): Likewise for return type and local "new_rtx".
9897
9898 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9899 from rtx to rtx_barrier *.
9900
9901 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9902 changed return type from rtx to rtx_insn *, we must update
9903 "emit_fn" type, and this in turn means updating...
9904 (frame_insn): ...this. Strengthen return type from rtx to
9905 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9906
9907 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9908
9909 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9910 rtx to rtx_jump_table_data *. Also for local.
9911 * rtl.h (emit_jump_table_data): Likewise.
9912
9913 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9914
9915 * basic-block.h (create_basic_block_structure): Strengthen third
9916 param "bb_note" from rtx to rtx_note *.
9917 * rtl.h (emit_note_before): Strengthen return type from rtx to
9918 rtx_note *.
9919 (emit_note_after): Likewise.
9920 (emit_note): Likewise.
9921 (emit_note_copy): Likewise. Also, strengthen param similarly.
9922 * function.h (struct rtl_data): Strengthen field
9923 "x_stack_check_probe_note" from rtx to rtx_note *.
9924
9925 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9926 from rtx to rtx_note *.
9927 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9928 "bb_note" from rtx to rtx_note *.
9929 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9930 when calling emit_note_copy.
9931 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9932 rtx_note *.
9933 (emit_note_after): Likewise.
9934 (emit_note_before): Likewise.
9935 (emit_note_copy): Likewise. Also, strengthen param similarly.
9936 (emit_note): Likewise.
9937 * except.c (emit_note_eh_region_end): Likewise for return type.
9938 Strengthen local "next" from rtx to rtx_insn *.
9939 (convert_to_eh_region_ranges): Strengthen local "note"
9940 from rtx to rtx_note *.
9941 * final.c (change_scope): Likewise.
9942 (reemit_insn_block_notes): Likewise, for both locals named "note".
9943 Also, strengthen local "insn" from rtx to rtx_insn *.
9944 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9945 rtx to rtx_note *.
9946 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9947 strengthen local "seq" from rtx to rtx_insn *.
9948 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9949 to rtx_note *.
9950 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9951 vec<rtx_note *>.
9952 (get_bb_note_from_pool): Strengthen return type from rtx to
9953 rtx_note *.
9954 (sel_create_basic_block): Strengthen local "new_bb_note" from
9955 insn_t to rtx_note *.
9956 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9957 "note" from rtx to rtx_note *.
9958 (emit_notes_in_bb): Likewise.
9959
9960 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9961
9962 * function.h (struct rtl_data): Strengthen field
9963 "x_parm_birth_insn" from rtx to rtx_insn *.
9964 * function.c (struct assign_parm_data_all): Strengthen fields
9965 "first_conversion_insn" and "last_conversion_insn" from rtx to
9966 rtx_insn *.
9967
9968 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9969
9970 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9971 to rtx_insn *; also for local "var_end_seq".
9972 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9973 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9974 "insn".
9975 (expand_gimple_cond): Likewise for locals "last2" and "last".
9976 (mark_transaction_restart_calls): Likewise for local "insn".
9977 (expand_gimple_stmt): Likewise for return type and locals "last"
9978 and "insn".
9979 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9980 (avoid_complex_debug_insns): Likewise for param "insn".
9981 (expand_debug_locations): Likewise for locals "insn", "last",
9982 "prev_insn" and "insn2".
9983 (expand_gimple_basic_block): Likewise for local "last".
9984 (construct_exit_block): Likewise for locals "head", "end",
9985 "orig_end".
9986 (pass_expand::execute): Likewise for locals "var_seq",
9987 "var_ret_seq", "next".
9988
9989 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9990
9991 * asan.h (asan_emit_stack_protection): Strengthen return type from
9992 rtx to rtx_insn *.
9993 * asan.c (asan_emit_stack_protection): Likewise. Add local
9994 "insns" to hold the return value.
9995
9996 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9997
9998 * basic-block.h (bb_note): Strengthen return type from rtx to
9999 rtx_note *.
10000 * sched-int.h (bb_note): Likewise.
10001 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
10002
10003 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10004
10005 * rtl.h (make_insn_raw): Strengthen return type from rtx to
10006 rtx_insn *.
10007
10008 * emit-rtl.c (make_insn_raw): Strengthen return type and local
10009 "insn" from rtx to rtx_insn *.
10010 (make_debug_insn_raw): Strengthen return type from rtx to
10011 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
10012 (make_jump_insn_raw): Strengthen return type from rtx to
10013 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
10014 (make_call_insn_raw): Strengthen return type from rtx to
10015 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
10016 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
10017 callback from rtx to rtx_insn *; likewise for local "insn" and
10018 "next", adding a checked cast to rtx_insn in the relevant cases of
10019 the switch statement.
10020 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
10021 callback from rtx to rtx_insn *.
10022 (emit_pattern_after_setloc): Likewise.
10023 (emit_pattern_after): Likewise.
10024 (emit_pattern_before_setloc): Likewise.
10025 (emit_pattern_before): Likewise.
10026
10027 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10028
10029 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
10030 rtx_call_insn *.
10031 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
10032 accepting an rtx_insn *.
10033 (last_call_insn): Strengthen return type from rtx to
10034 rtx_call_insn *.
10035
10036 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10037
10038 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
10039 "insns" from rtx to rtx_insn *.
10040 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
10041 locals "insn" and "prev".
10042
10043 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10044
10045 * rtl.h (tablejump_p): Strengthen third param from rtx * to
10046 rtx_jump_table_data **.
10047
10048 * cfgbuild.c (make_edges): Introduce local "table", using it in
10049 place of "tmp" for jump table data.
10050 (find_bb_boundaries): Strengthen local "table" from rtx to
10051 rtx_jump_table_data *.
10052 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10053 (outgoing_edges_match): Likewise for locals "table1" and "table2".
10054 (try_crossjump_to_edge): Likewise.
10055 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
10056 "table".
10057 (patch_jump_insn): Introduce local "table", using it in place of
10058 "tmp" for jump table data.
10059 (force_nonfallthru_and_redirect): Introduce local "table", so that
10060 call to tablejump_p can receive an rtx_jump_table_data **. Update
10061 logic around the call to overwrite "note" appropriately if
10062 tablejump_p returns non-zero.
10063 (get_last_bb_insn): Introduce local "table", using it in place of
10064 "tmp" for jump table data.
10065 * dwarf2cfi.c (create_trace_edges): Likewise.
10066
10067 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
10068 from rtx to rtx_jump_table_data *.
10069 (create_fix_barrier): Strengthen local "tmp" from rtx to
10070 rtx_jump_table_data *.
10071 (arm_reorg): Likewise for local "table".
10072
10073 * config/s390/s390.c (s390_chunkify_start): Likewise.
10074
10075 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
10076
10077 * jump.c (delete_related_insns): Strengthen local "lab_next" from
10078 rtx to rtx_jump_table_data *.
10079
10080 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
10081 rtx_jump_table_data **. Add a checked cast when writing through
10082 the pointer: we know there that local "table" is non-NULL and that
10083 JUMP_TABLE_DATA_P (table) holds.
10084 (label_is_jump_target_p): Introduce local "table", using it in
10085 place of "tmp" for jump table data.
10086
10087 2014-08-19 Marek Polacek <polacek@redhat.com>
10088
10089 PR c++/62153
10090 * doc/invoke.texi: Document -Wbool-compare.
10091
10092 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10093
10094 * rtl.h (entry_of_function): Strengthen return type from rtx to
10095 rtx_insn *.
10096 * cfgrtl.c (entry_of_function): Likewise.
10097
10098 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10099
10100 * emit-rtl.h (get_insns): Strengthen return type from rtx to
10101 rtx_insn *, adding a checked cast for now.
10102 (get_last_insn): Likewise.
10103
10104 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10105
10106 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
10107 rtx_code_label *.
10108
10109 * emit-rtl.c (gen_label_rtx): Likewise.
10110
10111 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10112
10113 * rtl.h (previous_insn): Strengthen return type from rtx to
10114 rtx_insn *.
10115 (next_insn): Likewise.
10116 (prev_nonnote_insn): Likewise.
10117 (prev_nonnote_insn_bb): Likewise.
10118 (next_nonnote_insn): Likewise.
10119 (next_nonnote_insn_bb): Likewise.
10120 (prev_nondebug_insn): Likewise.
10121 (next_nondebug_insn): Likewise.
10122 (prev_nonnote_nondebug_insn): Likewise.
10123 (next_nonnote_nondebug_insn): Likewise.
10124 (prev_real_insn): Likewise.
10125 (next_real_insn): Likewise.
10126 (prev_active_insn): Likewise.
10127 (next_active_insn): Likewise.
10128
10129 * emit-rtl.c (next_insn): Strengthen return type from rtx to
10130 rtx_insn *, adding a checked cast.
10131 (previous_insn): Likewise.
10132 (next_nonnote_insn): Likewise.
10133 (next_nonnote_insn_bb): Likewise.
10134 (prev_nonnote_insn): Likewise.
10135 (prev_nonnote_insn_bb): Likewise.
10136 (next_nondebug_insn): Likewise.
10137 (prev_nondebug_insn): Likewise.
10138 (next_nonnote_nondebug_insn): Likewise.
10139 (prev_nonnote_nondebug_insn): Likewise.
10140 (next_real_insn): Likewise.
10141 (prev_real_insn): Likewise.
10142 (next_active_insn): Likewise.
10143 (prev_active_insn): Likewise.
10144
10145 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
10146 param "stepfunc" so that it returns an rtx_insn * rather than an
10147 rtx, to track the change to prev_nonnote_insn_bb, which is the
10148 only function this is called with.
10149 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
10150
10151 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
10152
10153 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
10154 assert.
10155
10156 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10157
10158 * coretypes.h (class rtx_debug_insn): Add forward declaration.
10159 (class rtx_nonjump_insn): Likewise.
10160 (class rtx_jump_insn): Likewise.
10161 (class rtx_call_insn): Likewise.
10162 (class rtx_jump_table_data): Likewise.
10163 (class rtx_barrier): Likewise.
10164 (class rtx_code_label): Likewise.
10165 (class rtx_note): Likewise.
10166
10167 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
10168 adding the invariant DEBUG_INSN_P (X).
10169 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
10170 the invariant NONJUMP_INSN_P (X).
10171 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
10172 the invariant JUMP_P (X).
10173 (class rtx_call_insn): New, a subclass of rtx_insn, adding
10174 the invariant CALL_P (X).
10175 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
10176 invariant JUMP_TABLE_DATA_P (X).
10177 (class rtx_barrier): New, a subclass of rtx_insn, adding the
10178 invariant BARRIER_P (X).
10179 (class rtx_code_label): New, a subclass of rtx_insn, adding
10180 the invariant LABEL_P (X).
10181 (class rtx_note): New, a subclass of rtx_insn, adding
10182 the invariant NOTE_P(X).
10183 (is_a_helper <rtx_debug_insn *>::test): New.
10184 (is_a_helper <rtx_nonjump_insn *>::test): New.
10185 (is_a_helper <rtx_jump_insn *>::test): New.
10186 (is_a_helper <rtx_call_insn *>::test): New.
10187 (is_a_helper <rtx_jump_table_data *>::test): New functions,
10188 overloaded for both rtx and rtx_insn *.
10189 (is_a_helper <rtx_barrier *>::test): New.
10190 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
10191 for both rtx and rtx_insn *.
10192 (is_a_helper <rtx_note *>::test): New.
10193
10194 2014-08-19 Marek Polacek <polacek@redhat.com>
10195
10196 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
10197 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10198 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
10199 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
10200
10201 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10202
10203 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
10204 rtx_insn *. To help with transition, for now, convert from an
10205 access macro into a pair of functions: BND_TO, returning an
10206 rtx_insn *, and...
10207 (SET_BND_TO): New function, for use where BND_TO is used as an
10208 lvalue.
10209
10210 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
10211 SET_BND_TO.
10212 (BND_TO): New function, adding a checked cast.
10213 (SET_BND_TO): New function.
10214
10215 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
10216 SET_BND_TO.
10217 (compute_av_set_on_boundaries): Likewise.
10218
10219 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
10220
10221 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
10222 destination if it is used in source.
10223 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
10224 (*popcount<mode>2_falsedep_1): Likewise.
10225
10226 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
10227
10228 PR other/62168
10229 * configure.ac: Set install_gold_as_default to no first.
10230 * configure: Regenerated.
10231
10232 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10233
10234 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
10235 "note_list" field will eventually be an rtx_insn *. To help with
10236 transition, for now, convert from an access macro into a pair of
10237 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
10238 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
10239 used as an lvalue.
10240
10241 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
10242 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
10243
10244 * sel-sched-ir.c (init_bb): Likewise.
10245 (sel_restore_notes): Likewise.
10246 (move_bb_info): Likewise.
10247 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
10248 (SET_BB_NOTE_LIST): New function.
10249
10250 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10251
10252 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
10253 field will eventually be an rtx_insn *. To help with transition,
10254 for now, convert from an access macro into a pair of functions:
10255 VINSN_INSN_RTX, returning an rtx_insn *, and...
10256 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
10257 is used as an lvalue.
10258
10259 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
10260 SET_VINSN_INSN_RTX where it's used as an lvalue.
10261 (VINSN_INSN_RTX): New function.
10262 (SET_VINSN_INSN_RTX): New function.
10263
10264 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10265
10266 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
10267 eventually be rtx_insn *, but to help with transition, for now,
10268 convert from an access macro into a pair of functions: DEP_PRO
10269 returning an rtx_insn * and...
10270 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
10271 lvalue, returning an rtx&.
10272 (DEP_CON): Analogous changes to DEP_PRO above.
10273 (SET_DEP_CON): Likewise.
10274
10275 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
10276 an lvalue to SET_DEP_CON.
10277 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
10278 (sd_copy_back_deps): Likewise for DEP_CON.
10279 (DEP_PRO): New function, adding a checked cast for now.
10280 (DEP_CON): Likewise.
10281 (SET_DEP_PRO): New function.
10282 (SET_DEP_CON): Likewise.
10283
10284 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
10285
10286 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
10287 (extra_options): Add i386/cygwin.opt.
10288 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
10289 (CPP_SPEC): Accept -pthread.
10290 (LINK_SPEC): Ditto.
10291 (GOMP_SELF_SPECS): Update comment.
10292 * config/i386/cygwin.opt: New file for -pthread flag.
10293
10294 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10295
10296 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
10297 * df.h (DF_REF_INSN): Convert from a macro to a function, so
10298 that we can return an rtx_insn *.
10299
10300 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
10301
10302 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
10303 when building executables, not DLLs. Add --large-address-aware
10304 under the same conditions.
10305 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
10306 when building executables, not DLLs. Add --large-address-aware
10307 under the same conditions when using -m32.
10308
10309 * config/i386/cygwin-stdint.h: Throughout, make type
10310 definitions dependent on target architecture, not host.
10311
10312 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10313
10314 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
10315 the return type from rtx to rtx_insn *, which will enable various
10316 conversions in followup patches. For now this is is done by a
10317 checked cast.
10318 (NEXT_INSN): Likewise.
10319 (SET_PREV_INSN): Convert to an inline function. This is intended
10320 for use as an lvalue, and so returns an rtx& to allow in-place
10321 modification.
10322 (SET_NEXT_INSN): Likewise.
10323
10324 2014-07-08 Mark Wielaard <mjw@redhat.com>
10325
10326 PR debug/59051
10327 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
10328
10329 2014-08-19 Marek Polacek <polacek@redhat.com>
10330
10331 PR c/61271
10332 * cgraphunit.c (handle_alias_pairs): Fix condition.
10333
10334 2014-08-19 Richard Biener <rguenther@suse.de>
10335
10336 * gimple-fold.c (fold_gimple_assign): Properly build a
10337 null-pointer constant when devirtualizing addresses.
10338
10339 2014-07-07 Mark Wielaard <mjw@redhat.com>
10340
10341 * dwarf2out.c (decl_quals): New function.
10342 (modified_type_die): Take one cv_quals argument instead of two,
10343 one for const and one for volatile.
10344 (add_type_attribute): Likewise.
10345 (generic_parameter_die): Call add_type_attribute with one modifier
10346 argument.
10347 (base_type_for_mode): Likewise.
10348 (add_bounds_info): Likewise.
10349 (add_subscript_info): Likewise.
10350 (gen_array_type_die): Likewise.
10351 (gen_descr_array_type_die): Likewise.
10352 (gen_entry_point_die): Likewise.
10353 (gen_enumeration_type_die): Likewise.
10354 (gen_formal_parameter_die): Likewise.
10355 (gen_subprogram_die): Likewise.
10356 (gen_variable_die): Likewise.
10357 (gen_const_die): Likewise.
10358 (gen_field_die): Likewise.
10359 (gen_pointer_type_die): Likewise.
10360 (gen_reference_type_die): Likewise.
10361 (gen_ptr_to_mbr_type_die): Likewise.
10362 (gen_inheritance_die): Likewise.
10363 (gen_subroutine_type_die): Likewise.
10364 (gen_typedef_die): Likewise.
10365 (force_type_die): Likewise.
10366
10367 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10368
10369 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
10370 if unset.
10371 * configure: Regenerate.
10372
10373 2014-08-19 Richard Biener <rguenther@suse.de>
10374
10375 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
10376 DECL_EXTERNALs in BLOCKs as non-references.
10377 * tree-streamer-out.c (streamer_write_chain): Likewise.
10378
10379 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
10380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10381 Anna Tikhonova <anna.tikhonova@intel.com>
10382 Ilya Tocar <ilya.tocar@intel.com>
10383 Andrey Turetskiy <andrey.turetskiy@intel.com>
10384 Ilya Verbin <ilya.verbin@intel.com>
10385 Kirill Yukhin <kirill.yukhin@intel.com>
10386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10387
10388 * config/i386/sse.md
10389 (define_mode_iterator VI48_AVX512F): Delete.
10390 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
10391 (define_mode_iterator VI2_AVX512VL): Ditto.
10392 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
10393 Delete.
10394 (define_insn
10395 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
10396 New.
10397 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
10398 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
10399 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10400 with VI48_AVX512F_AVX512VL): New.
10401 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10402 with VI2_AVX512VL): Ditto.
10403
10404 2014-08-19 Marek Polacek <polacek@redhat.com>
10405
10406 * doc/invoke.texi: Document -Wc99-c11-compat.
10407
10408 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10409
10410 * rtl.h (PREV_INSN): Split macro in two: the existing one,
10411 for rvalues, and...
10412 (SET_PREV_INSN): New macro, for use as an lvalue.
10413 (NEXT_INSN, SET_NEXT_INSN): Likewise.
10414
10415 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
10416 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
10417 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10418 (fixup_abnormal_edges): Likewise.
10419 (unlink_insn_chain): Likewise.
10420 (fixup_reorder_chain): Likewise.
10421 (cfg_layout_delete_block): Likewise.
10422 (cfg_layout_merge_blocks): Likewise.
10423 * combine.c (update_cfg_for_uncondjump): Likewise.
10424 * emit-rtl.c (link_insn_into_chain): Likewise.
10425 (remove_insn): Likewise.
10426 (delete_insns_since): Likewise.
10427 (reorder_insns_nobb): Likewise.
10428 (emit_insn_after_1): Likewise.
10429 * final.c (rest_of_clean_state): Likewise.
10430 (final_scan_insn): Likewise.
10431 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
10432 * haifa-sched.c (concat_note_lists): Likewise.
10433 (remove_notes): Likewise.
10434 (restore_other_notes): Likewise.
10435 (move_insn): Likewise.
10436 (unlink_bb_notes): Likewise.
10437 (restore_bb_notes): Likewise.
10438 * jump.c (delete_for_peephole): Likewise.
10439 * optabs.c (emit_libcall_block_1): Likewise.
10440 * reorg.c (emit_delay_sequence): Likewise.
10441 (fill_simple_delay_slots): Likewise.
10442 * sel-sched-ir.c (sel_move_insn): Likewise.
10443 (sel_remove_insn): Likewise.
10444 (get_bb_note_from_pool): Likewise.
10445 * sel-sched.c (move_nop_to_previous_block): Likewise.
10446
10447 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
10448 * config/c6x/c6x.c (gen_one_bundle): Likewise.
10449 (c6x_gen_bundles): Likewise.
10450 (hwloop_optimize): Likewise.
10451 * config/frv/frv.c (frv_function_prologue): Likewise.
10452 (frv_register_nop): Likewise.
10453 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10454 (ia64_reorg): Likewise.
10455 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10456 (mep_make_bundle): Likewise.
10457 (mep_bundle_insns): Likewise.
10458 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10459 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10460 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10461
10462 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10463
10464 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
10465 return type from rtx to rtx_insn *.
10466 (BB_END): Likewise.
10467 (BB_HEADER): Likewise.
10468 (BB_FOOTER): Likewise.
10469 (SET_BB_HEAD): Convert to a function.
10470 (SET_BB_END): Likewise.
10471 (SET_BB_HEADER): Likewise.
10472 (SET_BB_FOOTER): Likewise.
10473
10474 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10475 Strengthen the return type from rtx to rtx_insn *. For now, this
10476 is done by adding a checked cast, but this will eventually
10477 become a field lookup.
10478 (BB_END): Likewise.
10479 (BB_HEADER): Likewise.
10480 (BB_FOOTER): Likewise.
10481 (SET_BB_HEAD): New function, from macro of same name. This is
10482 intended for use as an lvalue, and so returns an rtx& to allow
10483 in-place modification.
10484 (SET_BB_END): Likewise.
10485 (SET_BB_HEADER): Likewise.
10486 (SET_BB_FOOTER): Likewise.
10487
10488 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10489
10490 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10491 for rvalues, and...
10492 (SET_BB_HEAD): New macro, for use as a lvalue.
10493 (BB_END, SET_BB_END): Likewise.
10494 (BB_HEADER, SET_BB_HEADER): Likewise.
10495 (BB_FOOTER, SET_BB_FOOTER): Likewise.
10496
10497 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10498 of BB_* macros into SET_BB_* macros.
10499 (fix_crossing_unconditional_branches): Likewise.
10500 * caller-save.c (save_call_clobbered_regs): Likewise.
10501 (insert_one_insn): Likewise.
10502 * cfgbuild.c (find_bb_boundaries): Likewise.
10503 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10504 (outgoing_edges_match): Likewise.
10505 (try_optimize_cfg): Likewise.
10506 * cfgexpand.c (expand_gimple_cond): Likewise.
10507 (expand_gimple_tailcall): Likewise.
10508 (expand_gimple_basic_block): Likewise.
10509 (construct_exit_block): Likewise.
10510 * cfgrtl.c (delete_insn): Likewise.
10511 (create_basic_block_structure): Likewise.
10512 (rtl_delete_block): Likewise.
10513 (rtl_split_block): Likewise.
10514 (emit_nop_for_unique_locus_between): Likewise.
10515 (rtl_merge_blocks): Likewise.
10516 (block_label): Likewise.
10517 (try_redirect_by_replacing_jump): Likewise.
10518 (emit_barrier_after_bb): Likewise.
10519 (fixup_abnormal_edges): Likewise.
10520 (record_effective_endpoints): Likewise.
10521 (relink_block_chain): Likewise.
10522 (fixup_reorder_chain): Likewise.
10523 (fixup_fallthru_exit_predecessor): Likewise.
10524 (cfg_layout_duplicate_bb): Likewise.
10525 (cfg_layout_split_block): Likewise.
10526 (cfg_layout_delete_block): Likewise.
10527 (cfg_layout_merge_blocks): Likewise.
10528 * combine.c (update_cfg_for_uncondjump): Likewise.
10529 * emit-rtl.c (add_insn_after): Likewise.
10530 (remove_insn): Likewise.
10531 (reorder_insns): Likewise.
10532 (emit_insn_after_1): Likewise.
10533 * haifa-sched.c (get_ebb_head_tail): Likewise.
10534 (restore_other_notes): Likewise.
10535 (move_insn): Likewise.
10536 (sched_extend_bb): Likewise.
10537 (fix_jump_move): Likewise.
10538 * ifcvt.c (noce_process_if_block): Likewise.
10539 (dead_or_predicable): Likewise.
10540 * ira.c (update_equiv_regs): Likewise.
10541 * reg-stack.c (change_stack): Likewise.
10542 * sel-sched-ir.c (sel_move_insn): Likewise.
10543 * sel-sched.c (move_nop_to_previous_block): Likewise.
10544
10545 * config/c6x/c6x.c (hwloop_optimize): Likewise.
10546 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10547
10548 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10549
10550 * rtl.h (for_each_rtx_in_insn): New function.
10551 * rtlanal.c (for_each_rtx_in_insn): Likewise.
10552
10553 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10554
10555 * coretypes.h (class rtx_insn): Add forward declaration.
10556
10557 * rtl.h: Include is-a.h.
10558 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10559 workaround to ensure gengtype knows inheritance is occurring,
10560 whilst continuing to use the pre-existing special-casing for
10561 rtx_def.
10562 (class rtx_insn): New subclass of rtx_def, adding the
10563 invariant that we're dealing with something we can sanely use
10564 INSN_UID, NEXT_INSN, PREV_INSN on.
10565 (is_a_helper <rtx_insn *>::test): New.
10566 (is_a_helper <const rtx_insn *>::test): New.
10567
10568 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10569
10570 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10571
10572 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10573
10574 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10575 comdats as extern.
10576
10577 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10578
10579 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10580 to BUILT_IN_UNREACHABLE.
10581
10582 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
10583
10584 PR target/62011
10585 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10586 New tune flag.
10587 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10588 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10589 (ffs<mode>2): Do not expand with tzcnt for
10590 TARGET_AVOID_FALSE_DEP_FOR_BMI.
10591 (ffssi2_no_cmove): Ditto.
10592 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10593 (ctz<mode>2): New expander.
10594 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10595 (*ctz<mode>2_falsedep): New insn.
10596 (*ctz<mode>2): Rename from ctz<mode>2.
10597 (clz<mode>2_lzcnt): New expander.
10598 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10599 (*clz<mode>2_lzcnt_falsedep): New insn.
10600 (*clz<mode>2): Rename from ctz<mode>2.
10601 (popcount<mode>2): New expander.
10602 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10603 (*popcount<mode>2_falsedep): New insn.
10604 (*popcount<mode>2): Rename from ctz<mode>2.
10605 (*popcount<mode>2_cmp): Remove.
10606 (*popcountsi2_cmp_zext): Ditto.
10607
10608 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
10609
10610 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10611 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10612 * config/microblaze/microblaze.h
10613 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10614
10615 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
10616
10617 PR other/62168
10618 * configure.ac: Set install_gold_as_default to no for
10619 --enable-gold=no.
10620 * configure: Regenerated.
10621
10622 2014-08-18 Roman Gareev <gareevroman@gmail.com>
10623
10624 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10625 * config.in: Add undef of HAVE_isl.
10626 * configure: Regenerate.
10627 * configure.ac: Add definition of HAVE_isl.
10628 * graphite-blocking.c: Add checking of HAVE_isl.
10629 * graphite-dependences.c: Likewise.
10630 * graphite-interchange.c: Likewise.
10631 * graphite-isl-ast-to-gimple.c: Likewise.
10632 * graphite-optimize-isl.c: Likewise.
10633 * graphite-poly.c: Likewise.
10634 * graphite-scop-detection.c: Likewise.
10635 * graphite-sese-to-poly.c: Likewise.
10636 * graphite.c: Likewise.
10637 * toplev.c: Replace the checking of HAVE_cloog with the checking
10638 of HAVE_isl.
10639
10640 2014-08-18 Richard Biener <rguenther@suse.de>
10641
10642 PR tree-optimization/62090
10643 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10644 (fold_builtin_3): Do not fold snprintf.
10645 (fold_builtin_4): Likewise.
10646 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10647 moved from builtins.c.
10648 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10649 (gimple_fold_builtin): Do not fold sprintf here.
10650
10651 2014-08-18 Richard Biener <rguenther@suse.de>
10652
10653 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10654 code to ...
10655 (maybe_canonicalize_mem_ref_addr): ... this function.
10656 (fold_stmt_1): Apply it here before all simplification.
10657
10658 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10659
10660 PR ipa/61800
10661 * cgraph.h (cgraph_node::create_indirect_edge): Add
10662 compute_indirect_info param.
10663 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10664 indirect_info only when it is required.
10665 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10666 indirect_info fore cloned indirect edge.
10667
10668 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10669 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10670 Anna Tikhonova <anna.tikhonova@intel.com>
10671 Ilya Tocar <ilya.tocar@intel.com>
10672 Andrey Turetskiy <andrey.turetskiy@intel.com>
10673 Ilya Verbin <ilya.verbin@intel.com>
10674 Kirill Yukhin <kirill.yukhin@intel.com>
10675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10676
10677 * config/i386/sse.md
10678 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10679 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10680
10681 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10682 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10683 Anna Tikhonova <anna.tikhonova@intel.com>
10684 Ilya Tocar <ilya.tocar@intel.com>
10685 Andrey Turetskiy <andrey.turetskiy@intel.com>
10686 Ilya Verbin <ilya.verbin@intel.com>
10687 Kirill Yukhin <kirill.yukhin@intel.com>
10688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10689
10690 * config/i386/sse.md
10691 (define_mode_iterator VF1_AVX512VL): New.
10692 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10693 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10694 New.
10695
10696 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10697 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10698 Anna Tikhonova <anna.tikhonova@intel.com>
10699 Ilya Tocar <ilya.tocar@intel.com>
10700 Andrey Turetskiy <andrey.turetskiy@intel.com>
10701 Ilya Verbin <ilya.verbin@intel.com>
10702 Kirill Yukhin <kirill.yukhin@intel.com>
10703 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10704
10705 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10706 * config/i386/i386.md
10707 (define_code_iterator any_float): New.
10708 (define_code_attr floatsuffix): New.
10709 * config/i386/sse.md
10710 (define_mode_iterator VF1_128_256VL): New.
10711 (define_mode_iterator VF2_512_256VL): New.
10712 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10713 TARGET check.
10714 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10715 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10716 New.
10717 (define_mode_attr qq2pssuff): New.
10718 (define_mode_attr sselongvecmode): New.
10719 (define_mode_attr sselongvecmodelower): New.
10720 (define_mode_attr sseintvecmode3): New.
10721 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10722 New.
10723 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10724 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10725 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10726 (define_insn "ufloatv2siv2df2<mask_name>"): New.
10727
10728 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10729 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10730 Anna Tikhonova <anna.tikhonova@intel.com>
10731 Ilya Tocar <ilya.tocar@intel.com>
10732 Andrey Turetskiy <andrey.turetskiy@intel.com>
10733 Ilya Verbin <ilya.verbin@intel.com>
10734 Kirill Yukhin <kirill.yukhin@intel.com>
10735 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10736
10737 * config/i386/sse.md
10738 (define_mode_iterator VF2_AVX512VL): New.
10739 (define_mode_attr sseintvecmode2): New.
10740 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10741 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10742 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10743 (define_insn
10744 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10745 Ditto.
10746 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10747 Ditto.
10748 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10749 Ditto.
10750
10751 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10752 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10753 Anna Tikhonova <anna.tikhonova@intel.com>
10754 Ilya Tocar <ilya.tocar@intel.com>
10755 Andrey Turetskiy <andrey.turetskiy@intel.com>
10756 Ilya Verbin <ilya.verbin@intel.com>
10757 Kirill Yukhin <kirill.yukhin@intel.com>
10758 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10759
10760 * config/i386/i386.md
10761 (define_insn "*movoi_internal_avx"): Add evex version.
10762 (define_insn "*movti_internal"): Ditto.
10763
10764 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10765 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10766 Anna Tikhonova <anna.tikhonova@intel.com>
10767 Ilya Tocar <ilya.tocar@intel.com>
10768 Andrey Turetskiy <andrey.turetskiy@intel.com>
10769 Ilya Verbin <ilya.verbin@intel.com>
10770 Kirill Yukhin <kirill.yukhin@intel.com>
10771 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10772
10773 * config/i386/i386.md
10774 (define_attr "isa"): Add avx512dq, noavx512dq.
10775 (define_attr "enabled"): Ditto.
10776 * config/i386/sse.md
10777 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10778
10779 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10780 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10781 Anna Tikhonova <anna.tikhonova@intel.com>
10782 Ilya Tocar <ilya.tocar@intel.com>
10783 Andrey Turetskiy <andrey.turetskiy@intel.com>
10784 Ilya Verbin <ilya.verbin@intel.com>
10785 Kirill Yukhin <kirill.yukhin@intel.com>
10786 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10787
10788 * config/i386/i386.c
10789 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10790 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10791 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10792 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10793 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10794 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10795 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10796 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10797 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10798 * config/i386/sse.md
10799 (define_mode_iterator VMOVE): Allow V4TI mode.
10800 (define_mode_iterator V_AVX512VL): New.
10801 (define_mode_iterator V): New handling for AVX512VL.
10802 (define_insn "avx512f_load<mode>_mask"): Delete.
10803 (define_insn "<avx512>_load<mode>_mask"): New.
10804 (define_insn "avx512f_store<mode>_mask"): Delete.
10805 (define_insn "<avx512>_store<mode>_mask"): New.
10806
10807
10808 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10809
10810 PR sanitizer/62089
10811 * asan.c (instrument_derefs): Fix bitfield check.
10812
10813 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10814
10815 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10816 * config/rs6000/htm.md (ttest): Remove clobber.
10817 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10818 (and_operand): Reformat.
10819 (and_2rld_operand): New predicate.
10820 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10821 parameter.
10822 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10823 parameter. Handle AND directly.
10824 (rs6000_split_logical_di): Remove last parameter.
10825 (rs6000_split_logical): Remove last parameter. Remove obsolete
10826 comment.
10827 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10828 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10829 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10830 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10831 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10832 and 5 anonymous splitters): Delete.
10833 (and<mode>3): New expander.
10834 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10835 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10836 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10837 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10838 (floatdisf2_internal1): Remove clobbers.
10839 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10840 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10841 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10842 (and<mode>3 for BOOL_128): Remove clobber.
10843 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10844 rs6000_split_logical.
10845 (*bool<mode>3_internal for BOOL_128): Adjust call of
10846 rs6000_split_logical.
10847 (*boolc<mode>3_internal1 for BOOL_128,
10848 *boolc<mode>3_internal2 for BOOL_128,
10849 *boolcc<mode>3_internal1 for BOOL_128,
10850 *boolcc<mode>3_internal2 for BOOL_128,
10851 *eqv<mode>3_internal1 for BOOL_128,
10852 *eqv<mode>3_internal2 for BOOL_128,
10853 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10854 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10855 clobber.
10856 (*vec_reload_and_reg_<mptrsize>): Delete.
10857
10858 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10859
10860 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10861 and split, *boolccsi3_internal3 and split): Delete.
10862 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10863 *boolccdi3_internal3 and split): Delete.
10864 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10865 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10866
10867 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10868
10869 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10870 and split, *boolcsi3_internal3 and split): Delete.
10871 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10872 *boolcdi3_internal3 and split): Delete.
10873 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10874
10875 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10876
10877 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10878 <'u'>: Also support printing the low-order 16 bits.
10879 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10880 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10881 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10882 *booldi3_internal3 and split): Delete.
10883 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10884 *bool<mode>3_dot2): New.
10885 (two anonymous define_splits for non_logical_cint_operand): Merge.
10886
10887 2014-08-17 Marek Polacek <polacek@redhat.com>
10888 Manuel López-Ibáñez <manu@gcc.gnu.org>
10889
10890 PR c/62059
10891 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10892 (diagnostic_show_locus): Don't print caret diagnostic
10893 if a column is larger than the line_width.
10894
10895 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10896
10897 * common.opt: Make the ISL AST generator to be the main code generator
10898 of Graphite.
10899
10900 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10901
10902 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10903
10904 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10905
10906 PR target/61641
10907 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10908 Declare.
10909 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10910 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10911 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10912 Define.
10913 * config/pa/pa.md (begin_brtab): Delete insn.
10914 (end_brtab): Likewise.
10915
10916 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10917
10918 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10919
10920 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10921
10922 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10923 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10924 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10925 (get_dynamic_type): Remove.
10926 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10927 (clear_speculation): Bring to ipa-deivrt.h
10928 (get_class_context): Rename to ...
10929 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10930 (contains_type_p): Update.
10931 (get_dynamic_type): Rename to ...
10932 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10933 (possible_polymorphic_call_targets): UPdate.
10934 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10935 * ipa-prop.c (ipa_analyze_call_uses): Update.
10936
10937 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10938
10939 * doc/invoke.texi (SH options): Document missing processor variant
10940 options. Remove references to Hitachi. Undocument deprecated mspace
10941 option.
10942
10943 2014-08-15 Jason Merrill <jason@redhat.com>
10944
10945 * tree.c (type_hash_canon): Uncomment assert.
10946
10947 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10948
10949 * input.h (in_system_header_at): Add comment.
10950
10951 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10952
10953 PR fortran/44054
10954 * diagnostic.c (build_message_string): Make it extern.
10955 * diagnostic.h (build_message_string): Make it extern.
10956
10957 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10958
10959 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10960 load/store from/to non-floating class pseudo.
10961
10962 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10963
10964 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10965
10966 2014-08-15 Richard Biener <rguenther@suse.de>
10967
10968 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10969 (get_constraint_for_ssa_var): Remove dead code.
10970 (get_constraint_for_1): Adjust.
10971 (find_what_var_points_to): Likewise.
10972 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10973
10974 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10975
10976 PR target/61878
10977 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10978 (_mm512_mask_cmpge_epu32_mask): Ditto.
10979 (_mm512_cmpge_epu32_mask): Ditto.
10980 (_mm512_mask_cmpge_epi64_mask): Ditto.
10981 (_mm512_cmpge_epi64_mask): Ditto.
10982 (_mm512_mask_cmpge_epu64_mask): Ditto.
10983 (_mm512_cmpge_epu64_mask): Ditto.
10984 (_mm512_mask_cmple_epi32_mask): Ditto.
10985 (_mm512_cmple_epi32_mask): Ditto.
10986 (_mm512_mask_cmple_epu32_mask): Ditto.
10987 (_mm512_cmple_epu32_mask): Ditto.
10988 (_mm512_mask_cmple_epi64_mask): Ditto.
10989 (_mm512_cmple_epi64_mask): Ditto.
10990 (_mm512_mask_cmple_epu64_mask): Ditto.
10991 (_mm512_cmple_epu64_mask): Ditto.
10992 (_mm512_mask_cmplt_epi32_mask): Ditto.
10993 (_mm512_cmplt_epi32_mask): Ditto.
10994 (_mm512_mask_cmplt_epu32_mask): Ditto.
10995 (_mm512_cmplt_epu32_mask): Ditto.
10996 (_mm512_mask_cmplt_epi64_mask): Ditto.
10997 (_mm512_cmplt_epi64_mask): Ditto.
10998 (_mm512_mask_cmplt_epu64_mask): Ditto.
10999 (_mm512_cmplt_epu64_mask): Ditto.
11000 (_mm512_mask_cmpneq_epi32_mask): Ditto.
11001 (_mm512_mask_cmpneq_epu32_mask): Ditto.
11002 (_mm512_cmpneq_epu32_mask): Ditto.
11003 (_mm512_mask_cmpneq_epi64_mask): Ditto.
11004 (_mm512_cmpneq_epi64_mask): Ditto.
11005 (_mm512_mask_cmpneq_epu64_mask): Ditto.
11006 (_mm512_cmpneq_epu64_mask): Ditto.
11007 (_mm512_castpd_ps): Ditto.
11008 (_mm512_castpd_si512): Ditto.
11009 (_mm512_castps_pd): Ditto.
11010 (_mm512_castps_si512): Ditto.
11011 (_mm512_castsi512_ps): Ditto.
11012 (_mm512_castsi512_pd): Ditto.
11013 (_mm512_castpd512_pd128): Ditto.
11014 (_mm512_castps512_ps128): Ditto.
11015 (_mm512_castsi512_si128): Ditto.
11016 (_mm512_castpd512_pd256): Ditto.
11017 (_mm512_castps512_ps256): Ditto.
11018 (_mm512_castsi512_si256): Ditto.
11019 (_mm512_castpd128_pd512): Ditto.
11020 (_mm512_castps128_ps512): Ditto.
11021 (_mm512_castsi128_si512): Ditto.
11022 (_mm512_castpd256_pd512): Ditto.
11023 (_mm512_castps256_ps512): Ditto.
11024 (_mm512_castsi256_si512): Ditto.
11025 (_mm512_cmpeq_epu32_mask): Ditto.
11026 (_mm512_mask_cmpeq_epu32_mask): Ditto.
11027 (_mm512_mask_cmpeq_epu64_mask): Ditto.
11028 (_mm512_cmpeq_epu64_mask): Ditto.
11029 (_mm512_cmpgt_epu32_mask): Ditto.
11030 (_mm512_mask_cmpgt_epu32_mask): Ditto.
11031 (_mm512_mask_cmpgt_epu64_mask): Ditto.
11032 (_mm512_cmpgt_epu64_mask): Ditto.
11033 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
11034 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
11035 * config/i386/i386.c (enum ix86_builtins): Add
11036 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
11037 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
11038 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
11039 (bdesc_args): Add __builtin_ia32_si512_256si,
11040 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
11041 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
11042 __builtin_ia32_pd512_pd.
11043 (ix86_expand_args_builtin): Handle new FTYPEs.
11044 * config/i386/sse.md (castmode): Add 512-bit modes.
11045 (AVX512MODE2P): New.
11046 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
11047 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
11048
11049 2014-08-15 Richard Biener <rguenther@suse.de>
11050
11051 * fold-const.c (tree_swap_operands_p): Put all constants
11052 last, also strip sign-changing NOPs when considering further
11053 canonicalization. Canonicalize also when optimizing for size.
11054
11055 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11056
11057 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
11058 one_match > zero_match case to just before simple_sequence.
11059
11060 2014-08-15 Richard Biener <rguenther@suse.de>
11061
11062 * data-streamer.h (streamer_string_index, string_for_index):
11063 Remove.
11064 * data-streamer-out.c (streamer_string_index): Make static.
11065 * data-streamer-in.c (string_for_index): Likewise.
11066 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
11067 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
11068
11069 2014-08-15 Richard Biener <rguenther@suse.de>
11070
11071 PR tree-optimization/62031
11072 * tree-data-ref.c (dr_analyze_indices): Do not set
11073 DR_UNCONSTRAINED_BASE.
11074 (dr_may_alias_p): All indirect accesses have to go the
11075 formerly DR_UNCONSTRAINED_BASE path.
11076 * tree-data-ref.h (struct indices): Remove
11077 unconstrained_base member.
11078 (DR_UNCONSTRAINED_BASE): Remove.
11079
11080 2014-08-15 Jakub Jelinek <jakub@redhat.com>
11081
11082 PR middle-end/62092
11083 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
11084 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
11085 in OMP_CLAUSE_MAP in some outer target region.
11086
11087 2014-08-15 Bin Cheng <bin.cheng@arm.com>
11088
11089 * tree-ssa-loop-ivopts.c (ivopts_data): New field
11090 name_expansion_cache.
11091 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
11092 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
11093 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
11094 (difference_cannot_overflow_p): New parameter. Use affine
11095 expansion for equality check.
11096 (iv_elimination_compare_lt): Pass new argument.
11097
11098 2014-08-14 DJ Delorie <dj@redhat.com>
11099
11100 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
11101 variables to the accumulator.
11102
11103 * config/rl78/predicates.md (rl78_near_mem_operand): New.
11104 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
11105 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
11106 with far-far moves.
11107
11108 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
11109 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
11110 (umulqihi3_virt): Likewise.
11111 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
11112 (umulqihi3_real): Likewise.
11113
11114 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
11115
11116 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
11117
11118 PR tree-optimization/62091
11119 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
11120 function_entry_reached.
11121 (walk_aliased_vdefs): Clear it here.
11122 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
11123
11124 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
11125
11126 * ipa-utils.h (compare_virtual_tables): Declare.
11127 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
11128
11129 2014-08-14 Marek Polacek <polacek@redhat.com>
11130
11131 DR 458
11132 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
11133 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
11134
11135 2014-08-14 Tom de Vries <tom@codesourcery.com>
11136
11137 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
11138
11139 2014-08-14 Tom de Vries <tom@codesourcery.com>
11140
11141 PR rtl-optimization/62004
11142 PR rtl-optimization/62030
11143 * ifcvt.c (rtx_interchangeable_p): New function.
11144 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
11145 * emit-rtl.h (mem_attrs_eq_p): Declare.
11146
11147 2014-08-14 Roman Gareev <gareevroman@gmail.com>
11148
11149 * graphite-scop-detection.c:
11150 Add inclusion of cp-tree.h.
11151 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
11152 in case they are pointers to object types
11153
11154 2014-08-14 Richard Biener <rguenther@suse.de>
11155
11156 * BASE-VER: Change to 5.0.0
11157
11158 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11159 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11160 Anna Tikhonova <anna.tikhonova@intel.com>
11161 Ilya Tocar <ilya.tocar@intel.com>
11162 Andrey Turetskiy <andrey.turetskiy@intel.com>
11163 Ilya Verbin <ilya.verbin@intel.com>
11164 Kirill Yukhin <kirill.yukhin@intel.com>
11165 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11166
11167 * config/i386/sse.md (define_mode_attr avx512): New.
11168 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
11169 V4DI modes.
11170 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
11171 (define_mode_attr ssse3_avx2): Ditto.
11172 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
11173 (define_mode_attr avx2_avx512bw): New.
11174 (define_mode_attr ssedoublemodelower): New.
11175 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
11176 V32HI, V64QI modes.
11177 (define_mode_attr ssebytemode): Allow V8DI modes.
11178 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
11179 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
11180 (define_mode_attr ssePSmode2): New.
11181 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
11182 V16HI, V32HI modes.
11183 (define_mode_attr dbpsadbwmode): New.
11184 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
11185 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
11186 (vi8_sse4_1_avx2_avx512): New.
11187 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
11188 mode attribute.
11189 (define_mode_attr blendbits): Move before its immediate use.
11190
11191 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11192 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11193 Anna Tikhonova <anna.tikhonova@intel.com>
11194 Ilya Tocar <ilya.tocar@intel.com>
11195 Andrey Turetskiy <andrey.turetskiy@intel.com>
11196 Ilya Verbin <ilya.verbin@intel.com>
11197 Kirill Yukhin <kirill.yukhin@intel.com>
11198 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11199
11200 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
11201 * config/i386/subst.md
11202 (define_mode_iterator SUBST_V): Update.
11203 (define_mode_iterator SUBST_A): Ditto.
11204 (define_subst_attr "mask_operand7"): New.
11205 (define_subst_attr "mask_operand10"): New.
11206 (define_subst_attr "mask_operand_arg34") : New.
11207 (define_subst_attr "mask_expand_op3"): New.
11208 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
11209 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
11210 (define_subst_attr "mask_avx512vl_condition"): New.
11211 (define_subst_attr "round_mask_operand4"): Ditto.
11212 (define_subst_attr "round_mask_scalar_op3"): Delete.
11213 (define_subst_attr "round_mask_op4"): New.
11214 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
11215 V16SImode.
11216 (define_subst_attr "round_modev8sf_condition"): New.
11217 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
11218 <MODE>mode.
11219 (define_subst_attr "round_saeonly_mask_operand4"): New.
11220 (define_subst_attr "round_saeonly_mask_op4"): New.
11221 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
11222 V8DImode, V16SImode.
11223 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
11224 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
11225 (define_subst_attr "mask_expand4_args"): New.
11226 (define_subst "mask_expand4"): New.
11227
11228 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11229 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11230 Anna Tikhonova <anna.tikhonova@intel.com>
11231 Ilya Tocar <ilya.tocar@intel.com>
11232 Andrey Turetskiy <andrey.turetskiy@intel.com>
11233 Ilya Verbin <ilya.verbin@intel.com>
11234 Kirill Yukhin <kirill.yukhin@intel.com>
11235 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11236
11237 * config/i386/i386.md
11238 (define_attr "isa"): Add avx512bw,noavx512bw.
11239 (define_attr "enabled"): Ditto.
11240 (define_split): Add 32/64-bit mask logic.
11241 (define_insn "*k<logic>qi"): New.
11242 (define_insn "*k<logic>hi"): New.
11243 (define_insn "*anddi_1"): Add mask version.
11244 (define_insn "*andsi_1"): Ditto.
11245 (define_insn "*<code><mode>_1"): Ditto.
11246 (define_insn "*<code>hi_1"): Ditto.
11247 (define_insn "kxnor<mode>"): New.
11248 (define_insn "kunpcksi"): New.
11249 (define_insn "kunpckdi"): New.
11250 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
11251 (define_insn "*one_cmplhi2_1"): Ditto.
11252
11253 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11254 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11255 Anna Tikhonova <anna.tikhonova@intel.com>
11256 Ilya Tocar <ilya.tocar@intel.com>
11257 Andrey Turetskiy <andrey.turetskiy@intel.com>
11258 Ilya Verbin <ilya.verbin@intel.com>
11259 Kirill Yukhin <kirill.yukhin@intel.com>
11260 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11261
11262 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
11263 V32HImode.
11264
11265 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
11266 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11267 Anna Tikhonova <anna.tikhonova@intel.com>
11268 Ilya Tocar <ilya.tocar@intel.com>
11269 Andrey Turetskiy <andrey.turetskiy@intel.com>
11270 Ilya Verbin <ilya.verbin@intel.com>
11271 Kirill Yukhin <kirill.yukhin@intel.com>
11272 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11273
11274 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
11275 registers.
11276 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
11277 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
11278 xmm/ymm16+ when availble.
11279 * config/i386/i386.h
11280 (HARD_REGNO_NREGS): Add mask regs.
11281 (VALID_AVX512F_REG_MODE): Ditto.
11282 (VALID_AVX512F_REG_MODE) : Define.
11283 (VALID_MASK_AVX512BW_MODE): Ditto.
11284 (reg_class) (MASK_REG_P(X)): Define.
11285 * config/i386/i386.md: Do not split long moves with mask register,
11286 use kmovb if avx512bw is availible.
11287 (movdi_internal): Handle mask registers.
11288
11289 2014-08-14 Richard Biener <rguenther@suse.de>
11290
11291 PR tree-optimization/62081
11292 * tree-ssa-loop.c (pass_fix_loops): New pass.
11293 (pass_tree_loop::gate): Do not fixup loops here.
11294 * tree-pass.h (make_pass_fix_loops): Declare.
11295 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
11296
11297 2014-08-14 Richard Biener <rguenther@suse.de>
11298
11299 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
11300 (type_hash_canon): ... this and avoid 2nd lookup for the add.
11301
11302 2014-08-14 Richard Biener <rguenther@suse.de>
11303
11304 PR tree-optimization/62090
11305 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
11306 (fold_builtin_2): Do not fold sprintf.
11307 (fold_builtin_3): Likewise.
11308 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
11309 moved from builtins.c.
11310 (gimple_fold_builtin): Fold sprintf.
11311
11312 2014-08-14 Richard Biener <rguenther@suse.de>
11313
11314 PR rtl-optimization/62079
11315 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
11316 run cleanup_cfg.
11317
11318 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
11319
11320 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
11321 current_function_decl.
11322
11323 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
11324
11325 * cgraph.c (cgraph_node::function_symbol): Fix wrong
11326 cgraph_function_node to cgraph_node::function_symbol
11327 refactoring.
11328
11329 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
11330
11331 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
11332 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
11333
11334 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
11335
11336 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
11337 warning.
11338
11339 2014-08-13 Roman Gareev <gareevroman@gmail.com>
11340
11341 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
11342 generator.
11343
11344 2014-08-12 Jakub Jelinek <jakub@redhat.com>
11345
11346 PR target/62025
11347 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
11348 any registers that are used in mem_insn.
11349
11350 2014-08-12 Steve Ellcey <sellcey@mips.com>
11351
11352 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
11353
11354 2014-08-12 Steve Ellcey <sellcey@mips.com>
11355
11356 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
11357 (MULTILIB_DIRNAMES): Ditto.
11358 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
11359 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
11360 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
11361 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
11362 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
11363 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
11364
11365 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11366
11367 PR target/61413
11368 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
11369 of __ARM_SIZEOF_WCHAR_T.
11370
11371 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11372
11373 PR target/62098
11374 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
11375 Remove unnecessary attributes.
11376
11377 2014-08-12 Yury Gribov <y.gribov@samsung.com>
11378
11379 * internal-fn.c (init_internal_fns): Fix off-by-one.
11380
11381 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
11382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11383 Anna Tikhonova <anna.tikhonova@intel.com>
11384 Ilya Tocar <ilya.tocar@intel.com>
11385 Andrey Turetskiy <andrey.turetskiy@intel.com>
11386 Ilya Verbin <ilya.verbin@intel.com>
11387 Kirill Yukhin <kirill.yukhin@intel.com>
11388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11389
11390 * config/i386/i386.c (standard_sse_constant_opcode): Use
11391 vpxord/vpternlog if avx512 is availible.
11392
11393 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11394
11395 PR middle-end/62103
11396 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
11397 bitfields, that is when size doesn't match the size of type or the
11398 size of the constructor.
11399
11400 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11401
11402 * config/rs6000/constraints.md (wh constraint): New constraint,
11403 for FP registers if direct move is available.
11404 (wi constraint): New constraint, for VSX/FP registers that can
11405 handle 64-bit integers.
11406 (wj constraint): New constraint for VSX/FP registers that can
11407 handle 64-bit integers for direct moves.
11408 (wk constraint): New constraint for VSX/FP registers that can
11409 handle 64-bit doubles for direct moves.
11410 (wy constraint): Make documentation match implementation.
11411
11412 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
11413 scalar_in_vmx_p field to simplify tests of whether SFmode or
11414 DFmode can go in the Altivec registers.
11415 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
11416 (rs6000_setup_reg_addr_masks): Likewise.
11417 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
11418 field, and wh/wi/wj/wk constraints.
11419 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
11420 the wh/wi/wj/wk constraints.
11421 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
11422 upper registers, prefer VSX registers unless the operation is a
11423 memory operation with REG+OFFSET addressing.
11424
11425 * config/rs6000/vsx.md (VSr mode attribute): Add support for
11426 DImode. Change SFmode to use ww constraint instead of d to allow
11427 SF registers in the upper registers.
11428 (VSr2): Likewise.
11429 (VSr3): Likewise.
11430 (VSr5): Fix thinko in comment.
11431 (VSa): New mode attribute that is an alternative to wa, that
11432 returns the VSX register class that a mode can go in, but may not
11433 be the preferred register class.
11434 (VS_64dm): New mode attribute for appropriate register classes for
11435 referencing 64-bit elements of vectors for direct moves and normal
11436 moves.
11437 (VS_64reg): Likewise.
11438 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
11439 register allocator to only registers the data type can handle.
11440 (vsx_le_perm_load_<mode>): Likewise.
11441 (vsx_le_perm_store_<mode>): Likewise.
11442 (vsx_xxpermdi2_le_<mode>): Likewise.
11443 (vsx_xxpermdi4_le_<mode>): Likewise.
11444 (vsx_lxvd2x2_le_<mode>): Likewise.
11445 (vsx_lxvd2x4_le_<mode>): Likewise.
11446 (vsx_stxvd2x2_le_<mode>): Likewise.
11447 (vsx_add<mode>3): Likewise.
11448 (vsx_sub<mode>3): Likewise.
11449 (vsx_mul<mode>3): Likewise.
11450 (vsx_div<mode>3): Likewise.
11451 (vsx_tdiv<mode>3_internal): Likewise.
11452 (vsx_fre<mode>2): Likewise.
11453 (vsx_neg<mode>2): Likewise.
11454 (vsx_abs<mode>2): Likewise.
11455 (vsx_nabs<mode>2): Likewise.
11456 (vsx_smax<mode>3): Likewise.
11457 (vsx_smin<mode>3): Likewise.
11458 (vsx_sqrt<mode>2): Likewise.
11459 (vsx_rsqrte<mode>2): Likewise.
11460 (vsx_tsqrt<mode>2_internal): Likewise.
11461 (vsx_fms<mode>4): Likewise.
11462 (vsx_nfma<mode>4): Likewise.
11463 (vsx_eq<mode>): Likewise.
11464 (vsx_gt<mode>): Likewise.
11465 (vsx_ge<mode>): Likewise.
11466 (vsx_eq<mode>_p): Likewise.
11467 (vsx_gt<mode>_p): Likewise.
11468 (vsx_ge<mode>_p): Likewise.
11469 (vsx_xxsel<mode>): Likewise.
11470 (vsx_xxsel<mode>_uns): Likewise.
11471 (vsx_copysign<mode>3): Likewise.
11472 (vsx_float<VSi><mode>2): Likewise.
11473 (vsx_floatuns<VSi><mode>2): Likewise.
11474 (vsx_fix_trunc<mode><VSi>2): Likewise.
11475 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11476 (vsx_x<VSv>r<VSs>i): Likewise.
11477 (vsx_x<VSv>r<VSs>ic): Likewise.
11478 (vsx_btrunc<mode>2): Likewise.
11479 (vsx_b2trunc<mode>2): Likewise.
11480 (vsx_floor<mode>2): Likewise.
11481 (vsx_ceil<mode>2): Likewise.
11482 (vsx_<VS_spdp_insn>): Likewise.
11483 (vsx_xscvspdp): Likewise.
11484 (vsx_xvcvspuxds): Likewise.
11485 (vsx_float_fix_<mode>2): Likewise.
11486 (vsx_set_<mode>): Likewise.
11487 (vsx_extract_<mode>_internal1): Likewise.
11488 (vsx_extract_<mode>_internal2): Likewise.
11489 (vsx_extract_<mode>_load): Likewise.
11490 (vsx_extract_<mode>_store): Likewise.
11491 (vsx_splat_<mode>): Likewise.
11492 (vsx_xxspltw_<mode>): Likewise.
11493 (vsx_xxspltw_<mode>_direct): Likewise.
11494 (vsx_xxmrghw_<mode>): Likewise.
11495 (vsx_xxmrglw_<mode>): Likewise.
11496 (vsx_xxsldwi_<mode>): Likewise.
11497 (vsx_xscvdpspn): Tighten constraints to only use register classes
11498 the types use.
11499 (vsx_xscvspdpn): Likewise.
11500 (vsx_xscvdpspn_scalar): Likewise.
11501
11502 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11503 wj, and wk constraints.
11504 (GPR_REG_CLASS_P): New helper macro for register classes targeting
11505 general purpose registers.
11506
11507 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11508 direct moves.
11509 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11510 DImode instead of wm. Use wk constraint for direct move of DFmode
11511 instead of wm.
11512 (extendsidi2_lfiwax): Likewise.
11513 (lfiwax): Likewise.
11514 (lfiwzx): Likewise.
11515 (movdi_internal64): Likewise.
11516
11517 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11518 wk constraints. Make the wy constraint documentation match them
11519 implementation.
11520
11521 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
11522
11523 Replacement of isl_int by isl_val
11524 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11525 (compute_bounds_for_param): use isl_val instead of isl_int
11526 (compute_bounds_for_loop): likewise
11527 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11528 (build_linearized_memory_access): use isl_val instead of isl_int
11529 (pdr_stride_in_loop): likewise
11530 * graphite-optimize-isl.c:
11531 (getPrevectorMap): use isl_val instead of isl_int
11532 * graphite-poly.c:
11533 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11534 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11535 (extern the_isl_ctx): declare
11536 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11537 (extract_affine_gmp): likewise
11538 (wrap): likewise
11539 (build_loop_iteration_domains): likewise
11540 (add_param_constraints): likewise
11541
11542 2014-08-11 Richard Biener <rguenther@suse.de>
11543
11544 PR tree-optimization/62075
11545 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11546 handle uses in patterns.
11547
11548 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11549 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11550 Anna Tikhonova <anna.tikhonova@intel.com>
11551 Ilya Tocar <ilya.tocar@intel.com>
11552 Andrey Turetskiy <andrey.turetskiy@intel.com>
11553 Ilya Verbin <ilya.verbin@intel.com>
11554 Kirill Yukhin <kirill.yukhin@intel.com>
11555 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11556
11557 * common/config/i386/i386-common.c
11558 (OPTION_MASK_ISA_AVX512VL_SET): Define.
11559 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11560 (ix86_handle_option): Handle OPT_mavx512vl.
11561 * config/i386/cpuid.h (bit_AVX512VL): Define.
11562 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11563 set -mavx512vl accordingly.
11564 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11565 OPTION_MASK_ISA_AVX512VL.
11566 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11567 (ix86_option_override_internal): Define PTA_AVX512VL, handle
11568 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11569 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11570 * config/i386/i386.h (TARGET_AVX512VL): Define.
11571 (TARGET_AVX512VL_P(x)): Ditto.
11572 * config/i386/i386.opt: Add mavx512vl.
11573
11574 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
11575
11576 PR tree-optimization/62073
11577 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11578 a basic block.
11579
11580 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11581 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11582 Anna Tikhonova <anna.tikhonova@intel.com>
11583 Ilya Tocar <ilya.tocar@intel.com>
11584 Andrey Turetskiy <andrey.turetskiy@intel.com>
11585 Ilya Verbin <ilya.verbin@intel.com>
11586 Kirill Yukhin <kirill.yukhin@intel.com>
11587 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11588
11589 * common/config/i386/i386-common.c
11590 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11591 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11592 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11593 (ix86_handle_option): Handle OPT_mavx512bw.
11594 * config/i386/cpuid.h (bit_AVX512BW): Define.
11595 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11596 set -mavx512bw accordingly.
11597 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11598 OPTION_MASK_ISA_AVX512BW.
11599 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11600 (ix86_option_override_internal): Define PTA_AVX512BW, handle
11601 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11602 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11603 * config/i386/i386.h (TARGET_AVX512BW): Define.
11604 (TARGET_AVX512BW_P(x)): Ditto.
11605 * config/i386/i386.opt: Add mavx512bw.
11606
11607 2014-08-11 Richard Biener <rguenther@suse.de>
11608
11609 PR tree-optimization/62070
11610 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11611 Remove SSA checking.
11612
11613 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11614
11615 * asan.c (asan_check_flags): New enum.
11616 (build_check_stmt_with_calls): Removed function.
11617 (build_check_stmt): Split inlining logic to
11618 asan_expand_check_ifn.
11619 (instrument_derefs): Rename parameter.
11620 (instrument_mem_region_access): Rename parameter.
11621 (instrument_strlen_call): Likewise.
11622 (asan_expand_check_ifn): New function.
11623 (asan_instrument): Remove old code.
11624 (pass_sanopt::execute): Change handling of
11625 asan-instrumentation-with-call-threshold.
11626 (asan_clear_shadow): Fix formatting.
11627 (asan_function_start): Likewise.
11628 (asan_emit_stack_protection): Likewise.
11629 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11630 Update description.
11631 * internal-fn.c (expand_ASAN_CHECK): New function.
11632 * internal-fn.def (ASAN_CHECK): New internal function.
11633 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11634 Update description.
11635 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11636 * tree.c: Small comment fix.
11637
11638 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11639
11640 * gimple.c (gimple_call_fnspec): Support internal functions.
11641 (gimple_call_return_flags): Use const.
11642 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11643 * internal-fn.def: Add fnspec information.
11644 * internal-fn.h (internal_fn_fnspec): New function.
11645 (init_internal_fns): Declare new function.
11646 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11647 (init_internal_fns): New function.
11648 * tree-core.h: Update macro call.
11649 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11650
11651 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11652
11653 * lto-streamer.h (struct output_block::symbol): Change from
11654 struct symtab_node to plain symtab_node.
11655 (referenced_from_this_partition_p): Change first parameter
11656 from struct symtab_node to plain symtab_node.
11657
11658 2014-08-10 Marek Polacek <polacek@redhat.com>
11659
11660 PR c/51849
11661 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11662
11663 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11664
11665 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11666 DECL correctly; do not give up on types in static storage.
11667
11668 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11669
11670 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11671
11672 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11673
11674 * graphite-isl-ast-to-gimple.c:
11675 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11676
11677 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11678
11679 2014-08-08 Guozhi Wei <carrot@google.com>
11680
11681 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11682
11683 2014-08-08 Cary Coutant <ccoutant@google.com>
11684
11685 * dwarf2out.c (get_skeleton_type_unit): Remove.
11686 (output_skeleton_debug_sections): Remove skeleton type units.
11687 (output_comdat_type_unit): Likewise.
11688 (dwarf2out_finish): Likewise.
11689
11690 2014-08-07 Yi Yang <ahyangyi@google.com>
11691
11692 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11693
11694 2014-08-08 Richard Biener <rguenther@suse.de>
11695
11696 * lto-streamer.h (struct lto_input_block): Make it a class
11697 with a constructor.
11698 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11699 (struct lto_function_header, struct lto_simple_header,
11700 struct lto_simple_header_with_strings,
11701 struct lto_decl_header, struct lto_function_header): Make
11702 a simple inheritance hieararchy. Remove unused fields.
11703 (struct lto_asm_header): Remove.
11704 * lto-streamer-out.c (produce_asm): Adjust.
11705 (lto_output_toplevel_asms): Likewise.
11706 (produce_asm_for_decls): Likewise.
11707 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11708 * data-streamer-in.c (string_for_index): Likewise.
11709 * ipa-inline-analysis.c (inline_read_section): Likewise.
11710 * ipa-prop.c (ipa_prop_read_section): Likewise.
11711 (read_replacements_section): Likewise.
11712 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11713 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11714 (lto_destroy_simple_input_block): Likewise.
11715 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11716 (lto_input_toplevel_asms): Likewise.
11717
11718 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11719 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11720 Anna Tikhonova <anna.tikhonova@intel.com>
11721 Ilya Tocar <ilya.tocar@intel.com>
11722 Andrey Turetskiy <andrey.turetskiy@intel.com>
11723 Ilya Verbin <ilya.verbin@intel.com>
11724 Kirill Yukhin <kirill.yukhin@intel.com>
11725 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11726
11727 * common/config/i386/i386-common.c
11728 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11729 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11730 (ix86_handle_option): Handle OPT_mavx512dq.
11731 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11732 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11733 set -mavx512dq accordingly.
11734 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11735 OPTION_MASK_ISA_AVX512DQ.
11736 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11737 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11738 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11739 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11740 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11741 (TARGET_AVX512DQ_P(x)): Ditto.
11742 * config/i386/i386.opt: Add mavx512dq.
11743
11744 2014-08-08 Richard Biener <rguenther@suse.de>
11745
11746 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11747 target_percent, target_percent_s): Export.
11748 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11749 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11750 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11751 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11752 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11753 Move to gimple-fold.c.
11754 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11755 strcat and strcpy.
11756 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11757 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11758 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11759 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11760 (rewrite_call_expr_array): Remove.
11761 (fold_builtin_sprintf_chk): Likewise.
11762 (fold_builtin_snprintf_chk): Likewise.
11763 (fold_builtin_varargs): Remove handling of sprintf_chk,
11764 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11765 (gimple_fold_builtin_sprintf_chk): Remove.
11766 (gimple_fold_builtin_snprintf_chk): Likewise.
11767 (gimple_fold_builtin_varargs): Likewise.
11768 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11769 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11770 * gimple.c (gimple_seq_add_seq_without_update): New function.
11771 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11772 * gimple-fold.c: Include output.h.
11773 (gsi_replace_with_seq_vops): New function, split out from ...
11774 (gimplify_and_update_call_from_tree): ... here.
11775 (replace_call_with_value): New function.
11776 (replace_call_with_call_and_fold): Likewise.
11777 (var_decl_component_p): Moved from builtins.c.
11778 (gimple_fold_builtin_memory_op): Moved from builtins.c
11779 fold_builtin_memory_op and rewritten to GIMPLE.
11780 (gimple_fold_builtin_memset): Likewise.
11781 (gimple_fold_builtin_strcpy): Likewise.
11782 (gimple_fold_builtin_strncpy): Likewise.
11783 (gimple_fold_builtin_strcat): Likewise.
11784 (gimple_fold_builtin_fputs): Likewise.
11785 (gimple_fold_builtin_memory_chk): Likewise.
11786 (gimple_fold_builtin_stxcpy_chk): Likewise.
11787 (gimple_fold_builtin_stxncpy_chk): Likewise.
11788 (gimple_fold_builtin_snprintf_chk): Likewise.
11789 (gimple_fold_builtin_sprintf_chk): Likewise.
11790 (gimple_fold_builtin_strlen): New function.
11791 (gimple_fold_builtin_with_strlen): New function split out from
11792 gimple_fold_builtin.
11793 (gimple_fold_builtin): Change signature and handle
11794 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11795 here. Call gimple_fold_builtin_with_strlen.
11796 (gimple_fold_call): Adjust.
11797
11798 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11799
11800 * calls.c (precompute_arguments): Check
11801 promoted_for_signed_and_unsigned_p and set the promoted mode.
11802 (promoted_for_signed_and_unsigned_p): New function.
11803 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11804 and set the promoted mode.
11805 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11806 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11807 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11808
11809
11810 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11811
11812 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11813 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11814 (expand_call): Likewise.
11815 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11816 to get promoted mode.
11817 * combine.c (record_promoted_value): Skip > 0 comparison with
11818 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11819 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11820 of SUBREG_PROMOTED_UNSIGNED_P.
11821 (convert_modes): Likewise.
11822 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11823 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11824 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11825 SUBREG_PROMOTED_UNSIGNED_SET.
11826 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11827 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11828 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11829 SUBREG_PROMOTED_SET.
11830 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11831 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11832 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11833 of SUBREG_PROMOTED_UNSIGNED_P.
11834 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11835 (SUBREG_PROMOTED_SET): New define.
11836 (SUBREG_PROMOTED_GET): Likewise.
11837 (SUBREG_PROMOTED_SIGN): Likewise.
11838 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11839 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11840 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11841 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11842 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11843 (nonzero_bits1): Skip > 0 comparison with the results as
11844 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11845 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11846 of !SUBREG_PROMOTED_UNSIGNED_P.
11847 * simplify-rtx.c (simplify_unary_operation_1): Use new
11848 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11849 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11850 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11851 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11852
11853 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11854
11855 * ipa-devirt.c: Include gimple-pretty-print.h
11856 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11857 further tests.
11858 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11859 (get_polymorphic_call_info): Fix return value
11860 (type_change_info): New sturcture based on ipa-prop
11861 variant.
11862 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11863 based on ipa-prop variant.
11864 (extr_type_from_vtbl_ptr_store): New function
11865 based on ipa-prop variant.
11866 (record_known_type): New function.
11867 (check_stmt_for_type_change): New function.
11868 (get_dynamic_type): New function.
11869 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11870 * tree-ssa-pre.c: ipa-utils.h
11871 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11872 machinery; sanity check with ipa-prop devirtualization.
11873 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11874 polymorphic flag.
11875
11876 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11877
11878 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11879 * alias.c, cfgexpand.c, cgraphbuild.c,
11880 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11881 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11882 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11883 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11884 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11885 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11886 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11887 dse.c, except.c, gengtype.c, gimple-expr.c,
11888 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11889 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11890 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11891 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11892 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11893 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11894 pointer-set.h.
11895 * pointer-set.c: Remove file.
11896 * pointer-set.h: Remove file.
11897
11898 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11899
11900 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11901 * config/arm/types.md (f_sels, f_seld): Delete.
11902
11903 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11904
11905 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11906 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11907 (aarch64_movdi_<mode>high): Likewise.
11908 (aarch64_mov<mode>high_di): Likewise.
11909 (aarch64_movdi_<mode>low): Likewise.
11910 (aarch64_mov<mode>low_di): Likewise.
11911 (aarch64_movtilow_tilow): Likewise.
11912 Add comment explaining usage of fp,simd attributes and of
11913 TARGET_FLOAT and TARGET_SIMD.
11914
11915 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11916 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11917
11918 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11919 Use MOVN when one of the half-words is 0xffff.
11920
11921 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11922
11923 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11924
11925 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11926
11927 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11928 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11929 (rfs_str): String corresponding to RFS_* constants.
11930 (rank_for_schedule_stats_t): New typedef.
11931 (rank_for_schedule_stats): New static variable.
11932 (rfs_result): New static function.
11933 (rank_for_schedule): Track statistics for deciding heuristics.
11934 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11935 static functions.
11936 (ready_sort): Use them for debug printouts.
11937 (schedule_block): Init statistics state. Print statistics on
11938 rank_for_schedule decisions.
11939
11940 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11941
11942 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11943
11944 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11945
11946 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11947 constraint.
11948
11949 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11950
11951 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11952 function to not conflict.
11953 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11954 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11955 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11956 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11957 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11958 of pointer_map.
11959
11960 2014-08-07 Marek Polacek <polacek@redhat.com>
11961
11962 * fold-const.c (fold_binary_loc): Add folding of
11963 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11964
11965 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11966
11967 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11968 instead of type size.
11969 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11970
11971 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11972
11973 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11974 (*thumb1_movqi_insn): Likewise.
11975 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11976
11977 2014-08-07 Tom de Vries <tom@codesourcery.com>
11978
11979 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11980 (glibc_2_11_or_earlier): Remove effective-target keywords.
11981
11982 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11983
11984 * config/arm/arm.c (bdesc_2arg): Fix typo.
11985 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11986
11987 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11988
11989 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11990
11991 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11992
11993 PR debug/61923
11994 * haifa-sched.c (advance_one_cycle): Fix dump.
11995 (schedule_block): Don't advance cycle if we are already at the
11996 beginning of the cycle.
11997
11998 2014-08-06 Martin Jambor <mjambor@suse.cz>
11999
12000 PR ipa/61393
12001 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
12002
12003 2014-08-06 Richard Biener <rguenther@suse.de>
12004
12005 PR lto/62034
12006 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
12007 SCCs here.
12008 (lto_input_tree): Pop SCCs here.
12009
12010 2014-08-06 Richard Biener <rguenther@suse.de>
12011
12012 PR tree-optimization/61320
12013 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
12014 handle misaligned loads.
12015
12016 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
12017
12018 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
12019 (aarch64_expand_vec_perm_const): Check for dup before zip.
12020
12021 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12022
12023 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
12024 CONST_INT_P instead of GET_CODE and compare.
12025 (aarch64_select_cc_mode): Likewise.
12026 (aarch64_print_operand): Likewise.
12027 (aarch64_rtx_costs): Likewise.
12028 (aarch64_simd_valid_immediate): Likewise.
12029 (aarch64_simd_check_vect_par_cnst_half): Likewise.
12030 (aarch64_simd_emit_pair_result_insn): Likewise.
12031
12032 2014-08-05 David Malcolm <dmalcolm@redhat.com>
12033
12034 * gdbhooks.py (find_gcc_source_dir): New helper function.
12035 (class PassNames): New class, locating and parsing passes.def.
12036 (class BreakOnPass): New command "break-on-pass".
12037
12038 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
12039
12040 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
12041 getting olde.
12042
12043 2014-08-05 Richard Biener <rguenther@suse.de>
12044
12045 PR rtl-optimization/61672
12046 * emit-rtl.h (mem_attrs_eq_p): Declare.
12047 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
12048 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
12049 * cfgcleanup.c (merge_memattrs): Likewise.
12050 Include emit-rtl.h.
12051
12052 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12053
12054 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
12055 rather than singleton vectors.
12056 (vqdmlsls_lane_s32): Likewise.
12057
12058 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12059
12060 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
12061 Use VSDQ_HSI mode iterator.
12062 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12063 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
12064 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
12065 Use BUILTIN_VDQHS macro.
12066 (sqrdmulh_laneq): Likewise.
12067 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
12068 (vqdmlals_laneq_s32): Likewise.
12069 (vqdmlslh_laneq_s16): Likewise.
12070 (vqdmlsls_laneq_s32): Likewise.
12071 (vqdmulhh_laneq_s16): Likewise.
12072 (vqdmulhs_laneq_s32): Likewise.
12073 (vqrdmulhh_laneq_s16): Likewise.
12074 (vqrdmulhs_laneq_s32): Likewise.
12075
12076 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12077
12078 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
12079 (vmuld_laneq_f64): Likewise.
12080 (vmuls_laneq_f32): Likewise.
12081 (vmul_n_f64): Likewise.
12082 (vmuld_lane_f64): Reimplement in C.
12083 (vmuls_lane_f32): Likewise.
12084
12085 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12086
12087 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
12088 to reservation.
12089 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
12090
12091 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12092
12093 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
12094 (rbitsi2): Likewise.
12095 (*arm_rev): Set predicable and predicable_short_it attributes.
12096
12097 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12098
12099 * convert.c (convert_to_integer): Guard transformation to lrint by
12100 -fno-math-errno.
12101
12102 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
12103
12104 * config/aarch64/aarch64-builtins.c
12105 (aarch64_simd_builtin_type_mode): Delete.
12106 (v8qi_UP): Remap to V8QImode.
12107 (v4hi_UP): Remap to V4HImode.
12108 (v2si_UP): Remap to V2SImode.
12109 (v2sf_UP): Remap to V2SFmode.
12110 (v1df_UP): Remap to V1DFmode.
12111 (di_UP): Remap to DImode.
12112 (df_UP): Remap to DFmode.
12113 (v16qi_UP):V16QImode.
12114 (v8hi_UP): Remap to V8HImode.
12115 (v4si_UP): Remap to V4SImode.
12116 (v4sf_UP): Remap to V4SFmode.
12117 (v2di_UP): Remap to V2DImode.
12118 (v2df_UP): Remap to V2DFmode.
12119 (ti_UP): Remap to TImode.
12120 (ei_UP): Remap to EImode.
12121 (oi_UP): Remap to OImode.
12122 (ci_UP): Map to CImode.
12123 (xi_UP): Remap to XImode.
12124 (si_UP): Remap to SImode.
12125 (sf_UP): Remap to SFmode.
12126 (hi_UP): Remap to HImode.
12127 (qi_UP): Remap to QImode.
12128 (aarch64_simd_builtin_datum): Make mode a machine_mode.
12129 (VAR1): Build builtin name.
12130 (aarch64_init_simd_builtins): Remove dead code.
12131
12132 2014-08-05 Roman Gareev <gareevroman@gmail.com>
12133
12134 * graphite-isl-ast-to-gimple.c:
12135 (set_options): New function.
12136 (scop_to_isl_ast): Add calling of set_options.
12137
12138 2014-08-05 Jakub Jelinek <jakub@redhat.com>
12139
12140 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
12141 (analyze_iv_to_split_insn): Don't initialize them.
12142 (get_ivts_expr): Removed.
12143 (allocate_basic_variable, insert_base_initialization): Use
12144 SET_SRC instead of *get_ivts_expr.
12145 (split_iv): Use &SET_SRC instead of get_ivts_expr.
12146
12147 2014-08-05 Roman Gareev <gareevroman@gmail.com>
12148
12149 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
12150 (translate_isl_ast_for_loop): Add checking of the
12151 flag_loop_parallelize_all.
12152 (ast_build_before_for): New function.
12153 (scop_to_isl_ast): Add checking of the
12154 flag_loop_parallelize_all.
12155 * graphite-dependences.c: Move the defenition of the
12156 scop_get_dependences from graphite-optimize-isl.c to this file.
12157 (apply_schedule_on_deps): Add checking of the ux's emptiness.
12158 (carries_deps): Add checking of the x's value.
12159 * graphite-optimize-isl.c: Move the defenition of the
12160 scop_get_dependences to graphite-dependences.c.
12161 * graphite-poly.h: Add declarations of scop_get_dependences
12162 and carries_deps.
12163
12164 2014-08-04 Rohit <rohitarulraj@freescale.com>
12165
12166 PR target/60102
12167 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
12168 names.
12169 (alt_reg_names): Likewise.
12170 (rs6000_dwarf_register_span): For SPE high registers, replace
12171 dwarf register numbers with GCC hard register numbers.
12172 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
12173 (rs6000_dbx_register_number): For SPE high registers, return dwarf
12174 register number for the corresponding GCC hard register number.
12175 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
12176 newly added GCC hard register numbers for SPE high registers.
12177 (DWARF_FRAME_REGISTERS): Likewise.
12178 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
12179 (DWARF_FRAME_REGNUM): Likewise.
12180 (FIXED_REGISTERS): Likewise.
12181 (CALL_USED_REGISTERS): Likewise.
12182 (CALL_REALLY_USED_REGISTERS): Likewise.
12183 (REG_ALLOC_ORDER): Likewise.
12184 (enum reg_class): Likewise.
12185 (REG_CLASS_NAMES): Likewise.
12186 (REG_CLASS_CONTENTS): Likewise.
12187 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
12188
12189 2014-08-04 Richard Biener <rguenther@suse.de>
12190
12191 * gimple-fold.h (gimple_fold_builtin): Remove.
12192 * gimple-fold.c (gimple_fold_builtin): Make static.
12193 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
12194 fold_stmt, not gimple_fold_builtin.
12195
12196 2014-08-04 Martin Liska <mliska@suse.cz>
12197
12198 * cgraph.h (csi_end_p): Removed.
12199 (csi_next): Likewise.
12200 (csi_node): Likewise.
12201 (csi_start): Likewise.
12202 (cgraph_node_in_set_p): Likewise.
12203 (cgraph_node_set_size): Likewise.
12204 (vsi_end_p): Likewise.
12205 (vsi_next): Likewise.
12206 (vsi_node): Likewise.
12207 (vsi_start): Likewise.
12208 (varpool_node_set_size): Likewise.
12209 (cgraph_node_set_nonempty_p): Likewise.
12210 (varpool_node_set_nonempty_p): Likewise.
12211 * cgraphunit.c (cgraph_process_new_functions): vec replaces
12212 cgraph_node_set.
12213 * ipa-inline-transform.c: Likewise.
12214 * ipa-utils.c (cgraph_node_set_new): Removed.
12215 (cgraph_node_set_add): Likewise.
12216 (cgraph_node_set_remove): Likewise.
12217 (cgraph_node_set_find): Likewise.
12218 (dump_cgraph_node_set): Likewise.
12219 (debug_cgraph_node_set): Likewise.
12220 (free_cgraph_node_set): Likewise.
12221 (varpool_node_set_new): Likewise.
12222 (varpool_node_set_add): Likewise.
12223 (varpool_node_set_remove): Likewise.
12224 (varpool_node_set_find): Likewise.
12225 (dump_varpool_node_set): Likewise.
12226 (free_varpool_node_set): Likewise.
12227 (debug_varpool_node_set): Likewise.
12228 * tree-emutls.c (struct tls_var_data):
12229 (emutls_index): Removed.
12230 (emutls_decl): Likewise.
12231 (gen_emutls_addr): Function implementation uses newly added
12232 hash_map<varpool_node *, tls_var_data>.
12233 (clear_access_vars): Likewise.
12234 (create_emultls_var): Likewise.
12235 (ipa_lower_emutls): Likewise.
12236 (reset_access): New function.
12237
12238 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12239
12240 * config/i386/i386.c (ix86_option_override_internal): Add
12241 PTA_RDRND and PTA_MOVBE for bdver4.
12242
12243 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12244 James Greenhalgh <james.greenhalgh@arm.com>
12245
12246 * doc/md.texi (clrsb): Document.
12247 (clz): Change reference to x into operand 1.
12248 (ctz): Likewise.
12249 (popcount): Likewise.
12250
12251 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12252
12253 PR target/61713
12254 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
12255 move to subtarget in serial version if result is ignored.
12256
12257 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12258 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12259
12260 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
12261 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
12262 (sched_analyze_insn): Update use of try_group_insn to
12263 sched_macro_fuse_insns.
12264 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
12265 arguments that are not conditional jumps.
12266
12267 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12268
12269 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
12270 family information. Handle BTVER2 cpu with cpuid family value.
12271
12272 2014-08-04 Tom de Vries <tom@codesourcery.com>
12273
12274 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
12275 (glibc_2_11_or_earlier): Document effective-target keywords.
12276
12277 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
12278
12279 * ipa-devirt.c (odr_type_warn_count): Add type.
12280 (possible_polymorphic_call_targets): Set it.
12281 (ipa_devirt): Use it.
12282
12283 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
12284
12285 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
12286 Document.
12287 * ipa-devirt.c: Include hash-map.h
12288 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
12289 (clear_speculation): Break out of ...
12290 (get_class_context): ... here; speed up handling obviously useless
12291 speculations.
12292 (odr_type_warn_count, decl_warn_count): New structures.
12293 (final_warning_record): New structure.
12294 (final_warning_records): New static variable.
12295 (possible_polymorphic_call_targets): Cleanup handling of
12296 speculative info; do not build speculation when user do not care;
12297 record info about warnings when asked for.
12298 (add_decl_warning): New function.
12299 (type_warning_cmp): New function.
12300 (decl_warning_cmp): New function.
12301 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
12302 (gate): Enable pass when warnings are requested.
12303 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
12304 options.
12305
12306 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
12307
12308 * hash-map.h (default_hashmap_traits::mark_key_deleted):
12309 Fix cast.
12310 (hash_map::remove): New method.
12311 (hash_map::traverse): New method.
12312 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
12313 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
12314 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
12315 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
12316 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
12317 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
12318 pointer_map.
12319
12320 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
12321
12322 * hash-set.h: new File.
12323 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
12324 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
12325 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
12326 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
12327 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
12328 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
12329 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
12330 varpool.c: Use hash_set instead of pointer_set.
12331
12332 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
12333
12334 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
12335
12336 2014-08-01 Jiong Wang <jiong.wang@arm.com>
12337
12338 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
12339 for frame access when strict_p is false.
12340
12341 2014-08-01 Renlin Li <renlin.li@arm.com>
12342 2014-08-01 Jiong Wang <jiong.wang@arm.com>
12343
12344 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
12345 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
12346 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
12347 Declaration.
12348 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
12349 predicate.
12350 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
12351 aarch64_mem_pair_offset.
12352
12353 2014-08-01 Jiong Wang <jiong.wang@arm.com>
12354
12355 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
12356 offset.
12357 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
12358 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
12359
12360 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
12361
12362 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
12363
12364 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
12365
12366 PR regression/61510
12367 * cgraphunit.c (analyze_functions): Use get_create rather than get
12368 for decls which are clones of abstract functions.
12369
12370 2014-08-01 Martin Liska <mliska@suse.cz>
12371
12372 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
12373 * ipa-prop.h (count_formal_params): Global function created from static.
12374 * ipa-prop.c (count_formal_params): Likewise.
12375 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
12376 profiles for semantically equivalent functions.
12377 * passes.c (do_per_function): If we load body of a function
12378 during WPA, this condition should behave same.
12379 * varpool.c (ctor_for_folding): More tolerant assert for variable
12380 aliases created during WPA.
12381
12382 2014-08-01 Martin Liska <mliska@suse.cz>
12383
12384 * doc/invoke.texi (Options That Control Optimization): Documentation
12385 for -foptimize-strlen introduced. Optimization levels default options
12386 fixed.
12387
12388 2014-08-01 Jakub Jelinek <jakub@redhat.com>
12389
12390 * opts.c (common_handle_option): Handle -fsanitize=alignment.
12391 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
12392 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
12393 type to bool.
12394 * stor-layout.h (min_align_of_type): New prototype.
12395 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
12396 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
12397 check.
12398 * ubsan.c: Include builtins.h.
12399 (ubsan_expand_bounds_ifn): Change return type to bool,
12400 always return true.
12401 (ubsan_expand_null_ifn): Change return type to bool, change
12402 argument to gimple_stmt_iterator *. Handle both null and alignment
12403 sanitization, take type from ckind argument's type rather than
12404 first argument.
12405 (instrument_member_call): Removed.
12406 (instrument_mem_ref): Remove t argument, add mem and base arguments.
12407 Handle both null and alignment sanitization, don't say whole
12408 struct access is member access. Build 3 argument IFN_UBSAN_NULL
12409 call instead of 2 argument.
12410 (instrument_null): Adjust instrument_mem_ref caller. Don't
12411 instrument calls here.
12412 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
12413 like SANITIZE_NULL.
12414 * stor-layout.c (min_align_of_type): New function.
12415 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
12416 Or it into SANITIZE_UNDEFINED.
12417 * doc/invoke.texi (-fsanitize=alignment): Document.
12418
12419 2014-07-31 Andi Kleen <ak@linux.intel.com>
12420
12421 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
12422
12423 2014-07-31 Andi Kleen <ak@linux.intel.com>
12424
12425 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
12426 inchash.
12427 (vn_reference_compute_hash): Dito.
12428 (vn_nary_op_compute_hash): Dito.
12429 (vn_phi_compute_hash): Dito.
12430 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
12431
12432 2014-07-31 Andi Kleen <ak@linux.intel.com>
12433
12434 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
12435 Rename to inchash:add_expr_commutative. Convert to inchash.
12436 (iterative_hash_hashable_expr): Rename to
12437 inchash:add_hashable_expr. Convert to inchash.
12438 (avail_expr_hash): Dito.
12439
12440 2014-07-31 Andi Kleen <ak@linux.intel.com>
12441
12442 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
12443 Convert to inchash.
12444
12445 2014-07-31 Andi Kleen <ak@linux.intel.com>
12446
12447 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
12448
12449 2014-07-31 Andi Kleen <ak@linux.intel.com>
12450
12451 * Makefile.in (OBJS): Add rtlhash.o
12452 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12453 (loc_checksum): Dito.
12454 (loc_checksum_ordered): Dito.
12455 (hash_loc_operands): Dito.
12456 (hash_locs): Dito.
12457 (hash_loc_list): Dito.
12458 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12459 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12460 * rtlhash.c: New file.
12461 * rtlhash.h: New file.
12462
12463 2014-07-31 Andi Kleen <ak@linux.intel.com>
12464
12465 * inchash.h (inchash): Change inchash class to namespace.
12466 (class hash): ... Rename from inchash.
12467 (add_object): Move from macro to class template.
12468 * lto-streamer-out.c (hash_tree): Change inchash
12469 to inchash::hash.
12470 * tree.c (build_type_attribute_qual_variant): Dito.
12471 (type_hash_list): Dito.
12472 (attribute_hash_list): Dito.
12473 (iterative_hstate_expr): Rename to inchash::add_expr
12474 (build_range_type_1): Change inchash to inchash::hash
12475 and use hash::add_expr.
12476 (build_array_type_1): Dito.
12477 (build_function_type): Dito
12478 (build_method_type_directly): Dito.
12479 (build_offset_type): Dito.
12480 (build_complex_type): Dito.
12481 (make_vector_type): Dito.
12482 * tree.h (iterative_hash_expr): Dito.
12483
12484 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
12485
12486 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12487
12488 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12489
12490 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12491 correct alphabetical position.
12492 (vpaddd_f64): Rewrite using builtins.
12493 (vpaddd_s64): Move to correct alphabetical position.
12494 (vpaddd_u64): New.
12495
12496 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
12497
12498 PR target/61844
12499 * config/sh/sh.c (sh_legitimate_address_p,
12500 sh_legitimize_reload_address): Handle reg+reg address modes when
12501 ALLOW_INDEXED_ADDRESS is false.
12502 * config/sh/predicates.md (general_movsrc_operand,
12503 general_movdst_operand): Likewise.
12504
12505 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12506
12507 * config/aarch64/aarch64-builtins.c
12508 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12509 BYTES_BIG_ENDIAN.
12510
12511 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12512
12513 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12514 the generated mask based on BYTES_BIG_ENDIAN.
12515 (aarch64_simd_check_vect_par_cnst_half): New.
12516 * config/aarch64/aarch64-protos.h
12517 (aarch64_simd_check_vect_par_cnst_half): New.
12518 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12519 the check out to aarch64_simd_check_vect_par_cnst_half.
12520 (vect_par_cnst_lo_half): Likewise.
12521 * config/aarch64/aarch64-simd.md
12522 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12523 (move_hi_quad_<mode>): Always generate a low mask.
12524
12525 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12526
12527 * doc/invoke.texi (AVR Options): Add documentation about
12528 __AVR_DEVICE_NAME__ built-in macro.
12529
12530 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
12531
12532 PR target/61948
12533 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12534 constraints are satisfied.
12535 (<shift>di3_neon): Likewise.
12536
12537 2014-07-31 Richard Biener <rguenther@suse.de>
12538
12539 PR tree-optimization/61964
12540 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12541 by structural equality.
12542
12543 2014-07-31 Yury Gribov <y.gribov@samsung.com>
12544
12545 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12546 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12547 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12548 New enums.
12549 * gcc.c (sanitize_spec_function): Support new option.
12550 (SANITIZER_SPEC): Remove now redundant check.
12551 * opts.c (common_handle_option): Support new option.
12552 (finish_options): Check for incompatibilities.
12553 * toplev.c (process_options): Split userspace-specific checks.
12554
12555 2014-07-31 Richard Biener <rguenther@suse.de>
12556
12557 * lto-streamer.h (struct output_block): Remove global.
12558 (struct data_in): Remove labels, num_named_labels and
12559 num_unnamed_labels.
12560 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12561 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12562
12563 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
12564
12565 PR c++/60517
12566 * common.opt (-Wreturn-local-addr): Moved from c.opt.
12567 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12568 (isolate_path): New argument to avoid inserting a trap.
12569 (find_implicit_erroneous_behaviour): Handle returning the address
12570 of a local variable.
12571 (find_explicit_erroneous_behaviour): Likewise.
12572
12573 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
12574
12575 PR lto/61868
12576 * toplev.c (init_random_seed): Move piece of code never called to
12577 set_random_seed.
12578 (set_random_seed): see above.
12579
12580 2014-07-31 Tom de Vries <tom@codesourcery.com>
12581
12582 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12583
12584 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12585
12586 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12587 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12588
12589 2014-07-31 Richard Biener <rguenther@suse.de>
12590
12591 * data-streamer.h (streamer_write_data_stream): Declare here,
12592 renamed from ...
12593 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
12594 * lto-cgraph.c (lto_output_node): Adjust.
12595 (lto_output_varpool_node): Likewise.
12596 * data-streamer-out.c (streamer_string_index): Likewise.
12597 (streamer_write_data_stream, lto_append_block): Move from ...
12598 * lto-section-out.c (lto_output_data_stream,
12599 lto_append_block): ... here.
12600
12601 2014-07-30 Mike Stump <mikestump@comcast.net>
12602
12603 * configure.ac: Also check for popen.
12604 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12605 * configure: Regenerate.
12606 * config.in: Regenerate.
12607
12608 2014-07-30 Martin Jambor <mjambor@suse.cz>
12609
12610 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12611 parameter to gimple.
12612
12613 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12614
12615 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12616 address as second parameter to __tpf_eh_return routine.
12617
12618 2014-07-30 Jiong Wang <jiong.wang@arm.com>
12619
12620 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12621 Thumb2.
12622
12623 2014-07-30 Tom Tromey <tromey@redhat.com>
12624
12625 PR c/59855
12626 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12627 * doc/extend.texi (Type Attributes): Document designated_init
12628 attribute.
12629
12630 2014-07-30 Roman Gareev <gareevroman@gmail.com>
12631
12632 * graphite-isl-ast-to-gimple.c:
12633 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12634 (gcc_expression_from_isl_expression): Pass type to
12635 gcc_expression_from_isl_ast_expr_id.
12636
12637 2014-07-30 Richard Biener <rguenther@suse.de>
12638
12639 * lto-streamer.h (lto_write_data): New function.
12640 * langhooks.c (lhd_append_data): Do not free block.
12641 * lto-section-out.c (lto_write_data): New function writing
12642 raw data to the current section.
12643 (lto_write_stream): Adjust for langhook semantic change.
12644 (lto_destroy_simple_output_block): Write header directly.
12645 * lto-opts.c (lto_write_options): Write options directly.
12646 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12647 (lto_output_toplevel_asms): Likewise.
12648 (copy_function_or_variable): Copy data directly.
12649 (write_global_references): Output index table directly.
12650 (lto_output_decl_state_refs): Likewise.
12651 (write_symbol): Write data directly.
12652 (produce_symtab): Adjust.
12653 (produce_asm_for_decls): Output header and refs directly.
12654
12655 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12656
12657 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12658 to speculative_targets
12659 (get_class_context): Fix handling of contextes without outer type;
12660 avoid matching non-polymorphic types in LTO.
12661 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12662 parameter to speculative_targetsp; handle speculation.
12663 (dump_possible_polymorphic_call_targets): Update dumping.
12664
12665 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12666
12667 * common.opt (Wodr): Enable by default.
12668
12669 2014-07-29 Olivier Hainque <hainque@adacore.com>
12670
12671 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12672
12673 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12674
12675 PR bootstrap/61914
12676 * gengtype.c (strtoken): New function.
12677 (create_user_defined_type): Replace strtok with strtoken.
12678
12679 2014-07-29 Nathan Sidwell <nathan@acm.org>
12680
12681 * gcov-io.c (gcov_var): Make hidden.
12682 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12683 (gcov_do_dump): Declare.
12684 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12685
12686 2014-07-29 Martin Jambor <mjambor@suse.cz>
12687
12688 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12689 parameter to gimple.
12690 (sra_modify_assign): Likewise.
12691
12692 2014-07-29 Richard Biener <rguenther@suse.de>
12693
12694 PR middle-end/52478
12695 * expr.c (expand_expr_real_2): Revert last change.
12696
12697 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12698
12699 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12700 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12701 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12702 call.
12703 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12704 (contains_type_p): Forward declare.
12705 (polymorphic_call_target_hasher::hash): Hash speculative info.
12706 (polymorphic_call_target_hasher::equal): Compare speculative info.
12707 (get_class_context): Handle speuclation.
12708 (contains_type_p): Update.
12709 (get_polymorphic_call_info_for_decl): Update.
12710 (walk_ssa_copies): Break out from ...
12711 (get_polymorphic_call_info): ... here; set speculative context
12712 before giving up.
12713 * ipa-prop.c (ipa_write_indirect_edge_info,
12714 ipa_read_indirect_edge_info): Stream speculative context.
12715 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12716 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12717 SPECULATIVE_MAYBE_DERIVED_TYPE).
12718 (possible_polymorphic_call_targets overriders): Update.
12719 (dump_possible_polymorphic_call_targets overriders): Update.
12720 (dump_possible_polymorphic_call_target_p overriders): Update.
12721
12722 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12723
12724 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12725 ipa-devirt path; fix thinko there.
12726
12727 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12728
12729 * config/i386/i386.c (ix86_return_in_memory): Replace one
12730 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12731
12732 2014-07-28 Marek Polacek <polacek@redhat.com>
12733
12734 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12735
12736 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12737
12738 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12739 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12740 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12741 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12742 (USE_LD_AS_NEEDED): Likewise.
12743 (ASM_APP_ON): Likewise.
12744 (ASM_APP_OFF): Likewise.
12745 (TARGET_POSIX_IO): Likewise.
12746 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12747 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12748 (USE_LD_AS_NEEDED): Likewise.
12749 (ASM_APP_ON): Likewise.
12750 (ASM_APP_OFF): Likewise.
12751 (TARGET_POSIX_IO): Likewise.
12752
12753 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12754
12755 PR middle-end/61734
12756 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12757 operators other than the equality operators.
12758
12759 2014-07-28 Richard Biener <rguenther@suse.de>
12760
12761 PR middle-end/52478
12762 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12763 sure to register SImode ones, not only >= word_mode ones.
12764 * expr.c (expand_expr_real_2): When expanding -ftrapv
12765 binops do not use OPTAB_LIB_WIDEN.
12766
12767 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12768
12769 PR middle-end/61919
12770 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12771 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12772 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12773 inserting them in the insn stream.
12774
12775 2014-07-28 Marek Polacek <polacek@redhat.com>
12776
12777 PR middle-end/61913
12778 * common.opt (Wodr): Add Var.
12779
12780 2014-07-28 Richard Biener <rguenther@suse.de>
12781
12782 PR tree-optimization/61921
12783 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12784 if there is a varpool node before dereferencing it.
12785
12786 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12787
12788 * graphite-sese-to-poly.c:
12789 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12790 id of the pbb), which contains pointer to the pbb1.
12791
12792 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12793
12794 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12795
12796 * graphite-isl-ast-to-gimple.c:
12797 (graphite_create_new_guard): New function.
12798 (translate_isl_ast_node_if): New function.
12799 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12800
12801 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12802
12803 2014-07-27 Anthony Green <green@moxielogic.com>
12804
12805 * config.gcc: Add moxie-*-moxiebox* configuration.
12806 * config/moxie/moxiebox.h: New file.
12807
12808 2014-07-26 Andrew Pinski <apinski@cavium.com>
12809
12810 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12811 from the read only register.
12812
12813 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12814
12815 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12816 as the allocation class if it isn't likely to be spilled.
12817
12818 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12819
12820 * rtl.h (tls_referenced_p): Declare.
12821 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12822 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12823 (mips_cannot_force_const_mem): Use tls_referenced_p.
12824 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12825 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12826 instead of pa_tls_referenced_p.
12827 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12828 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12829 (pa_legitimate_constant_p): Likewise.
12830 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12831 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12832 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12833 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12834 rs6000_tls_referenced_p.
12835 (rs6000_tls_symbol_ref_1): Delete.
12836
12837 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12838
12839 PR target/44551
12840 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12841 Optimize inverse of a VEC_CONCAT.
12842
12843 2014-07-25 Xinliang David Li <davidxl@google.com>
12844
12845 * params.def: New parameter.
12846 * coverage.c (get_coverage_counts): Check new flag.
12847 (coverage_compute_profile_id): Check new flag.
12848 (coverage_begin_function): Check new flag.
12849 (coverage_end_function): Check new flag.
12850 * value-prof.c (coverage_node_map_initialized_p): New function.
12851 (init_node_map): Populate map with all functions.
12852 * doc/invoke.texi: Document new parameter.
12853
12854 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12855 Richard Biener <rguenther@suse.de>
12856
12857 * lto-streamer-out.c (struct sccs): Turn to ...
12858 (class DFS): ... this one; refactor the DFS walk so it can
12859 be re-done on per-SCC basis.
12860 (DFS::DFS): New constructor.
12861 (DFS::~DFS): New destructor.
12862 (hash_tree): Add new MAP argument holding in-SCC hash values;
12863 remove POINTER_TYPE hashing hack.
12864 (scc_entry_compare): Rename to ...
12865 (DFS::scc_entry_compare): ... this one.
12866 (hash_scc): Rename to ...
12867 (DFS::hash_scc): ... this one; pass output_block instead
12868 of streamer_cache; work harder to get unique and stable SCC
12869 hashes.
12870 (DFS_write_tree): Rename to ...
12871 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12872 (lto_output_tree): Update.
12873
12874 2014-07-25 Andi Kleen <ak@linux.intel.com>
12875
12876 * lto-streamer-out.c (hash_tree): Convert to inchash.
12877
12878 2014-07-25 Andi Kleen <ak@linux.intel.com>
12879
12880 * tree.c (build_type_attribute_qual_variant): Use inchash.
12881 (type_hash_list): Dito.
12882 (attribute_hash_list): Dito
12883 (iterative_hstate_expr): Dito.
12884 (iterative_hash_expr): Dito.
12885 (build_range_type_1): Dito.
12886 (build_array_type_1): Dito.
12887 (build_function_type): Dito.
12888 (build_method_type_directly): Dito.
12889 (build_offset_type): Dito.
12890 (build_complex_type): Dito.
12891 (make_vector_type): Dito.
12892 * tree.h (iterative_hash_expr): Add compat wrapper.
12893 (iterative_hstate_expr): Add.
12894
12895 2014-07-25 Andi Kleen <ak@linux.intel.com>
12896
12897 * Makefile.in (OBJS): Add inchash.o.
12898 (PLUGIN_HEADERS): Add inchash.h.
12899 * ipa-devirt.c: Include inchash.h.
12900 * lto-streamer-out.c: Dito.
12901 * tree-ssa-dom.c: Dito.
12902 * tree-ssa-pre.c: Dito.
12903 * tree-ssa-sccvn.c: Dito.
12904 * tree-ssa-tail-merge.c: Dito.
12905 * asan.c: Dito.
12906 * tree.c (iterative_hash_hashval_t): Move to ...
12907 (iterative_hash_host_wide_int): Move to ...
12908 * inchash.c: Here. New file.
12909 * tree.h (iterative_hash_hashval_t): Move to ...
12910 (iterative_hash_host_wide_int): Move to ...
12911 * inchash.h: Here. New file.
12912
12913 2014-07-25 Richard Biener <rguenther@suse.de>
12914
12915 PR middle-end/61762
12916 PR middle-end/61894
12917 * fold-const.c (native_encode_int): Add and handle offset
12918 parameter to do partial encodings of expr.
12919 (native_encode_fixed): Likewise.
12920 (native_encode_real): Likewise.
12921 (native_encode_complex): Likewise.
12922 (native_encode_vector): Likewise.
12923 (native_encode_string): Likewise.
12924 (native_encode_expr): Likewise.
12925 * fold-const.c (native_encode_expr): Add offset parameter
12926 defaulting to -1.
12927 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12928 (fold_ctor_reference): Handle all reads from tcc_constant
12929 ctors.
12930
12931 2014-07-25 Richard Biener <rguenther@suse.de>
12932
12933 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12934 as possibly unused.
12935
12936 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12937
12938 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12939
12940 2014-07-24 Kyle McMartin <kyle@redhat.com>
12941
12942 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12943
12944 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12945
12946 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12947 Add prototype.
12948 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12949 function.
12950 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12951 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12952 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12953
12954 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12955
12956 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12957 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12958 aggregate types. Instead, *all* aggregate types, except for single-
12959 element or homogeneous float/vector aggregates, are quadword-aligned
12960 if required by their type alignment. Issue -Wpsabi note when a type
12961 is now treated differently than before.
12962
12963 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12964
12965 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12966 does not fit fully into floating-point registers, and there is still
12967 space in the register parameter area, use GPRs to pass those parts
12968 of the argument. Issue -Wpsabi note if any parameter is now treated
12969 differently than before.
12970 (rs6000_arg_partial_bytes): Update.
12971
12972 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12973
12974 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12975
12976 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12977
12978 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12979 * toplev.c (initialize_rtl): Don't use it. Move previously
12980 "language-dependent" calls to...
12981 (backend_init): ...here.
12982 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12983 Assert that RTL initialization hasn't happend yet.
12984
12985 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12986
12987 PR rtl-optimization/61629
12988 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12989 they have already been initialized.
12990
12991 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12992
12993 PR middle-end/61268
12994 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12995 DECL_INCOMING_RTL and entry_parm.
12996 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12997 * calls.c (load_register_parameters): Likewise argument values.
12998 (emit_library_call_value_1, store_one_arg): Likewise argument
12999 save areas.
13000 * config/i386/i386.c (assign_386_stack_local): Likewise the local
13001 stack slot.
13002 * explow.c (validize_mem): Modify the argument in-place.
13003
13004 2014-07-24 Jiong Wang <jiong.wang@arm.com>
13005
13006 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
13007 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
13008
13009 2014-07-24 Jiong Wang <jiong.wang@arm.com>
13010
13011 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
13012 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
13013
13014 2014-07-24 Jiong Wang <jiong.wang@arm.com>
13015
13016 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
13017 (aarch64_save_callee_saves): New parameter "skip_wb".
13018 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
13019
13020 2014-07-24 Jiong Wang <jiong.wang@arm.com>
13021
13022 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
13023 "wb_candidate2".
13024 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
13025
13026 2014-07-24 Roman Gareev <gareevroman@gmail.com>
13027
13028 * graphite-isl-ast-to-gimple.c:
13029 (graphite_create_new_loop): Add calling of isl_id_free to properly
13030 decrement reference counts.
13031
13032 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
13033
13034 2014-07-24 Martin Liska <mliska@suse.cz>
13035 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
13036 function used.
13037 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
13038 (rs6000_code_end): Likewise.
13039
13040 2014-07-24 Martin Liska <mliska@suse.cz>
13041
13042 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
13043 symtab_node funtion used.
13044 (rs6000_xcoff_declare_object_name): Likewise.
13045
13046 2014-07-24 Martin Liska <mliska@suse.cz>
13047
13048 * cgraphunit.c (compile): Correct function used.
13049
13050 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
13051
13052 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
13053 as non-indexable.
13054
13055 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
13056
13057 PR lto/61802
13058 * varasm.c (bss_initializer_p): Handle offlined ctors.
13059 (align_variable, get_variable_align): Likewise.
13060 (make_decl_one_only): Likewise.
13061 (default_binds_local_p_1): Likewise.
13062 (decl_binds_to_current_def_p): Likewise.
13063 (get_variable_section): Get constructor if it is offlined.
13064 (assemble_variable_contents): Sanity check that the caller
13065 streamed in the ctor in LTO.
13066
13067 2014-07-24 Roman Gareev <gareevroman@gmail.com>
13068
13069 * graphite-isl-ast-to-gimple.c:
13070 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
13071 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
13072 isl_ast_op_pdiv_r to the different case.
13073
13074 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
13075
13076 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13077
13078 PR middle-end/61876
13079 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
13080 when flag_errno_math is on.
13081
13082 2014-07-24 Martin Liska <mliska@suse.cz>
13083
13084 * cgraph.h (varpool_node):
13085 (availability get_availability (void)):
13086 created from cgraph_variable_initializer_availability
13087 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
13088 created from: cgraph_variable_initializer_availability
13089 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
13090 (void finalize_named_section_flags (void)):
13091 created from varpool_finalize_named_section_flags
13092 (bool assemble_decl (void)): created from varpool_assemble_decl
13093 (void analyze (void)): created from varpool_analyze_node
13094 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
13095 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
13096 (void remove_initializer (void)): created from varpool_remove_initializer
13097 (tree get_constructor (void)): created from varpool_get_constructor
13098 (bool externally_visible_p (void)): created from varpool_externally_visible_p
13099 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
13100 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
13101 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
13102 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
13103 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
13104 (static bool output_variables (void)): created from varpool_output_variables
13105 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
13106 created from varpool_extra_name_alias
13107 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
13108 (static void dump_varpool (FILE *f)): created from dump_varpool
13109 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
13110 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
13111 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
13112 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
13113 (void assemble_aliases (void)): created from assemble_aliases
13114
13115 2014-07-24 Martin Liska <mliska@suse.cz>
13116
13117 * cgraph.h (symtab_node):
13118 (void register_symbol (void)): created from symtab_register_node
13119 (void remove (void)): created from symtab_remove_node
13120 (void dump (FILE *f)): created from dump_symtab_node
13121 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
13122 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
13123 (struct ipa_ref *add_reference (symtab_node *referred_node,
13124 enum ipa_ref_use use_type)): created from add_reference
13125 (struct ipa_ref *add_reference (symtab_node *referred_node,
13126 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
13127 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
13128 gimple stmt)): created from maybe_add_reference
13129 (bool semantically_equivalent_p (symtab_node *target)): created from
13130 symtab_semantically_equivalent_p
13131 (void remove_from_same_comdat_group (void)): created from
13132 remove_from_same_comdat_group
13133 (void add_to_same_comdat_group (symtab_node *old_node)): created from
13134 symtab_add_to_same_comdat_group
13135 (void dissolve_same_comdat_group_list (void)): created from
13136 symtab_dissolve_same_comdat_group_list
13137 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
13138 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
13139 created from symtab_alias_ultimate_target
13140 (inline symtab_node *next_defined_symbol (void)): created from
13141 symtab_next_defined_symbol
13142 (bool resolve_alias (symtab_node *target)): created from
13143 symtab_resolve_alias
13144 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
13145 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
13146 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
13147 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
13148 (void set_section (const char *section)): created from set_section_1
13149 (enum availability get_availability (void)): created from symtab_node_availability
13150 (void make_decl_local (void)): created from symtab_make_decl_local
13151 (bool real_symbol_p (void)): created from symtab_read_node
13152 (can_be_discarded_p (void)): created from symtab_can_be_discarded
13153 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
13154 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
13155 symtab_in_same_comdat_p;
13156 (bool address_taken_from_non_vtable_p (void)): created from
13157 address_taken_from_non_vtable_p
13158 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
13159 (static void dump_table (FILE *)): created from dump_symtab
13160 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
13161 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
13162 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
13163 symtab_used_from_object_file_p
13164 (void dump_base (FILE *)): created from dump_symtab_base
13165 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
13166 (void unregister (void)): created from symtab_unregister_node
13167 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
13168 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
13169 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
13170 symtab_nonoverwritable_alias_1
13171 * cgraph.h (cgraph_node):
13172 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
13173 created from cgraph_remove_node_and_inline_clones
13174 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
13175 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
13176 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
13177 (cgraph_node *function_symbol (enum availability *avail = NULL)):
13178 created from cgraph_function_node
13179 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
13180 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
13181 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
13182 created from cgraph_create_clone
13183 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
13184 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
13185 created from cgraph_create_virtual_clone
13186 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
13187 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
13188 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
13189 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
13190 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
13191 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
13192 created from cgraph_function_version_info
13193 (struct cgraph_function_version_info *insert_new_function_version (void)):
13194 created from insert_new_cgraph_node_version
13195 (struct cgraph_function_version_info *function_version (void)): created from
13196 get_cgraph_node_version
13197 (void analyze (void)): created from analyze_function
13198 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
13199 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
13200 tree real_alias) cgraph_add_thunk
13201 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
13202 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
13203 created from cgraph_function_or_thunk_node
13204 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
13205 created from expand_thunk
13206 (void reset (void)): created from cgraph_reset_node
13207 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
13208 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
13209 (void remove (void)): created from cgraph_remove_node
13210 (void dump (FILE *f)): created from dump_cgraph_node
13211 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
13212 (bool get_body (void)): created from cgraph_get_body
13213 (void release_body (void)): created from cgraph_release_function_body
13214 (void unnest (void)): created from cgraph_unnest_node
13215 (void make_local (void)): created from cgraph_make_node_local
13216 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
13217 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
13218 gcov_type count, int freq)): created from cgraph_create_edge
13219 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
13220 gcov_type count, int freq)): created from cgraph_create_indirect_edge
13221 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
13222 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
13223 created from cgraph_create_edge_including_clones
13224 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
13225 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
13226 (void remove_callers (void)): created from cgraph_node_remove_callers
13227 (void remove_callees (void)): created from cgraph_node_remove_callees
13228 (enum availability get_availability (void)): created from cgraph_function_body_availability
13229 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
13230 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
13231 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
13232 (void call_duplication_hooks (cgraph_node *node2)): created from
13233 cgraph_call_node_duplication_hooks
13234 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
13235 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
13236 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
13237 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
13238 (void call_function_insertion_hooks (void)):
13239 created from cgraph_call_function_insertion_hooks
13240 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
13241 (bool local_p (void)): created from cgraph_local_node
13242 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
13243 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
13244 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
13245 (inline bool only_called_directly_or_aliased_p (void)):
13246 created from cgraph_only_called_directly_or_aliased_p
13247 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
13248 created from cgraph_will_be_removed_from_program_if_no_direct_calls
13249 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
13250 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
13251 (bool can_remove_if_no_direct_calls_p (void)):
13252 created from cgraph_can_remove_if_no_direct_calls_p
13253 (inline bool has_gimple_body_p (void)):
13254 created from cgraph_function_with_gimple_body_p
13255 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
13256 (static void dump_cgraph (FILE *f)): created from dump_cgraph
13257 (static inline void debug_cgraph (void)): created from debug_cgraph
13258 (static void record_function_versions (tree decl1, tree decl2)):
13259 created from record_function_versions
13260 (static void delete_function_version (tree decl)):
13261 created from delete_function_version
13262 (static void add_new_function (tree fndecl, bool lowered)):
13263 created from cgraph_add_new_function
13264 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
13265 (static cgraph_node * create (tree decl)): created from cgraph_create_node
13266 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
13267 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
13268 (static cgraph_node *get_for_asmname (tree asmname)):
13269 created from cgraph_node_for_asm
13270 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
13271 created from cgraph_same_body_alias
13272 (static bool used_from_object_file_p_worker (cgraph_node *node,
13273 void *): new function
13274 (static bool non_local_p (cgraph_node *node, void *)):
13275 created from cgraph_non_local_node_p_1
13276 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
13277 created from verify_cgraph
13278 (static bool make_local (cgraph_node *node, void *)):
13279 created from cgraph_make_node_local
13280 (static cgraph_node *create_alias (tree alias, tree target)):
13281 created from cgraph_create_function_alias
13282 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
13283 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
13284 created from cgraph_create_edge_1
13285 * cgraph.h (varpool_node):
13286 (void remove (void)): created from varpool_remove_node
13287 (void dump (FILE *f)): created from dump_varpool_node
13288
13289 2014-07-24 Richard Biener <rguenther@suse.de>
13290
13291 PR ipa/61823
13292 * tree-ssa-structalias.c (create_variable_info_for_1):
13293 Use varpool_get_constructor.
13294 (create_variable_info_for): Likewise.
13295
13296 2014-07-24 Jiong Wang <jiong.wang@arm.com>
13297
13298 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
13299 subtract outgoing area size when restoring stack_pointer_rtx.
13300
13301 2014-07-24 Nick Clifton <nickc@redhat.com>
13302
13303 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
13304 that operations are taking place in parallel.
13305 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
13306
13307 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
13308
13309 * omp-low.c (extract_omp_for_data): Add missing break statement.
13310
13311 2014-07-24 Richard Biener <rguenther@suse.de>
13312
13313 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
13314 * tree-inline.c (estimate_move_cost): Add speed_p parameter
13315 and adjust MOVE_RATIO query accordingly.
13316 (estimate_num_insns): Adjust callers.
13317 * ipa-prop.c (ipa_populate_param_decls): Likewise.
13318 * ipa-cp.c (gather_context_independent_values,
13319 estimate_local_effects): Likewise.
13320 * ipa-split.c (consider_split): Likewise.
13321
13322 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
13323
13324 * config/i386/driver-i386.c: Remove names of unused arguments and
13325 unnecessary unused attributes.
13326 * config/i386/host-mingw32.c: Likewise.
13327 * config/i386/i386.c: Likewise.
13328 * config/i386/winnt-stubs.c: Likewise.
13329 * config/i386/winnt.c: Likewise.
13330
13331 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13332
13333 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
13334 (aarch64_gen_loadwb_pair): New helper function.
13335 (aarch64_expand_epilogue): Simplify code using new helper functions.
13336 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
13337
13338 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13339
13340 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
13341 (aarch64_gen_storewb_pair): New helper function.
13342 (aarch64_expand_prologue): Simplify code using new helper functions.
13343 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
13344
13345 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13346
13347 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
13348 Rename to aarch64_save_callee_saves, remove restore code.
13349 (aarch64_restore_callee_saves): New function.
13350
13351 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13352
13353 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
13354 (aarch64_save_callee_saves): New function to handle reg save
13355 for both core and vectore regs.
13356
13357 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13358
13359 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
13360 (aarch64_gen_store_pair): New helper function.
13361 (aarch64_save_or_restore_callee_save_registers)
13362 (aarch64_save_or_restore_fprs): Use new helper functions.
13363
13364 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13365
13366 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
13367 (aarch64_save_or_restore_callee_save_registers)
13368 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
13369
13370 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13371
13372 * config/aarch64/aarch64.c
13373 (aarch64_save_or_restore_callee_save_registers)
13374 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
13375
13376 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13377
13378 * config/aarch64/aarch64.c
13379 (aarch64_save_or_restore_callee_save_registers)
13380 (aarch64_save_or_restore_fprs): Remove 'increment'.
13381
13382 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13383
13384 * config/aarch64/aarch64.c
13385 (aarch64_save_or_restore_callee_save_registers)
13386 (aarch64_save_or_restore_fprs): Use register offset in
13387 cfun->machine->frame.reg_offset.
13388
13389 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13390
13391 * config/aarch64/aarch64.c
13392 (aarch64_save_or_restore_callee_save_registers)
13393 (aarch64_save_or_restore_fprs): Remove base_rtx.
13394
13395 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13396
13397 * config/aarch64/aarch64.c
13398 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
13399 to 'start_offset'. Remove local variable 'start_offset'.
13400
13401 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13402
13403 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
13404 type to HOST_WIDE_INT.
13405
13406 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13407
13408 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13409 (aarch64_save_or_restore_fprs)
13410 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
13411
13412 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
13413
13414 * config/arm/t-rtems-eabi: Add
13415 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
13416 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
13417 mbig-endian/mthumb/march=armv7-r, and
13418 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
13419 multilibs.
13420
13421 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
13422 Chris Johns <chrisj@rtems.org>
13423 Joel Sherrill <joel.sherrill@oarcorp.com>
13424
13425 * config.gcc: Add nios2-*-rtems*.
13426 * config/nios2/rtems.h: New file.
13427 * gcc/config/nios2/t-rtems: New file.
13428
13429 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13430
13431 PR target/61396
13432 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
13433 constant numbers, not general constants.
13434 (rs6000_expand_vector_init): Ditto.
13435
13436 2014-07-23 Nathan Sidwell <nathan@acm.org>
13437
13438 * gcov-tool.c (gcov_list): Declare here.
13439 (set_gcov_list): Remove.
13440 (gcov_output_files): Set gcov_list directly.
13441
13442 2014-07-23 Host Schirmeier <horst@schirmeier.com>
13443
13444 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
13445
13446 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13447
13448 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
13449 callee-saved registers are available for padding purpose
13450 and r3 is not mandatory, then prefer use those callee-saved
13451 instead of r3.
13452
13453 2014-07-23 Richard Biener <rguenther@suse.de>
13454
13455 * params.def (PARAM_MAX_COMBINE_INSNS): New.
13456 * combine.c: Include statistics.h and params.h.
13457 (combine_instructions): Guard three and four insn combines
13458 with max-combine-insns value. Record statistics for combines
13459 performed.
13460 * doc/invoke.texi (max-combine-insns): Document new param.
13461
13462 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13463
13464 * graphite-isl-ast-to-gimple.c:
13465 (translate_isl_ast_node_block): New function.
13466 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13467
13468 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13469 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13470
13471 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13472
13473 * graphite-isl-ast-to-gimple.c:
13474 (get_max_schedule_dimensions): New function.
13475 (extend_schedule): Likewise.
13476 (generate_isl_schedule): Add calling of extend_schedule and
13477 get_max_schedule_dimensions.
13478
13479 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13480
13481 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13482 (case UNSPEC): Handle UNSPEC_RBIT.
13483
13484 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13485
13486 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13487 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13488
13489 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13490
13491 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13492
13493 2014-07-22 Roman Gareev <gareevroman@gmail.com>
13494
13495 * graphite-isl-ast-to-gimple.c:
13496 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13497 (ivs_params_clear):
13498 (build_iv_mapping): New function.
13499 (translate_isl_ast_node_user): Likewise.
13500 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13501
13502 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13503 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13504 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13505
13506 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13507
13508 PR target/55701
13509 * config/arm/arm.md (setmem): New pattern.
13510 * config/arm/arm-protos.h (struct tune_params): New fields.
13511 (arm_gen_setmem): New prototype.
13512 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13513 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13514 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13515 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13516 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13517 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13518 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13519 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13520 (arm_const_inline_cost): New function.
13521 (arm_block_set_max_insns): New function.
13522 (arm_block_set_non_vect_profit_p): New function.
13523 (arm_block_set_vect_profit_p): New function.
13524 (arm_block_set_unaligned_vect): New function.
13525 (arm_block_set_aligned_vect): New function.
13526 (arm_block_set_unaligned_non_vect): New function.
13527 (arm_block_set_aligned_non_vect): New function.
13528 (arm_block_set_vect, arm_gen_setmem): New functions.
13529
13530 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13531
13532 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13533
13534 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
13535
13536 PR target/61855
13537 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13538 out of #ifdef __OPTIMIZE__.
13539
13540 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13541
13542 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13543 different trapping status if -fnon-call-exceptions is enabled.
13544
13545 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13546
13547 * expr.c (store_field): Handle VOIDmode for calls that return values
13548 in multiple locations.
13549
13550 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13551
13552 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
13553 (altivec_vsldoi_<mode>): Likewise.
13554
13555 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13556
13557 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13558 to the number of characters in the line.
13559
13560 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13561
13562 * graphite-isl-ast-to-gimple.c: Add using of
13563 build_nonstandard_integer_type instead of int128_integer_type_node.
13564
13565 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
13566
13567 * toplev.c (output_stack_usage): Adjust the location of the warning.
13568
13569 2014-07-19 Daniel Cederman <cederman@gaisler.com>
13570
13571 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13572 (*membar_storeload): Disable for LEON3.
13573
13574 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13575
13576 PR rtl-optimization/61461
13577 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13578
13579 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
13580
13581 PR target/61794
13582 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13583 Fix instruction constraint.
13584 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13585
13586 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
13587
13588 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13589
13590 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
13591
13592 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13593 GNU coding standards.
13594 (nds32_register_move_cost): Likewise.
13595 (nds32_memory_move_cost): Likewise.
13596 (nds32_address_cost): Likewise.
13597
13598 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13599
13600 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13601
13602 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
13603
13604 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13605 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13606 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13607 (HAVE_sync_compare_and_swapqi): Define.
13608 (HAVE_sync_compare_and_swaphi): Likewise.
13609 (HAVE_sync_compare_and_swapsi): Likewise.
13610
13611 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
13612
13613 * config/mips/p5600.md: Add missing cpu tests.
13614
13615 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13616
13617 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13618 (vmla_f64): Likewise.
13619 (vfms_f64): Likewise.
13620 (vmls_f64): Likewise.
13621
13622 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13623
13624 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13625 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13626
13627 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13628
13629 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13630 (vmlal_high_lane_s32): Likewise.
13631 (vmlal_high_lane_u16): Likewise.
13632 (vmlal_high_lane_u32): Likewise.
13633 (vmlsl_high_lane_s16): Likewise.
13634 (vmlsl_high_lane_s32): Likewise.
13635 (vmlsl_high_lane_u16): Likewise.
13636 (vmlsl_high_lane_u32): Likewise.
13637
13638 2014-07-17 Terry Guo <terry.guo@arm.com>
13639
13640 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13641 (alus_reg): Renamed to alus_sreg.
13642 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13643 from alu_reg to alu_sreg. Change type of dsp instructions from
13644 alu_reg to alu_dsp_reg.
13645 * config/arm/thumb1.md: Likewise.
13646 * config/arm/thumb2.md: Likewise.
13647 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13648 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13649 with alu_sreg and alus_sreg.
13650 * config/arm/arm1026ejs.md (alu_op): Likewise.
13651 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13652 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13653 * config/arm/fa526.md (526_alu_op): Likewise.
13654 * config/arm/fa606te.md (606te_alu_op): Likewise.
13655 * config/arm/fa626te.md (626te_alu_op): Likewise.
13656 * config/arm/fa726te.md (726te_alu_op): Likewise.
13657 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13658 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13659 alu_sreg, alu_dsp_reg and alus_sreg.
13660 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13661 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13662 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13663 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13664 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13665 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13666 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13667 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13668 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13669 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13670 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13671 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13672 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13673 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13674 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13675 alus_reg to alus_sreg.
13676
13677 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13678
13679 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13680 infinity format.
13681
13682 2014-07-17 Richard Biener <rguenther@suse.de>
13683
13684 PR rtl-optimization/61801
13685 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13686 don't set reg_pending_barrier if it appears in a debug-insn.
13687
13688 2014-07-16 DJ Delorie <dj@redhat.com>
13689
13690 * config/rx/rx.c (rx_option_override): Fix alignment values.
13691 (rx_align_for_label): Likewise.
13692
13693 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13694
13695 PR target/61737.
13696 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13697 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13698 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13699 functions.
13700 (cris_print_index, cris_print_operand, cris_constant_index_p)
13701 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13702 (cris_address_cost): Ditto last CONSTANT_P.
13703 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13704 callers changed. Yield cris_offsettable_symbol for non-PIC
13705 constant symbolic expressions including labels. Yield cris_unspec
13706 for all unspecs.
13707 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13708 target to pic_offset_table_rtx for calls that will likely go
13709 through PLT, const0_rtx when they can't. All callers changed.
13710 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13711 symbolic expressions to be PICified. Remove second, redundant,
13712 assert on can_create_pseudo_p returning non-zero. Use
13713 replace_equiv_address_nv, not replace_equiv_address, for final
13714 operand update.
13715 * config/cris/cris.md ("movsi"): Move variable t to pattern
13716 toplevel. Adjust assert for new cris_symbol_type member. Use
13717 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13718 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13719 for lapc stricter.
13720 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13721 ("call", "call_value"): Use second incoming operand as a marker
13722 for pic-offset-table-register being used.
13723 ("*expanded_call_non_v32", "*expanded_call_v32")
13724 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13725 second incoming operand to CALL, match cris_call_type_marker.
13726 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13727 ("*expanded_call_side"): Ditto. Fix typo in comment.
13728 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13729 CONSTANT_P.
13730 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13731 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13732 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13733 users changed. Add members cris_offsettable_symbol and cris_unspec.
13734 (cris_symbol_type): Rename from cris_pic_symbol_type.
13735 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13736 just CONSTANT_P.
13737 * config/cris/cris-protos.h (cris_symbol_type_of,
13738 cris_expand_pic_call_address): Adjust prototypes.
13739 (cris_legitimate_constant_p): New prototype.
13740
13741 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13742 an existing tmake_file. Don't add t-slibgcc and t-linux.
13743
13744 2014-07-17 Jason Merrill <jason@redhat.com>
13745
13746 PR c++/61623
13747 * symtab.c (symtab_remove_from_same_comdat_group): Also
13748 set_comdat_group to NULL_TREE.
13749 (verify_symtab): Fix diagnostic.
13750
13751 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13752
13753 PR target/61662
13754 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13755
13756 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13757
13758 Support location tracking for built-in macro tokens
13759 * input.h (is_location_from_builtin_token): New function declaration.
13760 * input.c (is_location_from_builtin_token): New function definition.
13761 * toplev.c (general_init): Tell libcpp what the pre-defined
13762 spelling location for built-in tokens is.
13763
13764 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13765
13766 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13767 on the FUNCTION_DECL.
13768
13769 2014-07-16 Richard Biener <rguenther@suse.de>
13770
13771 PR other/61782
13772 * doc/extend.texi (always_inline): Clarify.
13773
13774 2014-07-15 Eric Christopher <echristo@gmail.com>
13775
13776 * doc/invoke.texi (Link Options): Document -z option.
13777
13778 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13779
13780 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13781 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13782
13783 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13784
13785 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13786
13787 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13788
13789 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13790 varpool_assemble_decl.
13791 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13792 true.
13793
13794 2014-07-15 Michael Matz <matz@suse.de>
13795
13796 PR rtl-optimization/61772
13797 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13798
13799 2014-07-15 Richard Biener <rguenther@suse.de>
13800
13801 * opts.c (default_options_table): Disable bit-ccp at -Og.
13802
13803 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13804
13805 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13806
13807 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13808
13809 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13810 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13811 call langhook for unknown declaration.
13812 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13813 * tree.h (DECL_ARGUMENTS): Update.
13814 * print-tree.c (print_node): Update.
13815 * tree-core.h (tree_decl_non_common): Remove arguments.
13816 (tree_function_decl): Add arguments.
13817
13818 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13819
13820 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13821
13822 2014-07-14 Richard Biener <rguenther@suse.de>
13823
13824 PR tree-optimization/61779
13825 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13826 simplifying a condition.
13827
13828 2014-07-14 Richard Biener <rguenther@suse.de>
13829
13830 * builtins.c (c_strlen): Make only_value == 2 really only
13831 affect warning generation.
13832
13833 2014-07-14 Richard Biener <rguenther@suse.de>
13834
13835 PR tree-optimization/61757
13836 PR tree-optimization/61783
13837 PR tree-optimization/61787
13838 * tree-ssa-dom.c (record_equality): Revert canonicalization
13839 change and add comment.
13840 (propagate_rhs_into_lhs): Revert previous fix, removing
13841 loop depth restriction again.
13842
13843 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13844
13845 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13846 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13847 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13848 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13849 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13850 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13851 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13852
13853 2014-07-14 Richard Biener <rguenther@suse.de>
13854
13855 * cgraph.h (decl_in_symtab_p): Make inline.
13856
13857 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13858
13859 PR middle-end/61294
13860 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13861
13862 PR target/61656
13863 * config/i386/i386.c (classify_argument): Don't merge classes above
13864 number of words.
13865
13866 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13867
13868 * cgraph.h (symtab_node): Add nonzero_address.
13869 (decl_in_symtab_p): Break out from ...
13870 (symtab_get_node): ... here.
13871 * fold-const.c: Include cgraph.h
13872 (tree_single_nonzero_warnv_p): Use symtab to determine
13873 if symbol is non-zero.
13874 * symtab.c (symtab_node::nonzero_address): New method.
13875
13876 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13877
13878 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13879 forgotten in previous commit.
13880
13881 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13882
13883 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13884 on builtin types.
13885 * ipa-devirt.c: Include stor-layout.h and intl.h
13886 (odr_subtypes_equivalent_p): New function.
13887 (warn_odr): New function.
13888 (warn_type_mismatch): New function.
13889 (odr_types_equivalent_p): New function.
13890 (add_type_duplicate): Use it.
13891 * common.opt (Wodr): New flag.
13892 * doc/invoke.texi (Wodr): Document new warning.
13893
13894 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13895
13896 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13897 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13898 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13899 (varpool_get_constructor): Push CTORS_IN timevar.
13900 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13901
13902 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13903
13904 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13905 Remove VOID_FTYPE_PUSHORT.
13906 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13907 Change code to USHORT_FTYPE_VOID.
13908 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13909 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13910 (ix86_atomic_assign_expand_fenv): Update for
13911 __builtin_ia32_fnstsw changes.
13912 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13913 (fnstsw): Change operand 0 to nonimmediate operand.
13914
13915 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13916
13917 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13918 (varpool_get_constructor): New function.
13919 (varpool_ctor_useable_for_folding_p): Break out from ...
13920 (ctor_for_folding): ... here; use varpool_get_constructor.
13921 (varpool_assemble_decl): Likewise.
13922 * lto-streamer.h (struct output_block): Turn cgraph_node
13923 to symbol filed.
13924 (lto_input_variable_constructor): Declare.
13925 * ipa-visibility.c (function_and_variable_visibility): Use
13926 varpool_get_constructor.
13927 * cgraph.h (varpool_get_constructor): Declare.
13928 (varpool_ctor_useable_for_folding_p): New function.
13929 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13930 parameter; return error_mark_node for non-trivial constructors.
13931 (lto_write_tree_1, DFS_write_tree): Update use of
13932 get_symbol_initial_value.
13933 (output_function): Update initialization of symbol.
13934 (output_constructor): New function.
13935 (copy_function): Rename to ..
13936 (copy_function_or_variable): ... this one; handle vars too.
13937 (lto_output): Output variable sections.
13938 * lto-streamer-in.c (input_constructor): New function.
13939 (lto_read_body): Rename from ...
13940 (lto_read_body_or_constructor): ... this one; handle vars too.
13941 (lto_input_variable_constructor): New function.
13942 * ipa-prop.c (ipa_prop_write_jump_functions,
13943 ipa_prop_write_all_agg_replacement): Update.
13944 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13945 (output_cgraph_opt_summary): Set symbol to NULL.
13946
13947 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13948
13949 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13950 non-polymorphic types.
13951 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13952 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13953 of types is not polymorphic.
13954
13955 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13956
13957 * lra-constraints.c (remove_inheritance_pseudos): Process
13958 destination pseudo too.
13959
13960 2014-07-11 Rong Xu <xur@google.com>
13961
13962 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13963 commit r212448.
13964
13965 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13966
13967 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13968 * config/avr/avr-devices.c (AVR_MCU): Same.
13969 (avr_mcu_types): add text start value to end of device list.
13970 * config/avr/avr-mcus.def: Add text section start for all devices.
13971 (ata5782): Add new avr5 device.
13972 (ata5831): Same.
13973 * config/avr/avr-tables.opt: Regenerate.
13974 * config/avr/avr.h: Add declaration for text section start handler.
13975 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13976 SPEC functions.
13977 (LINK_SPEC): Include text section start handler to linker spec.
13978 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13979 pass -Ttext option to linker if the text section start for the device
13980 is not zero.
13981 * config/avr/t-multilib: Regenerate.
13982 * doc/avr-mmcu.texi: Regenerate.
13983
13984 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13985
13986 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13987 * config/rs6000/aix52.h (LINK_SPEC): Same.
13988 * config/rs6000/aix53.h (LINK_SPEC): Same.
13989 * config/rs6000/aix61.h (LINK_SPEC): Same.
13990 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13991
13992 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13993
13994 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13995 (graphite_verify): New function.
13996 (ivs_params_clear): New function.
13997 (gcc_expression_from_isl_ast_expr_id): New function.
13998 (gcc_expression_from_isl_expr_int): New function.
13999 (binary_op_to_tree): New function.
14000 (ternary_op_to_tree): New function.
14001 (unary_op_to_tree): New function.
14002 (nary_op_to_tree): New function.
14003 (gcc_expression_from_isl_expr_op): New function.
14004 (gcc_expression_from_isl_expression): New function.
14005 (graphite_create_new_loop): New function.
14006 (translate_isl_ast_for_loop): New function.
14007 (get_upper_bound): New function.
14008 (graphite_create_new_loop_guard): New function.
14009 (translate_isl_ast_node_for): New function.
14010 (translate_isl_ast): New function.
14011 (add_parameters_to_ivs_params): New function.
14012 (scop_to_isl_ast): New parameter ip.
14013 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
14014
14015 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
14016
14017 * config/xtensa/predicates.md (call expander): Update for
14018 DECL_SECTION_NAME being string.
14019
14020 2014-07-11 Richard Biener <rguenther@suse.de>
14021
14022 PR middle-end/61473
14023 * builtins.c (fold_builtin_memory_op): Inline memory moves that
14024 can be implemented with a single load followed by a single store.
14025 (c_strlen): Only warn when only_value is not 2.
14026
14027 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
14028
14029 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
14030
14031 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
14032
14033 PR target/61561
14034 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
14035 (*movhi_bytes): Likewise.
14036 (*arm_movqi_insn): Likewise.
14037
14038 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
14039
14040 PR target/56858
14041 * config/alpha/alpha.c: Include tree-pass.h, context.h
14042 and pass_manager.h.
14043 (pass_data_handle_trap_shadows): New pass.
14044 (pass_handle_trap_shadows::gate): New pass gate function.
14045 (make_pass_handle_trap_shadows): New function.
14046 (rest_of_handle_trap_shadows): Ditto.
14047
14048 (alpha_align_insns_1): Rename from alpha_align_insns.
14049 (pass_data_align_insns): New pass.
14050 (pass_align_insns::gate): New pass gate function.
14051 (make_pass_aling_insns): New function.
14052 (rest_of_align_insns): Ditto.
14053 (alpha_align_insns): Ditto.
14054
14055 (alpha_option_override): Declare handle_trap_shadows info
14056 and align_insns_info. Register handle_trap_shadows and align_insns
14057 passes here.
14058 (alpha_reorg): Do not call alpha_trap_shadows and
14059 alpha_align_insn from here.
14060
14061 (alpha_pad_function_end): Do not skip BARRIERs.
14062
14063 2014-07-10 Rong Xu <xur@google.com>
14064
14065 Add gcov-tool: an offline gcda profile processing tool support.
14066 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
14067 (gcov_is_error): Ditto.
14068 (gcov_read_string): Ditto.
14069 (gcov_read_sync): Ditto.
14070 * gcov-io.h: Move counter defines to gcov-counter.def.
14071 * gcov-dump.c (tag_counters): Use gcov-counter.def.
14072 * coverage.c: Ditto.
14073 * gcov-tool.c: Offline gcda profile processing tool.
14074 (unlink_gcda_file): Remove one gcda file.
14075 (unlink_profile_dir): Remove gcda files from the profile path.
14076 (gcov_output_files): Output gcda files to an output dir.
14077 (profile_merge): Merge two profiles in directory.
14078 (print_merge_usage_message): Print merge usage.
14079 (merge_usage): Print merge usage and exit.
14080 (do_merge): Driver for profile merge sub-command.
14081 (profile_rewrite): Rewrite profile.
14082 (print_rewrite_usage_message): Print rewrite usage.
14083 (rewrite_usage): Print rewrite usage and exit.
14084 (do_rewrite): Driver for profile rewrite sub-command.
14085 (print_usage): Print gcov-info usage and exit.
14086 (print_version): Print gcov-info version.
14087 (process_args): Process arguments.
14088 (main): Main routine for gcov-tool.
14089 * Makefile.in: Build and install gcov-tool.
14090 * gcov-counter.def: New file split from gcov-io.h.
14091 * doc/gcc.texi: Include gcov-tool.texi.
14092 * doc/gcov-tool.texi: Document for gcov-tool.
14093
14094 2014-07-10 Richard Biener <rguenther@suse.de>
14095
14096 PR tree-optimization/61757
14097 * tree-ssa-dom.c (loop_depth_of_name): Restore.
14098 (propagate_rhs_into_lhs): Revert part of last change.
14099
14100 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
14101
14102 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
14103 FUNCTION_DECLs.
14104
14105 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
14106
14107 PR middle-end/53590
14108 * function.c (allocate_struct_function): Revert r188667 change.
14109
14110 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
14111
14112 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
14113
14114 * doc/install.texi: Remove links to defunct package providers for
14115 Solaris.
14116
14117 2014-07-09 Tom de Vries <tom@codesourcery.com>
14118
14119 * final.c (get_call_fndecl): Declare.
14120 (self_recursive_call_p): New function.
14121 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
14122
14123 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14124
14125 * ipa-devirt.c (record_node): Walk through aliases.
14126
14127 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14128
14129 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
14130
14131 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14132
14133 Revert:
14134 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14135
14136 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14137
14138 * ipa-visibility.c (function_and_variable_visibility): Remove
14139 temporary hack disabling local aliases on AIX.
14140
14141 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14142
14143 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
14144 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
14145
14146 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14147
14148 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
14149 * rs6000/rs6000.c: Inline output of .set instruction.
14150 (declare_alias_data): New struct.
14151 (rs6000_declare_alias): New function.
14152 (rs6000_xcoff_declare_function_name): Use it.
14153 (rs6000_xcoff_declare_object_name): New function.
14154 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
14155 (ASM_OUTPUT_DEF): Turn to empty definition.
14156
14157 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
14158
14159 PR bootstrap/61679
14160 * hash-table.h: use hash_table::value_type instead of
14161 Descriptor::value_type in the return types of several methods.
14162
14163 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
14164
14165 * tree-pass.h (pass_data): Remove has_execute member.
14166 * passes.c (execute_one_pass): Don't check pass->has_execute.
14167 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
14168 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
14169 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
14170 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
14171 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
14172 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
14173 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
14174 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
14175 gimple-low.c, gimple-ssa-isolate-paths.c,
14176 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
14177 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
14178 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
14179 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
14180 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
14181 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
14182 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
14183 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
14184 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
14185 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
14186 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
14187 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14188 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
14189 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
14190 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14191 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
14192 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
14193 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
14194 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
14195 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
14196 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
14197 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
14198 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
14199 web.c: Remove initializer for pass_data::has_execute.
14200
14201 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
14202
14203 * graphite-htab.h: Use hash_map instead of hash_table.
14204 * graphite-clast-to-gimple.c: Adjust.
14205 * passes.c: Use hash_map instead of hash_table.
14206 * sese.c: Likewise.
14207 * sese.h: Remove now unused code.
14208
14209 2014-07-08 Sriraman Tallam <tmsriram@google.com>
14210
14211 PR target/61599
14212 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
14213 than zero.
14214
14215 2014-07-08 Jakub Jelinek <jakub@redhat.com>
14216
14217 PR rtl-optimization/61673
14218 * combine.c (simplify_comparison): Test just mode's sign bit
14219 in tmode rather than the sign bit and any bits above it.
14220
14221 2014-07-08 Roman Gareev <gareevroman@gmail.com>
14222
14223 * graphite-isl-ast-to-gimple.c (generate_isl_context):
14224 Add __isl_give to the declaration.
14225 (generate_isl_schedule): Likewise.
14226 (scop_to_isl_ast): Likewise.
14227
14228 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14229
14230 * config/arm/arm.c (cortexa5_extra_costs): New table.
14231 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
14232
14233 2014-07-08 Jakub Jelinek <jakub@redhat.com>
14234
14235 PR tree-optimization/61725
14236 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
14237 range, use range_includes_zerop_p instead of integer_zerop on
14238 vr0->min, only use log2 of max if min is not negative.
14239
14240 2014-07-08 Richard Biener <rguenther@suse.de>
14241
14242 * tree-ssa-dom.h (loop_depth_of_name): Remove.
14243 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
14244 restriction on loop depth difference.
14245 (record_equality): Likewise.
14246 (propagate_rhs_into_lhs): Likewise. Simplify condition.
14247 (loop_depth_of_name): Remove.
14248 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
14249 restriction on loop depth difference.
14250 (init_copy_prop): Likewise.
14251
14252 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
14253
14254 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
14255 parameter.
14256 (walk_aliased_vdefs): Likewise.
14257 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
14258 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
14259 (detect_type_change_from_memory_writes): Check if entry was reached.
14260
14261 2014-07-08 Richard Biener <rguenther@suse.de>
14262
14263 PR tree-optimization/61681
14264 * tree-ssa-structalias.c (find_what_var_points_to): Expand
14265 NONLOCAL inside ESCAPED.
14266
14267 2014-07-08 Richard Biener <rguenther@suse.de>
14268
14269 PR tree-optimization/61680
14270 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14271 Handle properly all read-write dependences with group accesses.
14272
14273 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
14274
14275 PR tree-optimization/61576
14276 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
14277 block containing reduction statement is predecessor of phi basi block.
14278
14279 2014-07-08 Marek Polacek <polacek@redhat.com>
14280
14281 PR c/60226
14282 * fold-const.c (round_up_loc): Change the parameter type.
14283 Remove assert.
14284 * fold-const.h (round_up_loc): Adjust declaration.
14285 * stor-layout.c (finalize_record_size): Check for too large types.
14286
14287 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
14288
14289 * symtab.c: Include calls.h.
14290 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
14291
14292 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
14293
14294 * config/rs6000/rs6000.c (output_vec_const_move): Handle
14295 little-endian code generation.
14296 * config/rs6000/spe.md (spe_evmergehi): Rename to...
14297 (vec_perm00_v2si): ... this. Handle little-endian code generation.
14298 (spe_evmergehilo): Rename to...
14299 (vec_perm01_v2si): ... this. Handle little-endian code generation.
14300 (spe_evmergelo): Rename to...
14301 (vec_perm11_v2si): ... this. Handle little-endian code generation.
14302 (spe_evmergelohi): Rename to...
14303 (vec_perm10_v2si): ... this. Handle little-endian code generation.
14304 (spe_evmergehi, spe_evmergehilo): New expanders.
14305 (spe_evmergelo, spe_evmergelohi): Likewise.
14306 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
14307 (*frob_tf_ti): Likewise.
14308 (*frob_<mode>_di_2): Likewise.
14309 (*frob_tf_di_8_2): Likewise.
14310 (*frob_di_<mode>): Likewise.
14311 (*frob_ti_tf): Likewise.
14312 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
14313 (*frob_ti_<mode>_8_2): Likewise.
14314 (*frob_ti_tf_2): Likewise.
14315 (mov_si<mode>_e500_subreg0): Rename to...
14316 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
14317 endianness only.
14318 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
14319 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
14320 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
14321 the big endianness only.
14322 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
14323 (*mov_si<mode>_e500_subreg0_2): Rename to...
14324 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
14325 big big endianness only.
14326 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
14327 (*mov_si<mode>_e500_subreg4): Rename to...
14328 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
14329 endianness only.
14330 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
14331 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
14332 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
14333 the big endianness only.
14334 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
14335 pattern.
14336 (*mov_si<mode>_e500_subreg4_2): Rename to...
14337 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
14338 endianness only.
14339 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
14340 (*mov_sitf_e500_subreg8): Rename to...
14341 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
14342 endianness only.
14343 (*mov_sitf_e500_subreg8_le): New instruction pattern.
14344 (*mov_sitf_e500_subreg8_2): Rename to...
14345 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
14346 endianness only.
14347 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
14348 (*mov_sitf_e500_subreg12): Rename to...
14349 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
14350 endianness only.
14351 (*mov_sitf_e500_subreg12_le): New instruction pattern.
14352 (*mov_sitf_e500_subreg12_2): Rename to...
14353 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
14354 endianness only.
14355 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
14356
14357 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
14358
14359 * asan.c (instrument_strlen_call): Do not instrument first byte
14360 in strlen if already instrumented.
14361
14362 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14363
14364 * config/arm/arm.opt (mwords-little-endian): Delete.
14365 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
14366 of TARGET_LITTLE_WORDS.
14367 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
14368 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
14369 warning.
14370 * doc/invoke.texi: Remove references to -mwords-little-endian.
14371
14372 2014-07-07 Jakub Jelinek <jakub@redhat.com>
14373
14374 * expmed.c (struct init_expmed_rtl): Change all fields but
14375 pow2 and cint from struct rtx_def to rtx.
14376 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
14377 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
14378 at the end again.
14379
14380 2014-07-06 Marek Polacek <polacek@redhat.com>
14381
14382 PR c/6940
14383 * doc/invoke.texi: Document -Wsizeof-array-argument.
14384
14385 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
14386
14387 * wide-int.h (wide_int_storage): Change declaration from struct
14388 to class.
14389
14390 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
14391
14392 * cgraph.c (cgraph_create_indirect_edge): Update call of
14393 get_polymorphic_call_info.
14394 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
14395 (possible_polymorphic_call_targets): Add parameter call.
14396 (decl_maybe_in_construction_p): New predicate.
14397 (get_polymorphic_call_info): Add parameter call;
14398 use decl_maybe_in_construction_p.
14399 * gimple-fold.c (fold_gimple_assign): Update use of
14400 possible_polymorphic_call_targets.
14401 (gimple_fold_call): Likewise.
14402 * ipa-prop.c: Inlcude calls.h
14403 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
14404 (param_type_may_change_p): New predicate.
14405 (detect_type_change_from_memory_writes): Break out from ...
14406 (detect_type_change): ... this one; use param_type_may_change_p.
14407 (detect_type_change_ssa): Use param_type_may_change_p.
14408 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
14409
14410 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
14411
14412 PR target/49423
14413 * config/arm/arm-protos.h (arm_legitimate_address_p,
14414 arm_is_constant_pool_ref): Add prototypes.
14415 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
14416 (arm_is_constant_pool_ref) New function.
14417 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
14418 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
14419 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
14420 operand. Remove pool_range and neg_pool_range attributes.
14421 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
14422 pool_range and neg_pool_range attributes.
14423 * config/arm/constraints.md (Uh): New constraint.
14424 (Uq): Don't allow constant pool references.
14425
14426 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
14427
14428 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
14429 (move_lo_quad_internal_be_<mode>): Likewise.
14430 (move_lo_quad_<mode>): Convert to define_expand.
14431 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
14432 (aarch64_simd_move_hi_quad_be_<mode>): New.
14433 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
14434 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
14435 (aarch64_combinez_be<mode>): New.
14436 (aarch64_combine<mode>): Convert to define_expand.
14437 (aarch64_combine_internal<mode>): New.
14438 (aarch64_simd_combine<mode>): Remove bogus RTL description.
14439
14440 2014-07-04 Tom de Vries <tom@codesourcery.com>
14441
14442 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
14443 combination of earlyclobber and read/write modifiers.
14444
14445 2014-07-04 Tom de Vries <tom@codesourcery.com>
14446
14447 * config/aarch64/aarch64-simd.md
14448 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
14449
14450 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
14451
14452 PR target/61714
14453 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14454
14455 2014-07-04 Jakub Jelinek <jakub@redhat.com>
14456
14457 PR middle-end/61654
14458 * cgraphunit.c (expand_thunk): Call free_dominance_info.
14459
14460 PR tree-optimization/61684
14461 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14462 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14463
14464 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14465 Kito Cheng <kito@0xlab.org>
14466 Monk Chiang <sh.chiang04@gmail.com>
14467
14468 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14469 (nds32_symbol_load_store_p): Move to ...
14470 (nds32_fp_as_gp_check_available): Move to ...
14471 * config/nds32/nds32-fp-as-gp.c: ... here.
14472 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14473 extern declaration.
14474
14475 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14476 Kito Cheng <kito@0xlab.org>
14477 Monk Chiang <sh.chiang04@gmail.com>
14478
14479 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14480 (nds32_expand_store_multiple): Move to ...
14481 (nds32_expand_movmemqi): Move to ...
14482 * config/nds32/nds32-memory-manipulation.c: ... here.
14483
14484 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14485 Kito Cheng <kito@0xlab.org>
14486 Monk Chiang <sh.chiang04@gmail.com>
14487
14488 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14489 (nds32_output_casesi_pc_relative): Move to ...
14490 (nds32_output_casesi): Move to ...
14491 (nds32_mem_format): Move to ...
14492 (nds32_output_16bit_store): Move to ...
14493 (nds32_output_16bit_load): Move to ...
14494 (nds32_output_32bit_store): Move to ...
14495 (nds32_output_32bit_load): Move to ...
14496 (nds32_output_32bit_load_s): Move to ...
14497 (nds32_output_stack_push): Move to ...
14498 (nds32_output_stack_pop): Move to ...
14499 * config/nds32/nds32-md-auxiliary.c: ... here.
14500
14501 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14502 Ling-Hua Tseng <uranus@tinlans.org>
14503
14504 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14505 the purpose of this file.
14506
14507 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14508 Kito Cheng <kito@0xlab.org>
14509 Monk Chiang <sh.chiang04@gmail.com>
14510
14511 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14512 (nds32_address_cost): Move implementation to ...
14513 * config/nds32/nds32-cost.c: ... here.
14514 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14515 (nds32_address_cost_impl): Declare.
14516
14517 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14518 Kito Cheng <kito@0xlab.org>
14519 Monk Chiang <sh.chiang04@gmail.com>
14520
14521 * config/nds32/nds32.c
14522 (nds32_consecutive_registers_load_store_p): Move to ...
14523 (nds32_valid_multiple_load_store): Move to ...
14524 (nds32_valid_stack_push_pop): Move to ...
14525 (nds32_can_use_bclr_p): Move to ...
14526 (nds32_can_use_bset_p): Move to ...
14527 (nds32_can_use_btgl_p): Move to ...
14528 (nds32_can_use_bitci_p): Move to ...
14529 * config/nds32/nds32-predicates.c: ... here.
14530
14531 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14532 Kito Cheng <kito@0xlab.org>
14533 Monk Chiang <sh.chiang04@gmail.com>
14534
14535 * config/nds32/nds32.c
14536 (nds32_expand_builtin_null_ftype_reg): Move to ...
14537 (nds32_expand_builtin_reg_ftype_imm): Move to ...
14538 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14539 (nds32_init_builtins): Move implementation to ...
14540 (nds32_expand_builtin): Move implementation to ...
14541 * config/nds32/nds32-intrinsic.c: ... here.
14542 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14543 (nds32_expand_builtin_impl): Declare.
14544
14545 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14546 Kito Cheng <kito@0xlab.org>
14547 Monk Chiang <sh.chiang04@gmail.com>
14548
14549 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14550 (nds32_emit_section_tail_template): Move to ...
14551 (nds32_emit_isr_jmptbl_section): Move to ...
14552 (nds32_emit_isr_vector_section): Move to ...
14553 (nds32_emit_isr_reset_conten): Move to ...
14554 (nds32_check_isr_attrs_conflict): Move to ...
14555 (nds32_construct_isr_vectors_information): Move to ...
14556 (nds32_asm_file_start): Move implementation to ...
14557 (nds32_asm_file_end): Move implementation to ...
14558 * config/nds32/nds32-isr.c: ... here.
14559 * config/nds32/nds32-protos.h
14560 (nds32_check_isr_attrs_conflict): Declare.
14561 (nds32_construct_isr_vectors_information): Declare.
14562 (nds32_asm_file_start_for_isr): Declare.
14563 (nds32_asm_file_end_for_isr): Declare.
14564
14565 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14566 Kito Cheng <kito@0xlab.org>
14567 Monk Chiang <sh.chiang04@gmail.com>
14568
14569 * config.gcc (nds32*): Add new modules to extra_objs.
14570 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14571 (nds32be-*-*): Likewise.
14572 * config/nds32/nds32-cost.c: New file.
14573 * config/nds32/nds32-fp-as-gp.c: New file.
14574 * config/nds32/nds32-intrinsic.c: New file.
14575 * config/nds32/nds32-isr.c: New file.
14576 * config/nds32/nds32-md-auxiliary.c: New file.
14577 * config/nds32/nds32-memory-manipulation.c: New file.
14578 * config/nds32/nds32-pipelines-auxiliary.c: New file.
14579 * config/nds32/nds32-predicates.c: New file.
14580 * config/nds32/t-nds32: New file.
14581
14582 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14583
14584 PR tree-optimization/61682
14585 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14586 using cases and when one of the operands is equal to 1.
14587
14588 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
14589
14590 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14591 ashr<mode>3): Correct mode of operands[2].
14592 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14593 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14594 Correct mode of operands[2]. Fix split condition.
14595
14596 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
14597
14598 * arm.md (arch): Add armv6_or_vfpv3.
14599 (arch_enabled): Add test for the above.
14600 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14601 on VFP9.
14602 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14603
14604 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14605
14606 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14607 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14608 HWI 1 and negate the unsigned value.
14609 * expmed.c (expand_sdiv_pow2): For modes wider than word always
14610 use AND instead of shift.
14611 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14612
14613 2014-07-03 Marek Polacek <polacek@redhat.com>
14614
14615 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14616 (-fsanitize=float-divide-by-zero): Move to the table with
14617 -fsanitize=undefined suboptions.
14618 (-fsanitize=float-cast-overflow): Likewise.
14619
14620 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
14621
14622 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14623 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14624 endianness.
14625
14626 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14627
14628 * loop-invariant.c (struct invariant): Add a new member: eqno;
14629 (find_identical_invariants): Update eqno;
14630 (create_new_invariant): Init eqno;
14631 (get_inv_cost): Compute comp_cost with eqno;
14632
14633 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14634
14635 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14636 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14637 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14638 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14639 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14640
14641 2014-07-02 Christian Bruel <christian.bruel@st.com>
14642
14643 PR target/29349
14644 PR target/53513
14645 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14646 (make_preds_opaque): Delete.
14647 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14648 (commit_mode_sets): New function.
14649 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14650 Process all modes at once.
14651 * basic-block.h (pre_edge_lcm_avs): Declare.
14652 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14653 Call clear_aux_for_edges. Fix comments.
14654 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14655 (pre_edge_rev_lcm): Idem.
14656 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14657 parameter.
14658 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14659 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14660 Idem.
14661 * config/i386/i386.c (x96_emit_mode_set): Idem.
14662 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14663 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14664 (fpscr_toggle) Disallow from delay slot.
14665 * target.def (emit_mode_set): Add prev_mode parameter.
14666 * doc/tm.texi: Regenerate.
14667
14668 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14669
14670 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14671 variable i.
14672
14673 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14674
14675 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14676 vtable_pointer_value_to_vtable): Constify.
14677 (contains_polymorphic_type_p): Declare.
14678 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14679 vtable_pointer_value_to_vtable): Constify.
14680 (contains_polymorphic_type_p): New predicate.
14681 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14682 polymorphic types.
14683 (ipa_set_ancestor_jf): Likewise.
14684 (detect_type_change): Return false in easy cases.
14685 (compute_complex_assign_jump_func): Require type to contain
14686 polymorphic type.
14687 (compute_known_type_jump_func): Likewise.
14688
14689 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14690
14691 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14692 Remove.
14693 (type_in_anonymous_namespace_p): Constify argument.
14694 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14695 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14696 (main_odr_variant): New function.
14697 (hash_type_name): Make static; update assert; do not ICE on
14698 non-records.
14699 (types_same_for_odr): Bring here from tree.c; simplify and remove
14700 old structural comparing code that doesn't work for templates.
14701 (odr_hasher::equal): Update assert.
14702 (add_type_duplicate): Return true when bases should be computed;
14703 replace incomplete loader by complete; do not output duplicated
14704 warnings; do not ICE on non-records; set odr_violated flag.
14705 (get_odr_type): Be ready to replace incomplete type by complete
14706 one; work on ODR variants instead of main variants; reorder item
14707 in array so bases have still smaller indexes.
14708 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14709 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14710
14711 2014-07-01 Cary Coutant <ccoutant@google.com>
14712
14713 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14714 lookup.
14715 (resolve_addr_in_expr): When replacing the rtx in a location list
14716 entry, get a new address table entry.
14717 (dwarf2out_finish): Call index_location_lists even if there are no
14718 addr_index_table entries yet.
14719
14720 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14721
14722 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14723 change for not being obvious.
14724
14725 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14726
14727 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14728 unused argument.
14729
14730 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14731
14732 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14733 (vcagt_f64): Likewise.
14734 (vcale_f64): Likewise.
14735 (vcaled_f64): Likewise.
14736 (vcales_f32): Likewise.
14737 (vcalt_f64): Likewise.
14738 (vcaltd_f64): Likewise.
14739 (vcalts_f32): Likewise.
14740
14741 2014-07-01 Marek Polacek <polacek@redhat.com>
14742
14743 * doc/invoke.texi: Document -Wint-conversion.
14744
14745 2014-07-01 Marek Polacek <polacek@redhat.com>
14746
14747 PR c/58286
14748 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14749
14750 2014-07-01 Martin Liska <mliska@suse.cz>
14751
14752 IPA REF alias refactoring
14753 * cgraph.h (iterate_direct_aliases): New function.
14754 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14755 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14756 FOR_EACH_ALIAS added.
14757 (cgraph_for_node_and_aliases): Likewise.
14758 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14759 * ipa-inline.c (reset_edge_caches): Likewise.
14760 (update_caller_keys): Likewise.
14761 * trans-mem.c (ipa_tm_execute): Likewise.
14762 *varpool.c (varpool_analyze_node): Likewise.
14763 (varpool_for_node_and_aliases): Likewise.
14764 * ipa-ref.h (first_alias): New function.
14765 (last_alias): Likewise.
14766 (has_aliases_p): Likewise.
14767 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14768 is sensitive to IPA_REF_ALIASes.
14769 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14770 are put at the beginning of the list.
14771 (symtab_node::iterate_direct_aliases): New function.
14772
14773 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14774
14775 Revert:
14776 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14777 type is complete.
14778 (write_ts_type_common_tree_pointers): Do not stream fields not set
14779 for incomplete types; do not stream duplicated fields for variants;
14780 sanity check that variant and type match.
14781 (write_ts_type_non_common_tree_pointers): Likewise.
14782 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14783 TYPE_SIZE whether type is complete.
14784 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14785 write_ts_type_common_tree_pointers
14786 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14787
14788 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14789
14790 * var-tracking.c (add_stores): Return instead of asserting if old
14791 and new values for conditional store are the same.
14792
14793 2014-06-30 Richard Henderson <rth@redhat.com>
14794
14795 PR rtl-opt/61608
14796 PR target/39284
14797 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14798 the cfg if there were any changes.
14799 * passes.def: Revert move of peephole2 after reorder_blocks;
14800 move duplicate_computed_gotos before peephole2.
14801
14802 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14803
14804 * except.c (emit_note_eh_region_end): New helper function.
14805 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14806 emit EH_REGION_END note.
14807 * jump.c (cleanup_barriers): Do not split a call and its
14808 corresponding CALL_ARG_LOCATION note.
14809
14810 2014-06-30 Jeff Law <law@redhat.com>
14811
14812 PR tree-optimization/61607
14813 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14814 deeper into the SSA_NAME_VALUE chain.
14815
14816 2014-06-30 Marek Polacek <polacek@redhat.com>
14817
14818 * convert.c (convert_to_integer): Don't instrument conversions if the
14819 function has no_sanitize_undefined attribute.
14820 * ubsan.c: Don't run the ubsan pass if the function has
14821 no_sanitize_undefined attribute.
14822
14823 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14824
14825 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14826 -fsanitize=undefined suboptions.
14827
14828 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14829
14830 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14831 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14832 against bigendian and adjust indices.
14833
14834 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14835
14836 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14837
14838 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14839
14840 PR target/61633
14841 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14842 Add alternative; make early clobber. Adjust both split patterns
14843 to use operand 0 as the working register.
14844
14845 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14846
14847 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14848 as ira_object_id_map might be NULL, or 1.
14849
14850 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14851
14852 * loop-invariant.c (get_inv_cost): Handle register class.
14853 (gain_for_invariant): Check the register pressure of the inv
14854 and its overlapped register class, other than all.
14855
14856 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14857
14858 * doc/invoke.texi (Optimize Options): Fix descriptions of
14859 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14860
14861 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14862
14863 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14864 documentation.
14865
14866 2014-06-29 Tobias Grosser <tobias@grosser.es>
14867
14868 PR bootstrap/61650
14869 * graphite-isl-ast-to-gimple.c: Add missing guards.
14870
14871 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14872
14873 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14874 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14875 * flag-types.h: Add new enum fgraphite_generator.
14876 * graphite-isl-ast-to-gimple.c: New.
14877 * graphite-isl-ast-to-gimple.h: New.
14878 * graphite.c (graphite_transform_loops): Add choice of Graphite
14879 code generator, which depends on flag_graphite_code_gen.
14880
14881 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14882
14883 * graphite-dependences.c (subtract_commutative_associative_deps):
14884 Add NULL checking of the following variables: must_raw_no_source,
14885 may_raw_no_source, must_war_no_source, may_war_no_source,
14886 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14887 must_war, may_war, must_waw, may_waw.
14888
14889 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14890
14891 * graphite-clast-to-gimple.c: gloog is renamed to
14892 graphite_regenerate_ast_cloog. gloog_error is renamed to
14893 graphite_regenerate_error.
14894 * graphite-clast-to-gimple.h: The definition of the struct
14895 bb_pbb_def is moved to graphite-htab.h.
14896 Add inclusion of the hash-table.h.
14897 * graphite-htab.h: The declaration of the function gloog is moved
14898 to graphite-clast-to-gimple.h and renamed to
14899 graphite_regenerate_ast_cloog.
14900 * graphite.c (graphite_transform_loops): gloog is renamed
14901 to graphite_regenerate_ast_cloog.
14902
14903 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14904
14905 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14906 type is complete.
14907 (write_ts_type_common_tree_pointers): Do not stream fields not set
14908 for incomplete types; do not stream duplicated fields for variants;
14909 sanity check that variant and type match.
14910 (write_ts_type_non_common_tree_pointers): Likewise.
14911 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14912 TYPE_SIZE whether type is complete.
14913 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14914 write_ts_type_common_tree_pointers
14915 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14916
14917 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14918
14919 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14920
14921 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14922
14923 * tree-inline.c (remap_type_1): Do not duplicate fields
14924 that are shared in between type and its main variant.
14925
14926 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14927
14928 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14929 of the type.
14930 (ipa_set_ancestor_jf) Likewise.
14931 (check_stmt_for_type_change): Check that we work on main variant.
14932 (detect_type_change): Look into main variant.
14933 (compute_known_type_jump_func): Check that main variant has BINFO.
14934
14935 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14936
14937 * ipa-devirt.c (set_type_binfo): New function.
14938 (add_type_duplicate): Use it.
14939 (get_odr_type): Sanity check that binfos points to main variants.
14940 (get_class_context): Be sure the context's outer_type is main variant.
14941 (contains_type_p): Walk main variant.
14942 (get_polymorphic_call_info_for_decl): Set outer_type to be
14943 main variant.
14944 (get_polymorphic_call_info): Likewise.
14945 (possible_polymorphic_call_targets): Sanity check that we operate
14946 on main variant.
14947
14948 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14949
14950 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14951
14952 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14953
14954 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14955 accidental change due to wide-int branch merge.
14956
14957 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14958
14959 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14960 compressed debug support.
14961 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14962 * configure: Regenerate.
14963 * config.in: Regenerate.
14964 * common.opt (compressed_debug_sections): New enum.
14965 (gz, gz=): New options.
14966 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14967 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14968 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14969 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14970 LINK_COMPRESS_DEBUG_SPEC.
14971 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14972 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14973 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14974 (Debugging Options): Document -gz[=type].
14975
14976 2014-06-27 Martin Jambor <mjambor@suse.cz>
14977
14978 PR ipa/61160
14979 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14980 args_to_skip, use those from node instead. Copy args_to_skip and
14981 combined_args_to_skip from node to the new thunk.
14982 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14983 (cgraph_create_virtual_clone): Moved computation of
14984 combined_args_to_skip...
14985 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14986
14987 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14988
14989 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14990 redundant diagnostic machinary.
14991
14992 2014-06-27 Richard Biener <rguenther@suse.de>
14993
14994 * tree-ssa-math-opts.c (bswap_replace): Fix
14995 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14996
14997 2014-06-27 Martin Liska <mliska@suse.cz>
14998
14999 * gimple.h (gimple_location_safe): New function introduced.
15000 * cgraphunit.c (walk_polymorphic_call_targets): Usage
15001 of gimple_location_safe replaces gimple_location.
15002 (gimple_fold_call): Likewise.
15003 * ipa-devirt.c (ipa_devirt): Likewise.
15004 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
15005 * ipa.c (walk_polymorphic_call_targets): Likewise.
15006 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15007
15008 2014-06-27 Jakub Jelinek <jakub@redhat.com>
15009
15010 PR tree-optimization/57233
15011 PR tree-optimization/61299
15012 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
15013 functions.
15014 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
15015 would be lowered to scalar shifts, check if corresponding
15016 shifts and vector BIT_IOR_EXPR are supported and don't lower
15017 or lower just to narrower vector type in that case.
15018 * expmed.c (expand_shift_1): Fix up handling of vector
15019 shifts and rotates.
15020
15021 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
15022
15023 PR target/61586
15024 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
15025
15026 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
15027
15028 * doc/invoke.texi (-fsemantic-interposition): Document.
15029 * common.opt (fsemantic-interposition): New flag.
15030 * varasm.c (decl_replaceable_p): Use it.
15031
15032 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15033
15034 PR target/61542
15035 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
15036 extraction other than index 3.
15037
15038 2014-06-26 Teresa Johnson <tejohnson@google.com>
15039
15040 * doc/invoke.texi: Fix typo.
15041 * dumpfile.c: Add support for documented -fdump-* options
15042 optimized/missed/note/optall.
15043
15044 2014-06-26 Martin Jambor <mjambor@suse.cz>
15045
15046 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
15047 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
15048 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
15049 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
15050 * opts.c (default_options_optimization): Set
15051 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
15052 * doc/invoke.texi (allow-load-data-races)
15053 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
15054 (allow-store-data-races): Document the new default.
15055
15056 2014-06-26 Martin Jambor <mjambor@suse.cz>
15057
15058 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
15059 renamed to ipa_impossible_devirt_target. Fix typo.
15060 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
15061 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
15062 ipa_impossible_devirt_target.
15063
15064 2014-06-26 Richard Biener <rguenther@suse.de>
15065
15066 PR tree-optimization/61607
15067 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
15068 explaining why we restrict copies on loop depth.
15069 * tree-ssa-dom.c (cprop_operand): Remove restriction on
15070 on loop depth.
15071 (record_equivalences_from_phis): Instead add it here.
15072
15073 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
15074
15075 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
15076 (LTO_WRAPPER_OBJS): New variable.
15077 (lto-wrapper$(exeext)): Use it.
15078 * collect2.c: Include "collect-utils.h".
15079 (verbose, debug): Remove variables.
15080 (at_file_supplied): No longer static.
15081 (tool_name): New variable.
15082 (do_wait, fork_execute, maybe_unlink): Don't declare.
15083 (tool_cleanup): No longer static.
15084 (notice): Remove function.
15085 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
15086 fork_execute calls.
15087 (collect_wait, do_wait, collect_execute): Remove functions.
15088 (maybe_unlink): No longer static.
15089 * collect2.h (verbose, debug): Don't declare.
15090 (at_file_supplied): Declare.
15091 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
15092 changed.
15093 (collect_execute): Replace with implementation from collect2, plus a
15094 new arg use_atfile. All callers changed.
15095 (collect_wait): Replace with implementation from collect2.
15096 (maybe_unlink_file): Remove function.
15097 (fork_execute): Replace with implementation from collect2, plus a
15098 new arg use_atfile. All callers changed.
15099 (do_wait): Add call to utils_cleanup to the error path.
15100 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
15101 (tool_cleanup): Adjust declarations.
15102 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
15103 * tlink.c: Include "collect-utils.h".
15104 (tlink_execute): New arg use_atfile. All callers changed.
15105 (tlink_init, tlink_execute): Remove declarations.
15106
15107 * collect-utils.c (save_temps): New variable.
15108 (do_wait): Use it instead of debug. Use fatal_error.
15109 * collect-utils.h (save_temps): Declare.
15110 * collect2.c (verbose): Rename from vflag. All uses changed.
15111 (tool_cleanup): New function, copied from collect_atexit.
15112 (collect_atexit, handler): Just call it.
15113 * collect2.h (verbose): Declaration renamed from vflag.
15114 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
15115 debug.
15116
15117 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
15118 (lto-wrapper$(exeext)): Link with collect-utils.o.
15119 * collect-utils.c: New file.
15120 * collect-utils.h: New file.
15121 * lto-wrapper.c: Include "collect-utils.h".
15122 (args_name): Delete variable.
15123 (tool_name): New variable.
15124 (tool_cleanup): New function.
15125 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
15126 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
15127 (fork_execute): Remove functions.
15128
15129 2014-06-26 Nick Clifton <nickc@redhat.com>
15130
15131 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
15132
15133 * doc/extend.texi (Function Attributes): Fix typo in description
15134 of RX vector attribute.
15135
15136 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15137
15138 * config.gcc (supported_defaults): Error when passing either
15139 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
15140
15141 2014-06-26 Richard Biener <rguenther@suse.de>
15142
15143 * tree-ssa-dom.c (cprop_operand): Remove restriction on
15144 propagating volatile pointers.
15145
15146 2014-06-26 Richard Biener <rguenther@suse.de>
15147
15148 PR tree-optimization/61607
15149 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
15150 loop if we redirected its latch edge.
15151 (thread_block_1): Do not cancel loops prematurely.
15152
15153 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
15154
15155 * toplev.c (backend_init_target): Move init_emit_regs and
15156 init_regs to...
15157 (backend_init) ... here; skip ira_init_once and backend_init_target.
15158 (target_reinit) ... and here; clear
15159 this_target_rtl->lang_dependent_initialized.
15160 (lang_dependent_init_target): Clear
15161 this_target_rtl->lang_dependent_initialized;
15162 break out rtl initialization to ...
15163 (initialize_rtl): ... here; call also backend_init_target
15164 and ira_init_once.
15165 * toplev.h (initialize_rtl): New function.
15166 * function.c: Include toplev.h
15167 (init_function_start): Call initialize_rtl.
15168 * rtl.h (target_rtl): Add target_specific_initialized,
15169 lang_dependent_initialized.
15170
15171 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
15172 Jakub Jelinek <jakub@redhat.com>
15173
15174 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
15175
15176 2014-06-25 Tom de Vries <tom@codesourcery.com>
15177
15178 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
15179
15180 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
15181
15182 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
15183 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
15184 Issue a strict overflow warning if appropriate.
15185
15186 2014-06-25 Martin Liska <mliska@suse.cz>
15187
15188 IPA REF refactoring
15189 * Makefile.in: Removed header file (ipa-ref-inline.h).
15190 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
15191 called.
15192 (cgraph_speculative_call_info): Likewise.
15193 (cgraph_for_node_thunks_and_aliases): Likewise.
15194 (cgraph_for_node_and_aliases): Likewise.
15195 (verify_cgraph_node): Likewise.
15196 * cgraph.h: Batch of IPA REF functions become member functions of
15197 symtab_node: add_reference, maybe_add_reference, clone_references,
15198 clone_referring, clone_reference, find_reference,
15199 remove_stmt_references, remove_all_references,
15200 remove_all_referring, dump_references, dump_referring,
15201 has_alias_p, iterate_reference, iterate_referring.
15202 * cgraphbuild.c (record_reference): New IPA REF function used.
15203 (record_type_list): Likewise.
15204 (record_eh_tables): Likewise.
15205 (mark_address): Likewise.
15206 (mark_load): Likewise.
15207 (mark_store): Likewise.
15208 (pass_build_cgraph_edges): Likewise.
15209 (rebuild_cgraph_edge): Likewise.
15210 (cgraph_rebuild_references): Likewise.
15211 (pass_remove_cgraph_callee_edges): Likewise.
15212 * cgraphclones.c (cgraph_clone_node): Likewise.
15213 (cgraph_create_virtual_clone): Likewise.
15214 (cgraph_materialize_clone): Likewise.
15215 (cgraph_materialize_all_clones): Likewise.
15216 * cgraphunit.c (cgraph_reset_node): Likewise.
15217 (cgraph_reset_node): Likewise.
15218 (analyze_function): Likewise.
15219 (assemble_thunks_and_aliases): Likewise.
15220 (expand_function): Likewise.
15221 * ipa-comdats.c (propagate_comdat_group): Likewise.
15222 (enqueue_references): Likewise.
15223 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
15224 (create_specialized_node): Likewise.
15225 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
15226 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
15227 * ipa-inline.c (reset_edge_caches): Likewise.
15228 (update_caller_keys): Likewise.
15229 (execute): Likewise.
15230 * ipa-prop.c (remove_described_reference): Likewise.
15231 (propagate_controlled_uses): Likewise.
15232 (ipa_edge_duplication_hook): Likewise.
15233 (ipa_modify_call_arguments): Likewise.
15234 * ipa-pure-const.c (propagate_pure_const): Likewise.
15235 * ipa-ref-inline.h: Header file removed, functions moved
15236 to symtab_node class.
15237 * ipa-ref.c (remove_reference): New class member function.
15238 (cannot_lead_to_return): New class member function.
15239 (referring_ref_list): Likewise.
15240 (referred_ref_list): Likewise.
15241 Rest of functions moved to symtab_node class.
15242 * ipa-ref.h: New member functions remove_reference,
15243 cannot_lead_to_return, referring_ref_list, referred_ref_list added
15244 to ipa_ref class.
15245 ipa_ref_list class has new member functions: first_reference,
15246 first_referring, clear, nreferences.
15247 * ipa-reference.c (analyze_function): New IPA REF function used.
15248 (write_node_summary_p): Likewise.
15249 (ipa_reference_write_optimization_summary): Likewise.
15250 * ipa-split.c (split_function): Likewise.
15251 * ipa-utils.c (ipa_reverse_postorder): Likewise.
15252 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
15253 (function_and_variable_visibility): Likewise.
15254 * ipa.c (has_addr_references_p): Likewise.
15255 (process_references): Argument type changed.
15256 (symtab_remove_unreachable_nodes): New IPA REF function used.
15257 (process_references): Likewise.
15258 (set_writeonly_bit): Likewise.
15259 * lto-cgraph.c: Implementation of new symtab_node member functions
15260 that uses new IPA REF functions.
15261 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
15262 function used.
15263 * lto-streamer-out.c (output_symbol_p): Likewise.
15264 * lto-streamer.h (referenced_from_this_partition_p): Argument type
15265 changed.
15266 * symtab.c: Implementation of new IPA REF API.
15267 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
15268 (ipa_tm_create_version): Likewise.
15269 (ipa_tm_execute): Likewise.
15270 * tree-emutls.c (gen_emutls_addr): Likewise.
15271 * tree-inline.c (copy_bb): Likewise.
15272 (delete_unreachable_blocks_update_callgraph): Likewise.
15273 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
15274 (varpool_for_node_and_aliases): Likewise.
15275
15276 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
15277
15278 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
15279
15280 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
15281
15282 PR bootstrap/61598
15283 * fold-const.c (fold_checksum_tree): Use a hash_table of const
15284 tree_node * instead of tree_node *.
15285 (fold): Adjust.
15286 (print_fold_checksum): Likewise.
15287 (fold_check_failed): Likewise.
15288 (debug_fold_checksum): Likewise.
15289 (fold_build1_stat_loc): Likewise.
15290 (fold_build2_stat_loc): Likewise.
15291 (fold_build3_stat_loc): Likewise.
15292 (fold_build_call_array_loc): Likewise.
15293
15294 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
15295
15296 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
15297 implementation with call to...
15298 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
15299 function.
15300 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
15301 Declare.
15302
15303 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
15304
15305 PR tree-optimization/57742
15306 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
15307 after replacing the statement.
15308
15309 2014-06-25 Nick Clifton <nickc@redhat.com>
15310
15311 * config/v850/v850.c (GHS_default_section_names): Change to const
15312 char * type.
15313 (GHS_current_section_names): Likewise.
15314 (v850_insert_attributes): Do not build strings, just assign the
15315 names directly. Change the type of 'chosen_section' to const
15316 char*.
15317 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
15318 directly to the array entry.
15319 * config/v850/v850.h (GHS_default_section_names): Change to const
15320 char * type.
15321 (GHS_current_section_names): Likewise.
15322
15323 2014-06-25 Jakub Jelinek <jakub@redhat.com>
15324
15325 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
15326 (LANG_HOOKS_DECLS): Add it.
15327 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
15328 has correct type.
15329 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
15330 * langhooks.h (struct lang_hooks_for_decls): Add
15331 omp_clause_linear_ctor hook.
15332 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
15333 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
15334 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
15335 combined simd loop use omp_clause_linear_ctor hook.
15336
15337 2014-06-24 Cong Hou <congh@google.com>
15338
15339 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
15340 pattern recognition.
15341 (type_conversion_p): PROMOTION is true if it's a type promotion
15342 conversion, and false otherwise. Return true if the given expression
15343 is a type conversion one.
15344 * tree-vectorizer.h: Adjust the number of patterns.
15345 * tree.def: Add SAD_EXPR.
15346 * optabs.def: Add sad_optab.
15347 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
15348 * expr.c (expand_expr_real_2): Likewise.
15349 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
15350 * gimple.c (get_gimple_rhs_num_ops): Likewise.
15351 * optabs.c (optab_for_tree_code): Likewise.
15352 * tree-cfg.c (estimate_operator_cost): Likewise.
15353 * tree-ssa-operands.c (get_expr_operands): Likewise.
15354 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
15355 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
15356 * doc/generic.texi: Add document for SAD_EXPR.
15357 * doc/md.texi: Add document for ssad and usad.
15358
15359 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15360
15361 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
15362 qualification in cast.
15363
15364 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
15365
15366 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
15367 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
15368 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
15369 (tree_function_decl): ... here.
15370 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
15371 streaming of vindex to ...
15372 (write_ts_function_decl_tree_pointers): ... here.
15373 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
15374 Do not stream DECL_VINDEX.
15375 (lto_input_ts_function_decl_tree_pointers): Stream it here.
15376
15377 2014-06-24 Catherine Moore <clm@codesourcery.com>
15378 Sandra Loosemore <sandra@codesourcery.com>
15379
15380 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
15381 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
15382 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
15383
15384 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
15385
15386 * doc/invoke.texi (Warning Options): Remove duplicated
15387 -Wmaybe-uninitialized.
15388
15389 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
15390
15391 PR tree-optimization/57742
15392 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
15393 (handle_builtin_malloc, handle_builtin_memset): New functions.
15394 (strlen_optimize_stmt): Call them.
15395 * passes.def: Move strlen after loop+dom but before vrp.
15396
15397 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15398
15399 PR target/61570
15400 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
15401 model family 6 CPU with has_longmode never use a CPU without
15402 64-bit support.
15403
15404 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
15405
15406 PR target/61570
15407 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
15408 the last change.
15409
15410 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15411
15412 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
15413 * dominance.c (iterate_fix_dominators): Use hash_map instead of
15414 pointer_map.
15415 * hash-map.h: New file.
15416 * ipa-comdats.c: Use hash_map instead of pointer_map.
15417 * ipa.c: Likewise.
15418 * lto-section-out.c: Adjust.
15419 * lto-streamer.h: Replace pointer_map with hash_map.
15420 * symtab.c (verify_symtab): Likewise.
15421 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
15422 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
15423 * tree-streamer.h: Likewise.
15424 * tree-streamer.c: Adjust.
15425 * pointer-set.h: Remove pointer_map.
15426
15427 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15428
15429 * hash-table.h: Add a template arg to choose between storing values
15430 and storing pointers to values, and then provide partial
15431 specializations for both.
15432 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
15433 should store, not the type values should point to.
15434 * tree-into-ssa.c (var_info_hasher): Likewise.
15435 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15436 * tree-complex.c: Adjust.
15437 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
15438 table instead of int_tree_map *.
15439 * tree-parloops.c: Adjust.
15440 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
15441 type is being stored.
15442 * tree-vectorizer.c: Adjust.
15443
15444 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15445
15446 * hash-table.h: Remove a layer of indirection from hash_table so that
15447 it contains the hash table's data instead of a pointer to the data.
15448 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
15449 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
15450 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15451 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15452 fold-const.c, gcse.c, ggc-common.c,
15453 gimple-ssa-strength-reduction.c, gimplify.c,
15454 graphite-clast-to-gimple.c, graphite-dependences.c,
15455 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15456 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15457 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15458 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15459 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15460 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15461 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15462 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15463 tree-ssa-live.c, tree-ssa-loop-im.c,
15464 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15465 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15466 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15467 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15468 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15469 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15470 vtable-verify.c, vtable-verify.h: Adjust.
15471
15472 2014-06-24 Richard Biener <rguenther@suse.de>
15473
15474 PR tree-optimization/61572
15475 * tree-ssa-sink.c (statement_sink_location): Do not sink
15476 loads from hard registers.
15477
15478 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15479
15480 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15481 not mentioned in clauses use private clause if the iterator is
15482 declared in #pragma omp for simd, and when adding lastprivate
15483 instead, add it to the outer #pragma omp for too. Diagnose
15484 if the variable is private in outer context. For simd collapse > 1
15485 loops, replace all iterators with temporaries.
15486 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15487 same even in collapse > 1 loops.
15488
15489 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15490 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15491 non-NULL.
15492 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15493 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15494 non-NULL.
15495 (gimplify_adjust_omp_clauses): Likewise.
15496 * omp-low.c (lower_rec_simd_input_clauses,
15497 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15498 safelen the same as safelen(1).
15499 * tree-nested.c (convert_nonlocal_omp_clauses,
15500 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
15501 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15502 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15503 Fixup handling of GIMPLE_OMP_TARGET.
15504 (convert_tramp_reference_stmt, convert_gimple_call): Handle
15505 GIMPLE_OMP_TARGET.
15506
15507 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
15508
15509 PR tree-optimization/61554
15510 * tree-ssa-propagate.c: Include "bitmap.h".
15511 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15512 properly update constructor/destructor.
15513 (substitute_and_fold_dom_walker::before_dom_children):
15514 Remove call to gimple_purge_dead_eh_edges, add bb->index to
15515 need_eh_cleaup instead.
15516 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15517 need_eh_cleanup.
15518
15519 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15520
15521 * varpool.c (dump_varpool_node): Dump used_by_single_function.
15522 * tree-pass.h (make_pass_ipa_single_use): New pass.
15523 * cgraph.h (used_by_single_function): New flag.
15524 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15525 Stream it.
15526 * passes.def (pass_ipa_single_use): Scedule.
15527 * ipa.c (BOTTOM): New macro.
15528 (meet): New function
15529 (propagate_single_user): New function.
15530 (ipa_single_use): New function.
15531 (pass_data_ipa_single_use): New pass.
15532 (pass_ipa_single_use): New pass.
15533 (pass_ipa_single_use::gate): New gate.
15534 (make_pass_ipa_single_use): New function.
15535
15536 2014-06-23 Kai Tietz <ktietz@redhat.com>
15537
15538 PR target/39284
15539 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15540 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15541
15542 2014-06-23 Richard Biener <rguenther@suse.de>
15543
15544 * tree-ssa-loop.c (gate_loop): New function.
15545 (pass_tree_loop::gate): Call it.
15546 (pass_data_tree_no_loop, pass_tree_no_loop,
15547 make_pass_tree_no_loop): New.
15548 * tree-vectorizer.c: Include tree-scalar-evolution.c
15549 (pass_slp_vectorize::execute): Initialize loops and SCEV if
15550 required.
15551 (pass_slp_vectorize::clone): New method.
15552 * timevar.def (TV_TREE_NOLOOP): New.
15553 * tree-pass.h (make_pass_tree_no_loop): Declare.
15554 * passes.def (pass_tree_no_loop): New pass group with
15555 SLP vectorizer.
15556
15557 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
15558
15559 PR target/61570
15560 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15561 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15562
15563 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15564
15565 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15566 "yes" where needed.
15567
15568 2014-06-23 Alan Modra <amodra@gmail.com>
15569
15570 PR bootstrap/61583
15571 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15572 to zero on debug statements.
15573
15574 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15575
15576 PR target/60825
15577 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15578 Ignore third operand if present by marking qualifier_internal.
15579
15580 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15581
15582 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15583 vector extension.
15584 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15585 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15586 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15587 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15588 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15589 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15590 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15591 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15592 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15593 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15594 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15595 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15596 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15597 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15598 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15599 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15600 logic in GCC vector extensions
15601
15602 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15603 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15604 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15605 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15606 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15607 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15608 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15609 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15610 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15611 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15612
15613 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15614
15615 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15616 extensions.
15617
15618 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15619 (vget_low_s64): Use __GET_LOW macro.
15620 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15621 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15622 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15623 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15624 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15625
15626 (vcombine_s64): Use GCC vector extensions; remove cast.
15627 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15628 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15629 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15630 Fix type signature; remove cast.
15631
15632 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15633
15634 PR target/60825
15635 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15636 V1DFmode.
15637 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15638 add V1DFmode
15639 (BUILTIN_VD1): New.
15640 (BUILTIN_VD_RE): Remove.
15641 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15642 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15643 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15644 variant but not df.
15645 (vreinterpretv1df*, vreinterpret*v1df): New.
15646 (vreinterpretdf*, vreinterpret*df): Remove.
15647 * config/aarch64/aarch64-simd.md (aarch64_create,
15648 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15649 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15650 (VD1): New.
15651 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15652 (vcreate_f64): Remove cast, use v1df builtin.
15653 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15654 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15655 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15656 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15657 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15658 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15659 add range check using __builtin_aarch64_im_lane_boundsi.
15660 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15661 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15662 type signature, use gcc vector extensions.
15663 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15664 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15665 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15666 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15667 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15668 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15669 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15670 vreinterpret_u64_f64): Use v1df builtin not df.
15671
15672 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15673
15674 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15675 vector registers.
15676
15677 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15678
15679 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15680 priority directly.
15681
15682 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15683
15684 * loop-invariant.c (pre_check_invariant_p): New function.
15685 (find_invariant_insn): Call pre_check_invariant_p.
15686
15687 2014-06-22 Richard Henderson <rth@redhat.com>
15688
15689 PR target/61565
15690 * compare-elim.c (struct comparison): Add eh_note.
15691 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15692 a redundant comparison in a different EH region. Purge EH edges if
15693 necessary.
15694
15695 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15696
15697 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15698 (var_shift): Use it.
15699 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15700 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15701 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15702 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15703 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15704 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15705 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15706 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15707 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15708 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15709 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15710 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15711 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15712 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15713 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15714 *rotldi3_internal15be): Use the new attribute. Merge register and
15715 integer alternatives.
15716
15717 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15718
15719 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15720 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15721 split, *ashrdi3_internal3 and split): Delete, merge into...
15722 (ashr<mode>3): New expander.
15723 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15724 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15725
15726 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15727
15728 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15729 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15730 *rotldi3_internal3 and split): Delete, merge into...
15731 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15732 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15733 Use "rotlw" extended mnemonic.
15734
15735 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15736
15737 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15738 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15739 and split, *ashldi3_internal3 and split): Delete, merge into...
15740 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15741 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15742
15743 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15744
15745 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15746 (lshrsi3, two anonymous define_insns and define_splits,
15747 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15748 *lshrdi3_internal3 and split): Delete, merge into...
15749 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15750 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15751
15752 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15753
15754 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15755 Remove "O" alternative.
15756
15757 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15758
15759 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15760 (mips_move_from_gpr_cost): Likewise.
15761 (mips_register_move_cost): Update accordingly.
15762 (mips_secondary_reload_class): Remove name of in_p.
15763
15764 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15765
15766 PR target/61503
15767 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15768 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15769
15770 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15771
15772 * config/nios2/nios2.c: Include "builtins.h".
15773
15774 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15775
15776 * cgraph.h (tls_model_names): New variable.
15777 * print-tree.c (print_node): Simplify.
15778 * varpool.c (tls_model_names): New variable.
15779 (dump_varpool_node): Output tls model.
15780
15781 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15782
15783 * ipa-visibility.c (function_and_variable_visibility): Disable
15784 temporarily local aliases for some targets.
15785
15786 2014-06-20 Marek Polacek <polacek@redhat.com>
15787
15788 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15789 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15790 into SANITIZE_UNDEFINED.
15791 * doc/invoke.texi: Describe -fsanitize=bounds.
15792 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15793 functions created in the FEs.
15794 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15795 (expand_UBSAN_BOUNDS): New function.
15796 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15797 * internal-fn.h: Don't define internal functions here.
15798 * opts.c (common_handle_option): Add -fsanitize=bounds.
15799 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15800 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15801 * tree-core.h: Define internal functions here.
15802 (struct tree_base): Add ifn field.
15803 * tree-pretty-print.c: Include "internal-fn.h".
15804 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15805 * tree.c (get_callee_fndecl): Likewise.
15806 (build_call_expr_internal_loc): New function.
15807 * tree.def (CALL_EXPR): Update description.
15808 * tree.h (CALL_EXPR_IFN): Define.
15809 (build_call_expr_internal_loc): Declare.
15810 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15811 types.
15812 (ubsan_type_descriptor): Change bool parameter to enum
15813 ubsan_print_style. Adjust the code. Add handling of
15814 UBSAN_PRINT_ARRAY.
15815 (ubsan_expand_bounds_ifn): New function.
15816 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15817 (ubsan_build_overflow_builtin): Likewise.
15818 (instrument_bool_enum_load): Likewise.
15819 (ubsan_instrument_float_cast): Likewise.
15820 * ubsan.h (enum ubsan_print_style): New enum.
15821 (ubsan_expand_bounds_ifn): Declare.
15822 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15823
15824 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15825
15826 * config/rs6000/rs6000.md: Append `DONE' to preparation
15827 statements of `bswap' pattern splitters.
15828
15829 2014-06-20 Tom de Vries <tom@codesourcery.com>
15830
15831 * target.def (call_fusage_contains_non_callee_clobbers): Update
15832 definition.
15833 * doc/tm.texi: Regenerate.
15834
15835 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15836 Max Ostapenko <m.ostapenko@partner.samsung.com>
15837
15838 PR sanitizer/61547
15839 * asan.c (instrument_strlen_call): Fixed instrumentation of
15840 trailing byte.
15841
15842 2014-06-20 Martin Jambor <mjambor@suse.cz>
15843
15844 PR ipa/61540
15845 * ipa-prop.c (impossible_devirt_target): New function.
15846 (try_make_edge_direct_virtual_call): Use it, also instead of
15847 asserting.
15848
15849 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15850 Max Ostapenko <m.ostapenko@partner.samsung.com>
15851
15852 PR sanitizer/61530
15853 * asan.c (build_check_stmt): Add condition.
15854
15855 2014-06-20 Martin Jambor <mjambor@suse.cz>
15856
15857 PR ipa/61211
15858 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15859 expanded clones.
15860
15861 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15862
15863 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15864 Update comments.
15865 (VCONQ): Make comment more helpful.
15866 (VCON): Delete.
15867 * config/aarch64/aarch64-simd.md
15868 (aarch64_sqdmulh_lane<mode>):
15869 Use VCOND for operands 2. Update lane checking and flipping logic.
15870 (aarch64_sqrdmulh_lane<mode>): Likewise.
15871 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15872 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15873 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15874 attribute of operand 3 to VCOND.
15875 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15876 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15877 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15878 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15879 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15880 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15881 define_insn.
15882 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15883 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15884 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15885 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15886 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15887 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15888 operand to VCOND. Update lane flipping and bounds checking logic.
15889 (aarch64_sqdmlal2_lane<mode>): Likewise.
15890 (aarch64_sqdmlsl_lane<mode>): Likewise.
15891 (aarch64_sqdmull_lane<mode>): Likewise.
15892 (aarch64_sqdmull2_lane<mode>): Likewise.
15893 (aarch64_sqdmlal_laneq<mode>):
15894 Replace VCON usage with VCONQ.
15895 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15896 (aarch64_sqdmlal2_laneq<mode>): Emit
15897 aarch64_sqdmlal2_laneq<mode>_internal insn.
15898 Replace VCON with VCONQ.
15899 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15900 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15901 (aarch64_sqdmull_laneq<mode>): Emit
15902 aarch64_sqdmull_laneq<mode>_internal insn.
15903 Replace VCON with VCONQ.
15904 (aarch64_sqdmull2_laneq<mode>): Emit
15905 aarch64_sqdmull2_laneq<mode>_internal insn.
15906 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15907 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15908 of 3rd argument to int16x4_t.
15909 (vqdmlalh_lane_s16): Likewise.
15910 (vqdmlslh_lane_s16): Likewise.
15911 (vqdmull_high_lane_s16): Likewise.
15912 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15913 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15914 (vqdmlsl_lane_s16): Likewise.
15915 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15916 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15917 (vqdmlals_lane_s32): Likewise.
15918 (vqdmlsls_lane_s32): Likewise.
15919 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15920 (vqdmulls_lane_s32): Likewise.
15921 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15922 (vqdmlsl_lane_s32): Likewise.
15923 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15924 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15925 (vqrdmulhh_lane_s16): Likewise.
15926 (vqdmlsl_high_lane_s16): Likewise.
15927 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15928 (vqdmlsl_high_lane_s32): Likewise.
15929 (vqrdmulhs_lane_s32): Likewise.
15930
15931 2014-06-20 Tom de Vries <tom@codesourcery.com>
15932
15933 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15934 get_call_reg_set_usage.
15935
15936 2014-06-20 Tom de Vries <tom@codesourcery.com>
15937
15938 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15939 it contains all call_used_regs.
15940
15941 2014-06-20 Tom de Vries <tom@codesourcery.com>
15942
15943 * final.c (collect_fn_hard_reg_usage): Add and use variable
15944 function_used_regs.
15945
15946 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15947
15948 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15949 (set_init_priority, get_init_priority, set_fini_priority,
15950 get_fini_priority): New methods.
15951 * tree.c (init_priority_for_decl): Remove.
15952 (init_ttree): Do not initialize init priority.
15953 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15954 (decl_priority_info): Remove.
15955 (decl_init_priority_insert): Rewrite.
15956 (decl_fini_priority_insert): Rewrite.
15957 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15958 tree_priority_map_marked_p): Remove.
15959 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15960 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15961 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15962 not output priorities.
15963 (pack_ts_function_decl_value_fields): Likewise.
15964 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15965 not input priorities.
15966 (unpack_ts_function_decl_value_fields): Likewise.
15967 * symtab.c (symbol_priority_map): Declare.
15968 (init_priority_hash): Declare.
15969 (symtab_unregister_node): Unregister from priority hash, too.
15970 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15971 New methods.
15972 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15973 (symbol_priority_info): New function.
15974 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15975 New methods.
15976 * tree-core.h (tree_priority_map): Remove.
15977
15978 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15979
15980 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15981 0xff to uint64_t before shifting it up.
15982
15983 2014-06-20 Julian Brown <julian@codesourcery.com>
15984 Chung-Lin Tang <cltang@codesourcery.com>
15985
15986 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15987 TARGET_THUMB1_ONLY. Add comments.
15988
15989 2014-06-19 Tom de Vries <tom@codesourcery.com>
15990
15991 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15992 return type to void.
15993 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15994
15995 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15996
15997 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15998 as "move", from depends_on.
15999
16000 2014-06-19 Terry Guo <terry.guo@arm.com>
16001
16002 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
16003 stage.
16004
16005 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
16006
16007 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
16008 Remove cr5.
16009 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
16010
16011 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
16012
16013 PR target/61550
16014 * config/sh/sh.c (prepare_move_operands): Don't process TLS
16015 addresses here if reload in progress or completed.
16016
16017 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
16018
16019 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
16020 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
16021 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
16022 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
16023 (mips_register_priority): New function that implements the target
16024 hook TARGET_REGISTER_PRIORITY.
16025 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
16026 (mips_lra_p): Likewise for TARGET_LRA_P.
16027 (TARGET_REGISTER_PRIORITY): Define macro.
16028 (TARGET_SPILL_CLASS): Likewise.
16029 (TARGET_LRA_P): Likewise.
16030 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
16031 classes.
16032 (REG_CLASS_NAMES): Likewise.
16033 (REG_CLASS_CONTENTS): Likewise.
16034 (BASE_REG_CLASS): Use M16_SP_REGS.
16035 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
16036 New set attribute to enable alternatives depending on the register
16037 allocator used.
16038 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
16039 (*lea64): Disable pattern for MIPS16.
16040 * config/mips/mips.opt (mlra): New option.
16041
16042 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
16043
16044 * lra-constraints.c (base_to_reg): New function.
16045 (process_address): Use new function.
16046
16047 2014-06-18 Tom de Vries <tom@codesourcery.com>
16048
16049 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
16050 * config/aarch64/aarch64.c
16051 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
16052 (aarch64_emit_call_insn): New function.
16053 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
16054 of emit_call_insn.
16055 * config/aarch64/aarch64.md (define_expand "call_internal")
16056 (define_expand "call_value_internal", define_expand "sibcall_internal")
16057 (define_expand "sibcall_value_internal"): New.
16058 (define_expand "call", define_expand "call_value")
16059 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
16060 expand variant and aarch64_emit_call_insn.
16061
16062 2014-06-18 Radovan Obradovic <robradovic@mips.com>
16063 Tom de Vries <tom@codesourcery.com>
16064
16065 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
16066 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16067 Redefine to true.
16068 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
16069 clobbers to CALL_INSN_FUNCTION_USAGE.
16070 (define_expand "sibcall_internal")
16071 (define_expand "sibcall_value_internal"): New.
16072 (define_expand "call", define_expand "call_value"): Add argument to
16073 arm_emit_call_insn.
16074 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
16075 (define_expand "sibcall_value"): Use sibcall_value_internal and
16076 arm_emit_call_insn.
16077
16078 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16079
16080 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
16081
16082 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16083
16084 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
16085 __udivmoddi4.
16086
16087 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16088
16089 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
16090 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
16091 annotations. Fix DWARF information.
16092
16093 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16094
16095 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
16096 __udivmoddi4, and fixups for negative operands.
16097
16098 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16099
16100 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
16101
16102 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16103
16104 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
16105 to __udivmoddi4.
16106
16107 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16108
16109 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
16110 manipulation.
16111
16112 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16113
16114 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
16115 describing register usage on function entry and exit.
16116
16117 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16118
16119 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
16120 (__aeabi_ldivmod): Fix whitespace.
16121
16122 2014-06-18 Andreas Schwab <schwab@suse.de>
16123
16124 * doc/md.texi (Standard Names): Use @itemx for grouped items.
16125 Remove blank line after @item.
16126
16127 2014-06-18 Richard Henderson <rth@redhat.com>
16128
16129 PR target/61545
16130 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
16131
16132 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
16133
16134 * config/arm/arm.c (neon_vector_mem_operand): Allow register
16135 POST_MODIFY for neon loads and stores.
16136 (arm_print_operand): Output post-index register for neon loads and
16137 stores.
16138
16139 2014-06-18 Richard Biener <rguenther@suse.de>
16140
16141 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
16142
16143 2014-06-18 Richard Biener <rguenther@suse.de>
16144
16145 * tree-pass.h (make_pass_dce_loop): Remove.
16146 * passes.def: Replace pass_dce_loop with pass_dce.
16147 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
16148 changed free niter estimates and reset the scev cache.
16149 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
16150 make_pass_dce_loop): Remove.
16151 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
16152 (fini_copy_prop): Return whether something changed. Always
16153 let substitute_and_fold perform DCE and free niter estimates
16154 and reset the scev cache if so.
16155 (execute_copy_prop): If sth changed schedule cleanup-cfg.
16156 (pass_data_copy_prop): Do not unconditionally schedule
16157 cleanup-cfg or update-ssa.
16158
16159 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
16160
16161 PR tree-optimization/61518
16162 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16163 reduction var is used in reduction stmt or phi-function only.
16164
16165 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16166
16167 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
16168
16169 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
16170
16171 PR tree-optimization/61517
16172 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
16173 whose rhs's first tree is the source expression instead of the
16174 expression itself.
16175 (find_bswap_or_nop): Likewise.
16176 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
16177 gimple stmt whose rhs's first tree is the source. In the memory source
16178 case, move the stmt to be replaced close to one of the original load to
16179 avoid the problem of a store between the load and the stmt's original
16180 location.
16181 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
16182 signature.
16183
16184 2014-06-18 Andreas Schwab <schwab@suse.de>
16185
16186 PR rtl-optimization/54555
16187 * postreload.c (move2add_use_add2_insn): Substitute
16188 STRICT_LOW_PART only if it is cheaper.
16189
16190 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
16191
16192 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
16193 Do not use unspec as call operand. Use memory_operand instead of
16194 memory_nox32_operand and add "m" operand constraint. Disable
16195 pattern for TARGET_X32.
16196 (*sibcall_pop_memory): Ditto.
16197 (*sibcall_value_memory): Ditto.
16198 (*sibcall_value_pop_memory): Ditto.
16199 (sibcall peepholes): Merge SImode and DImode patterns using
16200 W mode iterator. Use memory_operand instead of memory_nox32_operand.
16201 Disable pattern for TARGET_X32. Check if eliminated register is
16202 really dead after call insn. Generate call RTX without unspec operand.
16203 (sibcall_value peepholes): Ditto.
16204 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
16205 instead of memory_nox32_operand. Check if eliminated register is
16206 really dead after call insn. Generate call RTX without unspec operand.
16207 (sibcall_value_pop peepholes): Ditto.
16208 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
16209
16210 2014-06-18 Terry Guo <terry.guo@arm.com>
16211
16212 PR target/61544
16213 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
16214 reach the head.
16215
16216 2014-06-18 Olivier Hainque <hainque@adacore.com>
16217
16218 * tree-core.h (tree_block): Add an "end_locus" field, allowing
16219 memorization of the end of block source location.
16220 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
16221 * gimplify.c (gimplify_bind_expr): Propagate the block start and
16222 end source location info we have on the block entry/exit code we
16223 generate.
16224
16225 2014-06-18 Richard Biener <rguenther@suse.de>
16226
16227 * common.opt (fssa-phiopt): New option.
16228 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
16229 but not with -Og.
16230 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
16231 * doc/invoke.texi (-fssa-phiopt): Document.
16232
16233 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16234
16235 * genattrtab.c (n_bypassed): New variable.
16236 (process_bypasses): Initialise n_bypassed.
16237 Count number of bypassed reservations.
16238 (make_automaton_attrs): Allocate space for bypassed reservations
16239 rather than number of bypasses.
16240
16241 2014-06-18 Richard Biener <rguenther@suse.de>
16242
16243 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
16244 we propagated anything.
16245 (substitute_and_fold_dom_walker::before_dom_children): Something
16246 changed if we propagated into PHI arguments.
16247 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
16248 we removed a stmt.
16249
16250 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
16251
16252 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
16253 vector case.
16254 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
16255 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
16256 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
16257 Introduces alternative way of loads group permutaions.
16258 (vect_transform_grouped_load): Try alternative way of permutations.
16259
16260 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16261
16262 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
16263 changed in ORT_TARGET region, don't jump to do_outer.
16264 (struct gimplify_adjust_omp_clauses_data): New type.
16265 (gimplify_adjust_omp_clauses_1): Adjust for data being
16266 a struct gimplify_adjust_omp_clauses_data pointer instead
16267 of tree *. Pass pre_p as a new argument to
16268 lang_hooks.decls.omp_finish_clause hook.
16269 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
16270 splay_tree_foreach to pass both list_p and pre_p.
16271 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
16272 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
16273 gimplify_adjust_omp_clauses callers.
16274 * langhooks.c (lhd_omp_finish_clause): New function.
16275 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
16276 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
16277 * langhooks.h (struct lang_hooks_for_decls): Add a new
16278 gimple_seq * argument to omp_finish_clause hook.
16279 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
16280 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
16281 (scan_omp_parallel, lower_omp_for): When adding
16282 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
16283 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
16284 * tree-nested.c (convert_nonlocal_omp_clauses,
16285 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
16286 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
16287
16288 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
16289
16290 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
16291 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
16292
16293 2014-06-17 Xinliang David Li <davidxl@google.com>
16294
16295 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
16296 * passes.c (pass_init_dump_file): Do not set initialize
16297 flag to false unconditionally.
16298
16299 2014-06-17 Richard Biener <rguenther@suse.de>
16300
16301 * genopinit.c (main): Use vec<>::qsort method.
16302 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16303 Likewise.
16304 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
16305
16306 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
16307
16308 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
16309 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
16310 (mips_move_to_gpr_cost): Remove ST_REGS case.
16311 (mips_move_from_gpr_cost): Likewise.
16312 (mips_register_move_cost): Likewise.
16313 (mips_secondary_reload_class): Likewise.
16314
16315 2014-06-17 Richard Biener <rguenther@suse.de>
16316
16317 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
16318 (pass_all_optimizations): Move 3rd copy-prop pass from after
16319 fre to before ifcombine/phiopt.
16320
16321 2014-06-17 Richard Biener <rguenther@suse.de>
16322
16323 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
16324 and allow all blocks to be forwarders.
16325
16326 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
16327
16328 PR target/61483
16329 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
16330 variable 'size'; calculate 'size' right in the front; use
16331 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
16332 pcum->aapcs_stack_words.
16333
16334 2014-06-17 Nick Clifton <nickc@redhat.com>
16335
16336 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
16337 (umulhi3, mulsidi3, umulsidi3): Likewise.
16338
16339 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
16340
16341 PR middle-end/61508
16342 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
16343 check for section name.
16344
16345 2014-06-17 Richard Biener <rguenther@suse.de>
16346
16347 * tree-ssa-propagate.c: Include domwalk.h.
16348 (substitute_and_fold): Outline main worker into a domwalker ...
16349 (substitute_and_fold_dom_walker::before_dom_children): ... here.
16350 Schedule stmts we can fully propagate for removal. Remove
16351 poor-mans DCE.
16352 (substitute_and_fold): Apply a dominator walk to perform
16353 substitution. Process stmts scheduled for removal here.
16354
16355 2014-06-17 Richard Biener <rguenther@suse.de>
16356
16357 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
16358 of PHI node moving.
16359
16360 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
16361
16362 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
16363 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
16364 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16365 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
16366 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
16367 TARGET_HARD_FLOAT.
16368 (get_fpscr) : Likewise.
16369
16370 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
16371
16372 PR rtl-optimization/61325
16373 * lra-constraints.c (valid_address_p): Add forward declaration.
16374 (simplify_operand_subreg): Check address validity before and after
16375 alter_reg of memory subreg.
16376
16377 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
16378
16379 * config/i386/i386.c (decide_alg): Correctly handle
16380 maximum size of stringop algorithm.
16381
16382 2014-06-16 Yury Gribov <y.gribov@samsung.com>
16383
16384 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
16385
16386 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
16387
16388 PR rtl-optimization/61522
16389 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
16390
16391 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
16392
16393 Revert:
16394 * symtab.c (symtab_node::reset_section): New method.
16395 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16396 for localization.
16397 * cgraph.h (reset_section): Declare.
16398 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16399 do not consider comdat locals.
16400 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16401 for new symbol.
16402 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16403 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16404 reset sections of symbols dragged out of the comdats.
16405 (function_and_variable_visibility): Reset sections of
16406 localized symbols.
16407
16408 2014-06-16 Richard Biener <rguenther@suse.de>
16409
16410 PR tree-optimization/61482
16411 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
16412 [-INF(OVF), +INF(OVF)] range.
16413
16414 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16415
16416 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
16417 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
16418 handling 32-bit multiplication.
16419
16420 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
16421
16422 PR middle-end/61430
16423 * lra-lives.c (process_bb_lives): Skip creating copy during
16424 insn scan when src/dest has constrained to same regno.
16425
16426 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16427
16428 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
16429 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
16430
16431 2014-06-16 Yury Gribov <y.gribov@samsung.com>
16432
16433 * asan.c (check_func): New function.
16434 (maybe_create_ssa_name): Likewise.
16435 (build_check_stmt_with_calls): Likewise.
16436 (use_calls_p): Likewise.
16437 (report_error_func): Change interface.
16438 (build_check_stmt): Allow non-integer lengths; add support
16439 for new parameter.
16440 (asan_instrument): Likewise.
16441 (instrument_mem_region_access): Moved code to build_check_stmt.
16442 (instrument_derefs): Likewise.
16443 (instrument_strlen_call): Likewise.
16444 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
16445 * doc/invoke.texi: Describe new parameter.
16446 * params.def: Define new parameter.
16447 * params.h: Likewise.
16448 * sanitizer.def: Describe new builtins.
16449
16450 2014-06-16 Richard Biener <rguenther@suse.de>
16451
16452 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16453 Make all defs available at the end.
16454 (eliminate): If we remove a PHI node schedule cfg-cleanup.
16455
16456 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16457
16458 PR plugins/45078
16459 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16460
16461 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
16462
16463 PR bootstrap/61516
16464 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16465 initialization. Replace remaining use of uid.
16466
16467 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16468
16469 * c-family/c-common.c (handle_tls_model_attribute): Use
16470 set_decl_tls_model.
16471 * c-family/c-common.c (handle_tls_model_attribute): Use
16472 set_decl_tls_model.
16473 * cgraph.h (struct varpool_node): Add tls_model.
16474 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16475 * tree.h (DECL_TLS_MODEL): Update.
16476 (DECL_THREAD_LOCAL_P): Check that variable is static.
16477 (decl_tls_model): Declare.
16478 (set_decl_tls_model): Declare.
16479 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16480 set symbol prorperties.
16481 (get_emutls_init_templ_addr): Cleanup.
16482 (new_emutls_decl): Update.
16483 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16484 (lto_input_varpool_node): Likewise.
16485 * lto-streamer-out.c (hash_tree): Likewise.
16486 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16487 not stream DECL_TLS_MODEL.
16488 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16489 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16490
16491 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16492
16493 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16494
16495 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16496
16497 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16498 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16499 lists.
16500 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16501 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16502 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16503 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16504 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16505 (df_get_artificial_defs, df_get_artificial_uses)
16506 (df_single_def, df_single_use): Update accordingly.
16507 (df_refs_chain_dump): Take the first element in a linked list as
16508 parameter, rather than a pointer to an array of pointers.
16509 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16510 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16511 (df_chain_create_bb_process_use): Likewise.
16512 (df_md_bb_local_compute_process_def): Likewise.
16513 * fwprop.c (process_defs, process_uses): Likewise.
16514 (register_active_defs, update_uses): Likewise.
16515 (forward_propagate_asm): Update for new df_ref linking.
16516 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16517 (df_null_ref_rec, df_null_mw_rec): Likewise.
16518 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16519 explicitly.
16520 (df_scan_free_bb_info): Remove check for null artificial_defs.
16521 (df_install_ref_incremental): Adjust for new df_ref linking.
16522 Use a single-element insertion rather than a full sort.
16523 (df_ref_chain_delete_du_chain): Take the first element
16524 in a linked list as parameter, rather than a pointer to an array of
16525 pointers.
16526 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16527 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16528 (df_insn_info_delete): Remove check for null defs and call to
16529 df_scan_free_mws_vec.
16530 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16531 null rather than df_null_*_rec.
16532 (df_insn_rescan_debug_internal): Likewise, and update null
16533 checks in the same way. Remove check for null defs.
16534 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16535 Move a single element rather doing a full sort.
16536 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16537 linking.
16538 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
16539 Initialize df_ref and df_mw_hardreg lists to null rather than
16540 df_null_*_rec.
16541 (df_ref_compare): Take df_refs as parameter, transferring the
16542 old interface to...
16543 (df_ref_ptr_compare): ...this new function.
16544 (df_sort_and_compress_refs): Update accordingly.
16545 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16546 old interface to...
16547 (df_mw_ptr_compare): ...this new function.
16548 (df_sort_and_compress_mws): Update accordingly.
16549 (df_install_refs, df_install_mws): Return a linked list rather than
16550 an array of pointers.
16551 (df_refs_add_to_chains): Assert that old lists are empty rather
16552 than freeing them.
16553 (df_insn_refs_verify): Don't handle null defs speciailly.
16554 * web.c (union_match_dups): Update for new df_ref linking.
16555
16556 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16557
16558 * df.h (df_ref_create, df_ref_remove): Delete.
16559 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16560 (df_ref_remove): Likewise.
16561
16562 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16563
16564 * df.h (df_single_def, df_single_use): New functions.
16565 * ira.c (find_moveable_pseudos): Use them.
16566
16567 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16568
16569 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16570 * df-problems.c (df_note_bb_compute): Use it.
16571 * regstat.c (regstat_bb_compute_ri): Likewise.
16572
16573 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16574
16575 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16576 * cse.c (cse_extended_basic_block): Use them.
16577 * dce.c (mark_artificial_use): Likewise.
16578 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16579 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16580 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16581 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16582 (df_simulate_initialize_backwards): Likewise.
16583 (df_simulate_finalize_backwards): Likewise.
16584 (df_simulate_initialize_forwards): Likewise.
16585 (df_md_simulate_artificial_defs_at_top): Likewise.
16586 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16587 * regrename.c (init_rename_info): Likewise.
16588 * regstat.c (regstat_bb_compute_ri): Likewise.
16589 (regstat_bb_compute_calls_crossed): Likewise.
16590
16591 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16592
16593 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16594 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16595 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16596 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16597 * combine.c (create_log_links): Likewise.
16598 * compare-elim.c (find_flags_uses_in_insn): Likewise.
16599 (try_eliminate_compare): Likewise.
16600 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16601 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16602 (remove_reg_equal_equiv_notes_for_defs): Likewise.
16603 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16604 (word_dce_process_block, dce_process_block): Likewise.
16605 * ddg.c (def_has_ccmode_p): Likewise.
16606 * df-core.c (df_bb_regno_first_def_find): Likewise.
16607 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16608 * df-problems.c (df_rd_simulate_one_insn): Likewise.
16609 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16610 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16611 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16612 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16613 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16614 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16615 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16616 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16617 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16618 * fwprop.c (local_ref_killed_between_p): Likewise.
16619 (all_uses_available_at, free_load_extend): Likewise.
16620 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16621 * hw-doloop.c (scan_loop): Likewise.
16622 * ifcvt.c (dead_or_predicable): Likewise.
16623 * init-regs.c (initialize_uninitialized_regs): Likewise.
16624 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16625 (process_bb_node_lives): Likewise.
16626 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16627 (find_moveable_pseudos): Likewise.
16628 * loop-invariant.c (check_dependencies, record_uses): Likewise.
16629 * recog.c (peep2_find_free_register): Likewise.
16630 * ree.c (get_defs): Likewise.
16631 * regstat.c (regstat_bb_compute_ri): Likewise.
16632 (regstat_bb_compute_calls_crossed): Likewise.
16633 * sched-deps.c (find_inc, find_mem): Likewise.
16634 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16635 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16636 * shrink-wrap.c (requires_stack_frame_p): Likewise.
16637 (prepare_shrink_wrap): Likewise.
16638 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16639 * web.c (union_defs, pass_web::execute): Likewise.
16640 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16641 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16642
16643 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16644
16645 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16646 to inheritance pseudos.
16647 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16648
16649 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16650
16651 PR target/61415
16652 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16653 (BU_MISC_2): Rename to ...
16654 (BU_LDBL128_2): ... this.
16655 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16656 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16657 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16658 RS6000_BTM_LDBL128.
16659 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16660 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16661 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16662 (unpacktf_1): Likewise.
16663 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16664 (__builtin_longdouble_dw1): Likewise.
16665 * doc/sourcebuild.texi (longdouble128): Document.
16666
16667 2014-06-13 Jeff Law <law@redhat.com>
16668
16669 PR rtl-optimization/61094
16670 PR rtl-optimization/61446
16671 * ree.c (combine_reaching_defs): Get the mode for the copy from
16672 the extension insn rather than the defining insn.
16673
16674 2014-06-13 Dehao Chen <dehao@google.com>
16675
16676 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16677
16678 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16679
16680 * doc/install.texi (--enable-linker-plugin-configure-flags)
16681 (--enable-linker-plugin-flags): Document new flags.
16682
16683 2014-06-13 Martin Jambor <mjambor@suse.cz>
16684
16685 PR ipa/61186
16686 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16687 cache_token if returning early.
16688
16689 2014-06-13 Nick Clifton <nickc@redhat.com>
16690
16691 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16692 requested alignment is active.
16693 (LABEL_ALIGN): Likewise.
16694 (LOOP_ALIGN): Likewise.
16695
16696 2014-06-13 Richard Biener <rguenther@suse.de>
16697
16698 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16699 Rewrite to propagate the VN result into all uses where
16700 possible and to remove stmts becoming dead because of that.
16701 (eliminate): Generalize stmt removal handling, remove in
16702 reverse dominator order to support proper debug stmt
16703 generation. Update stmts before removing stmts.
16704 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16705
16706 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16707
16708 PR tree-optimization/61375
16709 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16710 symbolic number cannot be represented in an uint64_t.
16711 (find_bswap_or_nop_1): Likewise.
16712
16713 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16714
16715 * symtab.c (symtab_node::reset_section): New method.
16716 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16717 for localization.
16718 * cgraph.h (reset_section): Declare.
16719 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16720 do not consider comdat locals.
16721 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16722 for new symbol.
16723 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16724 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16725 reset sections of symbols dragged out of the comdats.
16726 (function_and_variable_visibility): Reset sections of
16727 localized symbols.
16728
16729 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16730
16731 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16732 to use symtab and decl_binds_to_current_def_p
16733 * tree-vectorizer.c (increase_alignment): Increase alignment
16734 of alias target, too.
16735
16736 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16737
16738 PR middle-end/61486
16739 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16740 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16741 if outer combined construct is distribute.
16742 (gimplify_omp_for): For OMP_DISTRIBUTE set
16743 gimplify_omp_ctxp->distribute.
16744 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16745 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16746 mapping into decl map.
16747
16748 2014-06-12 Jason Merrill <jason@redhat.com>
16749
16750 * common.opt (fabi-version): Change default to 0.
16751
16752 2014-06-12 Jason Merrill <jason@redhat.com>
16753
16754 * toplev.c (process_options): Reject -fabi-version=1.
16755
16756 2014-06-12 Jeff Law <law@redhat.com>
16757
16758 PR tree-optimization/61009
16759 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16760 value when we stop processing a block due to problematic PHIs.
16761
16762 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16763
16764 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16765 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16766 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16767 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16768 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16769 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16770 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16771 are not in the spec.
16772
16773 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16774
16775 PR target/59843
16776 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16777 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16778 Support V1DFmode.
16779
16780 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16781
16782 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16783
16784 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16785
16786 PR target/61443
16787 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16788 loading from address spaces.
16789
16790 2014-06-12 Martin Liska <mliska@suse.cz>
16791
16792 PR ipa/61462
16793 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16794 statement is reachable.
16795
16796 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16797
16798 * symtab.c (section_hash): New hash.
16799 (symtab_unregister_node): Clear section before freeing.
16800 (hash_section_hash_entry): New haser.
16801 (eq_sections): New function.
16802 (symtab_node::set_section_for_node): New method.
16803 (set_section_1): Update.
16804 (symtab_node::set_section): Take string instead of tree as parameter.
16805 (symtab_resolve_alias): Update.
16806 * cgraph.h (section_hash_entry_d): New structure.
16807 (section_hash_entry): New typedef.
16808 (cgraph_node): Change comdat_group_ to x_comdat_group,
16809 change section_ to x_section and turn into section_hash_entry;
16810 update accestors; put set_section_for_node offline.
16811 * tree.c (decl_section_name): Turn into string.
16812 (set_decl_section_name): Change parameter to be string.
16813 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16814 * sdbout.c (sdbout_one_type): Update.
16815 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16816 * varasm.c (IN_NAMED_SECTION, get_named_section,
16817 resolve_unique_section, hot_function_section, get_named_text_section,
16818 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16819 make_decl_rtl, default_unique_section): Update.
16820 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16821 (c6x_elf_unique_section): Update.
16822 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16823 * config/pa/pa.c (pa_function_section): Update.
16824 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16825 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16826 * config/arc/arc.c (arc_in_small_data_p): Update.
16827 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16828 * config/mcore/mcore.c (mcore_unique_section): Update.
16829 * config/mips/mips.c (mips16_build_function_stub): Update.
16830 (mips16_build_call_stub): Update.
16831 (mips_function_rodata_section): Update.
16832 (mips_in_small_data_p): Update.
16833 * config/score/score.c (score_in_small_data_p): Update.
16834 * config/rx/rx.c (rx_in_small_data): Update.
16835 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16836 (rs6000_xcoff_asm_named_section): Update.
16837 (rs6000_xcoff_unique_section): Update.
16838 * config/frv/frv.c (frv_string_begins_with): Update.
16839 (frv_in_small_data_p): Update.
16840 * config/v850/v850.c (v850_encode_data_area): Update.
16841 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16842 (bfin_handle_l1_data_attribute): Update.
16843 (bfin_handle_l2_attribute): Update.
16844 * config/mep/mep.c (mep_unique_section): Update.
16845 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16846 Update.
16847 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16848 (h8300_handle_tiny_data_attribute): Update.
16849 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16850 (m32r_in_small_data_p): Update.
16851 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16852 * config/i386/i386.c (ix86_in_large_data_p): Update.
16853 * config/i386/winnt.c (i386_pe_unique_section): Update.
16854 * config/darwin.c (darwin_function_section): Update.
16855 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16856 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16857 (new_emutls_decl): Update.
16858 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16859 input_varpool_node): Update.
16860 (ead_string_cst): Turn to ...
16861 (read_string): ... this one.
16862 * dwarf2out.c (secname_for_decl): Update.
16863 * asan.c (asan_protect_global): Update.
16864
16865 2014-06-11 DJ Delorie <dj@redhat.com>
16866
16867 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16868 cache lines.
16869 * config/rx/rx.c (rx_option_override): Likewise.
16870 (rx_align_for_label): Likewise.
16871
16872 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16873
16874 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16875
16876 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16877 prototype.
16878
16879 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16880
16881 * common.md: New file.
16882 * doc/md.texi: Update description of generic, machine-independent
16883 constraints.
16884 * config/s390/constraints.md (e): Delete.
16885 * Makefile.in (md_file): Include common.md.
16886 * config/m32c/t-m32c (md_file): Likewise.
16887 * genpreds.c (general_mem): New array.
16888 (generic_constraint_letters): Remove constraints now defined by
16889 common.md.
16890 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16891 Allow the first character to be '<' or '>' as well.
16892 * genoutput.c (general_mem): New array.
16893 (indep_constraints): Remove constraints now defined by common.md.
16894 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16895 Remove special handling of 'm'.
16896 * ira-costs.c (record_reg_classes): Remove special handling of
16897 constraints now defined by common.md.
16898 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16899 * ira-lives.c (single_reg_class): Likewise.
16900 (ira_implicitly_set_insn_hard_regs): Likewise.
16901 * lra-constraints.c (reg_class_from_constraints): Likewise.
16902 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16903 * postreload.c (reload_cse_simplify_operands): Likewise.
16904 * reload.c (push_secondary_reload, scratch_reload_class)
16905 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16906 * reload1.c (maybe_fix_stack_asms): Likewise.
16907 * targhooks.c (default_secondary_reload): Likewise.
16908 * stmt.c (parse_output_constraint): Likewise.
16909 * recog.c (preprocess_constraints): Likewise.
16910 (constrain_operands, peep2_find_free_register): Likewise.
16911 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16912 must be handled specially.
16913
16914 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16915
16916 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16917 * genpreds.c (have_const_dbl_constraints): Delete.
16918 (add_constraint): Don't set it.
16919 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16920 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16921 constraints using the lookup_constraint logic.
16922 * ira-lives.c (single_reg_class): Likewise.
16923 * ira.c (ira_setup_alts): Likewise.
16924 * lra-constraints.c (process_alt_operands): Likewise.
16925 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16926 * reload.c (find_reloads): Likewise.
16927
16928 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16929
16930 * genpreds.c (const_int_start, const_int_end): New variables.
16931 (choose_enum_order): Output CONST_INT constraints before memory
16932 constraints.
16933 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16934 Add CT_CONST_INT.
16935 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16936 * ira.c (ira_setup_alts): Likewise.
16937 * lra-constraints.c (process_alt_operands): Likewise.
16938 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16939 * reload.c (find_reloads): Likewise.
16940
16941 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16942
16943 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16944 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16945 * recog.c (preprocess_constraints): Update accordingly.
16946
16947 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16948
16949 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16950 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16951 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16952 * genpreds.c (print_type_tree): New function.
16953 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16954 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16955 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16956 Write out enum constraint_type and get_constraint_type.
16957 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16958 constraint_num rather than a constraint string.
16959 (satisfies_address_constraint_p): Likewise.
16960 (reg_class_from_constraints): Avoid old constraint macros.
16961 (process_alt_operands, process_address_1): Likewise.
16962 (curr_insn_transform): Likewise.
16963 * ira-costs.c (record_reg_classes): Likewise.
16964 (record_operand_costs): Likewise.
16965 * ira-lives.c (single_reg_class): Likewise.
16966 (ira_implicitly_set_insn_hard_regs): Likewise.
16967 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16968 * postreload.c (reload_cse_simplify_operands): Likewise.
16969 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16970 (constrain_operands, peep2_find_free_register): Likewise.
16971 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16972 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16973 * reload1.c (maybe_fix_stack_asms): Likewise.
16974 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16975 * targhooks.c (default_secondary_reload): Likewise.
16976 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16977 to EXTRA_CONSTRAINT_STR.
16978 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16979
16980 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16981
16982 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16983 (write_constraint_satisfied_p_array): ...this new function.
16984 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16985 an array.
16986 (write_insn_preds_c): Update accordingly.
16987
16988 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16989
16990 * genpreds.c (write_lookup_constraint): Rename to...
16991 (write_lookup_constraint_1): ...this.
16992 (write_lookup_constraint_array): New function.
16993 (write_tm_preds_h): Define lookup_constraint as an inline function
16994 that uses write_lookup_constraint_array where possible.
16995 (write_insn_preds_c): Update for the changes above.
16996
16997 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16998
16999 * doc/md.texi (regclass_for_constraint): Rename to...
17000 (reg_class_for_constraint): ...this.
17001 * genpreds.c (num_constraints, enum_order, register_start)
17002 (register_end, satisfied_start, memory_start, memory_end)
17003 (address_start, address_end): New variables.
17004 (add_constraint): Count the number of constraints.
17005 (choose_enum_order): New function.
17006 (write_enum_constraint_num): Iterate over enum_order.
17007 (write_regclass_for_constraint): Rename to...
17008 (write_reg_class_for_constraint_1): ...this and update output
17009 accordingly.
17010 (write_constraint_satisfied_p): Rename to...
17011 (write_constraint_satisfied_p_1): ...this and update output
17012 accordingly. Do nothing if all extra constraints are register
17013 constraints.
17014 (write_insn_extra_memory_constraint): Delete.
17015 (write_insn_extra_address_constraint): Delete.
17016 (write_range_function): New function.
17017 (write_tm_preds_h): Define constraint_satisfied_p and
17018 reg_class_for_constraint as inline functions that do a range check
17019 before calling the out-of-line function. Use write_range_function
17020 to implement insn_extra_{register,memory,address}_constraint,
17021 the first of which is new.
17022 (write_insn_preds_c): Update after above changes to write_* functions.
17023 (main): Call choose_enum_order.
17024
17025 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
17026
17027 PR tree-optimization/61306
17028 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
17029 expression instead of its size.
17030 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
17031 false to prevent optimization when the result is unpredictable due to
17032 arithmetic right shift of signed type with highest byte is set.
17033 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
17034 (init_symbolic_number): Likewise.
17035 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
17036 when the result is unpredictable due to sign extension.
17037
17038 2014-06-11 Terry Guo <terry.guo@arm.com>
17039
17040 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
17041 (*thumb1_addsi3): Ditto.
17042 (*thumb_subdi3): Ditto.
17043 (thumb1_subsi3_insn): Ditto.
17044 (*thumb_mulsi3): Ditto.
17045 (*thumb_mulsi3_v6): Ditto.
17046 (*thumb1_andsi3_insn): Ditto.
17047 (thumb1_bicsi3): Ditto.
17048 (*thumb1_iorsi3_insn): Ditto.
17049 (*thumb1_xorsi3_insn): Ditto.
17050 (*thumb1_ashlsi3): Ditto.
17051 (*thumb1_ashrsi3): Ditto.
17052 (*thumb1_lshrsi3): Ditto.
17053 (*thumb1_rotrsi3): Ditto.
17054 (*thumb1_negdi2): Ditto.
17055 (*thumb1_negsi2): Ditto.
17056 (*thumb1_abssi2): Ditto.
17057 (*thumb1_neg_abssi2): Ditto.
17058 (*thumb1_one_cmplsi2): Ditto.
17059 (*thumb1_zero_extendhisi2): Ditto.
17060 (*thumb1_zero_extendqisi2): Ditto.
17061 (*thumb1_zero_extendqisi2_v6): Ditto.
17062 (thumb1_extendhisi2): Ditto.
17063 (thumb1_extendqisi2): Ditto.
17064 (*thumb1_movdi_insn): Ditto.
17065 (*thumb1_movsi_insn): Ditto.
17066 (*thumb1_movhi_insn): Ditto.
17067 (thumb_movhi_clobber): Ditto.
17068 (*thumb1_movqi_insn): Ditto.
17069 (*thumb1_movhf): Ditto.
17070 (*thumb1_movsf_insn): Ditto.
17071 (*thumb_movdf_insn): Ditto.
17072 (movmem12b): Ditto.
17073 (movmem8b): Ditto.
17074 (cbranchqi4): Ditto.
17075 (cbranchsi4_insn): Ditto.
17076 (cbranchsi4_scratch): Ditto.
17077 (*negated_cbranchsi4): Ditto.
17078 (*tbit_cbranch): Ditto.
17079 (*tlobits_cbranch): Ditto.
17080 (*tstsi3_cbranch): Ditto.
17081 (*cbranchne_decr1): Ditto.
17082 (*addsi3_cbranch): Ditto.
17083 (*addsi3_cbranch_scratch): Ditto.
17084 (*thumb_cmpdi_zero): Ditto.
17085 (cstoresi_eq0_thumb1): Ditto.
17086 (cstoresi_ne0_thumb1): Ditto.
17087 (*cstoresi_eq0_thumb1_insn): Ditto.
17088 (*cstoresi_ne0_thumb1_insn): Ditto.
17089 (cstoresi_nltu_thumb1): Ditto.
17090 (cstoresi_ltu_thumb1): Ditto.
17091 (thumb1_addsi3_addgeu): Ditto.
17092 (*thumb_jump): Ditto.
17093 (*call_reg_thumb1_v5): Ditto.
17094 (*call_reg_thumb1): Ditto.
17095 (*call_value_reg_thumb1_v5): Ditto.
17096 (*call_value_reg_thumb1): Ditto.
17097 (*call_insn): Ditto.
17098 (*call_value_insn): Ditto.
17099 (thumb1_casesi_internal_pic): Ditto.
17100 (thumb1_casesi_dispatch): Ditto.
17101 (*thumb1_indirect_jump): Ditto.
17102 (prologue_thumb1_interwork): Ditto.
17103 (*epilogue_insns): Ditto.
17104 (consttable_1): Ditto.
17105 (consttable_2): Ditto.
17106 (tablejump): Ditto.
17107 (*thumb1_tablejump): Ditto.
17108 (thumb_eh_return): Ditto.
17109 (define_peephole2): Two of them are thumb1 only and got moved into
17110 new file thumb1.md.
17111 (define_split): Six of them are thumb1 only and got moved into new
17112 file thumb1.md.
17113 * config/arm/thumb1.md: New file comprised of above thumb1 only
17114 patterns.
17115
17116 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17117
17118 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
17119 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
17120 dependencies.
17121 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
17122 (aarch64_crc_builtin_datum): New struct.
17123 (aarch64_crc_builtin_data): New.
17124 (aarch64_init_crc32_builtins): New function.
17125 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
17126 (aarch64_crc32_expand_builtin): New.
17127 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
17128 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17129 __ARM_FEATURE_CRC32 when appropriate.
17130 (TARGET_CRC32): Define.
17131 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
17132 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
17133 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
17134 (aarch64_<crc_variant>): New pattern.
17135 * config/aarch64/arm_acle.h: New file.
17136 * config/aarch64/iterators.md (CRC): New int iterator.
17137 (crc_variant, crc_mode): New int attributes.
17138 * doc/aarch64-acle-intrinsics.texi: New file.
17139 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
17140 Include aarch64-acle-intrinsics.texi.
17141
17142 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
17143
17144 * tree-vect-data-refs.c (vect_grouped_store_supported): New
17145 check for stores group of length 3.
17146 (vect_permute_store_chain): New permutations for stores group of
17147 length 3.
17148 * tree-vect-stmts.c (vect_model_store_cost): Change cost
17149 of vec_perm_shuffle for the new permutations.
17150
17151 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
17152
17153 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
17154 table rewriting temporarily on targets not supporting ONE_ONLY.
17155
17156 2014-06-11 Richard Biener <rguenther@suse.de>
17157
17158 PR middle-end/61437
17159 Revert
17160 2014-06-04 Richard Biener <rguenther@suse.de>
17161
17162 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17163 TREE_PUBLIC and DECL_EXTERNAL decls.
17164
17165 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
17166
17167 * varasm.c (set_implicit_section): New function.
17168 (resolve_unique_section): Use it to set implicit section
17169 for aliases, too.
17170 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
17171 (default_function_section): Likewise.
17172 (decl_binds_to_current_def_p): Constify argument.
17173 * varasm.h (decl_binds_to_current_def_p): Update prototype.
17174 * asan.c (asan_protect_global): Use
17175 symtab_get_node (decl)->implicit_section.
17176 * symtab.c (dump_symtab_base): Dump implicit sections.
17177 (verify_symtab_base): Verify sanity of sectoins and comdats.
17178 (symtab_resolve_alias): Alias share the section of its target.
17179 (set_section_1): New function.
17180 (symtab_node::set_section): Move here, recurse to aliases.
17181 (verify_symtab): Check for duplicated symtab lists.
17182 * tree-core.h (implicit_section_name_p): Remove.
17183 * tree-vect-data-refs.c: Include varasm.h.
17184 (vect_can_force_dr_alignment_p): Fix conditional on when
17185 decl bints to current definition; use
17186 symtab_get_node (decl)->implicit_section.
17187 * cgraph.c (cgraph_make_node_local_1): Fix section set.
17188 * cgraph.h (struct symtab_node): Add implicit_section.
17189 (set_section): Rename to ...
17190 (set_section_for_node): ... this one.
17191 (set_section): Declare.
17192 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
17193 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17194 input_overwrite_node, input_varpool_node): Stream implicit_section.
17195 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
17196 removal; it will fail in LTO.
17197
17198 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17199
17200 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
17201 Change second alternative type to f_mcr.
17202 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
17203 and 12th alternatives' types to f_mcr and f_mrc.
17204 (*movdi_aarch64): Same for 12th and 13th alternatives.
17205 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
17206 (aarch64_movtilow_tilow): Change type to fmov.
17207
17208 2014-06-10 Jiong Wang <jiong.wang@arm.com>
17209
17210 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
17211 (aarch64_save_or_restore_callee_save_registers): Fix layout.
17212
17213 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17214
17215 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
17216 New expander.
17217 (aarch64_sqrdmulh_lane<mode>): Likewise.
17218 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17219 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17220 (aarch64_sqdmulh_laneq<mode>): New expander.
17221 (aarch64_sqrdmulh_laneq<mode>): Likewise.
17222 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
17223 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
17224 (aarch64_sqdmulh_lane<mode>): New expander.
17225 (aarch64_sqrdmulh_lane<mode>): Likewise.
17226 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
17227 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
17228 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
17229 (aarch64_sqdmlal_laneq<mode>): Likewise.
17230 (aarch64_sqdmlsl_lane<mode>): Likewise.
17231 (aarch64_sqdmlsl_laneq<mode>): Likewise.
17232 (aarch64_sqdmlal2_lane<mode>): Likewise.
17233 (aarch64_sqdmlal2_laneq<mode>): Likewise.
17234 (aarch64_sqdmlsl2_lane<mode>): Likewise.
17235 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17236 (aarch64_sqdmull_lane<mode>): Likewise.
17237 (aarch64_sqdmull_laneq<mode>): Likewise.
17238 (aarch64_sqdmull2_lane<mode>): Likewise.
17239 (aarch64_sqdmull2_laneq<mode>): Likewise.
17240
17241 2014-06-10 Richard Biener <rguenther@suse.de>
17242
17243 PR tree-optimization/61438
17244 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
17245 (eliminate_dom_walker::before_dom_children): Only try to inhibit
17246 insertion of IVs if running PRE.
17247 (eliminate): Adjust.
17248 (pass_pre::execute): Likewise.
17249 (pass_fre::execute): Likewise.
17250
17251 2014-06-10 Richard Biener <rguenther@suse.de>
17252
17253 PR middle-end/61456
17254 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17255 Do not use the main variant for the type comparison.
17256 (ncr_compar): Likewise.
17257 (nonoverlapping_component_refs_p): Likewise.
17258
17259 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
17260
17261 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
17262 REG_CFA_RESTORE mode.
17263
17264 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
17265
17266 * config/i386/i386.c (expand_vec_perm_pblendv): New.
17267 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
17268 expand_vec_perm_pblendv.
17269
17270 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17271
17272 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
17273 available.
17274 Simplify description of __crc32d and __crc32cd intrinsics.
17275 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
17276 availability.
17277
17278 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
17279
17280 PR lto/61334
17281 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
17282 * config.in: Regenerate.
17283 * configure: Likewise.
17284
17285 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
17286
17287 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
17288 and public vars.
17289 (intersect_static_var_sets): Remove.
17290 (propagate): Do not prune local statics.
17291
17292 2014-06-10 Jakub Jelinek <jakub@redhat.com>
17293
17294 PR fortran/60928
17295 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
17296 Set lastprivate_firstprivate even if omp_private_outer_ref
17297 langhook returns true.
17298 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
17299 langhook, call unshare_expr on new_var and call
17300 build_outer_var_ref to get the last argument.
17301
17302 2014-06-10 Marek Polacek <polacek@redhat.com>
17303
17304 PR c/60988
17305 * doc/extend.texi: Add cindex for transparent_union.
17306
17307 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
17308
17309 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
17310 init_symbolic_number ().
17311
17312 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
17313
17314 PR middle-end/61141
17315 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
17316 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
17317 (verify_rtl_sharing): Likewise.
17318
17319 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
17320
17321 PR c++/54442
17322 * tree.c (build_qualified_type): Use a canonical type for
17323 TYPE_CANONICAL.
17324
17325 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17326
17327 * config/arm/arm-modes.def: Remove XFmode.
17328
17329 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
17330
17331 PR target/61062
17332 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
17333 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
17334 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
17335 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
17336 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
17337 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
17338 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
17339 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
17340 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
17341
17342 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
17343
17344 * tree-core.h (tree_decl_with_vis): Remove section_name.
17345
17346 2014-06-09 Kito Cheng <kito@0xlab.org>
17347
17348 * ira.c (ira): Don't call init_caller_save if LRA enabled
17349 since LRA use its own infrastructure to handle that.
17350
17351 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17352
17353 * symtab.c (dump_symtab_base): Update dumping.
17354 (symtab_make_decl_local): Clear only DECL_COMDAT.
17355 * tree-vect-data-refs.c (Check that variable is static before
17356 tampering with sections.
17357 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
17358 (cgraph_create_virtual_clone): Likewise.
17359 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
17360 (decl_section_name, set_decl_section_name): New accessors.
17361 (find_decls_types_r): Do not walk section name
17362 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
17363 (decl_comdat_group, decl_comdat_group_id): Constify.
17364 (decl_section_name, set_decl_section_name): Update.
17365 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
17366 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
17367 (cgraph_make_node_local_1): Clear section and comdat group.
17368 * cgraph.h (set_comdat_group): Sanity check.
17369 (get_section, set_section): New.
17370 * ipa-comdats.c (ipa_comdats): Use get_section.
17371 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
17372 * lto-streamer-out.c: Do not follow section names.
17373 * c-family/c-common.c (handle_section_attribute): Update.
17374 * lto-cgraph.c (lto_output_node): Output section.
17375 (lto_output_varpool_node): Likewise.
17376 (read_comdat_group): Rename to ...
17377 (read_identifier): ... this one.
17378 (read_string_cst): New function.
17379 (input_node, input_varpool_node): Input section names.
17380 * tree-emutls.c (get_emutls_init_templ_addr): Update.
17381 (new_emutls_decl): Update.
17382 (secname_for_decl): Check section names only of static vars.
17383 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
17384 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
17385 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17386 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17387 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
17388 * config/mcore/mcore.c (mcore_unique_section): Likewise.
17389 * config/mips/mips.c (mips16_build_function_stub): Likewise.
17390 * config/v850/v850.c (v850_insert_attributes): Likewise.
17391 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
17392 Likewise.
17393 (h8300_handle_tiny_data_attribute): Likewise.
17394 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
17395 (bfin_handle_l2_attribute): Likewise.
17396
17397 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17398
17399 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
17400 remove static initializer.
17401
17402 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17403
17404 * varasm.c (use_blocks_for_decl_p): Check symbol table
17405 instead of alias attribute.
17406 (place_block_symbol): Recurse on aliases.
17407
17408 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17409
17410 * ipa-visibility.c: Include varasm.h
17411 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
17412
17413 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17414
17415 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
17416 outputting aliases.
17417
17418 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
17419
17420 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
17421 from test_insn into GGC space escape via SET_SRC.
17422
17423 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
17424
17425 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
17426 call statement, if any.
17427 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
17428 statements, if any. Tidy up.
17429
17430 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17431
17432 PR target/61431
17433 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
17434 iterators, VSX_D that handles 64-bit types, and VSX_LE that
17435 handles swapping the two 64-bit double words on little endian
17436 systems. Include V1TImode and optionally TImode in VSX_LE so that
17437 these types are properly swapped. Change all of the insns and
17438 splits that do the 64-bit swaps to use VSX_LE.
17439 (vsx_le_perm_load_<mode>): Likewise.
17440 (vsx_le_perm_store_<mode>): Likewise.
17441 (splitters for little endian memory operations): Likewise.
17442 (vsx_xxpermdi2_le_<mode>): Likewise.
17443 (vsx_lxvd2x2_le_<mode>): Likewise.
17444 (vsx_stxvd2x2_le_<mode>): Likewise.
17445
17446 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
17447
17448 PR target/61423
17449 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
17450 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17451 and corresponding splitters. Zero extend general register
17452 or memory input operand to XMM temporary. Enable for
17453 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17454 (floatunssi<mode>2): Update expander predicate.
17455
17456 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
17457
17458 PR rtl-optimization/61325
17459 * lra-constraints.c (process_address_1): Check scale equal to one
17460 to prevent transformation: base + scale * index => base + new_reg.
17461
17462 2014-06-06 Richard Biener <rguenther@suse.de>
17463
17464 PR tree-optimization/59299
17465 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17466 a def operand.
17467 (nearest_common_dominator_of_uses): Likewise.
17468 (statement_sink_location): Adjust. Support sinking loads.
17469
17470 2014-06-06 Martin Jambor <mjambor@suse.cz>
17471
17472 * ipa-prop.c (get_place_in_agg_contents_list): New function.
17473 (build_agg_jump_func_from_list): Likewise.
17474 (determine_known_aggregate_parts): Renamed to
17475 determine_locally_known_aggregate_parts. Moved some functionality
17476 to the two functions above, removed bound checks.
17477
17478 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
17479
17480 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17481 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17482 (aarch64_progress_pointer): Likewise.
17483 (aarch64_copy_one_part_and_move_pointers): Likewise.
17484 (aarch64_expand_movmen): Likewise.
17485 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17486 * config/aarch64/aarch64.md (movmem<mode>): New.
17487
17488 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
17489
17490 * targhooks.c (default_add_stmt_cost): Call target specific
17491 hook instead of default one.
17492
17493 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
17494
17495 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17496 endianness instead of host endianness.
17497 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17498 comments.
17499
17500 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17501
17502 PR debug/53927
17503 * function.c (instantiate_decls): Process the saved static chain.
17504 (expand_function_start): If not optimizing, save the static chain
17505 onto the stack.
17506 * tree-nested.c (convert_all_function_calls): Always create the static
17507 chain for nested functions if not optimizing.
17508
17509 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17510
17511 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17512
17513 2014-06-06 Richard Biener <rguenther@suse.de>
17514
17515 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17516 (construct_init_block): Likewise.
17517 (construct_exit_block): Likewise.
17518 (pass_expand::execute): Likewise.
17519 * graphite.c (graphite_transforms): Replace check for current_loops
17520 with a check for > 1 loops.
17521 (pass_graphite_transforms::execute): Adjust.
17522 * ipa-split.c (split_function): Remove check for current_loops.
17523 * omp-low.c (expand_parallel_call): Likewise.
17524 (expand_omp_for_init_counts): Likewise.
17525 (extract_omp_for_update_vars): Likewise.
17526 (expand_omp_for_generic): Likewise.
17527 (expand_omp_sections): Likewise.
17528 (expand_omp_target): Likewise.
17529 * tracer.c (tail_duplicate): Likewise.
17530 (pass_tracer::execute): Likewise.
17531 * trans-mem.c (expand_transaction): Likewise.
17532 * tree-complex.c (expand_complex_div_wide): Likewise.
17533 * tree-eh.c (lower_resx): Likewise.
17534 (cleanup_empty_eh_merge_phis): Likewise.
17535 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17536 current_loops with a check for > 1 loops.
17537 (pass_predcom::execute): Adjust.
17538 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17539 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17540 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17541 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17542 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17543 * tree-switch-conversion.c (process_switch): Likewise.
17544 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17545 * tree-vrp.c (vrp_visit_phi_node): Likewise.
17546 (execute_vrp): Likewise.
17547 * ubsan.c (ubsan_expand_null_ifn): Likewise.
17548
17549 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17550
17551 * rtl.h (insn_location): Declare.
17552 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17553 with UNKNOWN_LOCATION.
17554 * emit-rtl.c (insn_location): New function.
17555 * final.c (notice_source_line): Check that the instruction has a
17556 location before retrieving it and use insn_location.
17557 * modulo-sched.c (loop_single_full_bb_p): Likewise.
17558 * print-rtl.c (print_rtx): Likewise.
17559
17560 2014-06-06 Richard Biener <rguenther@suse.de>
17561
17562 * passes.def: Move 2nd VRP pass before phi-only-cprop.
17563
17564 2014-06-06 Christian Bruel <christian.bruel@st.com>
17565
17566 PR tree-optimization/43934
17567 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17568 cost.
17569
17570 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
17571
17572 * ira-lives.c (single_reg_class): Add missing break. Explicitly
17573 return NO_REGS for extra address and memory constraints. Handle
17574 operands that match (or are equivalent to something that matches)
17575 extra constant constraints. Ignore other non-register operands.
17576
17577 2014-06-06 Alan Modra <amodra@gmail.com>
17578
17579 PR target/61300
17580 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17581 * doc/tm.texi: Regenerate.
17582 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17583 Use throughout in place of REG_PARM_STACK_SPACE.
17584 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17585 "incoming" param. Pass to rs6000_function_parms_need_stack.
17586 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17587 prototype_p when incoming. Use function decl when incoming
17588 to handle K&R style functions.
17589 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17590 (INCOMING_REG_PARM_STACK_SPACE): Define.
17591
17592 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17593
17594 PR target/52472
17595 * cfgexpand.c (expand_debug_expr): Use address space of nested
17596 TREE_TYPE for ADDR_EXPR and MEM_REF.
17597
17598 2014-06-05 Jeff Law <law@redhat.com>
17599
17600 PR tree-optimization/61289
17601 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17602 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
17603 looking for those which match LHS. All callers changed.
17604 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17605 parameters and code which manipulated them. All callers changed.
17606 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17607 and DST_MAP parameters. Simplify invalidation code by just calling
17608 invalidate_equivalences. All callers changed.
17609 (thread_across_edge): Simplify now that we don't need to maintain
17610 the map of equivalences to invalidate.
17611
17612 2014-06-05 Kai Tietz <ktietz@redhat.com>
17613 Richard Henderson <rth@redhat.com>
17614
17615 PR target/46219
17616 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17617 checking for !TARGET_X32.
17618 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17619 (sibcall_intern): New define_insn, plus required peepholes.
17620 (sibcall_pop_intern): Likewise.
17621 (sibcall_value_intern): Likewise.
17622 (sibcall_value_pop_intern): Likewise.
17623
17624 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
17625
17626 * tree-inline.c (tree_function_versioning): Check DF info existence
17627 before accessing it.
17628
17629 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17630
17631 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17632 frame_size.
17633 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17634 aarch64_frame hard_fp_offset and frame_size.
17635 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17636 frame_size; remove original_frame_size.
17637 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17638 (aarch64_initial_elimination_offset): Remove frame_size and
17639 offset. Use aarch64_frame frame_size.
17640
17641 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17642 Jiong Wang <jiong.wang@arm.com>
17643 Renlin <renlin.li@arm.com>
17644
17645 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17646 initialization of R30 offset. Update offset. Iterate core
17647 regisers upto X30. Remove X29, X30 specific code.
17648
17649 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17650 Jiong Wang <jiong.wang@arm.com>
17651
17652 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17653 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17654 (aarch64_register_saved_on_entry): Adjust test.
17655
17656 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17657
17658 * config/aarch64/aarch64.h (machine_function): Move
17659 saved_varargs_size from here...
17660 (aarch64_frame): ... to here.
17661
17662 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17663 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17664 (aarch64_initial_elimination_offset)
17665 (aarch64_setup_incoming_varargs): Adjust location of
17666 saved_varargs_size.
17667
17668 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17669
17670 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17671 layout comment.
17672
17673 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17674 Prachi Godbole <Prachi.Godbole@imgtec.com>
17675
17676 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17677 mips32r5 entry to use PROCESSOR_P5600.
17678 * config/mips/mips-tables.opt: Regenerate.
17679 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17680 * config/mips/mips.c (mips_fmadd_bypass): New function.
17681 (mips_rtx_cost_data): Add costs for p5600.
17682 (mips_issue_rate): Add support for p5600.
17683 (mips_multipass_dfa_lookahead): Likewise.
17684 * config/mips/mips.h (TUNE_P5600): New define.
17685 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17686 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17687 * config/mips/mips.md: Include p5600.md.
17688 (processor): Add p5600.
17689 * config/mips/p5600.md: New file.
17690
17691 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17692
17693 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17694 * config/i386/predicates.md (palignr_operand): New.
17695 Indicates if permutation is suitable for palignr instruction.
17696
17697 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17698
17699 PR tree-optimization/61319
17700 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17701 stmt belongs to loop.
17702
17703 2014-06-05 Richard Biener <rguenther@suse.de>
17704
17705 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17706 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17707 (lookup_tmp_var): Adjust.
17708 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17709
17710 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17711
17712 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17713
17714 2014-06-05 Marek Polacek <polacek@redhat.com>
17715
17716 PR c/49706
17717 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17718
17719 2014-06-04 Tom de Vries <tom@codesourcery.com>
17720
17721 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17722 CONST_INT.
17723
17724 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17725
17726 PR tree-optimization/61385
17727 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17728
17729 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17730
17731 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17732 changed to use fatal_error.
17733 (main): Ensure lto_wrapper_cleanup is run atexit.
17734
17735 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17736
17737 * lra-constraints.c (valid_address_p): Move earlier in file.
17738 (address_eliminator): New structure.
17739 (satisfies_memory_constraint_p): New function.
17740 (satisfies_address_constraint_p): Likewise.
17741 (process_alt_operands, process_address, curr_insn_transform): Use them.
17742
17743 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17744
17745 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17746 const pointer.
17747 (target_lra_int, default_target_lra_int, this_target_lra_int)
17748 (op_alt_data): Delete.
17749 * lra.h (lra_init): Delete.
17750 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17751 (init_insn_code_data_once): Remove op_alt_data handling.
17752 (finish_insn_code_data_once): Likewise.
17753 (init_op_alt_data): Delete.
17754 (get_static_insn_data): Initialize operand_alternative to null.
17755 (free_insn_recog_data): Cast operand_alternative before freeing it.
17756 (setup_operand_alternative): Take the operand_alternative as
17757 parameter and assume it isn't already cached in the static
17758 insn data.
17759 (lra_set_insn_recog_data): Update accordingly.
17760 (lra_init): Delete.
17761 * ira.c (ira_init): Don't call lra_init.
17762 * target-globals.h (this_target_lra_int): Declare.
17763 (target_globals): Remove lra_int.
17764 (restore_target_globals): Update accordingly.
17765 * target-globals.c: Don't include lra-int.h.
17766 (default_target_globals, save_target_globals): Remove lra_int.
17767
17768 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17769
17770 * recog.h (operand_alternative): Convert reg_class, reject,
17771 matched and matches into bitfields.
17772 (preprocess_constraints): New overload.
17773 (preprocess_insn_constraints): New function.
17774 (preprocess_constraints): Take the insn as parameter.
17775 (recog_op_alt): Change into a pointer.
17776 (target_recog): Add x_op_alt.
17777 * recog.c (asm_op_alt): New variable.
17778 (recog_op_alt): Change into a pointer.
17779 (preprocess_constraints): New overload, replacing the old function
17780 definition with one that doesn't use global state.
17781 (preprocess_insn_constraints): New function.
17782 (preprocess_constraints): Use them. Take the insn as parameter.
17783 Use asm_op_alt for asms.
17784 (recog_init): Free existing x_op_alt entries.
17785 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17786 pointer const.
17787 (make_early_clobber_and_input_conflicts): Likewise.
17788 (process_bb_node_lives): Pass the insn to process_constraints.
17789 * reg-stack.c (check_asm_stack_operands): Likewise.
17790 (subst_asm_stack_regs): Likewise.
17791 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17792 * regrename.c (build_def_use): Likewise.
17793 * sched-deps.c (sched_analyze_insn): Likewise.
17794 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17795 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17796 (note_invalid_constants): Likewise.
17797 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17798 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17799 const.
17800
17801 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17802
17803 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17804 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17805 alternatives.
17806 (make_early_clobber_and_input_conflicts): Likewise.
17807 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17808
17809 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17810
17811 * recog.h (alternative_class): New function.
17812 (which_op_alt): Return a const recog_op_alt.
17813 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17814 (subst_asm_stack_regs): Likewise.
17815 * config/arm/arm.c (note_invalid_constants): Likewise.
17816 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17817 the operand_alternative; use alternative class instead.
17818 * sel-sched.c (get_reg_class): Likewise.
17819 * regrename.c (build_def_use): Likewise.
17820 (hide_operands, restore_operands, record_out_operands): Update type
17821 accordingly.
17822
17823 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17824
17825 * recog.h (recog_op_alt): Convert to a flat array.
17826 (which_op_alt): New function.
17827 * recog.c (recog_op_alt): Convert to a flat array.
17828 (preprocess_constraints): Update accordingly, grouping all
17829 operands of the same alternative together, rather than the
17830 other way around.
17831 * ira-lives.c (check_and_make_def_conflict): Likewise.
17832 (make_early_clobber_and_input_conflicts): Likewise.
17833 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17834 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17835 (subst_asm_stack_regs): Likewise.
17836 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17837 * regrename.c (hide_operands, record_out_operands): Likewise.
17838 (build_def_use): Likewise.
17839 * sel-sched.c (get_reg_class): Likewise.
17840 * config/arm/arm.c (note_invalid_constants): Likewise.
17841
17842 2014-06-04 Jason Merrill <jason@redhat.com>
17843
17844 PR c++/51253
17845 PR c++/61382
17846 * gimplify.c (gimplify_arg): Non-static.
17847 * gimplify.h: Declare it.
17848
17849 2014-06-04 Richard Biener <rguenther@suse.de>
17850
17851 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17852 TREE_PUBLIC and DECL_EXTERNAL decls.
17853
17854 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17855
17856 * regcprop.c (copyprop_hardreg_forward_1): Account for
17857 HARD_REGNO_CALL_PART_CLOBBERED.
17858
17859 2014-06-04 Richard Biener <rguenther@suse.de>
17860
17861 * configure.ac: Check whether the underlying type of int64_t
17862 is long or long long.
17863 * configure: Regenerate.
17864 * config.in: Likewise.
17865 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17866 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17867
17868 2014-06-04 Richard Biener <rguenther@suse.de>
17869
17870 PR tree-optimization/60098
17871 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17872 we hit a kill.
17873 (dse_optimize_stmt): Simplify, now that we found a kill
17874 earlier.
17875
17876 2014-06-04 Richard Biener <rguenther@suse.de>
17877
17878 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17879 of accesses with non-invariant address.
17880
17881 2014-06-04 Martin Liska <mliska@suse.cz>
17882
17883 * cgraph.h (cgraph_make_wrapper): New function introduced.
17884 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17885 * ipa-inline.h (inline_analyze_function): The function is global.
17886 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17887
17888 2014-06-04 Martin Liska <mliska@suse.cz>
17889
17890 * tree.h (private_lookup_attribute_starting): New function.
17891 (lookup_attribute_starting): Likewise.
17892 * tree.c (private_lookup_attribute_starting): Likewise.
17893
17894 2014-06-04 Martin Liska <mliska@suse.cz>
17895
17896 * cgraph.h (expand_thunk): New argument added.
17897 (address_taken_from_non_vtable_p): New global function.
17898 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17899 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17900 * cgraphunit.c (analyze_function): Likewise.
17901 (assemble_thunks_and_aliases): Argument added to call.
17902 (expand_thunk): New argument forces to produce GIMPLE thunk.
17903
17904 2014-06-04 Martin Liska <mliska@suse.cz>
17905
17906 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17907 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17908 * profile.c (branch_prob): Likewise.
17909
17910 2014-06-04 Martin Jambor <mjambor@suse.cz>
17911
17912 PR ipa/61340
17913 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17914 handler for switch on an ipa_ref_use enum.
17915 * ipa-reference.c (analyze_function): Likewise.
17916
17917 2014-06-04 Kai Tietz <ktietz@redhat.com>
17918
17919 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17920 from old call-instruction.
17921
17922 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17923
17924 * config/aarch64/aarch64.c (aarch64_classify_address)
17925 (aarch64_legitimize_reload_address): Support full addressing modes
17926 for vector modes.
17927 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17928 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17929
17930 2014-06-03 Andrew Pinski <apinski@cavium.com>
17931
17932 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17933 for OP0.
17934
17935 2014-06-03 Andrew Pinski <apinski@cavium.com>
17936
17937 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17938 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17939
17940 2014-06-03 Kai Tietz <ktietz@redhat.com>
17941
17942 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17943 for 64-bit ms-abi.
17944
17945 2014-06-03 Dehao Chen <dehao@google.com>
17946
17947 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17948 the same loop.
17949
17950 2014-06-03 Marek Polacek <polacek@redhat.com>
17951
17952 PR c/60439
17953 * doc/invoke.texi: Document -Wswitch-bool.
17954 * function.c (stack_protect_epilogue): Cast controlling expression of
17955 the switch to int.
17956 * gengtype.c (walk_type): Generate switch expression with its
17957 controlling expression cast to int.
17958
17959 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17960
17961 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17962 and attiny841.
17963 * config/avr/avr-tables.opt: Regenerate.
17964 * config/avr/t-multilib: Regenerate.
17965 * doc/avr-mmcu.texi: Regenerate.
17966
17967 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17968 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17969
17970 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17971 (ata6617c, ata664251): Add new avr35 devices.
17972 (ata6612c): Add new avr4 device.
17973 (ata6613c, ata6614q): Add new avr5 devices.
17974 * config/avr/avr-tables.opt: Regenerate.
17975 * config/avr/t-multilib: Regenerate.
17976 * doc/avr-mmcu.texi: Regenerate.
17977
17978 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17979
17980 * gcc/config/aarch64/aarch64-builtins.c
17981 (aarch64_types_binop_ssu_qualifiers): New static data.
17982 (TYPES_BINOP_SSU): Define.
17983 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17984 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17985 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17986 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17987 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17988 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17989 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17990 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17991 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17992 suffix to builtin function name, remove cast.
17993 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17994 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17995 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17996
17997 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17998
17999 * gcc/config/aarch64/aarch64-builtins.c
18000 (aarch64_types_binop_uus_qualifiers,
18001 aarch64_types_shift_to_unsigned_qualifiers,
18002 aarch64_types_unsigned_shiftacc_qualifiers): Define.
18003 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
18004 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
18005 sqshlu_n, uqshl_n): Update qualifiers.
18006 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
18007 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
18008 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
18009 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
18010 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
18011 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
18012 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
18013 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
18014 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
18015 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
18016 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
18017 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
18018 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
18019 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
18020 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
18021 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
18022 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
18023 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
18024 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
18025 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
18026 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
18027 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
18028 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
18029 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
18030 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
18031 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
18032 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
18033
18034 2014-06-03 Teresa Johnson <tejohnson@google.com>
18035
18036 * tree-sra.c (modify_function): Record caller nodes after rebuild.
18037
18038 2014-06-02 Jason Merrill <jason@redhat.com>
18039
18040 PR c++/61020
18041 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
18042
18043 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
18044
18045 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
18046 location == 0.
18047
18048 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
18049
18050 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
18051 New pattern.
18052 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
18053 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
18054 * config/aarch64/iterators.md (REVERSE): New iterator.
18055 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
18056 (rev_op): New int_attribute.
18057 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
18058 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
18059 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
18060 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
18061 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
18062 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
18063 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
18064 Replace temporary __asm__ with __builtin_shuffle.
18065
18066 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
18067
18068 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
18069 mips64r5.
18070 * config/mips/mips-tables.opt: Regenerate.
18071 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
18072 to use mips_isa_rev rather than ISA_MIPS32R2.
18073 * config/mips/mips.h (ISA_MIPS32R3): New define.
18074 (ISA_MIPS32R5): New define.
18075 (ISA_MIPS64R3): New define.
18076 (ISA_MIPS64R5): New define.
18077 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
18078 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
18079 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
18080 and mips64r5.
18081 (MIPS_ISA_SYNCI_SPEC): Likewise.
18082 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
18083 (LINK_SPEC): Added mips32r3 and mips32r5.
18084 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
18085 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
18086 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
18087 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
18088 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
18089 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
18090 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
18091
18092 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
18093
18094 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
18095 options.
18096 * config/mips/mips.opt (mxpa): New option.
18097 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
18098 assembler.
18099
18100 2014-06-03 Martin Jambor <mjambor@suse.cz>
18101
18102 PR ipa/61160
18103 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
18104 thunks.
18105
18106 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
18107
18108 PR tree-optimization/61328
18109 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
18110 initialization from find_bswap_or_nop_1.
18111 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
18112 in source_expr2 before using the size value the function sets. Also
18113 make use of init_symbolic_number () in both the old place and
18114 find_bswap_or_nop_load () to avoid reading uninitialized memory when
18115 doing recursion in the GIMPLE_BINARY_RHS case.
18116
18117 2014-06-03 Richard Biener <rguenther@suse.de>
18118
18119 PR tree-optimization/61383
18120 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
18121 stmts can't trap.
18122
18123 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
18124
18125 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
18126 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
18127 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
18128 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
18129 in this file.
18130 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
18131 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
18132 * system.h: ...here and make it unconditional.
18133 * target.def (conditional_register_usage): Mention
18134 define_register_constraint instead of old-style constraint macros.
18135 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
18136 * doc/tm.texi: Regenerate.
18137 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
18138 protected by !USE_MD_CONSTRAINTS.
18139 * config/frv/frv.md: Remove quote from old version of documentation.
18140 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
18141 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
18142 CONST_DOUBLE_OK_FOR_LETTER.
18143 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
18144
18145 2014-06-02 Andrew Pinski <apinski@cavium.com>
18146
18147 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
18148 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
18149 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
18150 file whose name depends on -mabi= and -mbig-endian.
18151 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
18152 Handle LP64 better and handle ilp32 too.
18153 (MULTILIB_OPTIONS): Delete.
18154 (MULTILIB_DIRNAMES): Delete.
18155
18156 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
18157
18158 * expr.h: Remove prototypes of functions defined in builtins.c.
18159 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
18160 Remove prototypes of functions defined in builtins.c.
18161 * builtins.h: Update prototype list to include all exported functions.
18162 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
18163 no_c99_libc_has_function): Move to targhooks.c
18164 (build_string_literal, build_call_expr_loc_array,
18165 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
18166 to tree.c.
18167 (expand_builtin_object_size, fold_builtin_object_size): Make static.
18168 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
18169 no_c99_libc_has_function): Relocate from builtins.c.
18170 * tree.c: Include builtins.h.
18171 (build_call_expr_loc_array, build_call_expr_loc_vec,
18172 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
18173 from builtins.c.
18174 * fold-const.h (fold_fma): Move prototype to builtins.h.
18175 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
18176 * asan.c: Include builtins.h.
18177 * cfgexpand.c: Likewise.
18178 * convert.c: Likewise.
18179 * emit-rtl.c: Likewise.
18180 * except.c: Likewise.
18181 * expr.c: Likewise.
18182 * fold-const.c: Likewise.
18183 * gimple-fold.c: Likewise.
18184 * gimple-ssa-strength-reduction.c: Likewise.
18185 * gimplify.c: Likewise.
18186 * ipa-inline.c: Likewise.
18187 * ipa-prop.c: Likewise.
18188 * lto-streamer-out.c: Likewise.
18189 * stmt.c: Likewise.
18190 * tree-inline.c: Likewise.
18191 * tree-object-size.c: Likewise.
18192 * tree-sra.c: Likewise.
18193 * tree-ssa-ccp.c: Likewise.
18194 * tree-ssa-forwprop.c: Likewise.
18195 * tree-ssa-loop-ivcanon.c: Likewise.
18196 * tree-ssa-loop-ivopts.c: Likewise.
18197 * tree-ssa-math-opts.c: Likewise.
18198 * tree-ssa-reassoc.c: Likewise.
18199 * tree-ssa-threadedge.c: Likewise.
18200 * tree-streamer-in.c: Likewise.
18201 * tree-vect-data-refs.c: Likewise.
18202 * tree-vect-patterns.c: Likewise.
18203 * tree-vect-stmts.c: Likewise.
18204 * config/aarch64/aarch64.c: Likewise.
18205 * config/alpha/alpha.c: Likewise.
18206 * config/arc/arc.c: Likewise.
18207 * config/arm/arm.c: Likewise.
18208 * config/avr/avr.c: Likewise.
18209 * config/bfin/bfin.c: Likewise.
18210 * config/c6x/c6x.c: Likewise.
18211 * config/cr16/cr16.c: Likewise.
18212 * config/cris/cris.c: Likewise.
18213 * config/epiphany/epiphany.c: Likewise.
18214 * config/fr30/fr30.c: Likewise.
18215 * config/frv/frv.c: Likewise.
18216 * config/h8300/h8300.c: Likewise.
18217 * config/i386/i386.c: Likewise.
18218 * config/i386/winnt.c: Likewise.
18219 * config/ia64/ia64.c: Likewise.
18220 * config/iq2000/iq2000.c: Likewise.
18221 * config/lm32/lm32.c: Likewise.
18222 * config/m32c/m32c.c: Likewise.
18223 * config/m32r/m32r.c: Likewise.
18224 * config/m68k/m68k.c: Likewise.
18225 * config/mcore/mcore.c: Likewise.
18226 * config/mep/mep.c: Likewise.
18227 * config/microblaze/microblaze.c: Likewise.
18228 * config/mips/mips.c: Likewise.
18229 * config/mmix/mmix.c: Likewise.
18230 * config/mn10300/mn10300.c: Likewise.
18231 * config/moxie/moxie.c: Likewise.
18232 * config/msp430/msp430.c: Likewise.
18233 * config/nds32/nds32.c: Likewise.
18234 * config/pa/pa.c: Likewise.
18235 * config/pdp11/pdp11.c: Likewise.
18236 * config/picochip/picochip.c: Likewise.
18237 * config/rl78/rl78.c: Likewise.
18238 * config/rs6000/rs6000.c: Likewise.
18239 * config/rx/rx.c: Likewise.
18240 * config/s390/s390.c: Likewise.
18241 * config/score/score.c: Likewise.
18242 * config/sh/sh.c: Likewise.
18243 * config/sparc/sparc.c: Likewise.
18244 * config/spu/spu.c: Likewise.
18245 * config/stormy16/stormy16.c: Likewise.
18246 * config/tilegx/tilegx.c: Likewise.
18247 * config/tilepro/tilepro.c: Likewise.
18248 * config/v850/v850.c: Likewise.
18249 * config/vax/vax.c: Likewise.
18250 * config/xtensa/xtensa.c: Likewise.
18251
18252 2014-06-02 Jeff Law <law@redhat.com>
18253
18254 PR rtl-optimization/61094
18255 * ree.c (combine_reaching_defs): Do not reextend an insn if it
18256 was marked as do_no_reextend. If a copy is needed to eliminate
18257 an extension, then mark it as do_not_reextend.
18258
18259 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
18260
18261 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
18262
18263 2014-06-02 Richard Henderson <rth@redhat.com>
18264
18265 PR target/61336
18266 * config/alpha/alpha.c (print_operand_address): Allow symbolic
18267 addresses inside asms. Use output_operand_lossage instead of
18268 gcc_unreachable.
18269
18270 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
18271
18272 PR target/61239
18273 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
18274 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
18275
18276 2014-06-02 Tom de Vries <tom@codesourcery.com>
18277
18278 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
18279 case that x has VOIDmode.
18280
18281 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
18282
18283 * varasm.c (copy_constant): Delete function.
18284 (build_constant_desc): Don't call it.
18285
18286 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18287
18288 PR target/61154
18289 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
18290 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
18291 with immediate_operand.
18292
18293 2014-06-02 Andreas Schwab <schwab@suse.de>
18294
18295 * config/ia64/ia64.c
18296 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
18297 pending_data_specs first.
18298
18299 2014-06-02 Richard Biener <rguenther@suse.de>
18300
18301 PR tree-optimization/61378
18302 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
18303 valueized_anything.
18304
18305 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
18306
18307 * config/i386/constraints.md (Bw): Rename from 'w'.
18308 (Bz): Rename from 'z'.
18309 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
18310
18311 2014-06-01 Kai Tietz <ktietz@redhat.com>
18312
18313 PR target/61377
18314 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
18315 * config/i386/i386.md (sibcall_insn_operand): Use Bs
18316 instead of m constraint.
18317
18318 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
18319
18320 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
18321 a separate alternative where the scratch operand 2 is marked as
18322 early clobber.
18323
18324 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
18325
18326 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18327 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
18328 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
18329 and __builtins_arm_get_fpscr.
18330 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18331 __builtins_arm_get_fpscr.
18332 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
18333 __builtins_arm_ldfpscr.
18334 (arm_atomic_assign_expand_fenv): New function.
18335 * config/arm/vfp.md (set_fpscr): New pattern.
18336 (get_fpscr) : Likewise.
18337 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
18338 VUNSPEC_SET_FPSCR.
18339 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18340 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
18341
18342 2014-05-30 Jakub Jelinek <jakub@redhat.com>
18343
18344 * asan.c (report_error_func): Add SLOW_P argument, use
18345 BUILT_IN_ASAN_*_N if set.
18346 (build_check_stmt): Likewise.
18347 (instrument_derefs): If T has insufficient alignment,
18348 force same handling as for odd sizes.
18349
18350 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
18351 BUILT_IN_ASAN_REPORT_STORE_N): New.
18352 * asan.c (struct asan_mem_ref): Change access_size type to
18353 HOST_WIDE_INT.
18354 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
18355 update_mem_ref_hash_table): Likewise.
18356 (asan_mem_ref_hasher::hash): Hash in a HWI.
18357 (report_error_func): Change size_in_bytes argument to HWI.
18358 Use *_N builtins if size_in_bytes is larger than 16 or not power of
18359 two.
18360 (build_shadow_mem_access): New function.
18361 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
18362 Handle size_in_bytes not power of two or larger than 16.
18363 (instrument_derefs): Don't give up if size_in_bytes is not
18364 power of two or is larger than 16.
18365
18366 2014-05-30 Kai Tietz <ktietz@redhat.com>
18367
18368 PR target/60104
18369 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
18370 for sibling-tail-calls.
18371 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
18372 to its use.
18373 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
18374 (sibcall_insn_operand): Add check for sibcall_memory_operand.
18375
18376 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18377
18378 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
18379 * config/avr/avr-tables.opt: Regenerate.
18380 * config/avr/t-multilib: Regenerate.
18381 * doc/avr-mmcu.texi: Regenerate.
18382
18383 2014-05-30 Ian Lance Taylor <iant@google.com>
18384
18385 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
18386 target("sse").
18387
18388 2014-05-30 Tom de Vries <tom@codesourcery.com>
18389
18390 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18391 Redefine as true.
18392
18393 2014-05-30 Tom de Vries <tom@codesourcery.com>
18394
18395 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18396 * lra.c (initialize_lra_reg_info_element): Add init of
18397 actual_call_used_reg_set field.
18398 (lra): Call lra_create_live_ranges before lra_inheritance for
18399 -fuse-caller-save.
18400 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18401 -fuse-caller-save.
18402 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
18403 instead of call_used_reg_set for -fuse-caller-save.
18404 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18405
18406 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18407
18408 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
18409 to mov_imm.
18410 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
18411
18412 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
18413
18414 * ira.c (ira_get_dup_out_num): Check for output operands at
18415 the start of the loop. Handle cases where an included alternative
18416 follows an excluded one.
18417
18418 2014-05-29 Mike Stump <mikestump@comcast.net>
18419
18420 PR debug/61352
18421 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
18422 post ld passes when lto is used.
18423
18424 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
18425
18426 PR rtl-optimization/61325
18427 * lra-constraints.c (process_address): Rename to process_address_1.
18428 (process_address): New function.
18429
18430 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
18431
18432 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
18433 TYPES_BINOPV): New static data.
18434 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
18435 New builtin.
18436 * config/aarch64/aarch64-simd.md (aarch64_ext,
18437 aarch64_im_lane_boundsi): New patterns.
18438 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
18439 patterns for EXT.
18440 (aarch64_evpc_ext): New function.
18441
18442 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
18443
18444 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
18445 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
18446 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
18447 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
18448 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
18449
18450 2014-05-29 Tom de Vries <tom@codesourcery.com>
18451
18452 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18453
18454 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
18455 Richard Sandiford <rdsandiford@googlemail.com>
18456
18457 * arm/iterators.md (shiftable_ops): New code iterator.
18458 (t2_binop0, arith_shift_insn): New code attributes.
18459 * arm/predicates.md (shift_nomul_operator): New predicate.
18460 * arm/arm.md (insn_enabled): Delete.
18461 (enabled): Remove insn_enabled test.
18462 (*arith_shiftsi): Delete. Replace with ...
18463 (*<arith_shift_insn>_multsi): ... new pattern.
18464 (*<arith_shift_insn>_shiftsi): ... new pattern.
18465 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18466
18467 2014-05-29 Radovan Obradovic <robradovic@mips.com>
18468 Tom de Vries <tom@codesourcery.com>
18469
18470 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18471 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18472 clobber.
18473 (mips_split_call): Use POST_CALL_TMP_REG.
18474 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18475
18476 2014-05-29 Tom de Vries <tom@codesourcery.com>
18477
18478 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18479 with #ifdef STACK_REGS.
18480
18481 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
18482
18483 * varasm.c (get_variable_section): Walk aliases.
18484 (place_block_symbol): Walk aliases.
18485
18486 2014-05-28 Tom de Vries <tom@codesourcery.com>
18487
18488 Revert:
18489 2014-05-28 Tom de Vries <tom@codesourcery.com>
18490
18491 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18492 * lra.c (initialize_lra_reg_info_element): Add init of
18493 actual_call_used_reg_set field.
18494 (lra): Call lra_create_live_ranges before lra_inheritance for
18495 -fuse-caller-save.
18496 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18497 -fuse-caller-save.
18498 * lra-constraints.c (need_for_call_save_p): Use
18499 actual_call_used_reg_set instead of call_used_reg_set for
18500 -fuse-caller-save.
18501 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18502
18503 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18504
18505 * doc/md.texi: Document that the % constraint character must
18506 be at the beginning of the string.
18507 * genoutput.c (validate_insn_alternatives): Check that '=',
18508 '+' and '%' only appear at the beginning of a constraint.
18509 * ira.c (commutative_constraint_p): Delete.
18510 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18511 at the start of the string.
18512 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18513 duplicate '='s.
18514 * config/arm/neon.md (bicdi3_neon): Likewise.
18515 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18516 (slt_si, sltu_si): Likewise.
18517 * config/vax/vax.md (sbcdi3): Likewise.
18518 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18519 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18520 (mul64): Move '%' to beginning of constraint.
18521 * config/arm/arm.md (*xordi3_insn): Likewise.
18522 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18523 (xorsi3): Likewise.
18524
18525 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18526
18527 * doc/md.texi: Document the restrictions on the "enabled" attribute.
18528
18529 2014-05-28 Jason Merrill <jason@redhat.com>
18530
18531 PR c++/47202
18532 * cgraph.h (symtab_node::get_comdat_group_id): New.
18533 * cgraphunit.c (analyze_functions): Call it.
18534 * symtab.c (dump_symtab_node): Likewise.
18535 * tree.c (decl_comdat_group_id): New.
18536 * tree.h: Declare it.
18537 * lto-streamer-out.c (write_symbol): Use it.
18538 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18539
18540 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18541
18542 PR bootstrap/PR61146
18543 * wide-int.cc: Do not include longlong.h when compiling with clang.
18544
18545 2014-05-28 Richard Biener <rguenther@suse.de>
18546
18547 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18548 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18549 (vrp_visit_assignment_or_call): Print less vertical space.
18550 (vrp_visit_stmt): Likewise.
18551 (vrp_visit_phi_node): Likewise. For a PHI argument with
18552 VR_VARYING range consider recording it as copy.
18553
18554 2014-05-28 Richard Biener <rguenther@suse.de>
18555
18556 Revert
18557 2014-05-28 Richard Biener <rguenther@suse.de>
18558
18559 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18560
18561 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18562
18563 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18564 sufficiently aligned and an offset is used at the same time.
18565 (expand_expr_real_1): Likewise.
18566
18567 2014-05-28 Richard Biener <rguenther@suse.de>
18568
18569 PR middle-end/61045
18570 * fold-const.c (fold_comparison): When folding
18571 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18572 the sign of the remaining constant operand stays the same.
18573
18574 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
18575
18576 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18577 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18578 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18579 to the assembler.
18580 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18581 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18582 (m32bit-doubles) Likewise.
18583 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18584 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18585 option for RL78.
18586
18587 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18588
18589 * configure.ac ($gcc_cv_ld_clearcap): New test.
18590 * configure: Regenerate.
18591 * config.in: Regenerate.
18592 * config/sol2.opt (mclear-hwcap): New option.
18593 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18594 * config/sol2-clearcap.map: Moved here from
18595 testsuite/gcc.target/i386/clearcap.map.
18596 * config/sol2-clearcapv2.map: Move here from
18597 gcc.target/i386/clearcapv2.map.
18598 * config/t-sol2 (install): Depend on install-clearcap-map.
18599 (install-clearcap-map): New target.
18600 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18601 -mclear-hwcap.
18602
18603 2014-05-28 Richard Biener <rguenther@suse.de>
18604
18605 * hwint.h (*_HALF_WIDE_INT*): Move to ...
18606 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18607 ... here and remove the rest.
18608 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18609
18610 2014-05-28 Richard Biener <rguenther@suse.de>
18611
18612 PR tree-optimization/61335
18613 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18614 new range fails, drop to varying.
18615
18616 2014-05-28 Olivier Hainque <hainque@adacore.com>
18617
18618 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18619 (CPP_SPEC): Add entry for -mcpu=8548.
18620 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18621 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18622
18623 2014-05-28 Tom de Vries <tom@codesourcery.com>
18624
18625 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18626 * lra.c (initialize_lra_reg_info_element): Add init of
18627 actual_call_used_reg_set field.
18628 (lra): Call lra_create_live_ranges before lra_inheritance for
18629 -fuse-caller-save.
18630 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18631 -fuse-caller-save.
18632 * lra-constraints.c (need_for_call_save_p): Use
18633 actual_call_used_reg_set instead of call_used_reg_set for
18634 -fuse-caller-save.
18635 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18636
18637 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18638 Tom de Vries <tom@codesourcery.com>
18639
18640 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18641 to gccoptlist.
18642 (@item -fuse-caller-save): New item.
18643
18644 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18645 Tom de Vries <tom@codesourcery.com>
18646
18647 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18648 OPT_fuse_caller_save.
18649
18650 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18651 Tom de Vries <tom@codesourcery.com>
18652
18653 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18654 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18655 get_call_reg_set_usage.
18656 * resource.c (mark_set_resources, mark_target_live_regs): Use
18657 get_call_reg_set_usage.
18658 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18659 field.
18660 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18661 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18662 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18663 * ira-build.c (ira_create_allocno): Init
18664 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18665 (create_cap_allocno, propagate_allocno_info)
18666 (propagate_some_info_from_allocno)
18667 (copy_info_to_removed_store_destinations): Handle
18668 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18669 * ira-costs.c (ira_tune_allocno_costs): Use
18670 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18671
18672 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18673 Tom de Vries <tom@codesourcery.com>
18674
18675 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18676 and function_used_regs_valid fields.
18677 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18678 find_all_hard_reg_sets.
18679 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18680 (get_call_reg_set_usage): New function.
18681 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18682 * regs.h (get_call_reg_set_usage): Declare.
18683
18684 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18685
18686 PR libgcc/61152
18687 * config/dbx.h (License): Add Runtime Library Exception.
18688 * config/newlib-stdint.h (License): Same.
18689 * config/rtems.h (License): Same
18690 * config/initfini-array.h (License): Same
18691 * config/v850/v850.h (License): Same.
18692 * config/v850/v850-opts.h (License): Same
18693 * config/v850/rtems.h (License): Same.
18694
18695 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18696
18697 PR target/61044
18698 * doc/extend.texi (Local Labels): Note that label differences are
18699 not supported for AVR.
18700
18701 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18702 Olivier Hainque <hainque@adacore.com>
18703
18704 * rtl.h (set_for_reg_notes): Declare.
18705 * emit-rtl.c (set_for_reg_notes): New function.
18706 (set_unique_reg_note): Use it.
18707 * optabs.c (add_equal_note): Likewise
18708
18709 2014-05-27 Andrew Pinski <apinski@cavium.com>
18710
18711 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18712 Use <w> for the register in assembly template.
18713 (stack_protect_test): Use the mode of operands[0] for the result.
18714 (stack_protect_test_<mode>): Use <w> for the register
18715 in assembly template.
18716
18717 2014-05-27 DJ Delorie <dj@redhat.com>
18718
18719 * config/rx/rx.c (add_vector_labels): New.
18720 (rx_output_function_prologue): Call it.
18721 (rx_handle_func_attribute): Don't require empty arguments.
18722 (rx_handle_vector_attribute): New.
18723 (rx_attribute_table): Add "vector" attribute.
18724 * doc/extend.texi (interrupt, vector): Document new/changed
18725 RX-specific attributes.
18726
18727 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18728
18729 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18730
18731 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18732 predicate to detect a negative quotient.
18733
18734 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18735
18736 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18737 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18738 Add X - Y CMP 0 to X CMP Y transformation.
18739 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18740
18741 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18742
18743 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18744 before printing.
18745
18746 2014-05-27 Steve Ellcey <sellcey@mips.com>
18747
18748 * config/mips/mips.c: Add include of cgraph.h.
18749
18750 2014-05-27 Richard Biener <rguenther@suse.de>
18751
18752 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18753
18754 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18755
18756 PR libgcc/61152
18757 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18758 * config/arm/arm-cores.def (License): Same.
18759 * config/arm/arm-opts.h (License): Same.
18760 * config/arm/aout.h (License): Same.
18761 * config/arm/bpabi.h (License): Same.
18762 * config/arm/elf.h (License): Same.
18763 * config/arm/linux-elf.h (License): Same.
18764 * config/arm/linux-gas.h (License): Same.
18765 * config/arm/netbsd-elf.h (License): Same.
18766 * config/arm/uclinux-eabi.h (License): Same.
18767 * config/arm/uclinux-elf.h (License): Same.
18768 * config/arm/vxworks.h (License): Same.
18769
18770 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18771
18772 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18773 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18774 (arm_init_neon_builtins): Handle NEON_BSWAP.
18775 Define required type nodes.
18776 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18777 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18778 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18779 * config/arm/iterators.md (VDQHSD): New mode iterator.
18780
18781 2014-05-27 Richard Biener <rguenther@suse.de>
18782
18783 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18784 Try using literal operands when comparing value-ranges failed.
18785
18786 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18787
18788 * ira.c (commutative_operand): Adjust for change to recog_data.
18789 [Missing from previous commit.]
18790
18791 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18792
18793 * system.h (TEST_BIT): New macro.
18794 * recog.h (alternative_mask): New type.
18795 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18796 (recog_data_d): Replace alternative_enabled_p array with
18797 enabled_alternatives.
18798 (target_recog): New structure.
18799 (default_target_recog, this_target_recog): Declare.
18800 (get_enabled_alternatives, recog_init): Likewise.
18801 * recog.c (default_target_recog, this_target_recog): New variables.
18802 (get_enabled_alternatives): New function.
18803 (extract_insn): Use it.
18804 (recog_init): New function.
18805 (preprocess_constraints, constrain_operands): Adjust for change to
18806 recog_data.
18807 * postreload.c (reload_cse_simplify_operands): Likewise.
18808 * reload.c (find_reloads): Likewise.
18809 * ira-costs.c (record_reg_classes): Likewise.
18810 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18811 all alternatives after a disabled one would be skipped.
18812 (ira_implicitly_set_insn_hard_regs): Likewise.
18813 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18814 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18815 with enabled_alternatives.
18816 * lra.c (free_insn_recog_data): Update accordingly.
18817 (lra_update_insn_recog_data): Likewise.
18818 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18819 * lra-constraints.c (process_alt_operands): Likewise. Handle
18820 only_alternative as part of the enabled mask.
18821 * target-globals.h (this_target_recog): Declare.
18822 (target_globals): Add a recog field.
18823 (restore_target_globals): Restore this_target_recog.
18824 * target-globals.c: Include recog.h.
18825 (default_target_globals): Initialize recog field.
18826 (save_target_globals): Likewise.
18827 * reginfo.c (reinit_regs): Call recog_init.
18828 * toplev.c (backend_init_target): Likewise.
18829
18830 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18831
18832 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18833 rather than any named insn's code.
18834
18835 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18836
18837 PR libgcc/61152
18838 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18839 * config/arm/arm-cores.def (License): Same.
18840
18841 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18842
18843 * tree.h (decl_comdat_group): Declare.
18844 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18845 * tree.c (decl_comdat_group): Here.
18846
18847 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18848
18849 PR rtl-optimization/61222
18850 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18851 the shift, truncate the PLUS operand to the result mode.
18852
18853 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18854
18855 PR target/61271
18856 * config/i386/i386.c (ix86_rtx_costs)
18857 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18858 Fix condition.
18859
18860 2014-05-26 Martin Jambor <mjambor@suse.cz>
18861
18862 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18863 subreg uses.
18864
18865 2014-05-26 Richard Biener <rguenther@suse.de>
18866
18867 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18868 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18869 Provide specializations.
18870 (wi::int_traits <HOST_WIDE_INT>,
18871 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18872
18873 2014-05-26 Alan Modra <amodra@gmail.com>
18874
18875 PR target/61098
18876 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18877 params and return a bool. Remove dead code. Update comment.
18878 Assert we have a const_int source. Remove bogus code from
18879 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18880 handling of constants > 2G and reg_equal note, from..
18881 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18882 return value. Update comment. If we can, use a new pseudo
18883 for intermediate calculations.
18884 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18885 prototype.
18886 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18887 call to rs6000_emit_set_const in splitter.
18888 (movdi_internal64+2, +3): Likewise.
18889
18890 2014-05-26 Richard Biener <rguenther@suse.de>
18891
18892 * system.h: Define __STDC_FORMAT_MACROS before
18893 including inttypes.h.
18894 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18895 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18896 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18897 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18898 HOST_WIDEST_INT_C): Remove.
18899 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18900 if C99 inttypes.h is not available.
18901 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18902 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18903 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18904 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18905 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18906 (struct output_info): Likewise.
18907 (print_statistics): Adjust.
18908 (dump_bitmap_statistics): Likewise.
18909 * bt-load.c (migrate_btr_defs): Print with PRId64.
18910 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18911 (MAX_SAFE_MULTIPLIER): Adjust.
18912 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18913 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18914 dump_cgraph_node): Likewise.
18915 * final.c (dump_basic_block_info): Likewise.
18916 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18917 * gcov.c (format_gcov): Likewise.
18918 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18919 for calculation.
18920 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18921 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18922 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18923 Use PRId64 for dumping.
18924 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18925 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18926 (add_allocno_hard_regs): Adjust.
18927 * loop-doloop.c (doloop_modify): Print using PRId64.
18928 * loop-iv.c (inverse): Compute in uint64_t.
18929 (determine_max_iter, iv_number_of_iterations): Likewise.
18930 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18931 Print using PRId64.
18932 * lto-streamer-out.c (write_symbol): Use uint64_t.
18933 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18934 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18935 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18936 * modulo-sched.c (const_iteration_count): Use int64_t.
18937 (sms_schedule): Dump using PRId64.
18938 * predict.c (dump_prediction): Likewise.
18939 * pretty-print.h (pp_widest_integer): Remove.
18940 * profile.c (get_working_sets, is_edge_inconsistent,
18941 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18942 * tree-pretty-print.c (pp_double_int): Remove case handling
18943 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18944 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18945 and adjust users.
18946 (pass_optimize_bswap::execute): Remove restriction on hosts.
18947 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18948 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18949 * tree.c (widest_int_cst_value): Remove.
18950 * tree.h (widest_int_cst_value): Likewise.
18951 * value-prof.c (dump_histogram_value): Print using PRId64.
18952 * gengtype.c (main): Also inject int64_t.
18953 * ggc-page.c (struct max_alignment): Use int64_t.
18954 * alloc-pool.c (struct allocation_object_def): Likewise.
18955 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18956 for computation.
18957 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18958 * doc/tm.texi: Regenerated.
18959 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18960 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18961 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18962 mmix_output_register_setting): Use [u]int64_t in prototypes.
18963 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18964 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18965 mmix_output_octa, mmix_output_shifted_value): Adjust.
18966 (mmix_intval): Adjust. Remove unreachable case.
18967 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18968
18969 2014-05-26 Richard Biener <rguenther@suse.de>
18970
18971 * configure.ac: Drop __int64 type check. Insist that we
18972 found uint64_t and int64_t.
18973 * hwint.h (HOST_BITS_PER___INT64): Remove.
18974 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18975 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18976 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18977 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18978 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18979 for dst_q_src_df_rms_cdt.
18980 * configure: Regenerate.
18981 * config.in: Likewise.
18982
18983 2014-05-26 Michael Tautschnig <mt@debian.org>
18984
18985 PR target/61249
18986 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18987 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18988
18989 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18990
18991 PR rtl-optimization/61278
18992 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18993
18994 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18995
18996 PR rtl-optimization/61220
18997 Part of PR rtl-optimization/61225
18998 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18999 insn; skip split_edge for a block with only one successor.
19000
19001 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
19002
19003 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
19004 for variables.
19005
19006 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
19007
19008 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
19009 (update_vtable_references): New function.
19010 (function_and_variable_visibility): Rewrite also vtable initializers.
19011 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
19012
19013 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
19014
19015 * ggc.h (ggc_grow): New function.
19016 * ggc-none.c (ggc_grow): New function.
19017 * ggc-page.c (ggc_grow): Likewise.
19018
19019 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
19020
19021 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
19022 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
19023 comdat_can_be_unshared_p, cgraph_externally_visible_p,
19024 varpool_externally_visible_p, can_replace_by_local_alias,
19025 update_visibility_by_resolution_info, function_and_variable_visibility,
19026 pass_data_ipa_function_and_variable_visibility,
19027 make_pass_ipa_function_and_variable_visibility,
19028 whole_program_function_and_variable_visibility,
19029 pass_data_ipa_whole_program_visibility,
19030 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
19031 * cgraph.h (cgraph_local_node_p): Declare.
19032 * ipa-visibility.c: New file.
19033 * Makefile.in (OBJS): Add ipa-visiblity.o
19034
19035 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
19036
19037 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
19038 that var decl is available.
19039
19040 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
19041
19042 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
19043 symtab_node pointer.
19044 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
19045 (find_decls_types_r): Do not walk COMDAT_GROUP.
19046 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
19047 * varasm.c (make_decl_one_only): Use set_comdat_group;
19048 create node if needed.
19049 * ipa-inline-transform.c (save_inline_function_body): Update
19050 way we decl->symtab mapping.
19051 * symtab.c (symtab_hash, hash_node, eq_node
19052 symtab_insert_node_to_hashtable): Remove.
19053 (symtab_register_node): Update.
19054 (symtab_unregister_node): Update.
19055 (symtab_get_node): Reimplement as inline function.
19056 (symtab_add_to_same_comdat_group): Update.
19057 (symtab_dissolve_same_comdat_group_list): Update.
19058 (dump_symtab_base): Update.
19059 (verify_symtab_base): Update.
19060 (symtab_make_decl_local): Update.
19061 (fixup_same_cpp_alias_visibility): Update.
19062 (symtab_nonoverwritable_alias): Update.
19063 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
19064 * ipa.c (update_visibility_by_resolution_info): UPdate.
19065 * bb-reorder.c: Include cgraph.h
19066 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
19067 with comdat groups.
19068 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
19069 * cgraph.c (cgraph_get_create_node): Update.
19070 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
19071 and comdat_group_.
19072 (symtab_get_node): Make inline.
19073 (symtab_insert_node_to_hashtable): Remove.
19074 (symtab_can_be_discarded): Update.
19075 (decl_comdat_group): New function.
19076 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
19077 Update.
19078 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
19079 comdat group name.
19080 (read_comdat_group): New function.
19081 (input_node, input_varpool_node): Use it.
19082 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
19083 comdat groups.
19084 * mips.c (mips_start_unique_function): Likewise.
19085 (ix86_code_end): Likewise.
19086 (rs6000_code_end): Likweise.
19087 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
19088
19089 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
19090
19091 * gengtype-state.c (fatal_reading_state): Bring offline.
19092 * optabs.c (widening_optab_handler): Bring offline.
19093 * optabs.h (widening_optab_handler): Likewise.
19094 * final.c (get_attr_length_1): Likewise.
19095
19096 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
19097
19098 * sched-int.h (sd_iterator_cond): Manually tail recurse.
19099
19100 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19101
19102 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
19103 (ppc440-compare): Include shift with dot.
19104 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
19105 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
19106 without dot.
19107 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
19108 without dot.
19109 (e6500_sfx2): Include it.
19110 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
19111 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
19112 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
19113 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
19114 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
19115 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
19116 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
19117 *lshiftrt_internal1le, *lshiftrt_internal1be,
19118 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
19119 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
19120 *rotldi3_internal10le, *rotldi3_internal10be,
19121 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
19122 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
19123 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
19124 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
19125 define_insns): Use type "shift" in the appropriate alternatives.
19126
19127 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19128
19129 * config/rs6000/rs6000.md (type): Add "logical". Delete
19130 "fast_compare".
19131 (dot): Adjust comment.
19132 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
19133 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
19134 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
19135 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
19136 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
19137 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
19138 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
19139 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19140
19141 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19142 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19143 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19144 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19145 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19146 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19147 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19148 * config/rs6000/8540.md (ppc8540_su): Adjust.
19149 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19150 cell-cmp-microcoded): Adjust.
19151 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19152 * config/rs6000/e500mc.md (e500mc_su): Adjust.
19153 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19154 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19155 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19156 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19157 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19158 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19159 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19160 Adjust.
19161 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19162 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
19163 Adjust. Adjust comment.
19164 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19165 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19166
19167 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19168
19169 * config/rs6000/rs6000.md (type): Add "add".
19170 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
19171 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
19172 define_insns): Use it.
19173 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
19174
19175 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19176 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
19177 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19178 * config/rs6000/601.md (ppc601-integer): Adjust.
19179 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19180 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19181 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19182 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19183 * config/rs6000/8540.md (ppc8540_su): Adjust.
19184 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19185 cell-cmp-microcoded): Adjust.
19186 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
19187 * config/rs6000/e500mc.md (e500mc_su): Adjust.
19188 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
19189 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
19190 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
19191 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19192 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
19193 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
19194 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
19195 Adjust.
19196 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
19197 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
19198 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19199 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
19200
19201 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19202
19203 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
19204 "delayed_compare", "var_delayed_compare".
19205 (var_shift): New attribute.
19206 (cell_micro): Adjust.
19207 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
19208 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
19209 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
19210 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19211 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19212 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19213 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19214 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
19215 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
19216 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
19217 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
19218 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
19219 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
19220 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
19221 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
19222 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
19223 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
19224 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
19225 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
19226 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
19227 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
19228 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
19229 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
19230 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19231 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19232
19233 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
19234 * config/rs6000/440.md (ppc440-integer): Adjust.
19235 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
19236 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
19237 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
19238 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
19239 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
19240 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
19241 * config/rs6000/8540.md (ppc8540_su): Adjust.
19242 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
19243 cell-cmp-microcoded): Adjust.
19244 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
19245 * config/rs6000/e500mc.md (e500mc_su): Adjust.
19246 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
19247 e500mc64_delayed): Adjust.
19248 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
19249 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
19250 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
19251 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
19252 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
19253 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
19254 power6-delayed-compare, power6-var-delayed-compare): Adjust.
19255 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
19256 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
19257 Adjust comment.
19258 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
19259 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19260
19261 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19262
19263 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
19264 (bits): New mode_attr.
19265 (idiv_ldiv): Delete mode_attr.
19266 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
19267 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19268 rs6000_adjust_priority, is_nonpipeline_insn,
19269 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19270
19271 * config/rs6000/40x.md (ppc403-idiv): Adjust.
19272 * config/rs6000/440.md (ppc440-idiv): Adjust.
19273 * config/rs6000/476.md (ppc476-idiv): Adjust.
19274 * config/rs6000/601.md (ppc601-idiv): Adjust.
19275 * config/rs6000/603.md (ppc603-idiv): Adjust.
19276 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
19277 ppc620-ldiv): Adjust.
19278 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
19279 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
19280 * config/rs6000/8540.md (ppc8540_divide): Adjust.
19281 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
19282 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
19283 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
19284 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
19285 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
19286 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
19287 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
19288 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
19289 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
19290 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
19291 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
19292 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
19293 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
19294 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
19295 * config/rs6000/titan.md (titan_fxu_div): Adjust.
19296
19297 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19298
19299 * config/rs6000/rs6000.md (type): Delete "insert_word",
19300 "insert_dword". Add "insert".
19301 (size): Update comment.
19302 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19303 insn_must_be_first_in_group): Adjust.
19304 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19305 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19306 *insvsi_internal6, insvdi_internal): Adjust.
19307
19308 * config/rs6000/40x.md (ppc403-integer): Adjust.
19309 * config/rs6000/440.md (ppc440-integer): Adjust.
19310 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
19311 * config/rs6000/601.md (ppc601-integer): Adjust.
19312 * config/rs6000/603.md (ppc603-integer): Adjust.
19313 * config/rs6000/6xx.md (ppc604-integer): Adjust.
19314 * config/rs6000/7450.md (ppc7450-integer): Adjust.
19315 * config/rs6000/7xx.md (ppc750-integer): Adjust.
19316 * config/rs6000/8540.md (ppc8540_su): Adjust.
19317 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
19318 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
19319 * config/rs6000/e500mc.md (e500mc_su): Adjust.
19320 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
19321 * config/rs6000/e5500.md (e5500_sfx): Adjust.
19322 * config/rs6000/e6500.md (e6500_sfx): Adjust.
19323 * config/rs6000/mpc.md (mpccore-integer): Adjust.
19324 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
19325 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
19326 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
19327 * config/rs6000/power7.md (power7-integer): Adjust.
19328 * config/rs6000/power8.md (power8-1cyc): Adjust.
19329 * config/rs6000/rs64.md (rs64a-integer): Adjust.
19330 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
19331
19332 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19333
19334 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
19335 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
19336 (size): New attribute.
19337 (dot): New attribute.
19338 (cell_micro): Adjust.
19339 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
19340 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
19341 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
19342 umuldi3_highpart): Adjust.
19343 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
19344 rs6000_adjust_priority, is_nonpipeline_insn,
19345 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
19346
19347 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
19348 ppc405-imul3): Adjust.
19349 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
19350 * config/rs6000/476.md (ppc476-imul): Adjust.
19351 * config/rs6000/601.md (ppc601-imul): Adjust.
19352 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
19353 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
19354 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
19355 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
19356 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
19357 Adjust.
19358 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
19359 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
19360 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
19361 cell-imul): Adjust.
19362 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
19363 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
19364 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
19365 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
19366 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
19367 * config/rs6000/mpc.md (mpccore-imul): Adjust.
19368 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
19369 power4-lmul, power4-imul, power4-imul3): Adjust.
19370 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
19371 power5-lmul, power5-imul, power5-imul3): Adjust.
19372 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
19373 power6-lmul, power6-imul, power6-imul3): Adjust.
19374 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
19375 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
19376
19377 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
19378 rs64a-lmul): Adjust.
19379 * config/rs6000/titan.md (titan_imul): Adjust.
19380
19381 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19382
19383 * config/rs6000/rs6000.md (type): Add new value "halfmul".
19384 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
19385 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
19386 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
19387 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
19388 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
19389 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
19390 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
19391 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
19392 * config/rs6000/titan.md: Delete nonsensical comment.
19393 (titan_imul): Add type imul3.
19394 (titan_mulhw): Remove type imul3; add type halfmul.
19395
19396 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19397
19398 * config/rs6000/rs6000.md (type): Reorder, reformat.
19399
19400 2014-05-23 Martin Jambor <mjambor@suse.cz>
19401
19402 PR tree-optimization/53787
19403 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
19404 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
19405 analysis_done, update all uses.
19406 * ipa-prop.c: Include domwalk.h
19407 (param_analysis_info): Removed.
19408 (param_aa_status): New type.
19409 (ipa_bb_info): Likewise.
19410 (func_body_info): Likewise.
19411 (ipa_get_bb_info): New function.
19412 (aa_overwalked): Likewise.
19413 (find_dominating_aa_status): Likewise.
19414 (parm_bb_aa_status_for_bb): Likewise.
19415 (parm_preserved_before_stmt_p): Changed to use new param AA info.
19416 (load_from_unmodified_param): Accept func_body_info as a parameter
19417 instead of parms_ainfo.
19418 (parm_ref_data_preserved_p): Changed to use new param AA info.
19419 (parm_ref_data_pass_through_p): Likewise.
19420 (ipa_load_from_parm_agg_1): Likewise. Update callers.
19421 (compute_complex_assign_jump_func): Changed to use new param AA info.
19422 (compute_complex_ancestor_jump_func): Likewise.
19423 (ipa_compute_jump_functions_for_edge): Likewise.
19424 (ipa_compute_jump_functions): Removed.
19425 (ipa_compute_jump_functions_for_bb): New function.
19426 (ipa_analyze_indirect_call_uses): Likewise, moved variable
19427 declarations down.
19428 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
19429 and info, moved variable declarations down.
19430 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
19431 node and info.
19432 (ipa_analyze_stmt_uses): Likewise.
19433 (ipa_analyze_params_uses): Removed.
19434 (ipa_analyze_params_uses_in_bb): New function.
19435 (ipa_analyze_controlled_uses): Likewise.
19436 (free_ipa_bb_info): Likewise.
19437 (analysis_dom_walker): New class.
19438 (ipa_analyze_node): Handle node-specific forbidden analysis,
19439 initialize and free func_body_info, use dominator walker.
19440 (ipcp_modif_dom_walker): New class.
19441 (ipcp_transform_function): Create and free func_body_info, use
19442 ipcp_modif_dom_walker, moved a lot of functionality there.
19443
19444 2014-05-23 Marek Polacek <polacek@redhat.com>
19445 Jakub Jelinek <jakub@redhat.com>
19446
19447 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
19448 * gcc.c (sanitize_spec_function): Likewise.
19449 * convert.c (convert_to_integer): Include "ubsan.h". Add
19450 floating-point to integer instrumentation.
19451 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19452 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19453 SANITIZE_NONDEFAULT.
19454 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19455 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19456 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19457 * ubsan.c: Include "realmpfr.h" and "dfp.h".
19458 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19459 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19460 float/double/long double.
19461 (ubsan_instrument_float_cast): New function.
19462 * ubsan.h (ubsan_instrument_float_cast): Declare.
19463
19464 2014-05-23 Jiong Wang <jiong.wang@arm.com>
19465
19466 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19467 predicate.
19468 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
19469 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19470 Adjust for tailcalling through registers.
19471 * config/aarch64/aarch64.h (enum reg_class): New caller save
19472 register class.
19473 (REG_CLASS_NAMES): Likewise.
19474 (REG_CLASS_CONTENTS): Likewise.
19475 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19476 Allow tailcalling without decls.
19477
19478 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19479
19480 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19481 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19482
19483 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19484 gsi, and variables v_* to v*.
19485
19486 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
19487
19488 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19489
19490 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19491
19492 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19493 * omp-low.c: Update accordingly.
19494
19495 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19496 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19497 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19498 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19499 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19500 GF_OMP_TARGET_KIND_UPDATE.
19501
19502 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19503 Explicitly enumerate the expected region types.
19504
19505 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
19506
19507 PR other/56955
19508 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
19509 documentation; the old documentation didn't clearly state the
19510 constraints on the contents of the pointed-to storage.
19511
19512 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19513
19514 Fix bootstrap error on ia64
19515 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19516 Return default value.
19517
19518 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
19519
19520 PR tree-optimization/54733
19521 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19522 (CMPNOP): Define.
19523 (find_bswap_or_nop_load): New.
19524 (find_bswap_1): Renamed to ...
19525 (find_bswap_or_nop_1): This. Also add support for memory source.
19526 (find_bswap): Renamed to ...
19527 (find_bswap_or_nop): This. Also add support for memory source and
19528 detection of bitwise operations equivalent to load in target
19529 endianness.
19530 (execute_optimize_bswap): Likewise. Also move its leading comment back
19531 in place and split statement transformation into ...
19532 (bswap_replace): This.
19533
19534 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19535
19536 PR rtl-optimization/61215
19537 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19538 simplify_gen_subreg until final substitution.
19539
19540 2014-05-23 Alan Modra <amodra@gmail.com>
19541
19542 PR target/61231
19543 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19544 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19545 Use "Y" constraint rather than "m".
19546
19547 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19548
19549 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19550 define.
19551 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19552 New function declaration.
19553 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19554 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19555 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19556 (aarch64_init_builtins) : Initialize builtins
19557 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19558 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19559 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19560 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19561 and __builtins_aarch64_set_fpsr.
19562 (aarch64_atomic_assign_expand_fenv): New function.
19563 * config/aarch64/aarch64.md (set_fpcr): New pattern.
19564 (get_fpcr) : Likewise.
19565 (set_fpsr) : Likewise.
19566 (get_fpsr) : Likewise.
19567 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19568 and UNSPECV_SET_FPSR.
19569 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19570 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19571 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19572
19573 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19574
19575 PR rtl-optimization/60969
19576 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19577 constraints. Set up mem cost for NO_REGS case.
19578
19579 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
19580
19581 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19582
19583 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
19584
19585 * config/darwin.c: Include "lto-section-names.h".
19586 (LTO_SEGMENT_NAME): Don't define.
19587 * config/i386/winnt.c: Include "lto-section-names.h".
19588 * lto-streamer.c: Include "lto-section-names.h".
19589 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19590 * lto-wrapper.c: Include "lto-section-names.h".
19591 (LTO_SECTION_NAME_PREFIX): Don't define.
19592 * lto-section-names.h: New file.
19593 * cgraphunit.c: Include "lto-section-names.h".
19594
19595 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
19596
19597 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19598
19599 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
19600
19601 PR target/61208
19602 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19603
19604 2014-05-22 Nick Clifton <nickc@redhat.com>
19605
19606 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19607
19608 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
19609
19610 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19611 -> (T)A transformation to integer types.
19612
19613 2014-05-22 Teresa Johnson <tejohnson@google.com>
19614
19615 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19616 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19617 (gcov_rewrite): Use gcov_nonruntime_assert.
19618 (gcov_open): Ditto.
19619 (gcov_write_words): Ditto.
19620 (gcov_write_length): Ditto.
19621 (gcov_read_words): Use gcov_nonruntime_assert, and remove
19622 gcc_assert from IN_LIBGCOV code.
19623 (gcov_read_summary): Use gcov_error to flag profile corruption.
19624 (gcov_sync): Use gcov_nonruntime_assert.
19625 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19626 (gcov_histo_index): Use gcov_nonruntime_assert.
19627 (static void gcov_histogram_merge): Ditto.
19628 (compute_working_sets): Ditto.
19629 * gcov-io.h (gcov_nonruntime_assert): Define.
19630 (gcov_error): Define for !IN_LIBGCOV
19631
19632 2014-05-22 Richard Biener <rguenther@suse.de>
19633
19634 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19635 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19636 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19637 and deallocation site.
19638 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19639 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19640 passing through the incoming points-to set.
19641 (handle_lhs_call): Use flags argument instead of recomputing it.
19642 (find_func_aliases_for_call): Call handle_lhs_call with proper
19643 call return flags.
19644
19645 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19646
19647 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19648 all padding bits in REAL_VALUE_TYPE are cleared.
19649
19650 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19651
19652 Cleanup and improve multipass_dfa_lookahead_guard
19653 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19654 (core2i7_first_cycle_multipass_begin,)
19655 (core2i7_first_cycle_multipass_issue,)
19656 (core2i7_first_cycle_multipass_backtrack): Update signature.
19657 * config/ia64/ia64.c
19658 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19659 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19660 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19661 hook definition.
19662 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19663 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19664 values.
19665 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19666 return values.
19667 * doc/tm.texi: Regenerate.
19668 * doc/tm.texi.in
19669 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19670 * haifa-sched.c (ready_try): Make signed to allow negative values.
19671 (rebug_ready_list_1): Update.
19672 (choose_ready): Simplify.
19673 (sched_extend_ready_list): Update.
19674
19675 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19676
19677 Remove IA64 speculation tweaking flags
19678 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19679 speculation tuning flags.
19680 (msched-prefer-non-data-spec-insns,)
19681 (msched-prefer-non-control-spec-insns): Obsolete options.
19682 * haifa-sched.c (choose_ready): Remove handling of
19683 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19684 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19685 and PREFER_NON_DATA_SPEC.
19686 * sel-sched.c (process_spec_exprs): Remove handling of
19687 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19688
19689 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19690
19691 Improve scheduling debug output
19692 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19693 (advance_one_cycle): Update.
19694 (schedule_insn, queue_to_ready): Add debug printouts.
19695 (debug_ready_list_1): New static function.
19696 (debug_ready_list): Update.
19697 (max_issue): Add debug printouts.
19698 (dump_insn_stream): New static function.
19699 (schedule_block): Use it. Also better indent printouts.
19700
19701 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19702
19703 Fix sched_insn debug counter
19704 * haifa-sched.c (schedule_insn): Update.
19705 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19706 (save_backtrack_point, restore_backtrack_point): Update.
19707 (first_nonscheduled_insn): New static function.
19708 (queue_to_ready, choose_ready): Use it.
19709 (schedule_block): Init nonscheduled_insns_begin.
19710 (sched_emit_insn): Update.
19711
19712
19713 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19714
19715 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19716 to GENERAL_REGS.
19717 (aarch64_secondary_reload) : LikeWise.
19718 (aarch64_class_max_nregs) : Remove CORE_REGS.
19719 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19720 (REG_CLASS_NAMES) : Likewise.
19721 (REG_CLASS_CONTENTS) : LikeWise.
19722 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19723
19724 2014-05-21 Guozhi Wei <carrot@google.com>
19725
19726 PR target/61202
19727 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19728 constraint.
19729 (vqdmulhq_n_s16): Likewise.
19730
19731 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19732
19733 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19734
19735 2014-05-21 Marek Polacek <polacek@redhat.com>
19736
19737 PR sanitizer/61272
19738 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19739
19740 2014-05-21 Martin Jambor <mjambor@suse.cz>
19741
19742 * doc/invoke.texi (Optimize Options): Document parameters
19743 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19744 ipa-cp-array-index-hint-bonus.
19745
19746 2014-05-21 Mark Wielaard <mjw@redhat.com>
19747
19748 PR debug/16063
19749 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19750 version >= 3 or not strict DWARF.
19751 * langhooks.h (struct lang_hooks_for_types): Add
19752 enum_underlying_base_type.
19753 * langhooks.c (lhd_enum_underlying_base_type): New function.
19754 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19755 enum_underlying_base_type.
19756 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19757 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19758 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19759
19760 2014-05-21 Richard Biener <rguenther@suse.de>
19761
19762 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19763
19764 2014-05-21 John Marino <gnugcc@marino.st>
19765
19766 * config.gcc (*-*-dragonfly*): New target.
19767 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19768 * configure: Regenerate.
19769 * config/dragonfly-stdint.h: New.
19770 * config/dragonfly.h: New.
19771 * config/dragonfly.opt: New.
19772 * config/i386/dragonfly.h: New.
19773 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19774
19775 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19776
19777 * tree.def (VOID_CST): New.
19778 * tree-core.h (TI_VOID): New.
19779 * tree.h (void_node): New.
19780 * tree.c (tree_node_structure_for_code, tree_code_size)
19781 (iterative_hash_expr): Handle VOID_CST.
19782 (build_common_tree_nodes): Initialize void_node.
19783
19784 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19785
19786 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19787 functions.
19788 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19789
19790 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19791 more places.
19792
19793 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19794 flag_reorder_blocks_and_partition.
19795 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19796
19797 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19798
19799 PR target/54236
19800 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19801 constraints.
19802 (*addc_r_t): Add new insn_and_split.
19803
19804 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19805
19806 PR middle-end/61252
19807 * omp-low.c (handle_simd_reference): New function.
19808 (lower_rec_input_clauses): Use it. Defer adding reference
19809 initialization even for reduction without placeholder if in simd,
19810 handle it properly later on.
19811
19812 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19813
19814 PR tree-optimization/60899
19815 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19816 assume all static symbols will have definition wile parsing and
19817 check the do have definition later in compilation; check that
19818 variable referring symbol will be output before concluding that
19819 reference is safe; be conservative for referring local statics;
19820 be more precise about when comdat is output in other partition.
19821
19822 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19823
19824 PR bootstrap/60984
19825 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19826 parameter.
19827 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19828 (ipa_inline): Loop inline_to_all_callers until no more aliases
19829 are removed.
19830
19831 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19832
19833 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19834 set writeonly flag only for vars actually written to.
19835
19836 2014-05-20 Dehao Chen <dehao@google.com>
19837
19838 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19839 and callee count to get clone count.
19840 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19841 count in copy_body.
19842
19843 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19844
19845 PR rtl-optimization/61243
19846 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19847
19848 2014-05-20 Xinliang David Li <davidxl@google.com>
19849
19850 * cgraphunit.c (walk_polymorphic_call_targets): Add
19851 dbgcnt and fopt-info support.
19852 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19853 * ipa-devirt.c (ipa_devirt): Ditto.
19854 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19855 * ipa.c (walk_polymorphic_call_targets): Ditto.
19856 * gimple-fold.c (fold_gimple_assign): Ditto.
19857 (gimple_fold_call): Ditto.
19858 * dbgcnt.def: New counter.
19859
19860 2014-05-20 DJ Delorie <dj@redhat.com>
19861
19862 * config/msp430/msp430.md (split): Don't allow subregs when
19863 splitting SImode adds.
19864 (andneghi): Fix subtraction logic.
19865 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19866
19867 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19868
19869 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19870 symbols.
19871 * except.c (switch_to_exception_section, resolve_unique_section,
19872 get_named_text_section, default_function_rodata_section,
19873 align_variable, get_block_for_decl, default_section_type_flags):
19874 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19875 * symtab.c (symtab_add_to_same_comdat_group,
19876 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19877 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19878 Likewise.
19879 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19880 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19881 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19882 (c6x_function_in_section_p): Likewise.
19883 * config/darwin.c (machopic_select_section): Likewise.
19884 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19885 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19886 * config/mep/mep.c (mep_select_section): LIkewise.
19887 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19888
19889 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19890
19891 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19892 EH region of calls to pure functions that can throw an exception.
19893 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19894 (copy_reference_ops_from_call): Also copy the EH region of the call if
19895 it can throw an exception.
19896
19897 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19898
19899 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19900 nested VEC_SELECTs that are inverses of each other.
19901
19902 2014-05-20 Richard Biener <rguenther@suse.de>
19903
19904 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19905 (extract_and_process_scc_for_name): not here.
19906 (cond_dom_walker::before_dom_children): Only process
19907 stmts that end the BB in interesting ways.
19908 (run_scc_vn): Mark param uses as visited.
19909
19910 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19911
19912 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19913 arm_restrict_it.
19914
19915 2014-05-20 Nick Clifton <nickc@redhat.com>
19916
19917 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19918 (msp430_gimplify_va_arg_expr): New function.
19919 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19920
19921 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19922 operand 0 in order to prevent confusion about the number of
19923 registers involved.
19924
19925 2014-05-20 Richard Biener <rguenther@suse.de>
19926
19927 PR tree-optimization/61221
19928 * tree-ssa-pre.c (el_to_update): Remove.
19929 (eliminate_dom_walker::before_dom_children): Handle released
19930 VDEFs by value-numbering them to the associated VUSE. Update
19931 stmt immediately for substituted call address.
19932 (eliminate): Remove delayed stmt updating code.
19933 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19934 possibly late re-numbered vuses.
19935 (vn_reference_lookup_2): Adjust.
19936 (vn_reference_lookup_pieces): Likewise.
19937 (vn_reference_lookup): Likewise.
19938
19939 2014-05-20 Richard Biener <rguenther@suse.de>
19940
19941 * config.gcc: Remove need_64bit_hwint.
19942 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19943 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19944 it to be true.
19945 * config.in: Regenerate.
19946 * configure: Likewise.
19947
19948 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19949
19950 * doc/extend.texi: Create Label Attributes section,
19951 move all label attributes into it and reference it.
19952
19953 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19954
19955 * arm.c (thumb1_reorg): When scanning backwards skip anything
19956 that's not a proper insn.
19957
19958 2014-05-19 Richard Biener <rguenther@suse.de>
19959
19960 PR tree-optimization/61221
19961 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19962 Do nothing for unreachable blocks.
19963 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19964 Improve unreachability detection.
19965
19966 2014-05-19 Richard Biener <rguenther@suse.de>
19967
19968 PR tree-optimization/61209
19969 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19970
19971 2014-05-19 Nick Clifton <nickc@redhat.com>
19972
19973 * except.c (init_eh): Fix computation of builtin setjmp buffer
19974 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19975
19976 2014-05-19 Richard Biener <rguenther@suse.de>
19977
19978 PR tree-optimization/61184
19979 * tree-vrp.c (is_negative_overflow_infinity): Use
19980 TREE_OVERFLOW_P and do that check first.
19981 (is_positive_overflow_infinity): Likewise.
19982 (is_overflow_infinity): Likewise.
19983 (vrp_operand_equal_p): Properly treat operands with
19984 differing overflow as not equal.
19985
19986 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19987
19988 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19989 shift simplification where it was intended.
19990
19991 2014-05-19 Christian Bruel <christian.bruel@st.com>
19992
19993 PR target/61195
19994 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19995
19996 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19997
19998 PR target/61084
19999 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
20000 than wide_int.
20001
20002 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
20003
20004 * reg-notes.def (CROSSING_JUMP): Likewise.
20005 * rtl.h (rtx_def): Update comment for jump flag.
20006 (CROSSING_JUMP_P): Define.
20007 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
20008 of a REG_CROSSING_JUMP note.
20009 * cfghooks.c (tidy_fallthru_edges): Likewise.
20010 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
20011 * emit-rtl.c (try_split): Likewise.
20012 * haifa-sched.c (sched_create_recovery_edges): Likewise.
20013 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
20014 * jump.c (redirect_jump_2): Likewise.
20015 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
20016 (relax_delay_slots): Likewise.
20017 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
20018 (bbit_di): Likewise.
20019 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
20020 * config/sh/sh.md (jump_compact): Likewise.
20021 * bb-reorder.c (rotate_loop): Likewise.
20022 (pass_duplicate_computed_gotos::execute): Likewise.
20023 (add_reg_crossing_jump_notes): Rename to...
20024 (update_crossing_jump_flags): ...this.
20025 (pass_partition_blocks::execute): Update accordingly.
20026
20027 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
20028
20029 * tree.h: Remove extraneous template <>.
20030
20031 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
20032
20033 * ipa.c (symtab_remove_unreachable_nodes): Remove
20034 symbol from comdat group if its body was eliminated.
20035 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
20036 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
20037 (symtab_unregister_node): ... this one.
20038 (verify_symtab_base): More strict checking of comdats.
20039 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
20040
20041 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
20042
20043 * tree-pass.h (make_pass_ipa_comdats): New pass.
20044 * timevar.def (TV_IPA_COMDATS): New timevar.
20045 * passes.def (pass_ipa_comdats): Add.
20046 * Makefile.in (OBJS): Add ipa-comdats.o
20047 * ipa-comdats.c: New file.
20048
20049 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
20050
20051 * ipa.c (update_visibility_by_resolution_info): New function.
20052 (function_and_variable_visibility): Use it.
20053
20054 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
20055
20056 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
20057 New functions.
20058 (FOR_EACH_DEFINED_SYMBOL): New macro.
20059 (varpool_first_static_initializer, varpool_next_static_initializer,
20060 varpool_first_defined_variable, varpool_next_defined_variable):
20061 Fix comments.
20062 (symtab_in_same_comdat_p): Correctly deal with inline functions.
20063
20064 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
20065
20066 * ggc-page.c (ggc_handle_finalizers): Add comment.
20067
20068 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
20069
20070 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
20071 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
20072 (ggc_internal_cleared_alloc): Likewise.
20073 * ggc-page.c (finalizer): New class.
20074 (vec_finalizer): Likewise.
20075 (globals::finalizers): New member.
20076 (globals::vec_finalizers): Likewise.
20077 (ggc_internal_alloc): Record the finalizer if any for the block being
20078 allocated.
20079 (ggc_handle_finalizers): New function.
20080 (ggc_collect): Call ggc_handle_finalizers.
20081 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
20082 finalizer.
20083 (ggc_internal_cleared_alloc): Likewise.
20084 (finalize): New function.
20085 (need_finalization_p): Likewise.
20086 (ggc_alloc): Install the type's destructor as the finalizer if it
20087 might do something.
20088 (ggc_cleared_alloc): Likewise.
20089 (ggc_vec_alloc): Likewise.
20090 (ggc_cleared_vec_alloc): Likewise.
20091
20092 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
20093
20094 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
20095
20096 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
20097
20098 * alias.c (record_alias_subset): Adjust.
20099 * bitmap.c (bitmap_element_allocate): Likewise.
20100 (bitmap_gc_alloc_stat): Likewise.
20101 * cfg.c (init_flow): Likewise.
20102 (alloc_block): Likewise.
20103 (unchecked_make_edge): Likewise.
20104 * cfgloop.c (alloc_loop): Likewise.
20105 (flow_loops_find): Likewise.
20106 (rescan_loop_exit): Likewise.
20107 * cfgrtl.c (init_rtl_bb_info): Likewise.
20108 * cgraph.c (insert_new_cgraph_node_version): Likewise.
20109 (cgraph_allocate_node): Likewise.
20110 (cgraph_create_edge_1): Likewise.
20111 (cgraph_allocate_init_indirect_info): Likewise.
20112 * cgraphclones.c (cgraph_clone_edge): Likewise.
20113 * cgraphunit.c (add_asm_node): Likewise.
20114 (init_lowered_empty_function): Likewise.
20115 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
20116 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20117 (alpha_use_linkage): Likewise.
20118 * config/arc/arc.c (arc_init_machine_status): Likewise.
20119 * config/arm/arm.c (arm_init_machine_status): Likewise.
20120 * config/avr/avr.c (avr_init_machine_status): Likewise.
20121 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20122 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
20123 * config/cris/cris.c (cris_init_machine_status): Likewise.
20124 * config/darwin.c (machopic_indirection_name): Likewise.
20125 (darwin_build_constant_cfstring): Likewise.
20126 (darwin_enter_string_into_cfstring_table): Likewise.
20127 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
20128 * config/frv/frv.c (frv_init_machine_status): Likewise.
20129 * config/i386/i386.c (get_dllimport_decl): Likewise.
20130 (ix86_init_machine_status): Likewise.
20131 (assign_386_stack_local): Likewise.
20132 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20133 (i386_pe_maybe_record_exported_symbol): Likewise.
20134 (i386_pe_record_stub): Likewise.
20135 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20136 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20137 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20138 (m32c_note_pragma_address): Likewise.
20139 * config/mep/mep.c (mep_init_machine_status): Likewise.
20140 (mep_note_pragma_flag): Likewise.
20141 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20142 (mips16_local_alias): Likewise.
20143 (mips_init_machine_status): Likewise.
20144 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20145 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20146 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
20147 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
20148 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
20149 * config/pa/pa.c (pa_init_machine_status): Likewise.
20150 (pa_get_deferred_plabel): Likewise.
20151 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
20152 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20153 (rs6000_init_machine_status): Likewise.
20154 (output_toc): Likewise.
20155 * config/s390/s390.c (s390_init_machine_status): Likewise.
20156 * config/score/score.c (score_output_external): Likewise.
20157 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20158 * config/spu/spu.c (spu_init_machine_status): Likewise.
20159 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
20160 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
20161 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20162 * coverage.c (coverage_end_function): Likewise.
20163 * dbxout.c (dbxout_init): Likewise.
20164 * doc/gty.texi: Don't mention variable_size attribute.
20165 * dwarf2cfi.c (new_cfi): Adjust.
20166 (new_cfi_row): Likewise.
20167 (copy_cfi_row): Likewise.
20168 (create_cie_data): Likewise.
20169 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
20170 (new_loc_descr): Likewise.
20171 (find_AT_string_in_table): Likewise.
20172 (add_addr_table_entry): Likewise.
20173 (new_die): Likewise.
20174 (add_var_loc_to_decl): Likewise.
20175 (clone_die): Likewise.
20176 (clone_as_declaration): Likewise.
20177 (break_out_comdat_types): Likewise.
20178 (new_loc_list): Likewise.
20179 (add_loc_descr_to_each): Likewise.
20180 (add_location_or_const_value_attribute): Likewise.
20181 (add_linkage_name): Likewise.
20182 (lookup_filename): Likewise.
20183 (dwarf2out_var_location): Likewise.
20184 (new_line_info_table): Likewise.
20185 (dwarf2out_init): Likewise.
20186 (mem_loc_descriptor): Likewise.
20187 (loc_descriptor): Likewise.
20188 (add_const_value_attribute): Likewise.
20189 (tree_add_const_value_attribute): Likewise.
20190 (comp_dir_string): Likewise.
20191 (dwarf2out_vms_debug_main_pointer): Likewise.
20192 (string_cst_pool_decl): Likewise.
20193 * emit-rtl.c (set_mem_attrs): Likewise.
20194 (get_reg_attrs): Likewise.
20195 (start_sequence): Likewise.
20196 (init_emit): Likewise.
20197 (init_emit_regs): Likewise.
20198 * except.c (init_eh_for_function): Likewise.
20199 (gen_eh_region): Likewise.
20200 (gen_eh_region_catch): Likewise.
20201 (gen_eh_landing_pad): Likewise.
20202 (add_call_site): Likewise.
20203 * function.c (add_frame_space): Likewise.
20204 (insert_temp_slot_address): Likewise.
20205 (assign_stack_temp_for_type): Likewise.
20206 (get_hard_reg_initial_val): Likewise.
20207 (allocate_struct_function): Likewise.
20208 (prepare_function_start): Likewise.
20209 (types_used_by_var_decl_insert): Likewise.
20210 * gengtype.c (variable_size_p): Remove function.
20211 (enum alloc_quantity): Remove enum.
20212 (write_typed_alloc_def): Remove function.
20213 (write_typed_struct_alloc_def): Likewise.
20214 (write_typed_typedef_alloc_def): Likewise.
20215 (write_typed_alloc_defns): Likewise.
20216 (main): Adjust.
20217 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
20218 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
20219 * ggc.h (ggc_alloc): new function.
20220 (ggc_cleared_alloc): Likewise.
20221 (ggc_vec_alloc): Template on type of vector element, and remove
20222 element size argument.
20223 (ggc_cleared_vec_alloc): Likewise.
20224 * gimple.c (gimple_build_omp_for): Adjust.
20225 (gimple_copy): Likewise.
20226 * ipa-cp.c (get_replacement_map): Likewise.
20227 (find_aggregate_values_for_callers_subset): Likewise.
20228 (known_aggs_to_agg_replacement_list): Likewise.
20229 * ipa-devirt.c (get_odr_type): Likewise.
20230 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
20231 (read_agg_replacement_chain): Likewise.
20232 * loop-iv.c (get_simple_loop_desc): Likewise.
20233 * lto-cgraph.c (input_node_opt_summary): Likewise.
20234 * lto-section-in.c (lto_new_in_decl_state): Likewise.
20235 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20236 (input_eh_region): Likewise.
20237 (input_eh_lp): Likewise.
20238 (input_cfg): Likewise.
20239 * optabs.c (set_optab_libfunc): Likewise.
20240 (init_tree_optimization_optabs): Likewise.
20241 (set_conv_libfunc): Likewise.
20242 * passes.c (do_per_function_toporder): Likewise.
20243 * rtl.h: Don't use variable_size gty attribute.
20244 * sese.c (if_region_set_false_region): Adjust.
20245 * stringpool.c (gt_pch_save_stringpool): Likewise.
20246 * target-globals.c (save_target_globals): Likewise.
20247 * toplev.c (general_init): Likewise.
20248 * trans-mem.c (record_tm_replacement): Likewise.
20249 (split_bb_make_tm_edge): Likewise.
20250 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20251 * tree-data-ref.h (lambda_vector_new): Likewise.
20252 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20253 * tree-iterator.c (tsi_link_before): Likewise.
20254 (tsi_link_after): Likewise.
20255 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20256 * tree-ssa-loop-niter.c (record_estimate): Likewise.
20257 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20258 * tree-ssa-operands.h: Don't use variable_size gty attribute.
20259 * tree-ssa.c (init_tree_ssa): Adjust.
20260 * tree-ssanames.c (set_range_info): Likewise.
20261 (get_ptr_info): Likewise.
20262 (duplicate_ssa_name_ptr_info): Likewise.
20263 (duplicate_ssa_name_range_info): Likewise.
20264 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
20265 (unpack_ts_fixed_cst_value_fields): Likewise.
20266 * tree.c (build_fixed): Likewise.
20267 (build_real): Likewise.
20268 (build_string): Likewise.
20269 (decl_priority_info): Likewise.
20270 (decl_debug_expr_insert): Likewise.
20271 (decl_value_expr_insert): Likewise.
20272 (decl_debug_args_insert): Likewise.
20273 (type_hash_add): Likewise.
20274 (build_omp_clause): Likewise.
20275 * ubsan.c (decl_for_type_insert): Likewise.
20276 * varasm.c (get_unnamed_section): Likewise.
20277 (get_noswitch_section): Likewise.
20278 (get_section): Likewise.
20279 (get_block_for_section): Likewise.
20280 (create_block_symbol): Likewise.
20281 (build_constant_desc): Likewise.
20282 (create_constant_pool): Likewise.
20283 (force_const_mem): Likewise.
20284 (record_tm_clone_pair): Likewise.
20285 * varpool.c (varpool_create_empty_node): Likewise.
20286
20287 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
20288
20289 * dwarf2out.c (tree_add_const_value_attribute): Call
20290 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
20291 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
20292 instead of ggc_internal_<x>alloc_stat.
20293 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
20294 (ggc_realloc): Likewise.
20295 * ggc-none.c (ggc_internal_alloc): Likewise.
20296 (ggc_internal_cleared_alloc): Likewise.
20297 * ggc-page.c: Likewise.
20298 * ggc.h (ggc_internal_alloc_stat): Likewise.
20299 (ggc_internal_alloc): Remove macro.
20300 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
20301 (ggc_internal_cleared_alloc): Remove macro.
20302 (GGC_RESIZEVEC): Adjust.
20303 (ggc_resizevar): Remove macro.
20304 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
20305 (ggc_internal_cleared_vec_alloc_stat): Likewise.
20306 (ggc_internal_vec_cleared_alloc): Remove macro.
20307 (ggc_alloc_atomic_stat): Drop _stat suffix.
20308 (ggc_alloc_atomic): Remove macro.
20309 (ggc_alloc_cleared_atomic): Remove macro.
20310 (ggc_alloc_string_stat): Drop _stat suffix.
20311 (ggc_alloc_string): Remove macro.
20312 (ggc_alloc_rtx_def_stat): Adjust.
20313 (ggc_alloc_tree_node_stat): Likewise.
20314 (ggc_alloc_cleared_tree_node_stat): Likewise.
20315 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
20316 (ggc_alloc_cleared_simd_clone_stat): Likewise.
20317 * gimple.c (gimple_build_omp_for): Likewise.
20318 (gimple_copy): Likewise.
20319 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
20320 * toplev.c (realloc_for_line_map): Adjust.
20321 * tree-data-ref.h (lambda_vector_new): Likewise.
20322 * tree-phinodes.c (allocate_phi_node): Likewise.
20323 * tree.c (grow_tree_vec_stat): Likewise.
20324 * vec.h (va_gc::reserve): Adjust.
20325
20326 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
20327
20328 * config/microblaze/microblaze.c (break_handler): New Declaration.
20329 (microblaze_break_function_p,microblaze_is_break_handler): New.
20330 (compute_frame_size): Use microblaze_break_function_p.
20331 Add the test of break_handler.
20332 (microblaze_function_prologue) : Add the test of variable
20333 break_handler. Check the fnname by BREAK_HANDLER_NAME.
20334 (microblaze_function_epilogue) : Add the test of break_handler.
20335 (microblaze_globalize_label) : Add the test of break_handler.
20336 Check the name by BREAK_HANDLER_NAME.
20337
20338 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
20339
20340 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
20341 microblaze_is_break_handler test.
20342 (call_internal1,call_value_intern): Use microblaze_break_function_p.
20343 Use SYMBOL_REF_DECL.
20344
20345 * config/microblaze/microblaze-protos.h
20346 (microblaze_break_function_p,microblaze_is_break_handler):
20347 New Declaration.
20348
20349 * doc/extend.texi (MicroBlaze break_handler Functions): Document
20350 new MicroBlaze break_handler functions.
20351
20352 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
20353
20354 * doc/extend.texi (Size of an asm): Move node text according
20355 to its @menu entry position.
20356
20357 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
20358
20359 PR tree-optimization/61140
20360 PR tree-optimization/61150
20361 PR tree-optimization/61197
20362 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
20363
20364 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
20365
20366 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
20367
20368 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
20369
20370 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
20371 __SIZEOF_INT128__ is defined.
20372
20373 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
20374
20375 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
20376 (rs6000_delegitimize_address): Use it.
20377
20378 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
20379
20380 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
20381 inplace argument. Store the new address in the original MEM when true.
20382 * emit-rtl.c (change_address_1): Likewise.
20383 (adjust_address_1, adjust_automodify_address_1, offset_address):
20384 Update accordingly.
20385 * rtl.h (plus_constant): Add an inplace argument.
20386 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
20387 when true. Avoid generating (plus X (const_int 0)).
20388 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
20389 in-place. Pass true to plus_constant.
20390 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
20391
20392 2014-05-16 Dehao Chen <dehao@google.com>
20393
20394 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
20395
20396 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20397
20398 PR target/54089
20399 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
20400 patterns.
20401 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
20402
20403 2014-05-16 Dehao Chen <dehao@google.com>
20404
20405 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
20406 optimize_function_for_size_p.
20407 * regs.h (REG_FREQ_FROM_BB): Likewise.
20408
20409 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20410
20411 PR target/51244
20412 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
20413 negt_reg_operand cases.
20414 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
20415 predicate.
20416 * config/sh/predicates.md (cbranch_treg_value): Simplify.
20417
20418 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20419
20420 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
20421 target variants.
20422
20423 2014-05-16 David Malcolm <dmalcolm@redhat.com>
20424
20425 Revert:
20426 2014-04-29 David Malcolm <dmalcolm@redhat.com>
20427
20428 * tree-cfg.c (dump_function_to_file): Dump the return type of
20429 functions, in a line to itself before the function body, mimicking
20430 the layout of a C function.
20431
20432 2014-05-16 Dehao Chen <dehao@google.com>
20433
20434 * cfghooks.c (make_forwarder_block): Use direct computation to
20435 get fall-through edge's count and frequency.
20436
20437 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
20438
20439 * config/arc/arc.c (arc_init): Fix typo in error message.
20440 * config/i386/i386.c (ix86_expand_builtin): Likewise.
20441 (split_stack_prologue_scratch_regno): Likewise.
20442 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
20443 word from error message.
20444
20445 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20446
20447 * ira-costs.c: Fix typo in comment.
20448
20449 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
20450
20451 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20452
20453 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
20454
20455 * varpool.c (dump_varpool_node): Dump write-only flag.
20456 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20457 write-only flag.
20458 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20459 write-only variables.
20460 * ipa.c (process_references): New function.
20461 (set_readonly_bit): New function.
20462 (set_writeonly_bit): New function.
20463 (clear_addressable_bit): New function.
20464 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20465 fix handling of aliases.
20466 * cgraph.h (struct varpool_node): Add writeonly flag.
20467
20468 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
20469
20470 PR rtl-optimization/60969
20471 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20472 Calculate costs for this case.
20473
20474 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
20475
20476 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20477 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20478
20479 2014-05-16 Richard Biener <rguenther@suse.de>
20480
20481 PR tree-optimization/61194
20482 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20483 bool patterns ending in a COND_EXPR.
20484
20485 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20486
20487 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20488
20489 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20490
20491 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20492 where we were unable to cost an RTX.
20493
20494 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20495
20496 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20497 HIGH, LO_SUM.
20498
20499 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20500 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20501
20502 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
20503
20504 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20505 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20506
20507 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20508 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20509
20510 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20511 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20512
20513 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20514 operators.
20515
20516 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20517 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20518
20519 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20520 DIV/MOD.
20521
20522 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20523 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20524
20525 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20526 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20527
20528 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20529 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20530
20531 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20532 rotates and shifts.
20533
20534 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20535 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20536
20537 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20538 ZERO_EXTEND and SIGN_EXTEND better.
20539
20540 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20541 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20542
20543 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20544 logical operations.
20545
20546 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20547 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20548
20549 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20550 costs when costing loads and stores to memory.
20551
20552 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20553 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
20554
20555 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20556 for SET RTX.
20557
20558 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20559
20560 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20561
20562 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20563 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20564
20565 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20566 to...
20567 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20568 well formed.
20569 (aarch64_rtx_mult_cost): New.
20570 (aarch64_rtx_costs): Use it, refactor as appropriate.
20571
20572 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20573 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20574
20575 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20576 emit instructions, return number of instructions which would
20577 be emitted.
20578 (aarch64_add_constant): Update call to aarch64_build_constant.
20579 (aarch64_output_mi_thunk): Likewise.
20580 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20581 a CONST_DOUBLE.
20582
20583 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20584
20585 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20586 (TARGET_RTX_COSTS): Call it.
20587
20588 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20589
20590 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20591 (cortexa57_vector_cost): Likewise.
20592 (cortexa57_tunings): Use them.
20593
20594 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20595
20596 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20597 (cpu_addrcost_table): Use it.
20598 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20599 (aarch64_address_cost): Rewrite using aarch64_classify_address,
20600 move it.
20601
20602 2014-05-16 Richard Biener <rguenther@suse.de>
20603
20604 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20605 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20606 (visit_phi): Ignore edges marked as not executable.
20607 (class cond_dom_walker): New.
20608 (cond_dom_walker::before_dom_children): Value-number
20609 control statements and mark successor edges as not
20610 executable if possible.
20611 (run_scc_vn): First walk all control statements in
20612 dominator order, marking edges as not executable.
20613 * tree-inline.c (copy_edges_for_bb): Be not confused
20614 about random edge flags.
20615
20616 2014-05-16 Richard Biener <rguenther@suse.de>
20617
20618 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20619
20620 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
20621
20622 PR target/61193
20623 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20624 (__TM_simple_begin): Use it.
20625 (__TM_begin): Likewise.
20626
20627 2014-05-15 Martin Jambor <mjambor@suse.cz>
20628
20629 PR ipa/61085
20630 * ipa-prop.c (update_indirect_edges_after_inlining): Check
20631 type_preserved flag when the indirect edge is polymorphic.
20632
20633 2014-05-15 Martin Jambor <mjambor@suse.cz>
20634
20635 PR tree-optimization/61090
20636 * tree-sra.c (sra_modify_expr): Pass the current gsi to
20637 build_ref_for_model.
20638
20639 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20640
20641 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20642 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20643
20644 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20645
20646 PR tree-optimization/61158
20647 * fold-const.c (fold_binary_loc): If X is zero-extended and
20648 shiftc >= prec, make sure zerobits is all ones instead of
20649 invoking undefined behavior.
20650
20651 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20652
20653 * regcprop.h: New file.
20654 * regcprop.c (skip_debug_insn_p): New decl.
20655 (replace_oldest_value_reg): Check skip_debug_insn_p.
20656 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20657 * shrink-wrap.c: Include regcprop.h.
20658 (prepare_shrink_wrap): Call
20659 copyprop_hardreg_forward_bb_without_debug_insn.
20660
20661 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20662
20663 * shrink-wrap.h: Update comment.
20664 * shrink-wrap.c: Update comment.
20665 (next_block_for_reg): Rename to live_edge_for_reg.
20666 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20667 (move_insn_for_shrink_wrap): Split live_edge.
20668 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20669
20670 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20671
20672 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20673 Delete.
20674 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20675 * config/sparc/sparc.md (fptype_ut699): New attribute.
20676 (in_branch_delay): Return false if -mfix-ut699 is specified and
20677 fptype_ut699 is set to single.
20678 (truncdfsf2): Add fptype_ut699 attribute.
20679 (fix_truncdfsi2): Likewise.
20680 (floatsisf2): Change fptype attribute.
20681 (fix_truncsfsi2): Likewise.
20682 (negtf2_notv9): Delete.
20683 (negtf2_v9): Likewise.
20684 (negtf2_hq): New instruction.
20685 (negtf2): New instruction and splitter.
20686 (negdf2_notv9): Rewrite.
20687 (abstf2_notv9): Delete.
20688 (abstf2_hq_v9): Likewise.
20689 (abstf2_v9): Likewise.
20690 (abstf2_hq): New instruction.
20691 (abstf2): New instruction and splitter.
20692 (absdf2_notv9): Rewrite.
20693
20694 2014-05-14 Cary Coutant <ccoutant@google.com>
20695
20696 PR debug/61013
20697 * opts.c (common_handle_option): Don't special-case "-g".
20698 (set_debug_level): Default to at least level 2 with "-g".
20699
20700 2014-05-14 DJ Delorie <dj@redhat.com>
20701
20702 * config/msp430/msp430.c (msp430_builtin): Add
20703 MSP430_BUILTIN_DELAY_CYCLES.
20704 (msp430_init_builtins): Register void __delay_cycles(long long).
20705 (msp430_builtin_decl): Add it.
20706 (cg_magic_constant): New.
20707 (msp430_expand_delay_cycles): New.
20708 (msp430_expand_builtin): Call it.
20709 (msp430_print_operand_raw): Change integer printing from "int" to
20710 HOST_WIDE_INT.
20711 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20712 (delay_cycles_start): New.
20713 (delay_cycles_end): New.
20714 (delay_cycles_32): New.
20715 (delay_cycles_32x): New.
20716 (delay_cycles_16): New.
20717 (delay_cycles_16x): New.
20718 (delay_cycles_2): New.
20719 (delay_cycles_1): New.
20720 * doc/extend.texi: Document __delay_cycles().
20721
20722 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20723
20724 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20725 length attribute computation.
20726
20727 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20728
20729 PR debug/61188
20730 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20731
20732 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20733
20734 PR target/61084
20735 * config/sparc/sparc.md: Fix types of low and high in DI constant
20736 splitter. Use gen_int_mode in some other splitters.
20737
20738 2014-05-14 Martin Jambor <mjambor@suse.cz>
20739
20740 PR ipa/60897
20741 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20742
20743 2014-05-14 James Norris <jnorris@codesourcery.com>
20744
20745 * omp-low.c (expand_parallel_call): Remove shadow variable.
20746 (expand_omp_taskreg): Likewise.
20747
20748 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20749
20750 * common/config/i386/i386-common.c
20751 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20752 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20753 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20754 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20755 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20756 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20757 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20758 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20759 xsavecintrin.h, xsavesintrin.h.
20760 (x86_64-*-*): Ditto.
20761 * config/i386/clflushoptintrin.h: New.
20762 * config/i386/xsavecintrin.h: Ditto.
20763 * config/i386/xsavesintrin.h: Ditto.
20764 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20765 (bit_XSAVES): Ditto.
20766 (bit_XSAVES): Ditto.
20767 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20768 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20769 -mno-clflushopt.
20770 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20771 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20772 OPTION_MASK_ISA_XSAVES.
20773 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20774 -mxsavec, -mxsaves.
20775 (PTA_CLFLUSHOPT) Define.
20776 (PTA_XSAVEC): Ditto.
20777 (PTA_XSAVES): Ditto.
20778 (ix86_option_override_internal): Handle new options.
20779 (ix86_valid_target_attribute_inner_p): Ditto.
20780 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20781 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20782 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20783 (bdesc_special_args): Add __builtin_ia32_xsaves,
20784 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20785 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20786 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20787 (ix86_expand_builtin): Handle new builtins.
20788 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20789 (TARGET_CLFLUSHOPT_P): Ditto.
20790 (TARGET_XSAVEC): Ditto.
20791 (TARGET_XSAVEC_P): Ditto.
20792 (TARGET_XSAVES): Ditto.
20793 (TARGET_XSAVES_P): Ditto.
20794 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20795 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20796 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20797 (ANY_XRSTOR): New.
20798 (ANY_XRSTOR64): Ditto.
20799 (xrstor): Ditto.
20800 (xrstor): Change into <xrstor>.
20801 (xrstor_rex64): Change into <xrstor>_rex64.
20802 (xrstor64): Change into <xrstor>64
20803 (clflushopt): New.
20804 * config/i386/i386.opt (mclflushopt): New.
20805 (mxsavec): Ditto.
20806 (mxsaves): Ditto.
20807 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20808 xsavecintrin.h.
20809 * doc/invoke.texi: Document new options.
20810
20811 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20812
20813 PR rtl-optimization/60866
20814 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20815 Default it to -1. Pass it down to init_simplejump_data.
20816 (init_simplejump_data): New parameter old_seqno. Pass it down
20817 to get_seqno_for_a_jump.
20818 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20819 initializing new jump seqno as a last resort. Add comment.
20820 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20821 jump and pass it down to sel_init_new_insn.
20822 (sel_redirect_edge_and_branch_force): Likewise.
20823
20824 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20825
20826 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20827 shifted values to avoid build warning.
20828
20829 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20830
20831 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20832 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20833 (cfg_layout_merge_blocks): Likewise.
20834 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20835
20836 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20837
20838 PR rtl-optimization/60901
20839 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20840 bb predecessor belongs to the same scheduling region. Adjust comment.
20841
20842 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20843
20844 * doc/sourcebuild.texi: (dfp_hw): Document.
20845 (p8vector_hw): Likewise.
20846 (powerpc_eabi_ok): Likewise.
20847 (powerpc_elfv2): Likewise.
20848 (powerpc_htm_ok): Likewise.
20849 (ppc_recip_hw): Likewise.
20850 (vsx_hw): Likewise.
20851
20852 2014-05-13 Cary Coutant <ccoutant@google.com>
20853
20854 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20855
20856 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20857
20858 * gengtype-parse.c (require3): Eliminate in favor of...
20859 (require4): New.
20860 (require_template_declaration): Update to support optional single *
20861 on a type.
20862
20863 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20864 (create_user_defined_type): Handle a single level of explicit
20865 pointerness within template arguments.
20866 (struct write_types_data): Add field "kind".
20867 (filter_type_name): Handle "*" character.
20868 (write_user_func_for_structure_ptr): Require a write_types_data
20869 rather than just a prefix string, so that we can look up the kind
20870 of the wtd and use it as an index into wrote_user_func_for_ptr,
20871 ensuring that such functions are written at most once. Support
20872 subclasses by invoking the marking function of the ultimate base class.
20873 (write_user_func_for_structure_body): Require a write_types_data
20874 rather than just a prefix string, so that we can pass this to
20875 write_user_func_for_structure_ptr.
20876 (write_func_for_structure): Likewise.
20877 (ggc_wtd): Add initializer of new "kind" field.
20878 (pch_wtd): Likewise.
20879
20880 * gengtype.h (enum write_types_kinds): New.
20881 (struct type): Add field wrote_user_func_for_ptr to the "s"
20882 union member.
20883
20884 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20885
20886 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20887 instead of const_binop.
20888 (fold_binary_loc): Likewise.
20889
20890 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20891
20892 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20893 calculation to match get_ref_base_and_extent.
20894
20895 2014-05-13 Catherine Moore <clm@codesourcery.com>
20896 Sandra Loosemore <sandra@codesourcery.com>
20897
20898 * configure.ac: Fix assembly for explicit JALR relocation check.
20899 * configure: Regenerate.
20900
20901 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20902
20903 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20904 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20905 Remove associated type declarations and initialisations.
20906 (arm_expand_neon_builtin): Likewise.
20907 (neon_emit_pair_result_insn): Delete.
20908 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20909 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20910 (neon_vzip<mode>): Likewise.
20911 (neon_vuzp<mode>): Likewise.
20912
20913 2014-05-13 Richard Biener <rguenther@suse.de>
20914
20915 PR ipa/60973
20916 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20917 it needs revisiting whether the call still may be tail-called.
20918
20919 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20920
20921 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20922 * rtl.h (block_symbol): Reduce number of fields to 2.
20923 (rtx_def): Add u2.symbol_ref_flags.
20924 (SYMBOL_REF_FLAGS): Use it.
20925 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20926 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20927 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20928 Lower index of SYMBOL_REF_DATA.
20929 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20930 Print SYMBOL_REF_FLAGS at the same time.
20931 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20932
20933 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20934
20935 * rtl.def (VAR_LOCATION): Remove "i" field.
20936 * rtl.h (rtx_def): Add u2.var_location_status.
20937 (PAT_VAR_LOCATION_STATUS): Use it.
20938 (gen_rtx_VAR_LOCATION): Declare.
20939 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20940 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20941 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20942
20943 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20944
20945 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20946 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20947
20948 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20949
20950 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20951 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20952 * rtl.h (rtx_def): Add insn_uid to u2 field.
20953 (RTX_FLAG_CHECK8): Delete in favor of...
20954 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20955 (INSN_DELETED_P): Update accordingly.
20956 (INSN_UID): Use u2.insn_uid.
20957 (INSN_CHAIN_CODE_P): Define.
20958 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20959 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20960 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20961 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20962 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20963 indices accordingly.
20964 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20965 Update indices for insn-chain rtxes.
20966 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20967 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20968 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20969 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20970 * combine.c (try_combine): Likewise.
20971 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20972
20973 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20974
20975 * rtl.def (REG): Remove middle field.
20976 * rtl.h (rtx_def): Add orignal_regno to u2.
20977 (ORIGINAL_REGNO): Use it instead of field 1.
20978 (REG_ATTRS): Lower field index accordingly.
20979 * gengtype.c (adjust_field_rtx_def): Remove handling of
20980 ORIGINAL_REGNO. Move REG_ATTRS index down.
20981 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20982 code that prints the REGNO.
20983
20984 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20985
20986 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20987 GENERATOR_FILE.
20988
20989 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20990
20991 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20992
20993 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20994
20995 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20996 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20997
20998 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20999
21000 * config/aarch64/aarch64-protos.h
21001 (aarch64_hard_regno_caller_save_mode): New prototype.
21002 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
21003 New function.
21004 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
21005
21006 2014-05-13 Christian Bruel <christian.bruel@st.com>
21007
21008 * target.def (mode_switching): New hook vector.
21009 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
21010 (mode_exit, modepriority_to_mode): Likewise.
21011 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
21012 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21013 * target.h: Include tm.h and hard-reg-set.h.
21014 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
21015 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
21016 * doc/tm.texi Regenerate.
21017 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21018 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21019 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
21020 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
21021 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
21022 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21023 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
21024 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
21025 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
21026 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
21027 (ix86_emit_mode_set): Hookify.
21028 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
21029 Delete.
21030 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
21031 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
21032 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
21033 (epiphany_mode_priority_to_mode): Remove declaration.
21034 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
21035 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
21036 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
21037 Likewise.
21038 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
21039 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
21040 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
21041
21042 2014-05-13 Jakub Jelinek <jakub@redhat.com>
21043
21044 PR target/61060
21045 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
21046 is const0_rtx, return immediately. Don't test count == 0 when
21047 it is always true.
21048
21049 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21050
21051 * Makefile.in: add shrink-wrap.o.
21052 * config/i386/i386.c: include "shrink-wrap.h"
21053 * function.c: Likewise.
21054 (requires_stack_frame_p, next_block_for_reg,
21055 move_insn_for_shrink_wrap, prepare_shrink_wrap,
21056 dup_block_and_redirect): Move to shrink-wrap.c
21057 (thread_prologue_and_epilogue_insns): Extract three code segments
21058 as functions in shrink-wrap.c
21059 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
21060 shrink-wrap.h
21061 * shrink-wrap.c: New file.
21062 * shrink-wrap.h: New file.
21063
21064 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
21065
21066 * doc/extend.texi: Reflect current numbers of pragmas. Remove
21067 reference to Solaris.
21068
21069 2014-05-12 Mike Stump <mikestump@comcast.net>
21070
21071 PR other/31778
21072 * genattrtab.c (filename): Add.
21073 (convert_set_attr_alternative): Improve error message.
21074 (check_defs): Restore read_md_filename for error messages.
21075 (gen_insn): Save filename.
21076
21077 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
21078
21079 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
21080 -fno-local-ivars and -fivar-visibility.
21081 * c-family/c.opt: Make -Wshadow also implicitly enable
21082 -Wshadow-ivar.
21083
21084 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
21085
21086 * doc/tm.texi: Remove reference to deleted macro.
21087 * doc/tm.texi.in: Likewise.
21088
21089 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21090
21091 PR target/60991
21092 * config/avr/avr.c (avr_out_store_psi): Use correct constant
21093 to restore Y.
21094
21095 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
21096
21097 PR libgcc/61152
21098 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
21099 * config/arm/aout.h (License): Same.
21100 * config/arm/bpabi.h (License): Same.
21101 * config/arm/elf.h (License): Same.
21102 * config/arm/linux-elf.h (License): Same.
21103 * config/arm/linux-gas.h (License): Same.
21104 * config/arm/netbsd-elf.h (License): Same.
21105 * config/arm/uclinux-eabi.h (License): Same.
21106 * config/arm/uclinux-elf.h (License): Same.
21107 * config/arm/vxworks.h (License): Same.
21108
21109 2014-05-11 Jakub Jelinek <jakub@redhat.com>
21110
21111 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
21112 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
21113 number of operands to 3.
21114 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
21115 * tree-nested.c (convert_nonlocal_omp_clauses,
21116 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
21117 * gimplify.c (gimplify_scan_omp_clauses): Handle
21118 OMP_CLAUSE_LINEAR_STMT.
21119 * omp-low.c (lower_rec_input_clauses): Fix typo.
21120 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
21121 cast between Fortran boolean_type_node and C _Bool if
21122 needed.
21123
21124 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
21125
21126 PR tree-optimization/61136
21127 * wide-int.h (multiple_of_p): Define a version that doesn't return
21128 the quotient.
21129 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
21130 integer_zerop/const_binop pair.
21131 (multiple_of_p): Likewise, converting both operands to widest_int
21132 precision.
21133
21134 2014-05-09 Teresa Johnson <tejohnson@google.com>
21135
21136 * cgraphunit.c (analyze_functions): Use correct dump file.
21137
21138 2014-05-09 Florian Weimer <fweimer@redhat.com>
21139
21140 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
21141 expand_used_vars.
21142 (stack_protect_return_slot_p): New function.
21143 (expand_used_vars): Call stack_protect_decl_p and
21144 stack_protect_return_slot_p for -fstack-protector-strong.
21145
21146 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
21147 Andrew Haley <aph@redhat.com>
21148 Richard Sandiford <rdsandiford@googlemail.com>
21149
21150 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
21151 pages.
21152
21153 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
21154
21155 PR middle-end/61111
21156 * fold-const.c (fold_binary_loc): Changed width of mask.
21157
21158 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
21159
21160 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
21161 unsigned int initializers for regno_in, regno_out.
21162
21163 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
21164
21165 PR target/61055
21166 * config/avr/avr.md (cc): Add new attribute set_vzn.
21167 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
21168 Set cc insn attribute to set_vzn instead of set_zn for alternatives
21169 with INC, DEC or NEG.
21170 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
21171 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
21172 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
21173
21174 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21175
21176 Revert:
21177 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21178
21179 * wide-int.cc (UTItype): Define.
21180 (UDWtype): Define for appropriate W_TYPE_SIZE.
21181
21182 2014-05-09 Richard Biener <rguenther@suse.de>
21183
21184 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
21185 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
21186 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
21187 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
21188 ssa_propagate): Adjust.
21189
21190 2014-05-08 Jeff Law <law@redhat.com>
21191
21192 PR tree-optimization/61009
21193 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
21194 tri-state rather than a boolean. When a block is too big to
21195 thread through, inform caller via negative return value.
21196 (thread_across_edge): If a block was too big for normal threading,
21197 then it's too big for a joiner too, so remove temporary equivalences
21198 and return immediately.
21199
21200 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
21201 Matthias Klose <doko@ubuntu.com>
21202
21203 PR driver/61106
21204 * optc-gen.awk: Fix option handling for -Wunused-parameter.
21205
21206 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
21207
21208 PR target/59952
21209 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
21210
21211 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
21212
21213 PR target/61092
21214 * config/alpha/alpha.c: Include gimple-iterator.h.
21215 (alpha_gimple_fold_builtin): New function. Move
21216 ALPHA_BUILTIN_UMULH folding from ...
21217 (alpha_fold_builtin): ... here.
21218 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
21219
21220 2014-05-08 Wei Mi <wmi@google.com>
21221
21222 PR target/58066
21223 * config/i386/i386.c (ix86_compute_frame_layout): Update
21224 preferred_stack_boundary for call, expanded from tls descriptor.
21225 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
21226 to depend on SP register.
21227 (*tls_local_dynamic_base_32_gnu): Ditto.
21228 (*tls_local_dynamic_32_once): Ditto.
21229 (tls_global_dynamic_64_<mode>): Set
21230 ix86_tls_descriptor_calls_expanded_in_cfun.
21231 (tls_local_dynamic_base_64_<mode>): Ditto.
21232 (tls_global_dynamic_32): Set
21233 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
21234 to depend on SP register.
21235 (tls_local_dynamic_base_32): Ditto.
21236
21237 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21238
21239 * config/arm/arm_neon.h: Update comment.
21240 * config/arm/neon-docgen.ml: Delete.
21241 * config/arm/neon-gen.ml: Delete.
21242 * doc/arm-neon-intrinsics.texi: Update comment.
21243
21244 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21245
21246 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
21247 and v4sf versions.
21248 (vand, vorr, veor, vorn, vbic): Remove.
21249 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
21250 iterator.
21251 (neon_vsub_unspec): Likewise.
21252 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
21253
21254 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21255
21256 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
21257 (vadd_s16): Likewise.
21258 (vadd_s32): Likewise.
21259 (vadd_f32): Likewise.
21260 (vadd_u8): Likewise.
21261 (vadd_u16): Likewise.
21262 (vadd_u32): Likewise.
21263 (vadd_s64): Likewise.
21264 (vadd_u64): Likewise.
21265 (vaddq_s8): Likewise.
21266 (vaddq_s16): Likewise.
21267 (vaddq_s32): Likewise.
21268 (vaddq_s64): Likewise.
21269 (vaddq_f32): Likewise.
21270 (vaddq_u8): Likewise.
21271 (vaddq_u16): Likewise.
21272 (vaddq_u32): Likewise.
21273 (vaddq_u64): Likewise.
21274 (vmul_s8): Likewise.
21275 (vmul_s16): Likewise.
21276 (vmul_s32): Likewise.
21277 (vmul_f32): Likewise.
21278 (vmul_u8): Likewise.
21279 (vmul_u16): Likewise.
21280 (vmul_u32): Likewise.
21281 (vmul_p8): Likewise.
21282 (vmulq_s8): Likewise.
21283 (vmulq_s16): Likewise.
21284 (vmulq_s32): Likewise.
21285 (vmulq_f32): Likewise.
21286 (vmulq_u8): Likewise.
21287 (vmulq_u16): Likewise.
21288 (vmulq_u32): Likewise.
21289 (vsub_s8): Likewise.
21290 (vsub_s16): Likewise.
21291 (vsub_s32): Likewise.
21292 (vsub_f32): Likewise.
21293 (vsub_u8): Likewise.
21294 (vsub_u16): Likewise.
21295 (vsub_u32): Likewise.
21296 (vsub_s64): Likewise.
21297 (vsub_u64): Likewise.
21298 (vsubq_s8): Likewise.
21299 (vsubq_s16): Likewise.
21300 (vsubq_s32): Likewise.
21301 (vsubq_s64): Likewise.
21302 (vsubq_f32): Likewise.
21303 (vsubq_u8): Likewise.
21304 (vsubq_u16): Likewise.
21305 (vsubq_u32): Likewise.
21306 (vsubq_u64): Likewise.
21307 (vand_s8): Likewise.
21308 (vand_s16): Likewise.
21309 (vand_s32): Likewise.
21310 (vand_u8): Likewise.
21311 (vand_u16): Likewise.
21312 (vand_u32): Likewise.
21313 (vand_s64): Likewise.
21314 (vand_u64): Likewise.
21315 (vandq_s8): Likewise.
21316 (vandq_s16): Likewise.
21317 (vandq_s32): Likewise.
21318 (vandq_s64): Likewise.
21319 (vandq_u8): Likewise.
21320 (vandq_u16): Likewise.
21321 (vandq_u32): Likewise.
21322 (vandq_u64): Likewise.
21323 (vorr_s8): Likewise.
21324 (vorr_s16): Likewise.
21325 (vorr_s32): Likewise.
21326 (vorr_u8): Likewise.
21327 (vorr_u16): Likewise.
21328 (vorr_u32): Likewise.
21329 (vorr_s64): Likewise.
21330 (vorr_u64): Likewise.
21331 (vorrq_s8): Likewise.
21332 (vorrq_s16): Likewise.
21333 (vorrq_s32): Likewise.
21334 (vorrq_s64): Likewise.
21335 (vorrq_u8): Likewise.
21336 (vorrq_u16): Likewise.
21337 (vorrq_u32): Likewise.
21338 (vorrq_u64): Likewise.
21339 (veor_s8): Likewise.
21340 (veor_s16): Likewise.
21341 (veor_s32): Likewise.
21342 (veor_u8): Likewise.
21343 (veor_u16): Likewise.
21344 (veor_u32): Likewise.
21345 (veor_s64): Likewise.
21346 (veor_u64): Likewise.
21347 (veorq_s8): Likewise.
21348 (veorq_s16): Likewise.
21349 (veorq_s32): Likewise.
21350 (veorq_s64): Likewise.
21351 (veorq_u8): Likewise.
21352 (veorq_u16): Likewise.
21353 (veorq_u32): Likewise.
21354 (veorq_u64): Likewise.
21355 (vbic_s8): Likewise.
21356 (vbic_s16): Likewise.
21357 (vbic_s32): Likewise.
21358 (vbic_u8): Likewise.
21359 (vbic_u16): Likewise.
21360 (vbic_u32): Likewise.
21361 (vbic_s64): Likewise.
21362 (vbic_u64): Likewise.
21363 (vbicq_s8): Likewise.
21364 (vbicq_s16): Likewise.
21365 (vbicq_s32): Likewise.
21366 (vbicq_s64): Likewise.
21367 (vbicq_u8): Likewise.
21368 (vbicq_u16): Likewise.
21369 (vbicq_u32): Likewise.
21370 (vbicq_u64): Likewise.
21371 (vorn_s8): Likewise.
21372 (vorn_s16): Likewise.
21373 (vorn_s32): Likewise.
21374 (vorn_u8): Likewise.
21375 (vorn_u16): Likewise.
21376 (vorn_u32): Likewise.
21377 (vorn_s64): Likewise.
21378 (vorn_u64): Likewise.
21379 (vornq_s8): Likewise.
21380 (vornq_s16): Likewise.
21381 (vornq_s32): Likewise.
21382 (vornq_s64): Likewise.
21383 (vornq_u8): Likewise.
21384 (vornq_u16): Likewise.
21385 (vornq_u32): Likewise.
21386 (vornq_u64): Likewise.
21387
21388 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21389
21390 * wide-int.cc (UTItype): Define.
21391 (UDWtype): Define for appropriate W_TYPE_SIZE.
21392
21393 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
21394
21395 PR tree-optimization/59100
21396 * tree-ssa-phiopt.c: Include tree-inline.h.
21397 (neutral_element_p, absorbing_element_p): New functions.
21398 (value_replacement): Handle conditional binary operations with a
21399 neutral or absorbing element.
21400
21401 2014-05-08 Richard Biener <rguenther@suse.de>
21402
21403 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
21404 folding the expression.
21405 (valueize_expr): Remove.
21406 (visit_reference_op_load): Do not valueize the result of
21407 vn_get_expr_for.
21408 (simplify_binary_expression): Likewise.
21409 (simplify_unary_expression): Likewise.
21410
21411 2014-05-08 Richard Biener <rguenther@suse.de>
21412
21413 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
21414 looking at TYPE_ARG_TYPES.
21415
21416 2014-05-08 Richard Biener <rguenther@suse.de>
21417
21418 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
21419 pointer propagation special-case.
21420
21421 2014-05-08 Bin Cheng <bin.cheng@arm.com>
21422
21423 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
21424 core part of address expressions.
21425
21426 2014-05-08 Alan Modra <amodra@gmail.com>
21427
21428 PR target/60737
21429 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
21430 loads and stores when -mno-strict-align at any alignment.
21431 (expand_block_clear): Similarly. Also correct calculation of
21432 instruction count.
21433
21434 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
21435
21436 PR middle-end/39246
21437 * tree-complex.c (expand_complex_move): Keep line info when expanding
21438 complex move.
21439 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
21440 of complex expression. Use new argument to display correct location
21441 for values coming from phi statement.
21442 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
21443 (warn_uninitialized_phi): Pass location of phi argument to
21444 warn_uninit.
21445 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
21446 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
21447
21448 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
21449
21450 * config/rs6000/predicates.md (indexed_address_mem): New.
21451 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21452 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21453 fpstore_ux, fpstore_u.
21454 (sign_extend, indexed, update): New.
21455 (cell_micro): Adjust.
21456 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21457 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21458 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21459 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21460 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21461 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21462 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21463 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21464 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21465 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21466 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21467 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21468 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21469 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21470 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21471
21472 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21473 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21474 *vsx_extract_<mode>_store): Adjust.
21475 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21476 is_cracked_insn, insn_must_be_first_in_group,
21477 insn_must_be_last_in_group): Adjust.
21478
21479 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21480 Adjust.
21481 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21482 ppc440-fpstore): Adjust.
21483 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21484 ppc476-fpstore): Adjust.
21485 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21486 ppc601-fpstore): Adjust.
21487 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21488 Adjust.
21489 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21490 Adjust.
21491 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21492 ppc7450-fpstore): Adjust.
21493 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21494 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21495 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21496 Adjust.
21497 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21498 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21499 cell-fpstore, cell-fpstore-update): Adjust.
21500 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21501 ppce300c3_store, ppce300c3_fpstore): Adjust.
21502 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21503 e500mc_fpstore): Adjust.
21504 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21505 e500mc64_store, e500mc64_fpstore): Adjust.
21506 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21507 e5500_fpstore): Adjust.
21508 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21509 e6500_fpstore): Adjust.
21510 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21511 Adjust.
21512 * config/rs6000/power4.md (power4-load, power4-load-ext,
21513 power4-load-ext-update, power4-load-ext-update-indexed,
21514 power4-load-update-indexed, power4-load-update, power4-fpload,
21515 power4-fpload-update, power4-store, power4-store-update,
21516 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21517 Adjust.
21518 * config/rs6000/power5.md (power5-load, power5-load-ext,
21519 power5-load-ext-update, power5-load-ext-update-indexed,
21520 power5-load-update-indexed, power5-load-update, power5-fpload,
21521 power5-fpload-update, power5-store, power5-store-update,
21522 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21523 Adjust.
21524 * config/rs6000/power6.md (power6-load, power6-load-ext,
21525 power6-load-update, power6-load-update-indexed,
21526 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21527 power6-fpload-update, power6-store, power6-store-update,
21528 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21529 Adjust.
21530 * config/rs6000/power7.md (power7-load, power7-load-ext,
21531 power7-load-update, power7-load-update-indexed,
21532 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21533 power7-fpload-update, power7-store, power7-store-update,
21534 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21535 Adjust.
21536 * config/rs6000/power8.md (power8-load, power8-load-update,
21537 power8-load-ext, power8-load-ext-update, power8-fpload,
21538 power8-fpload-update, power8-store, power8-store-update-indexed,
21539 power8-fpstore, power8-fpstore-update): Adjust.
21540 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21541 Adjust.
21542 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21543 titan_lsu_store, titan_lsu_fpstore): Adjust.
21544 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21545
21546 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21547
21548 PR target/60884
21549 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21550 unrolled byte insns. Emit address increments after move insns.
21551
21552 2014-05-07 David Malcolm <dmalcolm@redhat.com>
21553
21554 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21555 const_gimple, rather than a gimple.
21556 (gimple_call_builtin_p): Likewise, for the three variants.
21557
21558 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21559 (gimple_call_builtin_p): Likewise, for the three variants.
21560
21561 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21562
21563 PR tree-optimization/61095
21564 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21565
21566 2014-05-07 Richard Biener <rguenther@suse.de>
21567
21568 PR tree-optimization/61034
21569 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21570 (maybe_skip_until): Use translate to take into account
21571 lattices when trying to do disambiguations.
21572 (get_continuation_for_phi_1): Likewise.
21573 (get_continuation_for_phi): Adjust for added translate arguments.
21574 (walk_non_aliased_vuses): Likewise.
21575 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21576 (walk_non_aliased_vuses): Likewise.
21577 (call_may_clobber_ref_p_1): Declare.
21578 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21579 calls. Stop early if we are only supposed to disambiguate.
21580 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21581
21582 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
21583
21584 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21585 Emit an error when the function has arguments.
21586
21587 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21588
21589 * cfgloop.h (unswitch_loops): Remove.
21590 * doc/passes.texi: Remove references to loop-unswitch.c
21591 * timevar.def (TV_LOOP_UNSWITCH): Remove.
21592
21593 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
21594
21595 * tree-vect-data-refs.c (vect_grouped_load_supported): New
21596 check for loads group of length 3.
21597 (vect_permute_load_chain): New permutations for loads group of
21598 length 3.
21599 * tree-vect-stmts.c (vect_model_load_cost): Change cost
21600 of vec_perm_shuffle for the new permutations.
21601
21602 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
21603
21604 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21605 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21606 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21607 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21608 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21609 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21610 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21611 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21612
21613 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21614
21615 * loop-unswitch.c: Delete.
21616
21617 2014-05-07 Richard Biener <rguenther@suse.de>
21618
21619 * config.gcc: Always set need_64bit_hwint to yes.
21620
21621 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
21622
21623 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21624 of using optimize_size.
21625
21626 2014-05-06 Mike Stump <mikestump@comcast.net>
21627
21628 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21629
21630 2014-05-06 Joseph Myers <joseph@codesourcery.com>
21631
21632 * config/i386/sse.md (*mov<mode>_internal)
21633 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21634 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21635 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21636 (*<code><mode>3, *andnot<mode>3<mask_name>)
21637 (<mask_codefor><code><mode>3<mask_name>): Only consider
21638 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21639
21640 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21641
21642 Revert:
21643 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21644
21645 * lra-constraints.c (valid_address_p): Move earlier in file.
21646 Add a constraint argument to the address_info version.
21647 (satisfies_memory_constraint_p): New function.
21648 (satisfies_address_constraint_p): Likewise.
21649 (process_alt_operands, curr_insn_transform): Use them.
21650 (process_address): Pass the constraint to valid_address_p when
21651 checking address operands.
21652
21653 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21654
21655 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21656 to their respective blocks. Fix inadvertent use of "node".
21657
21658 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21659
21660 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21661 out from...
21662 (init_emit_once): ...here.
21663 * rtl.h (init_derived_machine_modes): Declare.
21664 * toplev.c (do_compile): Call it even if no_backend.
21665
21666 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21667 Mike Stump <mikestump@comcast.net>
21668 Richard Sandiford <rdsandiford@googlemail.com>
21669 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21670
21671 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21672 (rtx_equal_for_memref_p): Update comment.
21673 (adjust_offset_for_component_ref): Use wide-int interfaces.
21674 * builtins.c (get_object_alignment_2): Likewise.
21675 (c_readstr): Likewise.
21676 (target_char_cast): Add comment.
21677 (determine_block_size): Use wide-int interfaces.
21678 (expand_builtin_signbit): Likewise.
21679 (fold_builtin_int_roundingfn): Likewise.
21680 (fold_builtin_bitop): Likewise.
21681 (fold_builtin_bswap): Likewise.
21682 (fold_builtin_logarithm): Use signop.
21683 (fold_builtin_pow): Likewise.
21684 (fold_builtin_memory_op): Use wide-int interfaces.
21685 (fold_builtin_object_size): Likewise.
21686 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21687 nb_iterations_estimate.
21688 (record_niter_bound): Use wide-int interfaces.
21689 (get_estimated_loop_iterations_int): Likewise.
21690 (get_estimated_loop_iterations): Likewise.
21691 (get_max_loop_iterations): Likewise.
21692 * cfgloop.h: Include wide-int.h.
21693 (struct nb_iter_bound): Change bound to widest_int.
21694 (struct loop): Change nb_iterations_upper_bound and
21695 nb_iterations_estimate to widest_int.
21696 (record_niter_bound): Switch to use widest_int.
21697 (get_estimated_loop_iterations): Likewise.
21698 (get_max_loop_iterations): Likewise.
21699 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21700 update for wide-int.
21701 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21702 * combine.c (try_combine): Likewise.
21703 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21704 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21705 interfaces.
21706 (aarch64_float_const_representable_p): Likewise.
21707 * config/arc/arc.c: Include wide-int.h.
21708 (arc_can_use_doloop_p): Use wide-int interfaces.
21709 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21710 (vfp3_const_double_index): Likewise.
21711 * config/avr/avr.c (avr_out_round): Likewise.
21712 (avr_fold_builtin): Likewise.
21713 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21714 (bfin_can_use_doloop_p): Likewise.
21715 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21716 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21717 * config/i386/i386.c: Include wide-int.h.
21718 (ix86_data_alignment): Use wide-int interfaces.
21719 (ix86_local_alignment): Likewise.
21720 (ix86_emit_swsqrtsf): Update real_from_integer.
21721 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21722 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21723 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21724 (zero_constant): Likewise.
21725 (input_operand): Likewise.
21726 (splat_input_operand): Likewise.
21727 (non_logical_cint_operand): Change const_double to const_wide_int.
21728 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21729 (easy_altivec_constant): Remove comment.
21730 (paired_expand_vector_init): Use CONSTANT_P.
21731 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21732 (rs6000_emit_move): Update checks.
21733 (rs6000_aggregate_candidate): Use wide-int interfaces.
21734 (rs6000_expand_ternop_builtin): Likewise.
21735 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21736 (rs6000_assemble_integer): Likewise.
21737 (rs6000_hash_constant): Likewise.
21738 (output_toc): Likewise.
21739 (rs6000_rtx_costs): Likewise.
21740 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21741 * config/rs6000/rs6000-c.c: Include wide-int.h.
21742 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21743 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21744 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21745 Handle CONST_WIDE_INT.
21746 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21747 Use tree_fits_uhwi_p.
21748 * config/sparc/sparc.c: Include wide-int.h.
21749 (sparc_fold_builtin): Use wide-int interfaces.
21750 * config/vax/vax.c: Include wide-int.h.
21751 (vax_float_literal): Use real_from_integer.
21752 * coretypes.h (struct hwivec_def): New.
21753 (hwivec): New.
21754 (const_hwivec): New.
21755 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21756 (equiv_constant): Handle CONST_WIDE_INT.
21757 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21758 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21759 * dbxout.c (stabstr_U): Use wide-int interfaces.
21760 (dbxout_type): Update to use cst_fits_shwi_p.
21761 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21762 (TARGET_SUPPORTS_WIDE_INT): Add default.
21763 * dfp.c: Include wide-int.h.
21764 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21765 decimal_real_to_integer.
21766 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21767 decimal_real_to_integer.
21768 * doc/generic.texi (Constant expressions): Update for wide_int.
21769 * doc/rtl.texi (const_double): Likewise.
21770 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21771 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21772 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21773 (REAL_VALUE_FROM_INT): Remove.
21774 (TARGET_SUPPORTS_WIDE_INT): New.
21775 * doc/tm.texi: Regenerate.
21776 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21777 * double-int.h: Include wide-int.h.
21778 (struct wi::int_traits): New.
21779 * dwarf2out.c (get_full_len): New.
21780 (dw_val_equal_p): Add case dw_val_class_wide_int.
21781 (size_of_loc_descr): Likewise.
21782 (output_loc_operands): Likewise.
21783 (insert_double): Remove.
21784 (insert_wide_int): New.
21785 (add_AT_wide): New.
21786 (print_die): Add case dw_val_class_wide_int.
21787 (attr_checksum): Likewise.
21788 (attr_checksum_ordered): Likewise.
21789 (same_dw_val_p): Likewise.
21790 (size_of_die): Likewise.
21791 (value_format): Likewise.
21792 (output_die): Likewise.
21793 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21794 Use wide-int.
21795 (clz_loc_descriptor): Use wide-int interfaces.
21796 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21797 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21798 (round_up_to_align): Use wide-int interfaces.
21799 (field_byte_offset): Likewise.
21800 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21801 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21802 CONST_DOUBLE handling. Use wide-int interfaces.
21803 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21804 (gen_enumeration_type_die): Use add_AT_wide.
21805 (hash_loc_operands): Add case dw_val_class_wide_int.
21806 (compare_loc_operands): Likewise.
21807 * dwarf2out.h: Include wide-int.h.
21808 (wide_int_ptr): New.
21809 (enum dw_val_class): Add dw_val_class_wide_int.
21810 (struct dw_val_struct): Add val_wide.
21811 * emit-rtl.c (const_wide_int_htab): New.
21812 (const_wide_int_htab_hash): New.
21813 (const_wide_int_htab_eq): New.
21814 (lookup_const_wide_int): New.
21815 (const_double_htab_hash): Use wide-int interfaces.
21816 (const_double_htab_eq): Likewise.
21817 (rtx_to_double_int): Conditionally compile for wide-int.
21818 (immed_double_int_const): Rename to immed_wide_int_const and
21819 update for wide-int.
21820 (immed_double_const): Conditionally compile for wide-int.
21821 (init_emit_once): Use wide-int interfaces.
21822 * explow.c (plus_constant): Likewise.
21823 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21824 (lshift_value): Use wide-int interfaces.
21825 (expand_mult): Likewise.
21826 (choose_multiplier): Likewise.
21827 (expand_smod_pow2): Likewise.
21828 (make_tree): Likewise.
21829 * expr.c (convert_modes): Consolidate handling of constants.
21830 Use wide-int interfaces.
21831 (emit_group_load_1): Add note.
21832 (store_expr): Update comment.
21833 (get_inner_reference): Use wide-int interfaces.
21834 (expand_constructor): Update comment.
21835 (expand_expr_real_2): Use wide-int interfaces.
21836 (expand_expr_real_1): Likewise.
21837 (reduce_to_bit_field_precision): Likewise.
21838 (const_vector_from_tree): Likewise.
21839 * final.c: Include wide-int-print.h.
21840 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21841 * fixed-value.c: Include wide-int.h.
21842 (fixed_from_string): Use wide-int interfaces.
21843 (fixed_to_decimal): Likewise.
21844 (fixed_convert_from_real): Likewise.
21845 (real_convert_from_fixed): Likewise.
21846 * fold-const.h (mem_ref_offset): Return an offset_int.
21847 (div_if_zero_remainder): Remove code parameter.
21848 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21849 Use wide-int interfaces.
21850 (may_negate_without_overflow_p): Use wide-int interfaces.
21851 (negate_expr_p): Likewise.
21852 (fold_negate_expr): Likewise.
21853 (int_const_binop_1): Likewise.
21854 (const_binop): Likewise.
21855 (fold_convert_const_int_from_int): Likewise.
21856 (fold_convert_const_int_from_real): Likewise.
21857 (fold_convert_const_int_from_fixed): Likewise.
21858 (fold_convert_const_fixed_from_int): Likewise.
21859 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21860 (sign_bit_p): Use wide-int interfaces.
21861 (make_range_step): Likewise.
21862 (build_range_check): Likewise. Pass an integer of the correct type
21863 instead of using integer_one_node.
21864 (range_predecessor): Pass an integer of the correct type instead
21865 of using integer_one_node.
21866 (range_successor): Likewise.
21867 (merge_ranges): Likewise.
21868 (unextend): Use wide-int interfaces.
21869 (extract_muldiv_1): Likewise.
21870 (fold_div_compare): Likewise.
21871 (fold_single_bit_test): Likewise.
21872 (fold_sign_changed_comparison): Likewise.
21873 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21874 (fold_plusminus_mult_expr): Use wide-int interfaces.
21875 (native_encode_int): Likewise.
21876 (native_interpret_int): Likewise.
21877 (fold_unary_loc): Likewise.
21878 (pointer_may_wrap_p): Likewise.
21879 (size_low_cst): Likewise.
21880 (mask_with_tz): Likewise.
21881 (fold_binary_loc): Likewise.
21882 (fold_ternary_loc): Likewise.
21883 (multiple_of_p): Likewise.
21884 (tree_call_nonnegative_warnv_p): Update calls to
21885 tree_int_cst_min_precision and real_from_integer.
21886 (fold_negate_const): Use wide-int interfaces.
21887 (fold_abs_const): Likewise.
21888 (fold_relational_const): Use tree_int_cst_lt.
21889 (round_up_loc): Use wide-int interfaces.
21890 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21891 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21892 * gengtype.c: Remove include of double-int.h.
21893 (do_typedef): Use wide-int interfaces.
21894 (open_base_files): Add wide-int.h.
21895 (main): Add offset_int and widest_int typedefs.
21896 * gengtype-lex.l: Handle "^".
21897 (CXX_KEYWORD): Add "static".
21898 * gengtype-parse.c (require3): New.
21899 (require_template_declaration): Handle constant template arguments
21900 and nested templates.
21901 * gengtype-state.c: Don't include "double-int.h".
21902 * genpreds.c (write_one_predicate_function): Update comment.
21903 (write_tm_constrs_h): Add check for hval and lval use in
21904 CONST_WIDE_INT.
21905 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21906 (add_to_sequence): Likewise.
21907 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21908 and const_double_operand.
21909 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21910 interfaces.
21911 * gimple-fold.c (get_base_constructor): Likewise.
21912 (fold_array_ctor_reference): Likewise.
21913 (fold_nonarray_ctor_reference): Likewise.
21914 (fold_const_aggregate_ref_1): Likewise.
21915 (gimple_val_nonnegative_real_p): Likewise.
21916 (gimple_fold_indirect_ref): Likewise.
21917 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21918 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21919 (struct slsr_cand_d): Change index to be widest_int.
21920 (struct incr_info_d): Change incr to be widest_int.
21921 (alloc_cand_and_find_basis): Use wide-int interfaces.
21922 (slsr_process_phi): Likewise.
21923 (backtrace_base_for_ref): Likewise. Return a widest_int.
21924 (restructure_reference): Take a widest_int instead of a double_int.
21925 (slsr_process_ref): Use wide-int interfaces.
21926 (create_mul_ssa_cand): Likewise.
21927 (create_mul_imm_cand): Likewise.
21928 (create_add_ssa_cand): Likewise.
21929 (create_add_imm_cand): Take a widest_int instead of a double_int.
21930 (slsr_process_add): Use wide-int interfaces.
21931 (slsr_process_cast): Likewise.
21932 (slsr_process_copy): Likewise.
21933 (dump_candidate): Likewise.
21934 (dump_incr_vec): Likewise.
21935 (replace_ref): Likewise.
21936 (cand_increment): Likewise. Return a widest_int.
21937 (cand_abs_increment): Likewise.
21938 (replace_mult_candidate): Take a widest_int instead of a double_int.
21939 (replace_unconditional_candidate): Use wide-int interfaces.
21940 (incr_vec_index): Take a widest_int instead of a double_int.
21941 (create_add_on_incoming_edge): Likewise.
21942 (create_phi_basis): Use wide-int interfaces.
21943 (replace_conditional_candidate): Likewise.
21944 (record_increment): Take a widest_int instead of a double_int.
21945 (record_phi_increments): Use wide-int interfaces.
21946 (phi_incr_cost): Take a widest_int instead of a double_int.
21947 (lowest_cost_path): Likewise.
21948 (total_savings): Likewise.
21949 (analyze_increments): Use wide-int interfaces.
21950 (ncd_with_phi): Take a widest_int instead of a double_int.
21951 (ncd_of_cand_and_phis): Likewise.
21952 (nearest_common_dominator_for_cands): Likewise.
21953 (insert_initializers): Use wide-int interfaces.
21954 (all_phi_incrs_profitable): Likewise.
21955 (replace_one_candidate): Likewise.
21956 (replace_profitable_candidates): Likewise.
21957 * godump.c: Include wide-int-print.h.
21958 (go_output_typedef): Use wide-int interfaces.
21959 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21960 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21961 (build_loop_iteration_domains): Likewise.
21962 * hooks.h: Include wide-int.h rather than double-int.h.
21963 (hook_bool_dint_dint_uint_bool_true): Delete.
21964 (hook_bool_wint_wint_uint_bool_true): Declare.
21965 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21966 (hook_bool_wint_wint_uint_bool_true): New.
21967 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21968 interfaces.
21969 (ubsan_expand_si_overflow_mul_check): Likewise.
21970 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21971 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21972 (get_ancestor_addr_info): Likewise.
21973 (ipa_modify_call_arguments): Likewise.
21974 * loop-doloop.c (doloop_modify): Likewise.
21975 (doloop_optimize): Likewise.
21976 * loop-iv.c (iv_number_of_iterations): Likewise.
21977 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21978 (unroll_loop_constant_iterations): Likewise.
21979 (decide_unroll_runtime_iterations): Likewise.
21980 (unroll_loop_runtime_iterations): Likewise.
21981 (decide_peel_simple): Likewise.
21982 (decide_unroll_stupid): Likewise.
21983 * lto-streamer-in.c (streamer_read_wi): Add.
21984 (input_cfg): Use wide-int interfaces.
21985 (lto_input_tree_1): Likewise.
21986 * lto-streamer-out.c (streamer_write_wi): Add.
21987 (hash_tree): Use wide-int interfaces.
21988 (output_cfg): Likewise.
21989 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21990 (GTFILES): Add wide-int.h and signop.h.
21991 (TAGS): Look for .cc files too.
21992 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21993 * optabs.c (expand_subword_shift): Likewise.
21994 (expand_doubleword_shift): Likewise.
21995 (expand_absneg_bit): Likewise.
21996 (expand_copysign_absneg): Likewise.
21997 (expand_copysign_bit): Likewise.
21998 * postreload.c (reload_cse_simplify_set): Likewise.
21999 * predict.c (predict_iv_comparison): Likewise.
22000 * pretty-print.h: Include wide-int-print.h.
22001 (pp_wide_int) New.
22002 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
22003 * print-tree.c: Include wide-int-print.h.
22004 (print_node_brief): Use wide-int interfaces.
22005 (print_node): Likewise.
22006 * read-rtl.c (validate_const_wide_int): New.
22007 (read_rtx_code): Add CONST_WIDE_INT case.
22008 * real.c: Include wide-int.h.
22009 (real_to_integer2): Delete.
22010 (real_to_integer): New function, returning a wide_int.
22011 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22012 (ten_to_ptwo): Update call to real_from_integer.
22013 (real_digit): Likewise.
22014 * real.h: Include signop.h, wide-int.h and insn-modes.h.
22015 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
22016 (REAL_VALUE_TO_INT): Delete.
22017 (real_to_integer): Declare a wide-int form.
22018 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
22019 * recog.c (const_int_operand): Improve comment.
22020 (const_scalar_int_operand): New.
22021 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
22022 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
22023 (split_double): Likewise.
22024 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
22025 (rtx_size): Likewise.
22026 (rtx_alloc_stat_v): New.
22027 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
22028 (cwi_output_hex): New.
22029 (iterative_hash_rtx): Handle CONST_WIDE_INT.
22030 (cwi_check_failed_bounds): New.
22031 * rtl.def (CONST_WIDE_INT): New.
22032 * rtl.h: Include <utility> and wide-int.h.
22033 (struct hwivec_def): New.
22034 (CWI_GET_NUM_ELEM): New.
22035 (CWI_PUT_NUM_ELEM): New.
22036 (struct rtx_def): Add num_elem and hwiv.
22037 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
22038 (CASE_CONST_UNIQUE): Likewise.
22039 (CASE_CONST_ANY): Likewise.
22040 (CONST_SCALAR_INT_P): Likewise.
22041 (CONST_WIDE_INT_P): New.
22042 (CWI_ELT): New.
22043 (HWIVEC_CHECK): New.
22044 (cwi_check_failed_bounds): New.
22045 (CWI_ELT): New.
22046 (HWIVEC_CHECK): New.
22047 (CONST_WIDE_INT_VEC) New.
22048 (CONST_WIDE_INT_NUNITS) New.
22049 (CONST_WIDE_INT_ELT) New.
22050 (rtx_mode_t): New type.
22051 (wi::int_traits <rtx_mode_t>): New.
22052 (wi::shwi): New.
22053 (wi::min_value): New.
22054 (wi::max_value): New.
22055 (rtx_alloc_v) New.
22056 (const_wide_int_alloc): New.
22057 (immed_wide_int_const): New.
22058 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
22059 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
22060 * signop.h: New file.
22061 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
22062 (simplify_const_unary_operation): Use wide-int interfaces.
22063 (simplify_binary_operation_1): Likewise.
22064 (simplify_const_binary_operation): Likewise.
22065 (simplify_const_relational_operation): Likewise.
22066 (simplify_immed_subreg): Likewise.
22067 * stmt.c (expand_case): Likewise.
22068 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
22069 signop rather than a bool.
22070 * stor-layout.c (layout_type): Use wide-int interfaces.
22071 (initialize_sizetypes): Update calls to
22072 set_min_and_max_values_for_integral_type.
22073 (set_min_and_max_values_for_integral_type): Take a signop rather
22074 than a bool. Use wide-int interfaces.
22075 (fixup_signed_type): Update accordingly. Remove
22076 HOST_BITS_PER_DOUBLE_INT limit.
22077 (fixup_unsigned_type): Likewise.
22078 * system.h (STATIC_CONSTANT_P): New.
22079 (STATIC_ASSERT): New.
22080 * target.def (can_use_doloop_p): Take widest_ints rather than
22081 double_ints.
22082 * target.h: Include wide-int.h rather than double-int.h.
22083 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
22084 than double_ints.
22085 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
22086 rather than INT_CST_LT_UNSIGNED.
22087 (can_use_doloop_if_innermost): Take widest_ints rather than
22088 double_ints.
22089 * tree-affine.c: Include wide-int-print.h.
22090 (double_int_ext_for_comb): Delete.
22091 (wide_int_ext_for_comb): New.
22092 (aff_combination_zero): Use wide-int interfaces.
22093 (aff_combination_const): Take a widest_int instead of a double_int.
22094 (aff_combination_elt): Use wide-int interfaces.
22095 (aff_combination_scale): Take a widest_int instead of a double_int.
22096 (aff_combination_add_elt): Likewise.
22097 (aff_combination_add_cst): Likewise.
22098 (aff_combination_add): Use wide-int interfaces.
22099 (aff_combination_convert): Likewise.
22100 (tree_to_aff_combination): Likewise.
22101 (add_elt_to_tree): Take a widest_int instead of a double_int.
22102 (aff_combination_to_tree): Use wide-int interfaces.
22103 (aff_combination_remove_elt): Likewise.
22104 (aff_combination_add_product): Take a widest_int instead of
22105 a double_int.
22106 (aff_combination_mult): Use wide-int interfaces.
22107 (aff_combination_expand): Likewise.
22108 (double_int_constant_multiple_p): Delete.
22109 (wide_int_constant_multiple_p): New.
22110 (aff_combination_constant_multiple_p): Take a widest_int pointer
22111 instead of a double_int pointer.
22112 (print_aff): Use wide-int interfaces.
22113 (get_inner_reference_aff): Take a widest_int pointer
22114 instead of a double_int pointer.
22115 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
22116 * tree-affine.h: Include wide-int.h.
22117 (struct aff_comb_elt): Change type of coef to widest_int.
22118 (struct affine_tree_combination): Change type of offset to widest_int.
22119 (double_int_ext_for_comb): Delete.
22120 (wide_int_ext_for_comb): New.
22121 (aff_combination_const): Use widest_int instead of double_int.
22122 (aff_combination_scale): Likewise.
22123 (aff_combination_add_elt): Likewise.
22124 (aff_combination_constant_multiple_p): Likewise.
22125 (get_inner_reference_aff): Likewise.
22126 (aff_comb_cannot_overlap_p): Likewise.
22127 (aff_combination_zero_p): Use wide-int interfaces.
22128 * tree.c: Include tree.h.
22129 (init_ttree): Use make_int_cst.
22130 (tree_code_size): Removed code for INTEGER_CST case.
22131 (tree_size): Add INTEGER_CST case.
22132 (make_node_stat): Update comment.
22133 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
22134 (build_int_cst_type): Use wide-int interfaces.
22135 (double_int_to_tree): Likewise.
22136 (double_int_fits_to_tree_p): Delete.
22137 (force_fit_type_double): Delete.
22138 (force_fit_type): New.
22139 (int_cst_hash_hash): Use wide-int interfaces.
22140 (int_cst_hash_eq): Likewise.
22141 (build_int_cst_wide): Delete.
22142 (wide_int_to_tree): New.
22143 (cache_integer_cst): Use wide-int interfaces.
22144 (build_low_bits_mask): Likewise.
22145 (cst_and_fits_in_hwi): Likewise.
22146 (real_value_from_int_cst): Likewise.
22147 (make_int_cst_stat): New.
22148 (integer_zerop): Use wide_int interfaces.
22149 (integer_onep): Likewise.
22150 (integer_all_onesp): Likewise.
22151 (integer_pow2p): Likewise.
22152 (integer_nonzerop): Likewise.
22153 (tree_log2): Likewise.
22154 (tree_floor_log2): Likewise.
22155 (tree_ctz): Likewise.
22156 (int_size_in_bytes): Likewise.
22157 (mem_ref_offset): Return an offset_int rather than a double_int.
22158 (build_type_attribute_qual_variant): Use wide_int interfaces.
22159 (type_hash_eq): Likewise
22160 (tree_int_cst_equal): Likewise.
22161 (tree_int_cst_lt): Delete.
22162 (tree_int_cst_compare): Likewise.
22163 (tree_fits_shwi_p): Use wide_int interfaces.
22164 (tree_fits_uhwi_p): Likewise.
22165 (tree_int_cst_sign_bit): Likewise.
22166 (tree_int_cst_sgn): Likewise.
22167 (tree_int_cst_min_precision): Take a signop rather than a bool.
22168 (simple_cst_equal): Use wide_int interfaces.
22169 (compare_tree_int): Likewise.
22170 (iterative_hash_expr): Likewise.
22171 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
22172 INT_CST_LT.
22173 (get_type_static_bounds): Use wide_int interfaces.
22174 (tree_int_cst_elt_check_failed): New.
22175 (build_common_tree_nodes): Reordered to set prec before filling in
22176 value.
22177 (int_cst_value): Check cst_and_fits_in_hwi.
22178 (widest_int_cst_value): Use wide_int interfaces.
22179 (upper_bound_in_type): Likewise.
22180 (lower_bound_in_type): Likewise.
22181 (num_ending_zeros): Likewise.
22182 (drop_tree_overflow): Likewise.
22183 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
22184 (gen_conditions_for_pow_cst_base): Likewise.
22185 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
22186 (group_case_labels_stmt): Use wide-int interfaces.
22187 (verify_gimple_assign_binary): Likewise.
22188 (print_loop): Likewise.
22189 * tree-chrec.c (tree_fold_binomial): Likewise.
22190 * tree-core.h (struct tree_base): Add int_length.
22191 (struct tree_int_cst): Change rep of value.
22192 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
22193 (dr_may_alias_p): Likewise.
22194 (max_stmt_executions_tree): Likewise.
22195 * tree.def (INTEGER_CST): Update comment.
22196 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
22197 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
22198 * tree-dump.c: Include wide-int.h and wide-int-print.h.
22199 (dequeue_and_dump): Use wide-int interfaces.
22200 * tree.h: Include wide-int.h.
22201 (NULL_TREE): Moved to earlier loc in file.
22202 (TREE_INT_CST_ELT_CHECK): New.
22203 (tree_int_cst_elt_check_failed): New.
22204 (TYPE_SIGN): New.
22205 (TREE_INT_CST): Delete.
22206 (TREE_INT_CST_LOW): Use wide-int interfaces.
22207 (TREE_INT_CST_HIGH): Delete.
22208 (TREE_INT_CST_NUNITS): New.
22209 (TREE_INT_CST_EXT_NUNITS): Likewise.
22210 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
22211 (TREE_INT_CST_ELT): Likewise.
22212 (INT_CST_LT): Delete.
22213 (tree_int_cst_elt_check): New (two forms).
22214 (type_code_size): Update comment.
22215 (make_int_cst_stat, make_int_cst): New.
22216 (tree_to_double_int): Delete.
22217 (double_int_fits_to_tree_p): Delete.
22218 (force_fit_type_double): Delete.
22219 (build_int_cstu): Replace with out-of-line function.
22220 (build_int_cst_wide): Delete.
22221 (tree_int_cst_lt): Define inline.
22222 (tree_int_cst_le): New.
22223 (tree_int_cst_compare): Define inline.
22224 (tree_int_cst_min_precision): Take a signop rather than a bool.
22225 (wi::int_traits <const_tree>): New.
22226 (wi::int_traits <tree>): New.
22227 (wi::extended_tree): New.
22228 (wi::int_traits <wi::extended_tree>): New.
22229 (wi::to_widest): New.
22230 (wi::to_offset): New.
22231 (wi::fits_to_tree_p): New.
22232 (wi::min_value): New.
22233 (wi::max_value): New.
22234 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
22235 (copy_tree_body_r): Likewise.
22236 * tree-object-size.c (compute_object_offset): Likewise.
22237 (addr_object_size): Likewise.
22238 * tree-predcom.c: Include wide-int-print.h.
22239 (struct dref_d): Change type of offset to widest_int.
22240 (dump_dref): Call wide-int printer.
22241 (aff_combination_dr_offset): Use wide-int interfaces.
22242 (determine_offset): Take a widest_int pointer rather than a
22243 double_int pointer.
22244 (split_data_refs_to_components): Use wide-int interfaces.
22245 (suitable_component_p): Likewise.
22246 (order_drefs): Likewise.
22247 (add_ref_to_chain): Likewise.
22248 (valid_initializer_p): Likewise.
22249 (determine_roots_comp): Likewise.
22250 * tree-pretty-print.c: Include wide-int-print.h.
22251 (dump_generic_node): Use wide-int interfaces.
22252 * tree-sra.c (sra_ipa_modify_expr): Likewise.
22253 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
22254 (move_fixed_address_to_symbol): Likewise.
22255 (move_hint_to_base): Likewise.
22256 (move_pointer_to_base): Likewise.
22257 (move_variant_to_index): Likewise.
22258 (most_expensive_mult_to_index): Likewise.
22259 (addr_to_parts): Likewise.
22260 (copy_ref_info): Likewise.
22261 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22262 (indirect_refs_may_alias_p): Likewise.
22263 (stmt_kills_ref_p_1): Likewise.
22264 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
22265 * tree-ssa-ccp.c: Update comment at top of file. Include
22266 wide-int-print.h.
22267 (struct prop_value_d): Change type of mask to widest_int.
22268 (extend_mask): New function.
22269 (dump_lattice_value): Use wide-int interfaces.
22270 (get_default_value): Likewise.
22271 (set_constant_value): Likewise.
22272 (set_value_varying): Likewise.
22273 (valid_lattice_transition): Likewise.
22274 (set_lattice_value): Likewise.
22275 (value_to_double_int): Delete.
22276 (value_to_wide_int): New.
22277 (get_value_from_alignment): Use wide-int interfaces.
22278 (get_value_for_expr): Likewise.
22279 (do_dbg_cnt): Likewise.
22280 (ccp_finalize): Likewise.
22281 (ccp_lattice_meet): Likewise.
22282 (bit_value_unop_1): Use widest_ints rather than double_ints.
22283 (bit_value_binop_1): Likewise.
22284 (bit_value_unop): Use wide-int interfaces.
22285 (bit_value_binop): Likewise.
22286 (bit_value_assume_aligned): Likewise.
22287 (evaluate_stmt): Likewise.
22288 (ccp_fold_stmt): Likewise.
22289 (visit_cond_stmt): Likewise.
22290 (ccp_visit_stmt): Likewise.
22291 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22292 (constant_pointer_difference): Likewise.
22293 (associate_pointerplus): Likewise.
22294 (combine_conversions): Likewise.
22295 * tree-ssa-loop.h: Include wide-int.h.
22296 (struct tree_niter_desc): Change type of max to widest_int.
22297 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
22298 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
22299 (remove_redundant_iv_tests): Likewise.
22300 (canonicalize_loop_induction_variables): Likewise.
22301 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
22302 (constant_multiple_of): Take a widest_int pointer instead of
22303 a double_int pointer.
22304 (get_computation_aff): Use wide-int interfaces.
22305 (ptr_difference_cost): Likewise.
22306 (difference_cost): Likewise.
22307 (get_loop_invariant_expr_id): Likewise.
22308 (get_computation_cost_at): Likewise.
22309 (iv_elimination_compare_lt): Likewise.
22310 (may_eliminate_iv): Likewise.
22311 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
22312 instead of double_int.
22313 (max_loop_iterations): Likewise.
22314 (max_stmt_executions): Likewise.
22315 (estimated_stmt_executions): Likewise.
22316 * tree-ssa-loop-niter.c: Include wide-int-print.h.
22317 (split_to_var_and_offset): Use wide-int interfaces.
22318 (determine_value_range): Likewise.
22319 (bound_difference_of_offsetted_base): Likewise.
22320 (bounds_add): Take a widest_int instead of a double_int.
22321 (number_of_iterations_ne_max): Use wide-int interfaces.
22322 (number_of_iterations_ne): Likewise.
22323 (number_of_iterations_lt_to_ne): Likewise.
22324 (assert_loop_rolls_lt): Likewise.
22325 (number_of_iterations_lt): Likewise.
22326 (number_of_iterations_le): Likewise.
22327 (number_of_iterations_cond): Likewise.
22328 (number_of_iterations_exit): Likewise.
22329 (finite_loop_p): Likewise.
22330 (derive_constant_upper_bound_assign): Likewise.
22331 (derive_constant_upper_bound): Return a widest_int.
22332 (derive_constant_upper_bound_ops): Likewise.
22333 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
22334 (record_estimate): Take a widest_int rather than a double_int.
22335 (record_nonwrapping_iv): Use wide-int interfaces.
22336 (double_int_cmp): Delete.
22337 (wide_int_cmp): New.
22338 (bound_index): Take a widest_int rather than a double_int.
22339 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
22340 (maybe_lower_iteration_bound): Likewise.
22341 (estimate_numbers_of_iterations_loop): Likewise.
22342 (estimated_loop_iterations): Take a widest_int pointer than than
22343 a double_int pointer.
22344 (estimated_loop_iterations_int): Use wide-int interfaces.
22345 (max_loop_iterations): Take a widest_int pointer than than
22346 a double_int pointer.
22347 (max_loop_iterations_int): Use wide-int interfaces.
22348 (max_stmt_executions): Take a widest_int pointer than than
22349 a double_int pointer.
22350 (estimated_stmt_executions): Likewise.
22351 (n_of_executions_at_most): Use wide-int interfaces.
22352 (scev_probably_wraps_p): Likewise.
22353 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
22354 to real_to_integer.
22355 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
22356 interfaces.
22357 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
22358 double_ints. Adjust for trailing_wide_ints <3> representation.
22359 (set_nonzero_bits): Likewise.
22360 (get_range_info): Return wide_ints rather than double_ints.
22361 Adjust for trailing_wide_ints <3> representation.
22362 (get_nonzero_bits): Likewise.
22363 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
22364 representation.
22365 * tree-ssanames.h (struct range_info_def): Replace min, max and
22366 nonzero_bits with a trailing_wide_ints <3>.
22367 (set_range_info): Use wide_int_refs rather than double_ints.
22368 (set_nonzero_bits): Likewise.
22369 (get_range_info): Return wide_ints rather than double_ints.
22370 (get_nonzero_bits): Likewise.
22371 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
22372 * tree-ssa-pre.c (phi_translate_1): Likewise.
22373 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
22374 (acceptable_pow_call): Likewise.
22375 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
22376 interfaces.
22377 (vn_reference_fold_indirect): Likewise.
22378 (vn_reference_maybe_forwprop_address): Likewise.
22379 (valueize_refs_1): Likewise.
22380 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
22381 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
22382 tree_int_cst_lt and tree_int_cst_le.
22383 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
22384 interfaces.
22385 (streamer_alloc_tree): Likewise.
22386 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
22387 (streamer_write_tree_header): Likewise.
22388 (streamer_write_integer_cst): Likewise.
22389 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22390 (build_constructors): Likewise.
22391 (array_value_type): Likewise.
22392 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
22393 (vect_check_gather): Likewise.
22394 * tree-vect-generic.c (build_replicated_const): Likewise.
22395 (expand_vector_divmod): Likewise.
22396 * tree-vect-loop.c (vect_transform_loop): Likewise.
22397 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
22398 (vect_do_peeling_for_alignment): Likewise.
22399 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
22400 * tree-vrp.c: Include wide-int.h.
22401 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
22402 (extract_range_from_assert): Use wide-int interfaces.
22403 (vrp_int_const_binop): Likewise.
22404 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
22405 double_int pointers.
22406 (ranges_from_anti_range): Use wide-int interfaces.
22407 (quad_int_cmp): Delete.
22408 (quad_int_pair_sort): Likewise.
22409 (extract_range_from_binary_expr_1): Use wide-int interfaces.
22410 (extract_range_from_unary_expr_1): Likewise.
22411 (adjust_range_with_scev): Likewise.
22412 (masked_increment): Take and return wide_ints rather than double_ints.
22413 (register_edge_assert_for_2): Use wide-int interfaces.
22414 (check_array_ref): Likewise.
22415 (search_for_addr_array): Likewise.
22416 (maybe_set_nonzero_bits): Likewise.
22417 (union_ranges): Pass an integer of the correct type instead of
22418 using integer_one_node.
22419 (intersect_ranges): Likewise.
22420 (simplify_truth_ops_using_ranges): Likewise.
22421 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
22422 (range_fits_type_p): Likewise.
22423 (simplify_cond_using_ranges): Likewise. Take a signop rather than
22424 a bool.
22425 (simplify_conversion_using_ranges): Use wide-int interfaces.
22426 (simplify_float_conversion_using_ranges): Likewise.
22427 (vrp_finalize): Likewise.
22428 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
22429 (gimple_stringops_transform): Likewise.
22430 * varasm.c (decode_addr_const): Likewise.
22431 (const_hash_1): Likewise.
22432 (const_rtx_hash_1): Likewise
22433 (output_constant): Likewise.
22434 (array_size_for_constructor): Likewise.
22435 (output_constructor_regular_field): Likewise.
22436 (output_constructor_bitfield): Likewise.
22437 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
22438 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
22439 GENERATOR_FILEs.
22440 * gencheck.c: Define BITS_PER_UNIT.
22441 * wide-int.cc: New.
22442 * wide-int.h: New.
22443 * wide-int-print.cc: New.
22444 * wide-int-print.h: New.
22445
22446 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22447
22448 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
22449
22450 2014-05-06 Richard Biener <rguenther@suse.de>
22451
22452 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22453 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22454 (TODO_verify_all): Adjust.
22455 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22456 TODO_verify_stmts and TODO_verify_rtl_sharing.
22457 * bb-reorder.c: Likewise.
22458 * cfgexpand.c: Likewise.
22459 * cprop.c: Likewise.
22460 * cse.c: Likewise.
22461 * function.c: Likewise.
22462 * fwprop.c: Likewise.
22463 * gcse.c: Likewise.
22464 * gimple-ssa-isolate-paths.c: Likewise.
22465 * gimple-ssa-strength-reduction.c: Likewise.
22466 * ipa-split.c: Likewise.
22467 * loop-init.c: Likewise.
22468 * loop-unroll.c: Likewise.
22469 * lower-subreg.c: Likewise.
22470 * modulo-sched.c: Likewise.
22471 * postreload-gcse.c: Likewise.
22472 * predict.c: Likewise.
22473 * recog.c: Likewise.
22474 * sched-rgn.c: Likewise.
22475 * store-motion.c: Likewise.
22476 * tracer.c: Likewise.
22477 * trans-mem.c: Likewise.
22478 * tree-call-cdce.c: Likewise.
22479 * tree-cfg.c: Likewise.
22480 * tree-cfgcleanup.c: Likewise.
22481 * tree-complex.c: Likewise.
22482 * tree-eh.c: Likewise.
22483 * tree-emutls.c: Likewise.
22484 * tree-if-conv.c: Likewise.
22485 * tree-into-ssa.c: Likewise.
22486 * tree-loop-distribution.c: Likewise.
22487 * tree-object-size.c: Likewise.
22488 * tree-parloops.c: Likewise.
22489 * tree-pass.h: Likewise.
22490 * tree-sra.c: Likewise.
22491 * tree-ssa-ccp.c: Likewise.
22492 * tree-ssa-copy.c: Likewise.
22493 * tree-ssa-copyrename.c: Likewise.
22494 * tree-ssa-dce.c: Likewise.
22495 * tree-ssa-dom.c: Likewise.
22496 * tree-ssa-dse.c: Likewise.
22497 * tree-ssa-forwprop.c: Likewise.
22498 * tree-ssa-ifcombine.c: Likewise.
22499 * tree-ssa-loop-ch.c: Likewise.
22500 * tree-ssa-loop-ivcanon.c: Likewise.
22501 * tree-ssa-loop.c: Likewise.
22502 * tree-ssa-math-opts.c: Likewise.
22503 * tree-ssa-phiopt.c: Likewise.
22504 * tree-ssa-phiprop.c: Likewise.
22505 * tree-ssa-pre.c: Likewise.
22506 * tree-ssa-reassoc.c: Likewise.
22507 * tree-ssa-sink.c: Likewise.
22508 * tree-ssa-strlen.c: Likewise.
22509 * tree-ssa-tail-merge.c: Likewise.
22510 * tree-ssa-uncprop.c: Likewise.
22511 * tree-switch-conversion.c: Likewise.
22512 * tree-tailcall.c: Likewise.
22513 * tree-vect-generic.c: Likewise.
22514 * tree-vectorizer.c: Likewise.
22515 * tree-vrp.c: Likewise.
22516 * tsan.c: Likewise.
22517 * var-tracking.c: Likewise.
22518 * bt-load.c: Likewise.
22519 * cfgcleanup.c: Likewise.
22520 * combine-stack-adj.c: Likewise.
22521 * combine.c: Likewise.
22522 * compare-elim.c: Likewise.
22523 * config/epiphany/resolve-sw-modes.c: Likewise.
22524 * config/i386/i386.c: Likewise.
22525 * config/mips/mips.c: Likewise.
22526 * config/s390/s390.c: Likewise.
22527 * config/sh/sh_treg_combine.cc: Likewise.
22528 * config/sparc/sparc.c: Likewise.
22529 * dce.c: Likewise.
22530 * dse.c: Likewise.
22531 * final.c: Likewise.
22532 * ifcvt.c: Likewise.
22533 * mode-switching.c: Likewise.
22534 * passes.c: Likewise.
22535 * postreload.c: Likewise.
22536 * ree.c: Likewise.
22537 * reg-stack.c: Likewise.
22538 * regcprop.c: Likewise.
22539 * regrename.c: Likewise.
22540 * web.c: Likewise.
22541
22542 2014-05-06 Richard Biener <rguenther@suse.de>
22543
22544 PR middle-end/61070
22545 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22546 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22547
22548 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
22549
22550 PR ipa/60965
22551 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22552
22553 2014-05-05 Radovan Obradovic <robradovic@mips.com>
22554 Tom de Vries <tom@codesourcery.com>
22555
22556 * target.def (call_fusage_contains_non_callee_clobbers): New
22557 DEFHOOKPOD.
22558 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22559 Hooks to @menu.
22560 (@node Miscellaneous Register Hooks): New node.
22561 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22562 * doc/tm.texi: Regenerate.
22563
22564 2014-05-05 Marek Polacek <polacek@redhat.com>
22565
22566 PR driver/61065
22567 * opts.c (common_handle_option): Call error_at instead of warning_at.
22568
22569 2014-05-05 Richard Biener <rguenther@suse.de>
22570
22571 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22572 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
22573 under the TODO_verify_il umbrella.
22574
22575 2014-05-05 Richard Biener <rguenther@suse.de>
22576
22577 * passes.c (execute_function_todo): Move TODO_verify_flow under
22578 the TODO_verify_ul umbrella.
22579
22580 2014-05-05 Richard Biener <rguenther@suse.de>
22581
22582 PR middle-end/61010
22583 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22584 X & CST away from a CST that is the mask of a mode.
22585
22586 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22587
22588 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22589 int argument to enum machine_mode.
22590 (picochip_class_max_nregs): Ditto.
22591 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22592 (picochip_class_max_nregs): Ditto.
22593
22594 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22595
22596 * target.def: Add new target hook.
22597 * doc/tm.texi: Regenerate.
22598 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22599 * targhooks.c (default_keep_leaf_when_profiled): New function.
22600
22601 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22602 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22603
22604 2014-05-05 Bin Cheng <bin.cheng@arm.com>
22605
22606 PR tree-optimization/60363
22607 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22608 (copy_phi_args): New parameters. Call get_value_locus_in_path.
22609 (update_destination_phis): New parameter.
22610 (create_edge_and_update_destination_phis): Ditto.
22611 (ssa_fix_duplicate_block_edges): Pass new arguments.
22612 (thread_single_edge): Ditto.
22613
22614 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
22615
22616 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22617 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22618 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22619 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22620 Use RS6000_BTM_HARD_FLOAT.
22621 (BU_MISC_2): Likewise.
22622 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22623 RS6000_BTM_HARD_FLOAT.
22624 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22625 is explicitly used.
22626 (rs6000_invalid_builtin): Add hard floating builtin support.
22627 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22628 hard float builtins.
22629 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22630
22631 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22632
22633 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22634 Add missing function* argument.
22635
22636 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22637
22638 * lra-constraints.c (valid_address_p): Move earlier in file.
22639 Add a constraint argument to the address_info version.
22640 (satisfies_memory_constraint_p): New function.
22641 (satisfies_address_constraint_p): Likewise.
22642 (process_alt_operands, curr_insn_transform): Use them.
22643 (process_address): Pass the constraint to valid_address_p when
22644 checking address operands.
22645
22646 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22647
22648 * config/mips/mips.c (mips_isa_rev): New variable.
22649 (mips_set_architecture): Set it.
22650 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22651 from mips_isa_rev.
22652 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22653 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22654 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22655 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22656 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22657 conditions in terms of mips_isa_rev.
22658 (mips_isa_rev): Declare.
22659
22660 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22661
22662 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22663 (prob_unlikely, prob_likely): Make variables const.
22664
22665 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22666
22667 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22668
22669 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22670
22671 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22672
22673 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22674
22675 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22676 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22677 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22678 functions.
22679 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22680 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22681 sh_pass_in_reg_p.
22682 Replace usage of ROUND_REG with sh_round_reg.
22683 Use CEIL instead of ROUND_ADVANCE.
22684
22685 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22686
22687 PR target/61026
22688 * config/sh/sh.c: Include stdlib headers before everything else.
22689
22690 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22691
22692 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22693 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22694 (gimplify_adjust_omp_clauses): Simd region is never
22695 directly nested in combined parallel. Instead, for linear
22696 with copyin/copyout, if in combined for simd loop, make decl
22697 firstprivate/lastprivate on OMP_FOR.
22698 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22699 expand_omp_for_static_chunk): When setting endvar, also set
22700 fd->loop.v to the same value.
22701
22702 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22703
22704 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22705
22706 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22707
22708 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22709 expression.
22710
22711 2014-05-02 Marek Polacek <polacek@redhat.com>
22712
22713 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22714
22715 2014-05-02 Kito Cheng <kito@0xlab.org>
22716
22717 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22718 to a C expression marco.
22719 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22720 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22721 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22722 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22723 HONOR_REG_ALLOC_ORDER.
22724 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22725
22726 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22727
22728 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22729
22730 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22731
22732 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22733
22734 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22735
22736 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22737 (convert_scalar_cond_reduction): Likewise.
22738 (predicate_scalar_phi): Add recognition and transformation
22739 of simple conditioanl reduction to be vectorizable.
22740
22741 2014-05-01 Marek Polacek <polacek@redhat.com>
22742
22743 PR c/43245
22744 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22745
22746 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22747
22748 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22749 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22750 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22751 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22752 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22753 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22754 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22755 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22756
22757 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22758
22759 * config/arc/arc.opt (mlra): Move comment above option name
22760 to avoid mis-parsing as language options.
22761
22762 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22763
22764 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22765 * config/sol2.h: ... here.
22766 * config/sol2-10.h: Remove.
22767
22768 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22769 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22770 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22771 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22772 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22773 * config/sol2.h: ... here.
22774 (SECTION_NAME_FORMAT): Don't redefine.
22775 (STARTFILE_ARCH32_SPEC): Rename to ...
22776 (STARTFILE_ARCH_SPEC): ... this.
22777 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22778 * config/sparc/sol2.h: ... here.
22779 (SECTION_NAME_FORMAT): Don't undef.
22780 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22781 (SUBTARGET_EXTRA_SPECS): Remove.
22782 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22783
22784 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22785 (MD_STARTFILE_PREFIX): Remove.
22786 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22787 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22788 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22789 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22790 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22791 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22792 * config/i386/sol2.h: ... here.
22793 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22794 * config/i386/sol2-bi.h: Remove.
22795 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22796 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22797
22798 * config/i386/t-sol2-64: Rename to ...
22799 * config/i386/t-sol2: ... this.
22800 * config/sparc/t-sol2-64: Rename to ...
22801 * config/sparc/t-sol2: ... this.
22802
22803 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22804 sol2_tm_file_head, sol2_tm_file_tail.
22805 Include ${cpu_type}/sol2.h before sol2.h.
22806 Remove sol2-10.h.
22807 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22808 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22809 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22810 Reflect i386/t-sol2-64 renaming.
22811 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22812 Reflect sparc/t-sol2-64 renaming.
22813
22814 2014-04-30 Richard Biener <rguenther@suse.de>
22815
22816 * passes.c (execute_function_todo): Move TODO_verify_stmts
22817 and TODO_verify_ssa under the TODO_verify_il umbrella.
22818 * tree-ssa.h (verify_ssa): Adjust prototype.
22819 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22820 we should verify SSA operands.
22821 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22822 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22823 whether we should verify whether not throwing stmts have EH info.
22824 * graphite-scop-detection.c (create_sese_edges): Adjust.
22825 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22826 * tree-eh.c (lower_try_finally_switch): Do not add the
22827 default case label twice.
22828
22829 2014-04-30 Marek Polacek <polacek@redhat.com>
22830
22831 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22832 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22833 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22834 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22835
22836 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22837
22838 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22839 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22840 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22841 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22842 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22843 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22844 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22845 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22846
22847 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22848
22849 * tree-cfg.c (dump_function_to_file): Dump the return type of
22850 functions, in a line to itself before the function body, mimicking
22851 the layout of a C function.
22852
22853 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22854
22855 PR tree-optimization/60971
22856 * tree-tailcall.c (process_assignment): Reject conversions which
22857 reduce precision.
22858
22859 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22860
22861 * calls.c (initialize_argument_information): Always treat
22862 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22863 (expand_call): Likewise.
22864 (emit_library_call_calue_1): Likewise.
22865 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22866 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22867 code accordingly.
22868
22869 2014-04-29 Nick Clifton <nickc@redhat.com>
22870
22871 * config/msp430/msp430.md (umulsidi): Fix typo.
22872 (mulhisi3): Enable even inside interrupt handlers.
22873 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22874 bigger return address pushed in large mode.
22875
22876 2014-04-29 Nick Clifton <nickc@redhat.com>
22877
22878 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22879 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22880 available modes.
22881 * config/m32r/m32r.c (init_reg_tables): Likewise.
22882 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22883 enum to hold the modes.
22884
22885 2014-04-29 Richard Biener <rguenther@suse.de>
22886
22887 * dominance.c (free_dominance_info): Add overload with
22888 function parameter.
22889 (dom_info_state): Likewise.
22890 (dom_info_available_p): Likewise.
22891 * basic-block.h (free_dominance_info, dom_info_state,
22892 dom_info_available_p): Declare overloads.
22893 * passes.c (execute_function_todo): Verify that verifiers
22894 don't change dominator info state. Drop dominator info
22895 for IPA pass invocations.
22896 * cgraph.c (release_function_body): Restore asserts that
22897 dominator information is released.
22898
22899 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22900
22901 * doc/invoke.texi: Fix typo.
22902 * tree-vrp.c: Fix typos.
22903 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22904
22905 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22906
22907 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22908
22909 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22910
22911 * config/aarch64/aarch64-builtins.c
22912 (aarch64_types_storestruct_lane_qualifiers): New.
22913 (TYPES_STORESTRUCT_LANE): Likewise.
22914 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22915 (st3_lane): Likewise.
22916 (st4_lane): Likewise.
22917 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22918 (vec_store_lanesci_lane<mode>): Likewise.
22919 (vec_store_lanesxi_lane<mode>): Likewise.
22920 (aarch64_st2_lane<VQ:mode>): Likewise.
22921 (aarch64_st3_lane<VQ:mode>): Likewise.
22922 (aarch64_st4_lane<VQ:mode>): Likewise.
22923 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22924 * config/aarch64/arm_neon.h
22925 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22926 use new macro arguments.
22927 (__ST3_LANE_FUNC): Likewise.
22928 (__ST4_LANE_FUNC): Likewise.
22929 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22930 (V_THREE_ELEM): Likewise.
22931 (V_FOUR_ELEM): Likewise.
22932
22933 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22934
22935 * doc/gimple.texi: Replace the description of the now-defunct
22936 union gimple_statement_d with a diagram showing the
22937 gimple_statement_base class hierarchy and its relationships to
22938 the GSS_ and GIMPLE_ enums.
22939
22940 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22941
22942 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22943 * config/aarch64/aarch64.c
22944 (aarch64_cannot_change_mode_class): Weaken conditions.
22945 (aarch64_modes_tieable_p): New.
22946 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22947
22948 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22949
22950 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22951 (loadsync_<mode>): Change mode.
22952 (load_quadpti, store_quadpti): New.
22953 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22954 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22955
22956 2014-04-28 Martin Jambor <mjambor@suse.cz>
22957
22958 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22959 same alias type as the original statement.
22960 (subreplacement_assignment_data): New type.
22961 (handle_unscalarized_data_in_subtree): New type of parameter,
22962 generate new memory accesses with same alias type as the original
22963 statement.
22964 (load_assign_lhs_subreplacements): Likewise.
22965 (sra_modify_constructor_assign): Generate new memory accesses with
22966 same alias type as the original statement.
22967
22968 2014-04-28 Richard Biener <rguenther@suse.de>
22969
22970 * tree-pass.h (TODO_verify_il): Define.
22971 (TODO_verify_all): Complete properly.
22972 * passes.c (execute_function_todo): Move existing loop-closed
22973 SSA verification under TODO_verify_il.
22974 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22975 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22976 Fix tree sharing issue.
22977
22978 2014-04-28 Richard Biener <rguenther@suse.de>
22979
22980 PR middle-end/60092
22981 * builtins.def (DEF_C11_BUILTIN): Add.
22982 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22983 * coretypes.h (enum function_class): Add function_c11_misc.
22984 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22985 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22986 (call_may_clobber_ref_p_1): Likewise.
22987 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22988 (mark_all_reaching_defs_necessary_1): Likewise.
22989 (propagate_necessity): Likewise.
22990 (eliminate_unnecessary_stmts): Likewise.
22991 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22992
22993 2014-04-28 Richard Biener <rguenther@suse.de>
22994
22995 * tree-vrp.c (vrp_var_may_overflow): Remove.
22996 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22997 with overflow immediately bump to one before that value and
22998 let iteration figure out overflow status.
22999
23000 2014-04-28 Richard Biener <rguenther@suse.de>
23001
23002 * configure.ac: Do valgrind header checks unconditionally.
23003 Add --enable-valgrind-annotations.
23004 * system.h: Guard valgrind header inclusion with
23005 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
23006 * alloc-pool.c (pool_alloc, pool_free): Use
23007 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
23008 to guard possibly dead code.
23009 * config.in: Regenerated.
23010 * configure: Likewise.
23011
23012 2014-04-28 Jeff Law <law@redhat.com>
23013
23014 PR tree-optimization/60902
23015 * tree-ssa-threadedge.c
23016 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
23017 over real defs when invalidating outputs from statements that do not
23018 produce useful outputs for threading.
23019
23020 2014-04-28 Richard Biener <rguenther@suse.de>
23021
23022 PR tree-optimization/60979
23023 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
23024 SCOPs that end in a block with a successor with abnormal
23025 predecessors.
23026
23027 2014-04-28 Richard Biener <rguenther@suse.de>
23028
23029 * tree-pass.h (execute_pass_list): Adjust prototype.
23030 * passes.c (pass_manager::execute_early_local_passes): Adjust.
23031 (do_per_function): Change callback signature, push all actual
23032 work to the callbals.
23033 (do_per_function_toporder): Likewise.
23034 (execute_function_dump): Adjust.
23035 (execute_function_todo): Likewise.
23036 (clear_last_verified): Likewise.
23037 (verify_curr_properties): Likewise.
23038 (update_properties_after_pass): Likewise.
23039 (execute_pass_list_1): Split out from ...
23040 (execute_pass_list): ... here. Adjust.
23041 (execute_ipa_pass_list): Likewise.
23042 * cgraphunit.c (cgraph_add_new_function): Adjust.
23043 (analyze_function): Likewise.
23044 (expand_function): Likewise.
23045 * cgraph.c (release_function_body): Free dominance info
23046 here instead of asserting it was magically freed elsewhere.
23047
23048 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
23049
23050 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
23051 * configure: Regenerate.
23052 * config/sparc/sparc.opt (muser-mode): New option.
23053 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
23054 for LEON3.
23055 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
23056 * doc/invoke.texi (SPARC options): Document -muser-mode.
23057
23058 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
23059
23060 * cselib.c (find_slot_memmode): Delete.
23061 (cselib_hasher): Change compare_type to a struct.
23062 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
23063 constants.
23064 (preserve_constants_and_equivs): Adjust for new compare_type.
23065 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
23066 (wrap_constant): Delete.
23067 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
23068
23069 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
23070
23071 * doc/install.texi (Building with profile feedback): Remove
23072 outdated sentence.
23073
23074 2014-04-26 Tom de Vries <tom@codesourcery.com>
23075
23076 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
23077 array accesses.
23078
23079 2014-04-25 Cary Coutant <ccoutant@google.com>
23080
23081 PR debug/60929
23082 * dwarf2out.c (should_move_die_to_comdat): A type definition
23083 can contain a subprogram definition, but don't move it to a
23084 comdat unit.
23085 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
23086 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
23087 from original DIE.
23088 (clone_tree_hash): Rename to...
23089 (clone_tree_partial): ...this; change callers. Copy
23090 DW_TAG_subprogram DIEs as declarations.
23091 (copy_decls_walk): Don't copy children of a declaration into a
23092 type unit.
23093
23094 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
23095
23096 PR target/60969
23097 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
23098 alternative 12.
23099
23100 2014-04-25 Jiong Wang <jiong.wang@arm.com>
23101
23102 * config/arm/predicates.md (call_insn_operand): Add long_call check.
23103 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
23104 reg for long_call.
23105 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
23106 restriction.
23107
23108 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23109
23110 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
23111
23112 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23113
23114 PR tree-optimization/60930
23115 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
23116 creating a multiply candidate by folding two constant
23117 multiplicands when the result overflows.
23118
23119 2014-04-25 Jakub Jelinek <jakub@redhat.com>
23120
23121 PR tree-optimization/60960
23122 * tree-vect-generic.c (expand_vector_operation): Only call
23123 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
23124
23125 2014-04-25 Tom de Vries <tom@codesourcery.com>
23126
23127 * expr.c (clobber_reg_mode): New function.
23128 * expr.h (clobber_reg): New function.
23129
23130 2014-04-25 Tom de Vries <tom@codesourcery.com>
23131
23132 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
23133 clobbers.
23134
23135 2014-04-25 Radovan Obradovic <robradovic@mips.com>
23136 Tom de Vries <tom@codesourcery.com>
23137
23138 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
23139 handle.
23140 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
23141 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
23142 new argument to find_all_hard_reg_sets call.
23143
23144 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23145
23146 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
23147 Use HOST_WIDE_INT_C for mask literal.
23148 (aarch_rev16_shleft_mask_imm_p): Likewise.
23149
23150 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
23151
23152 PR target/60941
23153 * config/sparc/sparc.md (ashlsi3_extend): Delete.
23154
23155 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
23156
23157 PR preprocessor/56540
23158 * config/i386/i386-c.c (ix86_target_macros): Define
23159 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
23160
23161 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23162
23163 * configure.ac (tga_func): Remove.
23164 (LIB_TLS_SPEC): Remove.
23165 * configure: Regenerate.
23166 * config.in: Regenerate.
23167 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
23168
23169 2014-04-25 Richard Biener <rguenther@suse.de>
23170
23171 PR ipa/60912
23172 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
23173 call stmt use/clobber sets during stmt walk instead of
23174 walking the possibly incomplete set of caller edges.
23175
23176 2014-04-25 Richard Biener <rguenther@suse.de>
23177
23178 PR ipa/60911
23179 * passes.c (apply_ipa_transforms): Inline into only caller ...
23180 (execute_one_pass): ... here. Properly bring in function
23181 bodies for nodes we want to apply IPA transforms to.
23182
23183 2014-04-24 Cong Hou <congh@google.com>
23184
23185 PR tree-optimization/60896
23186 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
23187 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
23188 (vect_mark_pattern_stmts): Set the def type of all statements in
23189 PATTERN_DEF_SEQ as vect_internal_def.
23190
23191 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
23192
23193 * doc/extend.texi (PowerPC Built-in Functions): Document new
23194 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
23195 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
23196
23197 * config/rs6000/predicates.md (const_0_to_3_operand): New
23198 predicate to match 0..3 integer constants.
23199
23200 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
23201 to support adding miscellaneous builtin functions.
23202 (BU_DFP_MISC_2): Likewise.
23203 (BU_P7_MISC_1): Likewise.
23204 (BU_P7_MISC_2): Likewise.
23205 (BU_P8V_MISC_3): Likewise.
23206 (BU_MISC_1): Likewise.
23207 (BU_MISC_2): Likewise.
23208 (DIVWE): Add extended divide builtin functions.
23209 (DIVWEO): Likewise.
23210 (DIVWEU): Likewise.
23211 (DIVWEUO): Likewise.
23212 (DIVDE): Likewise.
23213 (DIVDEO): Likewise.
23214 (DIVDEU): Likewise.
23215 (DIVDEUO): Likewise.
23216 (DXEX): Add decimal floating-point builtin functions.
23217 (DXEXQ): Likewise.
23218 (DDEDPD): Likewise.
23219 (DDEDPDQ): Likewise.
23220 (DENBCD): Likewise.
23221 (DENBCDQ): Likewise.
23222 (DIEX): Likewise.
23223 (DIEXQ): Likewise.
23224 (DSCLI): Likewise.
23225 (DSCLIQ): Likewise.
23226 (DSCRI): Likewise.
23227 (DSCRIQ): Likewise.
23228 (CDTBCD): Add new BCD builtin functions.
23229 (CBCDTD): Likewise.
23230 (ADDG6S): Likewise.
23231 (BCDADD): Likewise.
23232 (BCDADD_LT): Likewise.
23233 (BCDADD_EQ): Likewise.
23234 (BCDADD_GT): Likewise.
23235 (BCDADD_OV): Likewise.
23236 (BCDSUB): Likewise.
23237 (BCDSUB_LT): Likewise.
23238 (BCDSUB_EQ): Likewise.
23239 (BCDSUB_GT): Likewise.
23240 (BCDSUB_OV): Likewise.
23241 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
23242 (UNPACK_TD): Likewise.
23243 (PACK_TF): Likewise.
23244 (UNPACK_TF): Likewise.
23245 (UNPACK_TF_0): Likewise.
23246 (UNPACK_TF_1): Likewise.
23247 (PACK_V1TI): Likewise.
23248 (UNPACK_V1TI): Likewise.
23249
23250 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23251 support for decimal floating point builtin functions.
23252 (rs6000_expand_ternop_builtin): Add checks for the new builtin
23253 functions that take constant arguments.
23254 (rs6000_invalid_builtin): Add decimal floating point builtin support.
23255 (rs6000_init_builtins): Setup long double, _Decimal64, and
23256 _Decimal128 types for new builtin functions.
23257 (builtin_function_type): Set the unsigned flags appropriately for
23258 the new builtin functions.
23259 (rs6000_opt_masks): Add support for decimal floating point builtin
23260 functions.
23261
23262 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
23263 floating point builtin functions.
23264 (RS6000_BTM_COMMON): Likewise.
23265 (RS6000_BTI_long_double): Likewise.
23266 (RS6000_BTI_dfloat64): Likewise.
23267 (RS6000_BTI_dfloat128): Likewise.
23268 (long_double_type_internal_node): Likewise.
23269 (dfloat64_type_internal_node): Likewise.
23270 (dfloat128_type_internal_node): Likewise.
23271
23272 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
23273 2.07 bcd arithmetic instructions.
23274 (UNSPEC_BCDSUB): Likewise.
23275 (UNSPEC_BCD_OVERFLOW): Likewise.
23276 (UNSPEC_BCD_ADD_SUB): Likewise.
23277 (bcd_add_sub): Likewise.
23278 (BCD_TEST): Likewise.
23279 (bcd<bcd_add_sub>): Likewise.
23280 (bcd<bcd_add_sub>_test): Likewise.
23281 (bcd<bcd_add_sub>_test2): Likewise.
23282 (bcd<bcd_add_sub>_<code>): Likewise.
23283 (peephole2 for combined bcd ops): Likewise.
23284
23285 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
23286 decimal floating point builtin functions.
23287 (UNSPEC_DENBCD): Likewise.
23288 (UNSPEC_DXEX): Likewise.
23289 (UNSPEC_DIEX): Likewise.
23290 (UNSPEC_DSCLI): Likewise.
23291 (UNSPEC_DSCRI): Likewise.
23292 (D64_D128): Likewise.
23293 (dfp_suffix): Likewise.
23294 (dfp_ddedpd_<mode>): Likewise.
23295 (dfp_denbcd_<mode>): Likewise.
23296 (dfp_dxex_<mode>): Likewise.
23297 (dfp_diex_<mode>): Likewise.
23298 (dfp_dscli_<mode>): Likewise.
23299 (dfp_dscri_<mode>): Likewise.
23300
23301 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
23302 builtin functions.
23303 (UNSPEC_CDTBCD): Likewise.
23304 (UNSPEC_CBCDTD): Likewise.
23305 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
23306 (UNSPEC_DIVEO): Likewise.
23307 (UNSPEC_DIVEU): Likewise.
23308 (UNSPEC_DIVEUO): Likewise.
23309 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
23310 pack/unpack 128-bit types.
23311 (UNSPEC_PACK_128BIT): Likewise.
23312 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
23313 (udiv<mode>3): Use idiv_ldiv mode attribute.
23314 (div<mode>3): Likewise.
23315 (addg6s): Add new BCD builtin functions.
23316 (cdtbcd): Likewise.
23317 (cbcdtd): Likewise.
23318 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
23319 (div_extend): Likewise.
23320 (div<div_extend>_<mode>"): Likewise.
23321 (FP128_64): Add support for new builtin functions to pack/unpack
23322 128-bit types.
23323 (unpack<mode>): Likewise.
23324 (unpacktf_0): Likewise.
23325 (unpacktf_1): Likewise.
23326 (unpack<mode>_dm): Likewise.
23327 (unpack<mode>_nodm): Likewise.
23328 (pack<mode>): Likewise.
23329 (unpackv1ti): Likewise.
23330 (packv1ti): Likewise.
23331
23332 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
23333
23334 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
23335 is disabled.
23336
23337 2014-04-24 Jakub Jelinek <jakub@redhat.com>
23338
23339 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
23340 * gimplify.c (omp_is_private): Change last argument's type to int.
23341 Only diagnose lastprivate if the simd argument is 1, only diagnose
23342 linear if the simd argument is 2.
23343 (gimplify_omp_for): Adjust omp_is_private callers. When adding
23344 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
23345 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
23346 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
23347 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
23348 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23349 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
23350 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23351 * tree-nested.c (convert_nonlocal_omp_clauses,
23352 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
23353
23354 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
23355
23356 PR target/60822
23357 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
23358 operand 1.
23359
23360 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
23361
23362 * flag-types.h (enum ivar_visibility): Add.
23363
23364 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
23365
23366 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
23367 function * argument.
23368
23369 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
23370
23371 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
23372
23373 2014-04-24 Radovan Obradovic <robradovic@mips.com>
23374 Tom de Vries <tom@codesourcery.com>
23375
23376 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
23377 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
23378 reg-note.
23379 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
23380 * emit-rtl.c (try_split): Same.
23381
23382 2014-04-24 Radovan Obradovic <robradovic@mips.com>
23383 Tom de Vries <tom@codesourcery.com>
23384
23385 * common.opt (fuse-caller-save): New option.
23386
23387 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
23388
23389 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
23390 elements for big-endian.
23391
23392 2014-04-24 Richard Biener <rguenther@suse.de>
23393
23394 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
23395 during TER and instead use the sepops interface for expanding
23396 non-GIMPLE_SINGLE_RHS.
23397
23398 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23399
23400 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
23401 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
23402
23403 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23404
23405 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
23406 assembler 64-bit option.
23407 * configure: Regenerate.
23408
23409 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23410
23411 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
23412 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
23413 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
23414 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
23415 (TARGET_CRYPTO): Take TARGET_SIMD into account.
23416
23417 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23418
23419 * config/aarch64/aarch64-builtins.c
23420 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
23421 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
23422 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
23423 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
23424 builtins.
23425 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
23426 (Vrevsuff): New mode attribute.
23427
23428 2014-04-24 Terry Guo <terry.guo@arm.com>
23429
23430 * config/arm/arm.h (machine_function): Define variable
23431 after_arm_reorg here.
23432 * config/arm/arm.c (after_arm_reorg): Remove the definition.
23433 (arm_split_constant): Update the way to access variable
23434 after_arm_reorg.
23435 (arm_reorg): Ditto.
23436 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
23437
23438 2014-04-23 Tom de Vries <tom@codesourcery.com>
23439
23440 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
23441
23442 2014-04-23 David Malcolm <dmalcolm@redhat.com>
23443
23444 * is-a.h: Update comments to reflect the following changes to the
23445 "pointerness" of the API, making the template parameter match the
23446 return type, allowing use of is-a.h with typedefs of pointers.
23447 (is_a_helper::cast): Return a T rather then a pointer to a T, so
23448 that the return type matches the parameter to the is_a_helper.
23449 (as_a): Likewise.
23450 (dyn_cast): Likewise.
23451
23452 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23453 pointer from the is-a.h API.
23454
23455 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23456 (is_a_helper <cgraph_node *>::test): ...this, matching change to
23457 is-a.h API.
23458 (is_a_helper <varpool_node>::test): Likewise, convert to...
23459 (is_a_helper <varpool_node *>::test): ...this.
23460
23461 (varpool_first_variable): Update for removal of implicit pointer
23462 from the is-a.h API.
23463 (varpool_next_variable): Likewise.
23464 (varpool_first_static_initializer): Likewise.
23465 (varpool_next_static_initializer): Likewise.
23466 (varpool_first_defined_variable): Likewise.
23467 (varpool_next_defined_variable): Likewise.
23468 (cgraph_first_defined_function): Likewise.
23469 (cgraph_next_defined_function): Likewise.
23470 (cgraph_first_function): Likewise.
23471 (cgraph_next_function): Likewise.
23472 (cgraph_first_function_with_gimple_body): Likewise.
23473 (cgraph_next_function_with_gimple_body): Likewise.
23474 (cgraph_alias_target): Likewise.
23475 (varpool_alias_target): Likewise.
23476 (cgraph_function_or_thunk_node): Likewise.
23477 (varpool_variable_node): Likewise.
23478 (symtab_real_symbol_p): Likewise.
23479 * cgraphunit.c (referred_to_p): Likewise.
23480 (analyze_functions): Likewise.
23481 (handle_alias_pairs): Likewise.
23482 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23483 * gimple-ssa.h (gimple_vuse_op): Likewise.
23484 (gimple_vdef_op): Likewise.
23485 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23486 * gimple.c (gimple_build_asm_1): Likewise.
23487 (gimple_build_try): Likewise.
23488 (gimple_build_resx): Likewise.
23489 (gimple_build_eh_dispatch): Likewise.
23490 (gimple_build_omp_for): Likewise.
23491 (gimple_omp_for_set_clauses): Likewise.
23492
23493 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23494 (is_a_helper <gimple_statement_asm *>::test): ...this.
23495 (is_a_helper <gimple_statement_bind>::test): Convert to...
23496 (is_a_helper <gimple_statement_bind *>::test): ...this.
23497 (is_a_helper <gimple_statement_call>::test): Convert to...
23498 (is_a_helper <gimple_statement_call *>::test): ...this.
23499 (is_a_helper <gimple_statement_catch>::test): Convert to...
23500 (is_a_helper <gimple_statement_catch *>::test): ...this.
23501 (is_a_helper <gimple_statement_resx>::test): Convert to...
23502 (is_a_helper <gimple_statement_resx *>::test): ...this.
23503 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23504 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23505 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23506 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23507 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23508 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23509 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23510 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23511 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23512 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23513 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23514 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23515 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23516 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23517 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23518 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23519 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23520 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23521 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23522 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23523 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23524 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23525 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23526 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23527 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23528 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23529 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23530 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23531 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23532 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23533 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23534 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23535 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23536 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23537 (is_a_helper <gimple_statement_phi>::test): Convert to...
23538 (is_a_helper <gimple_statement_phi *>::test): ...this.
23539 (is_a_helper <gimple_statement_transaction>::test): Convert to...
23540 (is_a_helper <gimple_statement_transaction *>::test): ...this.
23541 (is_a_helper <gimple_statement_try>::test): Convert to...
23542 (is_a_helper <gimple_statement_try *>::test): ...this.
23543 (is_a_helper <gimple_statement_wce>::test): Convert to...
23544 (is_a_helper <gimple_statement_wce *>::test): ...this.
23545 (is_a_helper <const gimple_statement_asm>::test): Convert to...
23546 (is_a_helper <const gimple_statement_asm *>::test): ...this.
23547 (is_a_helper <const gimple_statement_bind>::test): Convert to...
23548 (is_a_helper <const gimple_statement_bind *>::test): ...this.
23549 (is_a_helper <const gimple_statement_call>::test): Convert to...
23550 (is_a_helper <const gimple_statement_call *>::test): ...this.
23551 (is_a_helper <const gimple_statement_catch>::test): Convert to...
23552 (is_a_helper <const gimple_statement_catch *>::test): ...this.
23553 (is_a_helper <const gimple_statement_resx>::test): Convert to...
23554 (is_a_helper <const gimple_statement_resx *>::test): ...this.
23555 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23556 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23557 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23558 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23559 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23560 Convert to...
23561 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23562 ...this.
23563 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23564 Convert to...
23565 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23566 ...this.
23567 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23568 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23569 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23570 to...
23571 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23572 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23573 to...
23574 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23575 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23576 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23577 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23578 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23579 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23580 to...
23581 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23582 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23583 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23584 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23585 to...
23586 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23587 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23588 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23589 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23590 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23591 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23592 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23593 (is_a_helper <const gimple_statement_phi>::test): Convert to...
23594 (is_a_helper <const gimple_statement_phi *>::test): ...this.
23595 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23596 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23597 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23598 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23599 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23600 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23601 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23602 to...
23603 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23604 ...this.
23605 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23606 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23607
23608 (gimple_use_ops): Update for removal of implicit pointer from the
23609 is-a.h API.
23610 (gimple_set_use_ops): Likewise.
23611 (gimple_vuse): Likewise.
23612 (gimple_vdef): Likewise.
23613 (gimple_vuse_ptr): Likewise.
23614 (gimple_vdef_ptr): Likewise.
23615 (gimple_set_vuse): Likewise.
23616 (gimple_set_vdef): Likewise.
23617 (gimple_omp_return_set_lhs): Likewise.
23618 (gimple_omp_return_lhs): Likewise.
23619 (gimple_omp_return_lhs_ptr): Likewise.
23620 (gimple_call_fntype): Likewise.
23621 (gimple_call_set_fntype): Likewise.
23622 (gimple_call_set_internal_fn): Likewise.
23623 (gimple_call_use_set): Likewise.
23624 (gimple_call_clobber_set): Likewise.
23625 (gimple_bind_vars): Likewise.
23626 (gimple_bind_set_vars): Likewise.
23627 (gimple_bind_body_ptr): Likewise.
23628 (gimple_bind_set_body): Likewise.
23629 (gimple_bind_add_stmt): Likewise.
23630 (gimple_bind_block): Likewise.
23631 (gimple_bind_set_block): Likewise.
23632 (gimple_asm_ninputs): Likewise.
23633 (gimple_asm_noutputs): Likewise.
23634 (gimple_asm_nclobbers): Likewise.
23635 (gimple_asm_nlabels): Likewise.
23636 (gimple_asm_input_op): Likewise.
23637 (gimple_asm_input_op_ptr): Likewise.
23638 (gimple_asm_output_op): Likewise.
23639 (gimple_asm_output_op_ptr): Likewise.
23640 (gimple_asm_set_output_op): Likewise.
23641 (gimple_asm_clobber_op): Likewise.
23642 (gimple_asm_set_clobber_op): Likewise.
23643 (gimple_asm_label_op): Likewise.
23644 (gimple_asm_set_label_op): Likewise.
23645 (gimple_asm_string): Likewise.
23646 (gimple_catch_types): Likewise.
23647 (gimple_catch_types_ptr): Likewise.
23648 (gimple_catch_handler_ptr): Likewise.
23649 (gimple_catch_set_types): Likewise.
23650 (gimple_catch_set_handler): Likewise.
23651 (gimple_eh_filter_types): Likewise.
23652 (gimple_eh_filter_types_ptr): Likewise.
23653 (gimple_eh_filter_failure_ptr): Likewise.
23654 (gimple_eh_filter_set_types): Likewise.
23655 (gimple_eh_filter_set_failure): Likewise.
23656 (gimple_eh_must_not_throw_fndecl): Likewise.
23657 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23658 (gimple_eh_else_n_body_ptr): Likewise.
23659 (gimple_eh_else_e_body_ptr): Likewise.
23660 (gimple_eh_else_set_n_body): Likewise.
23661 (gimple_eh_else_set_e_body): Likewise.
23662 (gimple_try_eval_ptr): Likewise.
23663 (gimple_try_cleanup_ptr): Likewise.
23664 (gimple_try_set_eval): Likewise.
23665 (gimple_try_set_cleanup): Likewise.
23666 (gimple_wce_cleanup_ptr): Likewise.
23667 (gimple_wce_set_cleanup): Likewise.
23668 (gimple_phi_capacity): Likewise.
23669 (gimple_phi_num_args): Likewise.
23670 (gimple_phi_result): Likewise.
23671 (gimple_phi_result_ptr): Likewise.
23672 (gimple_phi_set_result): Likewise.
23673 (gimple_phi_arg): Likewise.
23674 (gimple_phi_set_arg): Likewise.
23675 (gimple_resx_region): Likewise.
23676 (gimple_resx_set_region): Likewise.
23677 (gimple_eh_dispatch_region): Likewise.
23678 (gimple_eh_dispatch_set_region): Likewise.
23679 (gimple_omp_critical_name): Likewise.
23680 (gimple_omp_critical_name_ptr): Likewise.
23681 (gimple_omp_critical_set_name): Likewise.
23682 (gimple_omp_for_clauses): Likewise.
23683 (gimple_omp_for_clauses_ptr): Likewise.
23684 (gimple_omp_for_set_clauses): Likewise.
23685 (gimple_omp_for_collapse): Likewise.
23686 (gimple_omp_for_index): Likewise.
23687 (gimple_omp_for_index_ptr): Likewise.
23688 (gimple_omp_for_set_index): Likewise.
23689 (gimple_omp_for_initial): Likewise.
23690 (gimple_omp_for_initial_ptr): Likewise.
23691 (gimple_omp_for_set_initial): Likewise.
23692 (gimple_omp_for_final): Likewise.
23693 (gimple_omp_for_final_ptr): Likewise.
23694 (gimple_omp_for_set_final): Likewise.
23695 (gimple_omp_for_incr): Likewise.
23696 (gimple_omp_for_incr_ptr): Likewise.
23697 (gimple_omp_for_set_incr): Likewise.
23698 (gimple_omp_for_pre_body_ptr): Likewise.
23699 (gimple_omp_for_set_pre_body): Likewise.
23700 (gimple_omp_parallel_clauses): Likewise.
23701 (gimple_omp_parallel_clauses_ptr): Likewise.
23702 (gimple_omp_parallel_set_clauses): Likewise.
23703 (gimple_omp_parallel_child_fn): Likewise.
23704 (gimple_omp_parallel_child_fn_ptr): Likewise.
23705 (gimple_omp_parallel_set_child_fn): Likewise.
23706 (gimple_omp_parallel_data_arg): Likewise.
23707 (gimple_omp_parallel_data_arg_ptr): Likewise.
23708 (gimple_omp_parallel_set_data_arg): Likewise.
23709 (gimple_omp_task_clauses): Likewise.
23710 (gimple_omp_task_clauses_ptr): Likewise.
23711 (gimple_omp_task_set_clauses): Likewise.
23712 (gimple_omp_task_child_fn): Likewise.
23713 (gimple_omp_task_child_fn_ptr): Likewise.
23714 (gimple_omp_task_set_child_fn): Likewise.
23715 (gimple_omp_task_data_arg): Likewise.
23716 (gimple_omp_task_data_arg_ptr): Likewise.
23717 (gimple_omp_task_set_data_arg): Likewise.
23718 (gimple_omp_taskreg_clauses): Likewise.
23719 (gimple_omp_taskreg_clauses_ptr): Likewise.
23720 (gimple_omp_taskreg_set_clauses): Likewise.
23721 (gimple_omp_taskreg_child_fn): Likewise.
23722 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23723 (gimple_omp_taskreg_set_child_fn): Likewise.
23724 (gimple_omp_taskreg_data_arg): Likewise.
23725 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23726 (gimple_omp_taskreg_set_data_arg): Likewise.
23727 (gimple_omp_task_copy_fn): Likewise.
23728 (gimple_omp_task_copy_fn_ptr): Likewise.
23729 (gimple_omp_task_set_copy_fn): Likewise.
23730 (gimple_omp_task_arg_size): Likewise.
23731 (gimple_omp_task_arg_size_ptr): Likewise.
23732 (gimple_omp_task_set_arg_size): Likewise.
23733 (gimple_omp_task_arg_align): Likewise.
23734 (gimple_omp_task_arg_align_ptr): Likewise.
23735 (gimple_omp_task_set_arg_align): Likewise.
23736 (gimple_omp_single_clauses): Likewise.
23737 (gimple_omp_single_clauses_ptr): Likewise.
23738 (gimple_omp_single_set_clauses): Likewise.
23739 (gimple_omp_target_clauses): Likewise.
23740 (gimple_omp_target_clauses_ptr): Likewise.
23741 (gimple_omp_target_set_clauses): Likewise.
23742 (gimple_omp_target_child_fn): Likewise.
23743 (gimple_omp_target_child_fn_ptr): Likewise.
23744 (gimple_omp_target_set_child_fn): Likewise.
23745 (gimple_omp_target_data_arg): Likewise.
23746 (gimple_omp_target_data_arg_ptr): Likewise.
23747 (gimple_omp_target_set_data_arg): Likewise.
23748 (gimple_omp_teams_clauses): Likewise.
23749 (gimple_omp_teams_clauses_ptr): Likewise.
23750 (gimple_omp_teams_set_clauses): Likewise.
23751 (gimple_omp_sections_clauses): Likewise.
23752 (gimple_omp_sections_clauses_ptr): Likewise.
23753 (gimple_omp_sections_set_clauses): Likewise.
23754 (gimple_omp_sections_control): Likewise.
23755 (gimple_omp_sections_control_ptr): Likewise.
23756 (gimple_omp_sections_set_control): Likewise.
23757 (gimple_omp_for_set_cond): Likewise.
23758 (gimple_omp_for_cond): Likewise.
23759 (gimple_omp_atomic_store_set_val): Likewise.
23760 (gimple_omp_atomic_store_val): Likewise.
23761 (gimple_omp_atomic_store_val_ptr): Likewise.
23762 (gimple_omp_atomic_load_set_lhs): Likewise.
23763 (gimple_omp_atomic_load_lhs): Likewise.
23764 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23765 (gimple_omp_atomic_load_set_rhs): Likewise.
23766 (gimple_omp_atomic_load_rhs): Likewise.
23767 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23768 (gimple_omp_continue_control_def): Likewise.
23769 (gimple_omp_continue_control_def_ptr): Likewise.
23770 (gimple_omp_continue_set_control_def): Likewise.
23771 (gimple_omp_continue_control_use): Likewise.
23772 (gimple_omp_continue_control_use_ptr): Likewise.
23773 (gimple_omp_continue_set_control_use): Likewise.
23774 (gimple_transaction_body_ptr): Likewise.
23775 (gimple_transaction_label): Likewise.
23776 (gimple_transaction_label_ptr): Likewise.
23777 (gimple_transaction_set_body): Likewise.
23778 (gimple_transaction_set_label): Likewise.
23779
23780 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23781 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23782 * ipa-ref.c (ipa_record_reference): Likewise.
23783 * ipa-reference.c (analyze_function): Likewise.
23784 (ipa_reference_write_optimization_summary): Likewise.
23785 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23786 (address_taken_from_non_vtable_p): Likewise.
23787 (comdat_can_be_unshared_p_1): Likewise.
23788 * lto-cgraph.c (lto_output_ref): Likewise.
23789 (add_references): Likewise.
23790 (compute_ltrans_boundary): Likewise.
23791 (output_symtab): Likewise.
23792 (input_ref): Likewise.
23793 (input_cgraph_1): Likewise.
23794 (output_cgraph_opt_summary): Likewise.
23795 * lto-streamer-out.c (lto_output): Likewise.
23796 (output_symbol_p): Likewise.
23797 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23798 (lsei_start_function_in_partition): Likewise.
23799 (lsei_next_variable_in_partition): Likewise.
23800 (lsei_start_variable_in_partition): Likewise.
23801 * symtab.c (insert_to_assembler_name_hash): Likewise.
23802 (unlink_from_assembler_name_hash): Likewise.
23803 (symtab_unregister_node): Likewise.
23804 (symtab_remove_node): Likewise.
23805 (dump_symtab_node): Likewise.
23806 (verify_symtab_base): Likewise.
23807 (verify_symtab_node): Likewise.
23808 (symtab_make_decl_local): Likewise.
23809 (symtab_alias_ultimate_target): Likewise.
23810 (symtab_resolve_alias): Likewise.
23811 (symtab_get_symbol_partitioning_class): Likewise.
23812 * tree-phinodes.c (allocate_phi_node): Likewise.
23813 (reserve_phi_args_for_new_edge): Likewise.
23814 (remove_phi_args): Likewise.
23815 * varpool.c (varpool_node_for_asm): Likewise.
23816 (varpool_remove_unreferenced_decls): Likewise.
23817
23818 2014-04-23 Jeff Law <law@redhat.com>
23819
23820 PR tree-optimization/60902
23821 * tree-ssa-threadedge.c
23822 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23823 invalidate outputs from statements that do not produce useful
23824 outputs for threading.
23825
23826 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23827
23828 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23829 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23830 machine descriptions for Stack Smashing Protector.
23831
23832 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23833
23834 * aarch64.md (<optab>_rol<mode>3): New pattern.
23835 (<optab>_rolsi3_uxtw): Likewise.
23836 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23837
23838 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23839
23840 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23841 (arm_cortex_a12_tune): Likewise.
23842
23843 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23844
23845 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23846
23847 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23848
23849 * config/arm/arm.md (arm_rev16si2): New pattern.
23850 (arm_rev16si2_alt): Likewise.
23851 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23852
23853 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23854
23855 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23856 (rev16<mode>2_alt): Likewise.
23857 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23858 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23859 (aarch_rev16_shleft_mask_imm_p): Likewise.
23860 (aarch_rev16_p_1): Likewise.
23861 (aarch_rev16_p): Likewise.
23862 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23863 (aarch_rev16_shright_mask_imm_p): Likewise.
23864 (aarch_rev16_shleft_mask_imm_p): Likewise.
23865
23866 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23867
23868 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23869 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23870 rev cost.
23871 (cortex_a53_extra_costs): Likewise.
23872 (cortex_a57_extra_costs): Likewise.
23873 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23874 (cortexa7_extra_costs): Likewise.
23875 (cortexa8_extra_costs): Likewise.
23876 (cortexa12_extra_costs): Likewise.
23877 (cortexa15_extra_costs): Likewise.
23878 (v7m_extra_costs): Likewise.
23879 (arm_new_rtx_costs): Handle BSWAP.
23880
23881 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23882
23883 * config/arm/arm.c (cortexa8_extra_costs): New table.
23884 (arm_cortex_a8_tune): New tuning struct.
23885 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23886
23887 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23888
23889 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23890
23891 2014-04-23 Richard Biener <rguenther@suse.de>
23892
23893 * Makefile.in (OBJS): Remove loop-unswitch.o.
23894 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23895 * passes.def (pass_rtl_unswitch): Likewise.
23896 * loop-init.c (gate_rtl_unswitch): Likewise.
23897 (rtl_unswitch): Likewise.
23898 (pass_data_rtl_unswitch): Likewise.
23899 (pass_rtl_unswitch): Likewise.
23900 (make_pass_rtl_unswitch): Likewise.
23901 * rtl.h (reversed_condition): Likewise.
23902 (compare_and_jump_seq): Likewise.
23903 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23904 and make static.
23905 * loop-unroll.c (compare_and_jump_seq): Likewise.
23906
23907 2014-04-23 Richard Biener <rguenther@suse.de>
23908
23909 PR tree-optimization/60903
23910 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23911 commented code block.
23912 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23913 loop flags to newly created BBs and edges.
23914
23915 2014-04-23 Nick Clifton <nickc@redhat.com>
23916
23917 * config/msp430/msp430.c (msp430_handle_option): Move function
23918 to msp430-common.c
23919 (msp430_option_override): Simplify mcu and mcpu option handling.
23920 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23921 support for -mhwmult command line option.
23922 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23923 -mhwmult command line option.
23924 (msp430_hwmult_enabled): Delete.
23925 (msp43o_output_labelref): Add support for -mhwmult command line option.
23926 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23927 (umulsidi3): Likewise.
23928 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23929 (mcpu, mlarge, msmall): Likewise.
23930 (mhwmult): New option.
23931 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23932 prototype.
23933 (msp430_is_f5_mcu): Remove prototype.
23934 (msp430_use_f5_series_hwmult): Add prototype.
23935 * config/msp430/msp430-opts.h: New file.
23936 * common/config/msp430: New directory.
23937 * common/config/msp430/msp430-common.c: New file.
23938 * config.gcc (msp430): Remove target_has_targetm_common.
23939 * doc/invoke.texi: Document -mhwmult command line option.
23940
23941 2014-04-23 Nick Clifton <nickc@redhat.com>
23942
23943 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23944 default-manifest.o if it can be found in the search path.
23945 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23946
23947 2014-04-23 Terry Guo <terry.guo@arm.com>
23948
23949 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23950
23951 2014-04-23 Richard Biener <rguenther@suse.de>
23952
23953 PR middle-end/60895
23954 * tree-inline.c (declare_return_variable): Use mark_addressable.
23955
23956 2014-04-23 Richard Biener <rguenther@suse.de>
23957
23958 PR middle-end/60891
23959 * loop-init.c (loop_optimizer_init): Make sure to apply
23960 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23961
23962 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23963
23964 PR sanitizer/60275
23965 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23966 New options.
23967 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23968 if flag_sanitize_undefined_trap_on_error.
23969 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23970 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23971 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23972 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23973 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23974 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23975 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23976 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23977 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23978 * ubsan.c (ubsan_instrument_unreachable): Return
23979 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23980 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23981 if flag_sanitize_undefined_trap_on_error and
23982 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23983 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23984 instrument_bool_enum_load): Emit __builtin_trap () if
23985 flag_sanitize_undefined_trap_on_error and
23986 __builtin_handle_*_abort () if !flag_sanitize_recover.
23987 * doc/invoke.texi (-fsanitize-recover,
23988 -fsanitize-undefined-trap-on-error): Document.
23989
23990 2014-04-22 Christian Bruel <christian.bruel@st.com>
23991
23992 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23993 Force immediates to SImode.
23994
23995 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23996
23997 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23998 (lroundsfsi2): New.
23999 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
24000 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
24001 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
24002 (nios2_fpu_insn): Add entry for round.
24003 (N2FPU_NO_ERRNO_P): Define.
24004 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
24005 flag_errno_math.
24006 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
24007
24008 2014-04-22 Richard Henderson <rth@redhat.com>
24009
24010 * config/aarch64/aarch64 (addti3, subti3): New expanders.
24011 (add<GPI>3_compare0): Remove leading * from name.
24012 (add<GPI>3_carryin): Likewise.
24013 (sub<GPI>3_compare0): Likewise.
24014 (sub<GPI>3_carryin): Likewise.
24015 (<su_optab>mulditi3): New expander.
24016 (multi3): New expander.
24017 (madd<GPI>): Remove leading * from name.
24018
24019 2014-04-22 Martin Jambor <mjambor@suse.cz>
24020
24021 * cgraphclones.c (cgraph_function_versioning): Copy
24022 ipa_transforms_to_apply instead of asserting it is empty.
24023
24024 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
24025
24026 PR target/60868
24027 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
24028 on count_exp to get mode.
24029
24030 2014-04-22 Andrew Pinski <apinski@cavium.com>
24031
24032 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24033 Handle TLS for ILP32.
24034 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
24035 (tlsie_small_<mode>): this and handle PTR.
24036 (tlsie_small_sidi): New pattern.
24037 (tlsle_small): Change to an expand to handle ILP32.
24038 (tlsle_small_<mode>): New pattern.
24039 (tlsdesc_small): Rename to ...
24040 (tlsdesc_small_<mode>): this and handle PTR.
24041
24042 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24043
24044 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
24045
24046 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24047
24048 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24049 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
24050 (aarch64_types_signed_poly_qualifiers): Likewise.
24051 (aarch64_types_unsigned_signed_qualifiers): Likewise.
24052 (aarch64_types_poly_signed_qualifiers): Likewise.
24053 (TYPES_REINTERP_SS): Type macro added.
24054 (TYPES_REINTERP_SU): Likewise.
24055 (TYPES_REINTERP_SP): Likewise.
24056 (TYPES_REINTERP_US): Likewise.
24057 (TYPES_REINTERP_PS): Likewise.
24058 (aarch64_fold_builtin): New expression folding added.
24059 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
24060 Declarations removed.
24061 (REINTERP_SS): Declarations added.
24062 (REINTERP_US): Likewise.
24063 (REINTERP_PS): Likewise.
24064 (REINTERP_SU): Likewise.
24065 (REINTERP_SP): Likewise.
24066 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
24067 (vreinterpretq_p8_f64): Likewise.
24068 (vreinterpret_p16_f64): Likewise.
24069 (vreinterpretq_p16_f64): Likewise.
24070 (vreinterpret_f32_f64): Likewise.
24071 (vreinterpretq_f32_f64): Likewise.
24072 (vreinterpret_f64_f32): Likewise.
24073 (vreinterpret_f64_p8): Likewise.
24074 (vreinterpret_f64_p16): Likewise.
24075 (vreinterpret_f64_s8): Likewise.
24076 (vreinterpret_f64_s16): Likewise.
24077 (vreinterpret_f64_s32): Likewise.
24078 (vreinterpret_f64_s64): Likewise.
24079 (vreinterpret_f64_u8): Likewise.
24080 (vreinterpret_f64_u16): Likewise.
24081 (vreinterpret_f64_u32): Likewise.
24082 (vreinterpret_f64_u64): Likewise.
24083 (vreinterpretq_f64_f32): Likewise.
24084 (vreinterpretq_f64_p8): Likewise.
24085 (vreinterpretq_f64_p16): Likewise.
24086 (vreinterpretq_f64_s8): Likewise.
24087 (vreinterpretq_f64_s16): Likewise.
24088 (vreinterpretq_f64_s32): Likewise.
24089 (vreinterpretq_f64_s64): Likewise.
24090 (vreinterpretq_f64_u8): Likewise.
24091 (vreinterpretq_f64_u16): Likewise.
24092 (vreinterpretq_f64_u32): Likewise.
24093 (vreinterpretq_f64_u64): Likewise.
24094 (vreinterpret_s64_f64): Likewise.
24095 (vreinterpretq_s64_f64): Likewise.
24096 (vreinterpret_u64_f64): Likewise.
24097 (vreinterpretq_u64_f64): Likewise.
24098 (vreinterpret_s8_f64): Likewise.
24099 (vreinterpretq_s8_f64): Likewise.
24100 (vreinterpret_s16_f64): Likewise.
24101 (vreinterpretq_s16_f64): Likewise.
24102 (vreinterpret_s32_f64): Likewise.
24103 (vreinterpretq_s32_f64): Likewise.
24104 (vreinterpret_u8_f64): Likewise.
24105 (vreinterpretq_u8_f64): Likewise.
24106 (vreinterpret_u16_f64): Likewise.
24107 (vreinterpretq_u16_f64): Likewise.
24108 (vreinterpret_u32_f64): Likewise.
24109 (vreinterpretq_u32_f64): Likewise.
24110
24111 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24112
24113 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
24114 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
24115 (vreinterpret_p8_s8): Likewise.
24116 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
24117 (vreinterpret_p8_s16): Likewise.
24118 (vreinterpret_p8_s32): Likewise.
24119 (vreinterpret_p8_s64): Likewise.
24120 (vreinterpret_p8_f32): Likewise.
24121 (vreinterpret_p8_u8): Likewise.
24122 (vreinterpret_p8_u16): Likewise.
24123 (vreinterpret_p8_u32): Likewise.
24124 (vreinterpret_p8_u64): Likewise.
24125 (vreinterpret_p8_p16): Likewise.
24126 (vreinterpretq_p8_s8): Likewise.
24127 (vreinterpretq_p8_s16): Likewise.
24128 (vreinterpretq_p8_s32): Likewise.
24129 (vreinterpretq_p8_s64): Likewise.
24130 (vreinterpretq_p8_f32): Likewise.
24131 (vreinterpretq_p8_u8): Likewise.
24132 (vreinterpretq_p8_u16): Likewise.
24133 (vreinterpretq_p8_u32): Likewise.
24134 (vreinterpretq_p8_u64): Likewise.
24135 (vreinterpretq_p8_p16): Likewise.
24136 (vreinterpret_p16_s8): Likewise.
24137 (vreinterpret_p16_s16): Likewise.
24138 (vreinterpret_p16_s32): Likewise.
24139 (vreinterpret_p16_s64): Likewise.
24140 (vreinterpret_p16_f32): Likewise.
24141 (vreinterpret_p16_u8): Likewise.
24142 (vreinterpret_p16_u16): Likewise.
24143 (vreinterpret_p16_u32): Likewise.
24144 (vreinterpret_p16_u64): Likewise.
24145 (vreinterpret_p16_p8): Likewise.
24146 (vreinterpretq_p16_s8): Likewise.
24147 (vreinterpretq_p16_s16): Likewise.
24148 (vreinterpretq_p16_s32): Likewise.
24149 (vreinterpretq_p16_s64): Likewise.
24150 (vreinterpretq_p16_f32): Likewise.
24151 (vreinterpretq_p16_u8): Likewise.
24152 (vreinterpretq_p16_u16): Likewise.
24153 (vreinterpretq_p16_u32): Likewise.
24154 (vreinterpretq_p16_u64): Likewise.
24155 (vreinterpretq_p16_p8): Likewise.
24156 (vreinterpret_f32_s8): Likewise.
24157 (vreinterpret_f32_s16): Likewise.
24158 (vreinterpret_f32_s32): Likewise.
24159 (vreinterpret_f32_s64): Likewise.
24160 (vreinterpret_f32_u8): Likewise.
24161 (vreinterpret_f32_u16): Likewise.
24162 (vreinterpret_f32_u32): Likewise.
24163 (vreinterpret_f32_u64): Likewise.
24164 (vreinterpret_f32_p8): Likewise.
24165 (vreinterpret_f32_p16): Likewise.
24166 (vreinterpretq_f32_s8): Likewise.
24167 (vreinterpretq_f32_s16): Likewise.
24168 (vreinterpretq_f32_s32): Likewise.
24169 (vreinterpretq_f32_s64): Likewise.
24170 (vreinterpretq_f32_u8): Likewise.
24171 (vreinterpretq_f32_u16): Likewise.
24172 (vreinterpretq_f32_u32): Likewise.
24173 (vreinterpretq_f32_u64): Likewise.
24174 (vreinterpretq_f32_p8): Likewise.
24175 (vreinterpretq_f32_p16): Likewise.
24176 (vreinterpret_s64_s8): Likewise.
24177 (vreinterpret_s64_s16): Likewise.
24178 (vreinterpret_s64_s32): Likewise.
24179 (vreinterpret_s64_f32): Likewise.
24180 (vreinterpret_s64_u8): Likewise.
24181 (vreinterpret_s64_u16): Likewise.
24182 (vreinterpret_s64_u32): Likewise.
24183 (vreinterpret_s64_u64): Likewise.
24184 (vreinterpret_s64_p8): Likewise.
24185 (vreinterpret_s64_p16): Likewise.
24186 (vreinterpretq_s64_s8): Likewise.
24187 (vreinterpretq_s64_s16): Likewise.
24188 (vreinterpretq_s64_s32): Likewise.
24189 (vreinterpretq_s64_f32): Likewise.
24190 (vreinterpretq_s64_u8): Likewise.
24191 (vreinterpretq_s64_u16): Likewise.
24192 (vreinterpretq_s64_u32): Likewise.
24193 (vreinterpretq_s64_u64): Likewise.
24194 (vreinterpretq_s64_p8): Likewise.
24195 (vreinterpretq_s64_p16): Likewise.
24196 (vreinterpret_u64_s8): Likewise.
24197 (vreinterpret_u64_s16): Likewise.
24198 (vreinterpret_u64_s32): Likewise.
24199 (vreinterpret_u64_s64): Likewise.
24200 (vreinterpret_u64_f32): Likewise.
24201 (vreinterpret_u64_u8): Likewise.
24202 (vreinterpret_u64_u16): Likewise.
24203 (vreinterpret_u64_u32): Likewise.
24204 (vreinterpret_u64_p8): Likewise.
24205 (vreinterpret_u64_p16): Likewise.
24206 (vreinterpretq_u64_s8): Likewise.
24207 (vreinterpretq_u64_s16): Likewise.
24208 (vreinterpretq_u64_s32): Likewise.
24209 (vreinterpretq_u64_s64): Likewise.
24210 (vreinterpretq_u64_f32): Likewise.
24211 (vreinterpretq_u64_u8): Likewise.
24212 (vreinterpretq_u64_u16): Likewise.
24213 (vreinterpretq_u64_u32): Likewise.
24214 (vreinterpretq_u64_p8): Likewise.
24215 (vreinterpretq_u64_p16): Likewise.
24216 (vreinterpret_s8_s16): Likewise.
24217 (vreinterpret_s8_s32): Likewise.
24218 (vreinterpret_s8_s64): Likewise.
24219 (vreinterpret_s8_f32): Likewise.
24220 (vreinterpret_s8_u8): Likewise.
24221 (vreinterpret_s8_u16): Likewise.
24222 (vreinterpret_s8_u32): Likewise.
24223 (vreinterpret_s8_u64): Likewise.
24224 (vreinterpret_s8_p8): Likewise.
24225 (vreinterpret_s8_p16): Likewise.
24226 (vreinterpretq_s8_s16): Likewise.
24227 (vreinterpretq_s8_s32): Likewise.
24228 (vreinterpretq_s8_s64): Likewise.
24229 (vreinterpretq_s8_f32): Likewise.
24230 (vreinterpretq_s8_u8): Likewise.
24231 (vreinterpretq_s8_u16): Likewise.
24232 (vreinterpretq_s8_u32): Likewise.
24233 (vreinterpretq_s8_u64): Likewise.
24234 (vreinterpretq_s8_p8): Likewise.
24235 (vreinterpretq_s8_p16): Likewise.
24236 (vreinterpret_s16_s8): Likewise.
24237 (vreinterpret_s16_s32): Likewise.
24238 (vreinterpret_s16_s64): Likewise.
24239 (vreinterpret_s16_f32): Likewise.
24240 (vreinterpret_s16_u8): Likewise.
24241 (vreinterpret_s16_u16): Likewise.
24242 (vreinterpret_s16_u32): Likewise.
24243 (vreinterpret_s16_u64): Likewise.
24244 (vreinterpret_s16_p8): Likewise.
24245 (vreinterpret_s16_p16): Likewise.
24246 (vreinterpretq_s16_s8): Likewise.
24247 (vreinterpretq_s16_s32): Likewise.
24248 (vreinterpretq_s16_s64): Likewise.
24249 (vreinterpretq_s16_f32): Likewise.
24250 (vreinterpretq_s16_u8): Likewise.
24251 (vreinterpretq_s16_u16): Likewise.
24252 (vreinterpretq_s16_u32): Likewise.
24253 (vreinterpretq_s16_u64): Likewise.
24254 (vreinterpretq_s16_p8): Likewise.
24255 (vreinterpretq_s16_p16): Likewise.
24256 (vreinterpret_s32_s8): Likewise.
24257 (vreinterpret_s32_s16): Likewise.
24258 (vreinterpret_s32_s64): Likewise.
24259 (vreinterpret_s32_f32): Likewise.
24260 (vreinterpret_s32_u8): Likewise.
24261 (vreinterpret_s32_u16): Likewise.
24262 (vreinterpret_s32_u32): Likewise.
24263 (vreinterpret_s32_u64): Likewise.
24264 (vreinterpret_s32_p8): Likewise.
24265 (vreinterpret_s32_p16): Likewise.
24266 (vreinterpretq_s32_s8): Likewise.
24267 (vreinterpretq_s32_s16): Likewise.
24268 (vreinterpretq_s32_s64): Likewise.
24269 (vreinterpretq_s32_f32): Likewise.
24270 (vreinterpretq_s32_u8): Likewise.
24271 (vreinterpretq_s32_u16): Likewise.
24272 (vreinterpretq_s32_u32): Likewise.
24273 (vreinterpretq_s32_u64): Likewise.
24274 (vreinterpretq_s32_p8): Likewise.
24275 (vreinterpretq_s32_p16): Likewise.
24276 (vreinterpret_u8_s8): Likewise.
24277 (vreinterpret_u8_s16): Likewise.
24278 (vreinterpret_u8_s32): Likewise.
24279 (vreinterpret_u8_s64): Likewise.
24280 (vreinterpret_u8_f32): Likewise.
24281 (vreinterpret_u8_u16): Likewise.
24282 (vreinterpret_u8_u32): Likewise.
24283 (vreinterpret_u8_u64): Likewise.
24284 (vreinterpret_u8_p8): Likewise.
24285 (vreinterpret_u8_p16): Likewise.
24286 (vreinterpretq_u8_s8): Likewise.
24287 (vreinterpretq_u8_s16): Likewise.
24288 (vreinterpretq_u8_s32): Likewise.
24289 (vreinterpretq_u8_s64): Likewise.
24290 (vreinterpretq_u8_f32): Likewise.
24291 (vreinterpretq_u8_u16): Likewise.
24292 (vreinterpretq_u8_u32): Likewise.
24293 (vreinterpretq_u8_u64): Likewise.
24294 (vreinterpretq_u8_p8): Likewise.
24295 (vreinterpretq_u8_p16): Likewise.
24296 (vreinterpret_u16_s8): Likewise.
24297 (vreinterpret_u16_s16): Likewise.
24298 (vreinterpret_u16_s32): Likewise.
24299 (vreinterpret_u16_s64): Likewise.
24300 (vreinterpret_u16_f32): Likewise.
24301 (vreinterpret_u16_u8): Likewise.
24302 (vreinterpret_u16_u32): Likewise.
24303 (vreinterpret_u16_u64): Likewise.
24304 (vreinterpret_u16_p8): Likewise.
24305 (vreinterpret_u16_p16): Likewise.
24306 (vreinterpretq_u16_s8): Likewise.
24307 (vreinterpretq_u16_s16): Likewise.
24308 (vreinterpretq_u16_s32): Likewise.
24309 (vreinterpretq_u16_s64): Likewise.
24310 (vreinterpretq_u16_f32): Likewise.
24311 (vreinterpretq_u16_u8): Likewise.
24312 (vreinterpretq_u16_u32): Likewise.
24313 (vreinterpretq_u16_u64): Likewise.
24314 (vreinterpretq_u16_p8): Likewise.
24315 (vreinterpretq_u16_p16): Likewise.
24316 (vreinterpret_u32_s8): Likewise.
24317 (vreinterpret_u32_s16): Likewise.
24318 (vreinterpret_u32_s32): Likewise.
24319 (vreinterpret_u32_s64): Likewise.
24320 (vreinterpret_u32_f32): Likewise.
24321 (vreinterpret_u32_u8): Likewise.
24322 (vreinterpret_u32_u16): Likewise.
24323 (vreinterpret_u32_u64): Likewise.
24324 (vreinterpret_u32_p8): Likewise.
24325 (vreinterpret_u32_p16): Likewise.
24326 (vreinterpretq_u32_s8): Likewise.
24327 (vreinterpretq_u32_s16): Likewise.
24328 (vreinterpretq_u32_s32): Likewise.
24329 (vreinterpretq_u32_s64): Likewise.
24330 (vreinterpretq_u32_f32): Likewise.
24331 (vreinterpretq_u32_u8): Likewise.
24332 (vreinterpretq_u32_u16): Likewise.
24333 (vreinterpretq_u32_u64): Likewise.
24334 (vreinterpretq_u32_p8): Likewise.
24335 (vreinterpretq_u32_p16): Likewise.
24336
24337 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24338
24339 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
24340 Pattern extended.
24341 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
24342 (sqabs): Likewise.
24343 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
24344 (vqnegd_s64): Likewise.
24345 (vqabs_s64): Likewise.
24346 (vqabsd_s64): Likewise.
24347
24348 2014-04-22 Richard Henderson <rth@redhat.com>
24349
24350 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
24351 computation to the top of the loop.
24352
24353 2014-04-22 Renlin <renlin.li@arm.com>
24354 Jiong Wang <jiong.wang@arm.com>
24355
24356 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
24357 * config/aarch64/aarch64.c (aarch64_layout_frame)
24358 (aarch64_initial_elimination_offset): Likewise.
24359
24360 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
24361
24362 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
24363 Fix indentation.
24364
24365 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
24366
24367 * machmode.h (bitwise_mode_for_mode): Declare.
24368 * stor-layout.h (bitwise_type_for_mode): Likewise.
24369 * stor-layout.c (bitwise_mode_for_mode): New function.
24370 (bitwise_type_for_mode): Likewise.
24371 * builtins.c (fold_builtin_memory_op): Use it instead of
24372 int_mode_for_mode and build_nonstandard_integer_type.
24373
24374 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24375
24376 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
24377 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
24378 (*-*-solaris2*): Simplify.
24379 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
24380 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
24381 *-*-solaris2.9* handling.
24382
24383 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
24384 as bug.
24385 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
24386 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
24387 handling, simplify.
24388 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
24389 * configure: Regenerate.
24390
24391 * config/i386/sol2-9.h: Remove.
24392
24393 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
24394 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
24395 Remove Solaris 9 references.
24396
24397 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
24398
24399 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
24400 (floatuns<GPI:mode><GPF:mode>2): Remove.
24401 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
24402 and floatuns conversions.
24403 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
24404 and floatuns conversions.
24405 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
24406 (w1,w2): New mode attributes for inequal width conversions.
24407
24408 2014-04-22 Renlin Li <Renlin.Li@arm.com>
24409
24410 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
24411 the output asm format.
24412
24413 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24414
24415 * config/aarch64/aarch64-simd.md
24416 (aarch64_cm<optab>di): Always split.
24417 (*aarch64_cm<optab>di): New.
24418 (aarch64_cmtstdi): Always split.
24419 (*aarch64_cmtstdi): New.
24420
24421 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24422
24423 PR tree-optimization/60823
24424 * omp-low.c (ipa_simd_modify_function_body): Go through
24425 all SSA_NAMEs and for those refering to vector arguments
24426 which are going to be replaced adjust SSA_NAME_VAR and,
24427 if it is a default definition, change it into a non-default
24428 definition assigned at the beginning of function from new_decl.
24429 (ipa_simd_modify_stmt_ops): Rewritten.
24430 * tree-dfa.c (set_ssa_default_def): When removing default def,
24431 check for NULL loc instead of NULL *loc.
24432
24433 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24434
24435 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
24436 restrictions on core registers for DImode values in Thumb2.
24437
24438 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24439
24440 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
24441 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
24442
24443 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24444
24445 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
24446 (*iordi_notzesidi_di): Likewise.
24447 (*iordi_notsesidi_di): Likewise.
24448
24449 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24450
24451 * config/arm/arm-protos.h (tune_params): New struct members.
24452 * config/arm/arm.c: Initialise tune_params per processor.
24453 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24454 for speed, based on new tune_params.
24455
24456 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24457
24458 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24459 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24460 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24461 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24462 * config/aarch64/arm_neon.h (vrnd_f64): Added.
24463 (vrnda_f64): Likewise.
24464 (vrndi_f64): Likewise.
24465 (vrndm_f64): Likewise.
24466 (vrndn_f64): Likewise.
24467 (vrndp_f64): Likewise.
24468 (vrndx_f64): Likewise.
24469
24470 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24471
24472 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24473 GET_MODE_SIZE argument is enum machine_mode.
24474
24475 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24476
24477 PR target/60910
24478 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24479 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24480
24481 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
24482
24483 PR middle-end/60281
24484 * asan.c (asan_emit_stack_protection): Force the base to align to
24485 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
24486 appropriate bits if STRICT_ALIGNMENT.
24487 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24488 when asan is on.
24489 (expand_used_vars): Leave a space in the stack frame for alignment
24490 if STRICT_ALIGNMENT.
24491
24492 2014-04-21 David Malcolm <dmalcolm@redhat.com>
24493
24494 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24495 than a gimple.
24496 (gimple_store_p): Likewise.
24497 (gimple_assign_load_p): Likewise.
24498 (gimple_assign_cast_p): Likewise.
24499 (gimple_clobber_p): Likewise.
24500
24501 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24502 rather than a gimple.
24503 (gimple_assign_cast_p): Likewise.
24504
24505 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24506
24507 PR target/60735
24508 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24509 If mode is DDmode and TARGET_E500_DOUBLE allow move.
24510
24511 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24512 more debug information for E500 if -mdebug=reg.
24513
24514 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
24515
24516 PR target/60909
24517 * config/i386/i386.c (ix86_expand_builtin)
24518 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24519 register for target RTX.
24520 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24521
24522 2014-04-18 Cong Hou <congh@google.com>
24523
24524 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24525 the widen-mult pattern by handling two operands with different sizes,
24526 and operands whose size is smaller than half of the result type.
24527
24528 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24529
24530 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24531 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24532 (do_estimate_edge_time): Compute it.
24533 * ipa-inline.c (want_inline_small_function_p): Bypass
24534 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24535
24536 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24537
24538 * ipa-inline.c (spec_rem): New static variable.
24539 (dump_overall_stats): New function.
24540 (dump_inline_stats): New function.
24541
24542 2014-04-18 Richard Henderson <rth@redhat.com>
24543
24544 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24545 to GET_MODE_SIZE, not a reg_class_t.
24546
24547 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24548
24549 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24550 (vsx_xxmrglw_<mode>): Likewise.
24551
24552 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
24553
24554 PR target/60876
24555 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24556 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24557 (rs6000_init_hard_regno_mode_ok): Likewise.
24558
24559 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
24560
24561 * ipa-inline.c (inline_small_functions): Account only non-cold
24562 functions.
24563 * doc/invoke.texi (inline-unit-growth): Update documentation.
24564
24565 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
24566
24567 * config/rs6000/rs6000.md (addti3, subti3): New.
24568
24569 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
24570
24571 PR target/60863
24572 * config/i386/i386.c (ix86_expand_clear): Remove outdated
24573 comment. Check optimize_insn_for_size_p instead of
24574 optimize_insn_for_speed_p.
24575
24576 2014-04-17 Martin Jambor <mjambor@suse.cz>
24577
24578 * gimple-iterator.c (gsi_start_edge): New function.
24579 * gimple-iterator.h (gsi_start_edge): Declare.
24580 * tree-sra.c (single_non_eh_succ): New function.
24581 (disqualify_ops_if_throwing_stmt): Renamed to
24582 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
24583 having one non-EH successor BB.
24584 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24585 generate loads into replacements.
24586 (sra_modify_assign): Likewise and and also use the simple path for
24587 such statements.
24588 (sra_modify_function_body): Commit statements on edges.
24589
24590 2014-04-17 Richard Biener <rguenther@suse.de>
24591
24592 PR middle-end/60849
24593 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24594 comparison results and add clarifying comment.
24595
24596 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24597
24598 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24599 (blank_mode): Initialize it.
24600 (emit_mode_size_inline, emit_mode_nunits_inline,
24601 emit_mode_inner_inline): New functions.
24602 (emit_insn_modes_h): Call them and surround their output with
24603 #if GCC_VERSION >= 4001 ... #endif.
24604 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24605 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24606 mode_* arrays if the argument is __builtin_constant_p.
24607 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24608 is enum machine_mode.
24609
24610 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24611
24612 * passes.c (opt_pass::execute): Adjust.
24613 (pass_manager::execute_pass_mode_switching): Likewise.
24614 (early_local_passes::execute): Likewise.
24615 (execute_one_pass): Pass cfun to the pass's execute method.
24616 * tree-pass.h (opt_pass::execute): Add function * argument.
24617 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24618 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24619 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24620 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24621 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24622 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24623 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24624 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24625 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24626 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24627 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24628 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24629 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24630 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24631 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24632 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24633 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24634 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24635 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24636 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24637 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24638 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24639 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24640 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24641 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24642 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24643 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24644 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24645 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24646 Adjust.
24647
24648 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24649
24650 * passes.c (opt_pass::gate): Take function * argument.
24651 (gate_all_early_local_passes): Merge into
24652 (early_local_passes::gate): this.
24653 (gate_all_early_optimizations): Merge into
24654 (all_early_optimizations::gate): this.
24655 (gate_all_optimizations): Mege into
24656 (all_optimizations::gate): this.
24657 (gate_all_optimizations_g): Merge into
24658 (all_optimizations_g::gate): this.
24659 (gate_rest_of_compilation): Mege into
24660 (rest_of_compilation::gate): this.
24661 (gate_postreload): Merge into
24662 (postreload::gate): this.
24663 (dump_one_pass): Pass cfun to the pass's gate method.
24664 (execute_ipa_summary_passes): Likewise.
24665 (execute_one_pass): Likewise.
24666 (ipa_write_summaries_2): Likewise.
24667 (ipa_write_optimization_summaries_1): Likewise.
24668 (ipa_read_summaries_1): Likewise.
24669 (ipa_read_optimization_summaries_1): Likewise.
24670 (execute_ipa_stmt_fixups): Likewise.
24671 * tree-pass.h (opt_pass::gate): Add function * argument.
24672 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24673 combine-stack-adj.c, combine.c, compare-elim.c,
24674 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24675 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24676 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24677 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24678 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24679 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24680 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24681 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24682 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24683 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24684 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24685 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24686 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24687 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24688 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24689 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24690 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24691 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24692 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24693 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24694 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24695 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24696 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24697 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24698 var-tracking.c, vtable-verify.c, web.c: Adjust.
24699
24700 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24701
24702 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24703 * configure: Regenerate.
24704
24705 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24706
24707 * passes.c (dump_one_pass): don't check pass->has_gate.
24708 (execute_ipa_summary_passes): Likewise.
24709 (execute_one_pass): Likewise.
24710 (ipa_write_summaries_2): Likewise.
24711 (ipa_write_optimization_summaries_1): Likewise.
24712 (ipa_read_optimization_summaries_1): Likewise.
24713 (execute_ipa_stmt_fixups): Likewise.
24714 * tree-pass.h (pass_data::has_gate): Remove.
24715 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24716 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24717 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24718 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24719 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24720 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24721 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24722 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24723 gimple-low.c, gimple-ssa-isolate-paths.c,
24724 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24725 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24726 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24727 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24728 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24729 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24730 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24731 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24732 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24733 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24734 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24735 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24736 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24737 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24738 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24739 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24740 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24741 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24742 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24743 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24744 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24745 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24746 Adjust.
24747
24748 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24749
24750 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24751 declaration.
24752 * passes.c (pass_manager::register_dump_files_1): Merge into
24753 (pass_manager::register_dump_files): this, and remove its handling of
24754 properties since the pass always has the properties anyway.
24755 (pass_manager::pass_manager): Adjust.
24756
24757 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24758
24759 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24760 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24761 dealing with properties.
24762 (pass_manager::register_dump_files): Adjust.
24763
24764 2014-03-20 Mark Wielaard <mjw@redhat.com>
24765
24766 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24767 then represent the bound as normal constant value.
24768
24769 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24770
24771 PR target/60847
24772 Forward port from 4.8 branch
24773 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24774
24775 * config/i386/bmiintrin.h (_blsi_u32): New.
24776 (_blsi_u64): Ditto.
24777 (_blsr_u32): Ditto.
24778 (_blsr_u64): Ditto.
24779 (_blsmsk_u32): Ditto.
24780 (_blsmsk_u64): Ditto.
24781 (_tzcnt_u32): Ditto.
24782 (_tzcnt_u64): Ditto.
24783
24784 2014-04-17 Kito Cheng <kito@0xlab.org>
24785
24786 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24787
24788 2014-04-17 Richard Biener <rguenther@suse.de>
24789
24790 PR middle-end/60849
24791 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24792 boolean results for comparisons.
24793
24794 2014-04-17 Richard Biener <rguenther@suse.de>
24795
24796 PR tree-optimization/60836
24797 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24798 initial PHI args to be gimple values.
24799
24800 2014-04-17 Richard Biener <rguenther@suse.de>
24801
24802 PR tree-optimization/60841
24803 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24804 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24805 of stmts to SLP build.
24806 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24807 (vect_analyze_slp): Likewise.
24808 (vect_analyze_slp_instance): Likewise.
24809 (vect_build_slp_tree): Limit overall SLP tree growth.
24810 * tree-vectorizer.h (vect_analyze_data_refs,
24811 vect_analyze_slp): Adjust prototypes.
24812
24813 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24814
24815 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24816 Silvermont.
24817
24818 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24819
24820 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24821 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24822 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24823 for TARGET_SLOW_PSHUFB
24824
24825 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24826
24827 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24828 * config/i386/i386.c (intel_cost): Ditto.
24829
24830 2014-04-17 Joey Ye <joey.ye@arm.com>
24831
24832 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24833
24834 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24835
24836 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24837 with -fuse-profile.
24838
24839 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24840
24841 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24842 (type_all_derivations_known_p): New predicate.
24843 (type_all_ctors_visible_p): New predicate.
24844 (type_possibly_instantiated_p): New predicate.
24845 (get_odr_type): Compute all_derivations_known.
24846 (dump_odr_type): Dump the flag.
24847 (maybe_record_type): Cleanup.
24848 (record_target_from_binfo): Add bases_to_consider array;
24849 record bases for types w/o instances and skip CXX destructor.
24850 (possible_polymorphic_call_targets_1): Add bases_to_consider
24851 and consider_construction parameters; check if type may have instance.
24852 (get_polymorphic_call_info): Set maybe_in_construction to true
24853 when we know nothing.
24854 (record_targets_from_bases): Skip CXX destructors; they are
24855 never called for types in construction.
24856 (possible_polymorphic_call_targets): Do not record target when
24857 type may not have instance.
24858
24859 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24860
24861 PR ipa/60854
24862 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24863 external aliases alive, too.
24864
24865 2014-04-16 Andrew Pinski <apinski@cavium.com>
24866
24867 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24868 definition.
24869
24870 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24871
24872 * final.c (compute_alignments): Do not apply loop alignment to a block
24873 falling through to the exit.
24874
24875 2014-04-16 Catherine Moore <clm@codesourcery.com>
24876
24877 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24878 Adjust constraints for microMIPS store patterns.
24879
24880 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24881
24882 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24883
24884 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24885
24886 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24887 (append_use): Run at -O0.
24888 (append_vdef): Likewise.
24889 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24890 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24891
24892 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24893
24894 PR tree-optimization/60844
24895 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24896 (propagate_op_to_single_use, remove_visited_stmt_chain,
24897 linearize_expr, repropagate_negates, reassociate_bb): Use it
24898 instead of gsi_remove.
24899
24900 2014-04-16 Martin Jambor <mjambor@suse.cz>
24901
24902 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24903 ipa_transforms_to_apply.
24904 (cgraph_function_versioning): Assert that old_node has empty
24905 ipa_transforms_to_apply.
24906 * trans-mem.c (ipa_tm_create_version): Likewise.
24907 * tree-inline.c (tree_function_versioning): Do not duplicate
24908 ipa_transforms_to_apply.
24909
24910 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24911
24912 PR target/60817
24913 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24914 x86_64-*-* cases.
24915 Pass necessary as flags on 64-bit Solaris/x86.
24916 Use lowercase relocs for x86_64-*-*.
24917 * configure: Regenerate.
24918
24919 2014-04-15 Jan Hubicka <jh@suse.cz>
24920
24921 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24922 (maybe_record_node, likely_target_p): Use it.
24923
24924 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24925
24926 PR target/60839
24927 Revert following patch
24928
24929 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24930
24931 PR target/60735
24932 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24933 software floating point or no floating point registers, do not
24934 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24935 in GPRs that occurs after we tested for GPRs that would never be
24936 true.
24937
24938 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24939 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24940 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24941 specifically allow DDmode, since that does not use the SPE SIMD
24942 instructions.
24943
24944 2014-03-21 Mark Wielaard <mjw@redhat.com>
24945
24946 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24947 as unsigned or int depending on type and value used.
24948
24949 2014-04-15 Richard Biener <rguenther@suse.de>
24950
24951 PR rtl-optimization/56965
24952 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24953 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24954 ... here.
24955 * alias.c (true_dependence_1): Do not call
24956 nonoverlapping_component_refs_p.
24957 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24958 nonoverlapping_component_refs_p.
24959 (indirect_refs_may_alias_p): Likewise.
24960
24961 2014-04-15 Teresa Johnson <tejohnson@google.com>
24962
24963 * cfg.c (dump_bb_info): Fix flags check.
24964 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24965
24966 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24967
24968 PR rtl-optimization/60663
24969 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24970 avoid 0 cost.
24971
24972 2014-04-15 Richard Biener <rguenther@suse.de>
24973
24974 * lto-streamer.h (LTO_major_version): Bump to 4.
24975
24976 2014-04-15 Richard Biener <rguenther@suse.de>
24977
24978 * common.opt (lto_partition_model): New enum.
24979 (flto-partition=): Merge separate options with a single with argument,
24980 add -flto-partition=one support.
24981 * flag-types.h (enum lto_partition_model): Declare.
24982 * opts.c (finish_options): Remove duplicate -flto-partition=
24983 option check.
24984 * lto-wrapper.c (run_gcc): Adjust.
24985
24986 2014-04-15 Richard Biener <rguenther@suse.de>
24987
24988 * alias.c (ncr_compar): New function.
24989 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24990
24991 2014-04-15 Richard Biener <rguenther@suse.de>
24992
24993 * alias.c (record_component_aliases): Do not walk BINFOs.
24994
24995 2014-04-15 Richard Biener <rguenther@suse.de>
24996
24997 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24998 Add struct function argument and adjust.
24999 (find_func_aliases_for_call): Likewise.
25000 (find_func_aliases): Likewise.
25001 (find_func_clobbers): Likewise.
25002 (intra_create_variable_infos): Likewise.
25003 (compute_points_to_sets): Likewise.
25004 (ipa_pta_execute): Adjust. Do not push/pop cfun.
25005
25006 2014-04-15 Richard Biener <rguenther@suse.de>
25007
25008 * tree.c (iterative_hash_expr): Use enum tree_code_class
25009 to store TREE_CODE_CLASS.
25010 (tree_block): Likewise.
25011 (tree_set_block): Likewise.
25012 * tree.h (fold_build_pointer_plus_loc): Use
25013 convert_to_ptrofftype_loc.
25014
25015 2014-04-15 Jakub Jelinek <jakub@redhat.com>
25016
25017 PR plugins/59335
25018 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
25019 added in 4.9.
25020
25021 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
25022
25023 * cfgloop.h (struct loop): Move force_vectorize down.
25024 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
25025 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
25026 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
25027 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
25028 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
25029 * tree-core.h (enum annot_expr_kind): Add new kind values.
25030 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
25031 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
25032 kinds.
25033 * tree.def (ANNOTATE_EXPR): Tweak comment.
25034
25035 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
25036
25037 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
25038 cxa_pure_virtual).
25039
25040 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
25041
25042 * tree.h (TYPE_IDENTIFIER): Declare.
25043 * tree.c (subrange_type_for_debug_p): Use it.
25044 * godump.c (go_format_type): Likewise.
25045 * dwarf2out.c (is_cxx_auto, modified_type_die,
25046 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
25047 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
25048
25049 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
25050
25051 PR lto/60820
25052 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
25053
25054 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
25055
25056 * config/i386/i386.c (examine_argument): Return bool. Return true if
25057 parameter should be passed in memory.
25058 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
25059 (construct_container): Update calls to examine_argument.
25060 (function_arg_advance_64): Ditto.
25061 (return_in_memory_32): Merge with ix86_return_in_memory.
25062 (return_in_memory_64): Ditto.
25063 (return_in_memory_ms_64): Ditto.
25064
25065 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
25066
25067 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
25068 * coverage.c (coverage_compute_profile_id): Handle externally visible
25069 symbols.
25070
25071 2014-04-14 Martin Jambor <mjambor@suse.cz>
25072
25073 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
25074 DECL_DISREGARD_INLINE_LIMITS functions.
25075
25076 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
25077
25078 PR target/60827
25079 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
25080
25081 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
25082
25083 PR target/60827
25084 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
25085 optimize_insn_for_speed_p instead of
25086 optimize_function_for_speed_p.
25087
25088 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
25089
25090 * doc/invoke.texi (free): Document AArch64.
25091
25092 2014-04-14 Richard Biener <rguenther@suse.de>
25093
25094 PR tree-optimization/60042
25095 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
25096 (insert_into_preds_of_block): Do not prevent PHI insertion
25097 for REFERENCE exprs here ...
25098 (eliminate_dom_walker::before_dom_children): ... but prevent
25099 their use here under similar conditions when applied to the
25100 IL after PRE optimizations.
25101
25102 2014-04-14 Richard Biener <rguenther@suse.de>
25103
25104 * passes.def: Move early points-to after early SRA.
25105
25106 2014-04-14 Richard Biener <rguenther@suse.de>
25107
25108 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
25109 check for which sign-changes we allow when forwarding
25110 a converted value into a switch.
25111
25112 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
25113
25114 * stor-layout.c (place_field): Finalize non-constant offset for the
25115 field, if any.
25116
25117 2014-04-14 Richard Biener <rguenther@suse.de>
25118
25119 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
25120 as argument.
25121 (expand_switch_using_bit_tests_p): Likewise.
25122 (process_switch): Compute and pass on speed_p based on the
25123 switch stmt.
25124 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
25125 optimize_bb_for_speed_p.
25126
25127 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
25128
25129 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
25130 * function.h (struct function): Rename has_force_vect_loops into
25131 has_force_vectorize_loops.
25132 * lto-streamer-in.c (input_cfg): Adjust for renaming.
25133 (input_struct_function_base): Likewise.
25134 * lto-streamer-out.c (output_cfg): Likewise.
25135 (output_struct_function_base): Likewise.
25136 * omp-low.c (expand_omp_simd): Likewise.
25137 * tree-cfg.c (move_sese_region_to_fn): Likewise.
25138 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
25139 (version_loop_for_if_conversion): Likewise.
25140 (tree_if_conversion): Likewise.
25141 (main_tree_if_conversion): Likewise.
25142 (gate_tree_if_conversion): Likewise.
25143 * tree-inline.c (copy_loops): Likewise.
25144 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
25145 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
25146 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25147 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
25148 * tree-vectorizer.c (vectorize_loops): Likewise.
25149 * tree-vectorizer.h (unlimited_cost_model): Likewise.
25150
25151 2014-04-14 Richard Biener <rguenther@suse.de>
25152
25153 PR lto/60720
25154 * lto-streamer-out.c (wrap_refs): New function.
25155 (lto_output): Wrap symbol references in global initializes in
25156 type-preserving MEM_REFs.
25157
25158 2014-04-14 Christian Bruel <christian.bruel@st.com>
25159
25160 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
25161
25162 2014-04-14 Christian Bruel <christian.bruel@st.com>
25163
25164 * config/sh/sh.md (setmemqi): New expand pattern.
25165 * config/sh/sh.h (CLEAR_RATIO): Define.
25166 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
25167 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
25168
25169 2014-04-14 Richard Biener <rguenther@suse.de>
25170
25171 PR middle-end/55022
25172 * fold-const.c (negate_expr_p): Don't negate directional rounding
25173 division.
25174 (fold_negate_expr): Likewise.
25175
25176 2014-04-14 Richard Biener <rguenther@suse.de>
25177
25178 PR tree-optimization/59817
25179 PR tree-optimization/60453
25180 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
25181 recursion to catch all CHRECs in the scalar evolution and restrict
25182 the predicate for the remains appropriately.
25183
25184 2014-04-12 Catherine Moore <clm@codesourcery.com>
25185
25186 * config/mips/constraints.md: Add new register constraint "kb".
25187 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
25188 (*movhi_internal): Likewise.
25189 (*movqi_internal): Likewise.
25190 * config/mips/mips.h (M16_STORE_REGS): New register class.
25191 (REG_CLASS_NAMES): Add M16_STORE_REGS.
25192 (REG_CLASS_CONTENTS): Likewise.
25193 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
25194
25195 2014-04-11 Tobias Burnus <burnus@net-b.de>
25196
25197 PR c/60194
25198 * doc/invoke.texi (-Wformat-signedness): Document it.
25199 (Wformat=2): Mention that this enables -Wformat-signedness.
25200
25201 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
25202
25203 * common/config/epiphany/epiphany-common.c
25204 (epiphany_option_optimization_table): Enable section anchors by
25205 default at -O1 or higher.
25206 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
25207 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
25208 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
25209 carries no extra cost.
25210 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
25211 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
25212 * config/epiphany/predicates.md (memclob_operand): New predicate.
25213 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
25214 Use memclob_operand predicate and X constraint for operand 3.
25215
25216 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
25217
25218 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
25219 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
25220 its operands.
25221
25222 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
25223
25224 PR rtl-optimization/60651
25225 * mode-switching.c (optimize_mode_switching): Make sure to emit
25226 sets of a lower numbered entity before sets of a higher numbered
25227 entity to a mode of the same or lower priority.
25228 When creating a seginfo for a basic block that starts with a code
25229 label, move the insertion point past the code label.
25230 (new_seginfo): Document and enforce requirement that
25231 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
25232 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
25233 * doc/tm.texi: Regenerate.
25234
25235 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
25236
25237 PR target/60811
25238 * config/arc/arc.c (arc_save_restore): Fix assert typo.
25239
25240 2013-04-11 Jakub Jelinek <jakub@redhat.com>
25241
25242 * BASE-VER: Set to 4.10.0.
25243
25244 2014-04-11 Tobias Burnus <burnus@net-b.de>
25245
25246 PR other/59055
25247 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
25248 * doc/gcc.texi (Service): Update description in the @menu
25249 * doc/invoke.texi (Option Summary): Remove misplaced and
25250 duplicated @menu.
25251
25252 2014-04-11 Steve Ellcey <sellcey@mips.com>
25253 Jakub Jelinek <jakub@redhat.com>
25254
25255 PR middle-end/60556
25256 * expr.c (convert_move): Use emit_store_flag_force instead of
25257 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
25258 argument to it.
25259
25260 2014-04-11 Richard Biener <rguenther@suse.de>
25261
25262 PR middle-end/60797
25263 * varasm.c (assemble_alias): Avoid endless error reporting
25264 recursion by setting TREE_ASM_WRITTEN.
25265
25266 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25267
25268 * config/s390/s390.md: Add a splitter for NOT rtx.
25269
25270 2014-04-11 Jakub Jelinek <jakub@redhat.com>
25271
25272 PR rtl-optimization/60663
25273 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
25274
25275 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
25276 Jakub Jelinek <jakub@redhat.com>
25277
25278 PR lto/60567
25279 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
25280 flag from decl_node to node.
25281
25282 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25283
25284 PR debug/60655
25285 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
25286 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
25287 ameliorating the cases where it can be.
25288
25289 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
25290
25291 Revert
25292 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
25293
25294 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25295 (loadsync_<mode>): Change mode.
25296 (load_quadpti, store_quadpti): New.
25297 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25298 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25299 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
25300
25301 2014-04-09 Cong Hou <congh@google.com>
25302
25303 PR testsuite/60773
25304 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
25305 documentation.
25306
25307 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25308
25309 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
25310 instead of vnor to exploit possible fusion opportunity in the
25311 future.
25312 (altivec_expand_vec_perm_const_le): Likewise.
25313
25314 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
25315
25316 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25317 (loadsync_<mode>): Change mode.
25318 (load_quadpti, store_quadpti): New.
25319 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25320 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25321
25322 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
25323
25324 PR target/60763
25325 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
25326 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
25327 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
25328
25329 2014-04-08 Richard Biener <rguenther@suse.de>
25330
25331 PR middle-end/60706
25332 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
25333 a 64bit widest int print double-int similar to on HWI64 hosts.
25334
25335 2014-04-08 Richard Biener <rguenther@suse.de>
25336
25337 PR tree-optimization/60785
25338 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
25339 default defs properly.
25340
25341 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
25342
25343 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
25344 (Weffc++): Likewise.
25345
25346 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
25347
25348 * ipa-devirt.c (maybe_record_node): When node is not recorded,
25349 set completep to false rather than true.
25350
25351 2014-04-07 Douglas B Rupp <rupp@adacore.com>
25352
25353 PR target/60504
25354 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
25355 ARM_TARGET2_DWARF_FORMAT.
25356
25357 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
25358
25359 PR target/60609
25360 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
25361 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
25362 ADDR_DIFF_VEC.
25363
25364 2014-04-07 Richard Biener <rguenther@suse.de>
25365
25366 PR tree-optimization/60766
25367 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
25368 (may_eliminate_iv): Convert cand_value_at result to desired type.
25369
25370 2014-04-07 Jason Merrill <jason@redhat.com>
25371
25372 PR c++/60731
25373 * common.opt (-fno-gnu-unique): Add.
25374 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
25375
25376 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25377
25378 * haifa-sched.c: Fix outdated function reference and minor
25379 grammar errors in introductory comment.
25380
25381 2014-04-07 Richard Biener <rguenther@suse.de>
25382
25383 PR middle-end/60750
25384 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
25385 for noreturn calls.
25386 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
25387
25388 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
25389
25390 PR debug/55794
25391 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
25392 size accounting for thunks.
25393 (pa_asm_output_mi_thunk): Use final_start_function() and
25394 final_end_function() to output function start and end directives.
25395
25396 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
25397
25398 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
25399 device specific ISA/ feature information. Remove short_sp and
25400 errata_skip ds. Add avr_device_specific_features enum to have device
25401 specific info.
25402 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
25403 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
25404 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
25405 updated device specific info.
25406 * config/avr/avr-mcus.def: Merge device specific details to
25407 dev_attribute field.
25408 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
25409 errata_skip.
25410 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
25411 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
25412 assembler if RMW isa supported by current device.
25413 * config/avr/genmultilib.awk: Update as device info structure changed.
25414 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
25415
25416 2014-04-04 Cong Hou <congh@google.com>
25417
25418 PR tree-optimization/60656
25419 * tree-vect-stmts.c (supportable_widening_operation):
25420 Fix a bug that elements in a vector with vect_used_by_reduction
25421 property are incorrectly reordered when the operation on it is not
25422 consistant with the one in reduction operation.
25423
25424 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
25425
25426 PR rtl-optimization/60155
25427 * gcse.c (record_set_data): New function.
25428 (single_set_gcse): New function.
25429 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
25430 (hoist_code): Likewise.
25431 (get_pressure_class_and_nregs): Likewise.
25432
25433 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
25434
25435 * explow.c (probe_stack_range): Emit a final optimization blockage.
25436
25437 2014-04-04 Anthony Green <green@moxielogic.com>
25438
25439 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
25440 typos.
25441
25442 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
25443
25444 PR ipa/59626
25445 * lto-cgraph.c (input_overwrite_node): Check that partitioning
25446 flags are set only during streaming.
25447 * ipa.c (process_references, walk_polymorphic_call_targets,
25448 symtab_remove_unreachable_nodes): Drop bodies of always inline
25449 after early inlining.
25450 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25451
25452 2014-04-04 Jakub Jelinek <jakub@redhat.com>
25453 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25454
25455 PR debug/60655
25456 * dwarf2out.c (const_ok_for_output_1): Reject expressions
25457 containing a NOT.
25458
25459 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25460
25461 PR bootstrap/60743
25462 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25463 duration.
25464 (cortex_a53_fdivd): Likewise.
25465
25466 2014-04-04 Martin Jambor <mjambor@suse.cz>
25467
25468 PR ipa/60640
25469 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25470 Adjust all callers.
25471 * cgraph.c (clone_of_p): Also return true if thunks match.
25472 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25473 cgraph_function_or_thunk_node and an obsolete comment.
25474 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25475 file.
25476 (build_function_decl_skip_args): Likewise.
25477 (set_new_clone_decl_and_node_flags): New function.
25478 (duplicate_thunk_for_node): Likewise.
25479 (redirect_edge_duplicating_thunks): Likewise.
25480 (cgraph_clone_node): New parameter args_to_skip, pass it to
25481 redirect_edge_duplicating_thunks which is called instead of
25482 cgraph_redirect_edge_callee.
25483 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25484 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25485
25486 2014-04-04 Jeff Law <law@redhat.com>
25487
25488 PR target/60657
25489 * config/arm/predicates.md (const_int_I_operand): New predicate.
25490 (const_int_M_operand): Similarly.
25491 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25492 const_int_operand.
25493 (insv_t2, extv_reg, extzv_t2): Likewise.
25494 (load_multiple_with_writeback): Similarly for const_int_I_operand.
25495 (pop_multiple_with_writeback_and_return): Likewise.
25496 (vfp_pop_multiple_with_writeback): Likewise
25497
25498 2014-04-04 Richard Biener <rguenther@suse.de>
25499
25500 PR ipa/60746
25501 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25502 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25503 non-GIMPLE_LABELs.
25504 * gimplify.h (gimple_add_tmp_var_fn): Declare.
25505 * gimplify.c (gimple_add_tmp_var_fn): New function.
25506 * gimple-expr.h (create_tmp_reg_fn): Declare.
25507 * gimple-expr.c (create_tmp_reg_fn): New function.
25508 * gimple-low.c (record_vars_into): Don't change cfun.
25509 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25510 code generation without cfun.
25511
25512 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
25513
25514 PR bootstrap/60719
25515 * Makefile.in (install-driver): Fix shell scripting.
25516
25517 2014-04-03 Cong Hou <congh@google.com>
25518
25519 PR tree-optimization/60505
25520 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25521 threshold of number of iterations below which no vectorization
25522 will be done.
25523 * tree-vect-loop.c (new_loop_vec_info):
25524 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25525 * tree-vect-loop.c (vect_analyze_loop_operations):
25526 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25527 * tree-vect-loop.c (vect_transform_loop):
25528 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25529 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25530 of iterations of the loop and see if we should build the epilogue.
25531
25532 2014-04-03 Richard Biener <rguenther@suse.de>
25533
25534 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25535 (streamer_tree_cache_create): Adjust.
25536 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25537 to allow optional nodes array.
25538 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25539 (streamer_tree_cache_append): Likewise.
25540 (streamer_tree_cache_create): Create nodes array optionally
25541 as specified by parameter.
25542 * lto-streamer-out.c (create_output_block): Avoid maintaining
25543 the node array in the writer cache.
25544 (DFS_write_tree): Remove assertion.
25545 (produce_asm_for_decls): Free the out decl state hash table early.
25546 * lto-streamer-in.c (lto_data_in_create): Adjust for
25547 streamer_tree_cache_create prototype change.
25548
25549 2014-04-03 Richard Biener <rguenther@suse.de>
25550
25551 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25552 set TREE_CHAIN to NULL_TREE.
25553
25554 2014-04-03 Richard Biener <rguenther@suse.de>
25555
25556 PR tree-optimization/60740
25557 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25558 over all GIMPLE_COND operands.
25559
25560 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
25561
25562 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25563 (Weffc++): Remove Scott's numbering, merge lists and reference
25564 Wnon-virtual-dtor.
25565
25566 2014-04-03 Nick Clifton <nickc@redhat.com>
25567
25568 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25569 properly.
25570
25571 2014-04-03 Martin Jambor <mjambor@suse.cz>
25572
25573 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25574 mention gcc_unreachable before failing.
25575 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25576 removed symbols.
25577
25578 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
25579
25580 PR ipa/60659
25581 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25582 inconsistent code and instead mark the context inconsistent.
25583 (possible_polymorphic_call_targets): For inconsistent contexts
25584 return empty complete list.
25585
25586 2014-04-02 Anthony Green <green@moxielogic.com>
25587
25588 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25589 (extendqisi2, extendhisi2): Define.
25590 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25591 (WCHAR_TYPE): Change to unsigned int.
25592
25593 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25594
25595 PR tree-optimization/60733
25596 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25597 insertion point for PHI candidates to be the end of the feeding
25598 block for the PHI argument.
25599
25600 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
25601
25602 PR rtl-optimization/60650
25603 * lra-constraints.c (process_alt_operands): Decrease reject for
25604 earlyclobber matching.
25605
25606 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25607
25608 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25609
25610 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25611
25612 * config/spu/spu.c (pad_bb): Do not crash when the last
25613 insn is CODE_FOR_blockage.
25614
25615 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25616
25617 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25618 lies outside the target mode.
25619
25620 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25621
25622 PR target/60735
25623 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25624 software floating point or no floating point registers, do not
25625 allow any type in the FPRs. Eliminate a test for SPE SIMD types
25626 in GPRs that occurs after we tested for GPRs that would never be
25627 true.
25628
25629 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25630 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25631 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
25632 specifically allow DDmode, since that does not use the SPE SIMD
25633 instructions.
25634
25635 2014-04-02 Richard Biener <rguenther@suse.de>
25636
25637 PR middle-end/60729
25638 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25639 MODE_INTs. Properly use negv_optab.
25640 (expand_abs): Likewise.
25641
25642 2014-04-02 Richard Biener <rguenther@suse.de>
25643
25644 PR bootstrap/60719
25645 * Makefile.in (install-driver): Guard extra installs with special
25646 names properly.
25647
25648 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25649
25650 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25651 Document vec_vgbbd.
25652
25653 2014-04-01 Richard Henderson <rth@redhat.com>
25654
25655 PR target/60704
25656 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25657 alternative enabled before register allocation.
25658
25659 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25660
25661 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25662 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25663 typo.
25664 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25665 (nios2_got_address): Update nios2_large_got_address call site.
25666 (nios2_delegitimize_address): New function.
25667 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25668 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25669 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25670
25671 2014-04-01 Martin Husemann <martin@duskware.de>
25672
25673 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25674 for -mabi=32.
25675
25676 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25677
25678 PR rtl-optimization/60604
25679 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25680 check from register_operand.
25681 (register_operand): Redefine in terms of general_operand.
25682 (nonmemory_operand): Use register_operand for the non-constant cases.
25683
25684 2014-04-01 Richard Biener <rguenther@suse.de>
25685
25686 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25687
25688 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25689
25690 * doc/invoke.texi (mapp-regs): Clarify.
25691
25692 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25693
25694 * config/i386/avx512fintrin.h (__v32hi): Define type.
25695 (__v64qi): Likewise.
25696 (_mm512_set1_epi8): Define.
25697 (_mm512_set1_epi16): Define.
25698 (_mm512_set4_epi32): Define.
25699 (_mm512_set4_epi64): Define.
25700 (_mm512_set4_pd): Define.
25701 (_mm512_set4_ps): Define.
25702 (_mm512_setr4_epi64): Define.
25703 (_mm512_setr4_epi32): Define.
25704 (_mm512_setr4_pd): Define.
25705 (_mm512_setr4_ps): Define.
25706 (_mm512_setzero_epi32): Define.
25707
25708 2014-03-31 Martin Jambor <mjambor@suse.cz>
25709
25710 PR middle-end/60647
25711 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25712 callsite_arguments_match_p. Updated all callers. Also check types of
25713 corresponding formal parameters and actual arguments.
25714 (not_all_callers_have_enough_arguments_p) Renamed to
25715 some_callers_have_mismatched_arguments_p.
25716
25717 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25718
25719 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25720
25721 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25722
25723 PR target/60034
25724 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25725 section anchor.
25726
25727 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25728
25729 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25730 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25731 Split out
25732 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25733 Use FMAMODE_NOVF512 mode iterator.
25734 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25735 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25736 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25737 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25738 Split out
25739 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25740 Use VF_128_256 mode iterator.
25741 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25742 Ditto.
25743
25744 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25745
25746 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25747 static chain if needed.
25748
25749 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25750
25751 PR target/60697
25752 * lra-constraints.c (index_part_to_reg): New.
25753 (process_address): Use it.
25754
25755 2014-03-27 Jeff Law <law@redhat.com>
25756 Jakub Jelinek <jakub@redhat.com>
25757
25758 PR target/60648
25759 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25760 gen_rtx_{PLUS,MULT} to build up the address expression.
25761
25762 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25763 creating non-canonical RTL.
25764
25765 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25766
25767 PR ipa/60243
25768 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25769 functions; reorganize to make cheap checks first.
25770 (inline_small_functions): Do not estimate growth when dumping;
25771 it is expensive.
25772 * ipa-inline.h (inline_summary): Add min_size.
25773 (growth_likely_positive): New function.
25774 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25775 (set_cond_stmt_execution_predicate): Cleanup.
25776 (estimate_edge_size_and_time): Compute min_size.
25777 (estimate_calls_size_and_time): Likewise.
25778 (estimate_node_size_and_time): Likewise.
25779 (inline_update_overall_summary): Update min_size.
25780 (do_estimate_edge_time): Likewise.
25781 (do_estimate_edge_size): Update.
25782 (do_estimate_edge_hints): Update.
25783 (growth_likely_positive): New function.
25784
25785 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25786
25787 PR target/60693
25788 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25789 also if addr has VOIDmode.
25790
25791 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25792
25793 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25794 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25795 Declare extern.
25796 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25797 instructions as well as AdvancedSIMD loads.
25798
25799 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25800
25801 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25802 Use crypto_aese type.
25803 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25804 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25805 crypto_aese, crypto_aesmc. Move to types.md.
25806 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25807 crypto_aesmc.
25808 * config/arm/iterators.md (crypto_type): Likewise.
25809
25810 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25811
25812 * cgraph.c: Include expr.h and tree-dfa.h.
25813 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25814 remove LHS.
25815
25816 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25817
25818 PR target/60675
25819 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25820 regs from checking multi-reg pseudos.
25821
25822 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25823
25824 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25825
25826 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25827
25828 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25829 if it would clobber the stack pointer, even temporarily.
25830
25831 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25832
25833 * mode-switching.c: Make small adjustments to the top comment.
25834
25835 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25836
25837 * config/rs6000/constraints.md (wD constraint): New constraint to
25838 match the constant integer to get the top DImode/DFmode out of a
25839 vector in a VSX register.
25840
25841 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25842 match the constant integer to get the top DImode/DFmode out of a
25843 vector in a VSX register.
25844
25845 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25846 for ISA 2.07.
25847
25848 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25849 vbpermq builtins.
25850
25851 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25852 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25853
25854 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25855 Optimize vec_extract of 64-bit values, where the value being
25856 extracted is in the top word, where we can use scalar
25857 instructions. Add direct move and store support. Combine the big
25858 endian/little endian vector select load support into a single insn.
25859 (vsx_extract_<mode>_internal1): Likewise.
25860 (vsx_extract_<mode>_internal2): Likewise.
25861 (vsx_extract_<mode>_load): Likewise.
25862 (vsx_extract_<mode>_store): Likewise.
25863 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25864 combined into vsx_extract_<mode>_load.
25865 (vsx_extract_<mode>_one_le): Likewise.
25866
25867 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25868 define the top 64-bit vector element.
25869
25870 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25871 constraint.
25872
25873 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25874 Document vec_vbpermq builtin.
25875
25876 PR target/60672
25877 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25878 enable use of xxsldwi and xxpermdi builtin functions.
25879 (vec_xxpermdi): Likewise.
25880
25881 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25882 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25883
25884 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25885
25886 PR rtl-optimization/60650
25887 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25888 first_p. Use it.
25889 (find_spills_for): New.
25890 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25891 Spill all pseudos on the second iteration.
25892
25893 2014-03-27 Marek Polacek <polacek@redhat.com>
25894
25895 PR c/50347
25896 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25897 types.
25898
25899 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25900
25901 * config/s390/s390.c (s390_can_use_return_insn): Check for
25902 call-saved FPRs on 31 bit.
25903
25904 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25905
25906 PR middle-end/60682
25907 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25908 if they need regimplification, just drop them instead of
25909 calling gimple_regimplify_operands on them.
25910
25911 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25912
25913 PR target/60580
25914 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25915 (aarch64_frame_pointer_required): Adjust logic.
25916 (aarch64_can_eliminate): Adjust logic.
25917 (aarch64_override_options_after_change): Adjust logic.
25918
25919 2014-03-27 Dehao Chen <dehao@google.com>
25920
25921 * ipa-inline.c (early_inliner): Update node's inline info.
25922
25923 2014-03-26 Dehao Chen <dehao@google.com>
25924
25925 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25926 compiler inserted conditional jumps for NAN float check.
25927
25928 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25929
25930 * ubsan.h (ubsan_create_data): Change second argument's type
25931 to const location_t *.
25932 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25933 _("<unknown>").
25934 (ubsan_create_data): Change second argument to const location_t *PLOC.
25935 Create Loc field whenever PLOC is non-NULL.
25936 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25937 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25938 callers.
25939
25940 PR other/59545
25941 * real.c (real_to_integer2): Change type of low to UHWI.
25942
25943 2014-03-26 Tobias Burnus <burnus@net-b.de>
25944
25945 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25946 (CILK_SELF_SPECS): New define.
25947 (driver_self_specs): Use it.
25948
25949 2014-03-26 Richard Biener <rguenther@suse.de>
25950
25951 * tree-pretty-print.c (percent_K_format): Implement special
25952 case for LTO and its stripped down BLOCK tree.
25953
25954 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25955
25956 PR sanitizer/60636
25957 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25958
25959 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25960 one range is range_int_cst_p, but not both, at least optimize
25961 addition/subtraction of 0 and multiplication by 0 or 1.
25962 * gimple-fold.c (gimple_fold_call): Fold
25963 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25964 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25965 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25966
25967 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25968
25969 PR rtl-optimization/60452
25970 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25971 <case REG>: Return 1 for invalid offsets from the frame pointer.
25972
25973 2014-03-26 Marek Polacek <polacek@redhat.com>
25974
25975 PR c/37428
25976 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25977 a structure/union.
25978
25979 2014-03-26 Marek Polacek <polacek@redhat.com>
25980
25981 PR c/39525
25982 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25983 field members.
25984
25985 2014-03-26 Marek Polacek <polacek@redhat.com>
25986
25987 PR other/59545
25988 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25989 multiplication in unsigned type.
25990
25991 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25992
25993 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25994
25995 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25996
25997 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25998
25999 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
26000
26001 PR ipa/60315
26002 * cif-code.def (UNREACHABLE) New code.
26003 * ipa-inline.c (inline_small_functions): Skip edges to
26004 __builtlin_unreachable.
26005 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
26006 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
26007 predicate to __bulitin_unreachable.
26008 (set_cond_stmt_execution_predicate): Fix issue when
26009 invert_tree_comparison returns ERROR_MARK.
26010 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
26011 propagate to inline clones.
26012 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
26013 to unreachable.
26014 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
26015 * cgraphclones.c (cgraph_clone_node): If call destination is already
26016 ureachable, do not redirect it back.
26017 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
26018 unreachable.
26019
26020 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
26021
26022 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
26023 Do not modify inline clones.
26024
26025 2014-03-25 Jakub Jelinek <jakub@redhat.com>
26026
26027 * config/i386/i386.md (general_sext_operand): New mode attr.
26028 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
26029 don't generate (sign_extend (const_int)).
26030 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
26031 operands[2]. Use We constraint instead of <i> and
26032 <general_sext_operand> predicate instead of <general_operand>.
26033 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
26034 * config/i386/constraints.md (We): New constraint.
26035 * config/i386/predicates.md (x86_64_sext_operand,
26036 sext_operand): New predicates.
26037
26038 2014-03-25 Martin Jambor <mjambor@suse.cz>
26039
26040 PR ipa/60600
26041 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
26042 inconsistent devirtualizations to __builtin_unreachable.
26043
26044 2014-03-25 Marek Polacek <polacek@redhat.com>
26045
26046 PR c/35449
26047 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
26048
26049 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
26050
26051 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
26052 order of elements for big-endian.
26053
26054 2014-03-25 Richard Biener <rguenther@suse.de>
26055
26056 PR middle-end/60635
26057 * gimplify-me.c (gimple_regimplify_operands): Update the
26058 re-gimplifed stmt.
26059
26060 2014-03-25 Martin Jambor <mjambor@suse.cz>
26061
26062 PR ipa/59176
26063 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
26064 (lto_output_varpool_node): Likewise.
26065 (input_overwrite_node): Likewise.
26066 (input_varpool_node): Likewise.
26067
26068 2014-03-25 Richard Biener <rguenther@suse.de>
26069
26070 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
26071 (run_gcc): Likewise.
26072
26073 2014-03-25 Jakub Jelinek <jakub@redhat.com>
26074
26075 * combine.c (simplify_compare_const): Add MODE argument.
26076 Handle mode_width 0 as very large mode_width.
26077 (try_combine, simplify_comparison): Adjust callers.
26078
26079 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
26080 type to avoid signed integer overflow.
26081 * explow.c (plus_constant): Likewise.
26082
26083 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
26084
26085 * doc/generic.texi: Correct typos.
26086
26087 2014-03-24 Tobias Burnus <burnus@net-b.de>
26088
26089 * doc/invoke.texi (-flto): Expand section about
26090 using static libraries with LTO.
26091
26092 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26093
26094 PR rtl-optimization/60501
26095 * optabs.def (addptr3_optab): New optab.
26096 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
26097 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
26098 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
26099
26100 * lra.c (emit_add3_insn): Use the addptr pattern if available.
26101
26102 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
26103
26104 2014-03-24 Ulrich Drepper <drepper@gmail.com>
26105
26106 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
26107 _mm512_set1_pd.
26108
26109 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
26110 (_mm256_undefined_ps): Define.
26111 (_mm256_undefined_pd): Define.
26112 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
26113 (_mm_undefined_pd): Define.
26114 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
26115 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
26116 (_mm512_undefined_ps): Define.
26117 (_mm512_undefined_pd): Define.
26118 Use _mm*_undefined_*.
26119 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
26120
26121 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
26122
26123 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
26124 (lshr_simd): DI mode added.
26125 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
26126 (aarch64_ushr_simddi): Likewise.
26127 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
26128 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
26129 (vshrd_n_u64): Likewise.
26130
26131 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26132
26133 * Makefile.in (s-macro_list): Depend on cc1.
26134
26135 2014-03-23 Teresa Johnson <tejohnson@google.com>
26136
26137 * ipa-utils.c (ipa_print_order): Use specified dump file.
26138
26139 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
26140
26141 PR rtl-optimization/60601
26142 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
26143
26144 * gcc.c (eval_spec_function): Initialize save_growing_value.
26145
26146 2014-03-22 Jakub Jelinek <jakub@redhat.com>
26147
26148 PR sanitizer/60613
26149 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
26150 code == MINUS_EXPR, never swap op0 with op1.
26151
26152 * toplev.c (init_local_tick): Avoid signed integer multiplication
26153 overflow.
26154 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
26155 shift by first operand's bitsize.
26156
26157 2014-03-21 Jakub Jelinek <jakub@redhat.com>
26158
26159 PR target/60610
26160 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
26161 redefine to 1 or 0.
26162 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
26163 TARGET_ISA_64BIT_P(x).
26164
26165 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26166
26167 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
26168 pattern for vector nor instead of subtract from splat(-1).
26169 (altivec_expand_vec_perm_const_le): Likewise.
26170
26171 2014-03-21 Richard Henderson <rth@twiddle.net>
26172
26173 PR target/60598
26174 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
26175 related insns after epilogue_completed.
26176
26177 2014-03-21 Martin Jambor <mjambor@suse.cz>
26178
26179 PR ipa/59176
26180 * cgraph.h (symtab_node): New flag body_removed.
26181 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
26182 when removing bodies.
26183 * symtab.c (dump_symtab_base): Dump body_removed flag.
26184 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
26185 had their bodies removed.
26186
26187 2014-03-21 Martin Jambor <mjambor@suse.cz>
26188
26189 PR ipa/60419
26190 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
26191 in the border.
26192
26193 2014-03-21 Richard Biener <rguenther@suse.de>
26194
26195 PR tree-optimization/60577
26196 * tree-core.h (struct tree_base): Document nothrow_flag use
26197 in DECL_NONALIASED.
26198 * tree.h (DECL_NONALIASED): New.
26199 (may_be_aliased): Adjust.
26200 * coverage.c (build_var): Set DECL_NONALIASED.
26201
26202 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
26203
26204 * expr.c (expand_expr_real_1): Remove outdated comment.
26205
26206 2014-03-20 Jakub Jelinek <jakub@redhat.com>
26207
26208 PR middle-end/60597
26209 * ira.c (adjust_cleared_regs): Call copy_rtx on
26210 *reg_equiv[REGNO (loc)].src_p before passing it to
26211 simplify_replace_fn_rtx.
26212
26213 PR target/60568
26214 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
26215 into CONST, put pic register as first operand of PLUS. Use
26216 gen_const_mem for both 32-bit and 64-bit PIC got loads.
26217
26218 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26219
26220 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
26221
26222 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
26223
26224 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
26225 around for store forwarding issue in the FPU on the UT699.
26226 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
26227 loads and operations if -mfix-ut699 is specified.
26228 (divtf3_hq): Tweak attribute.
26229 (sqrttf2_hq): Likewise.
26230
26231 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
26232
26233 * calls.c (store_one_arg): Remove incorrect const qualification on the
26234 type of the temporary.
26235 * cfgexpand.c (expand_return): Likewise.
26236 * expr.c (expand_constructor): Likewise.
26237 (expand_expr_real_1): Likewise.
26238
26239 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26240
26241 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
26242 of parts.
26243
26244 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
26245
26246 PR target/60039
26247 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
26248
26249 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
26250
26251 * config/arm/aarch-common-protos.h
26252 (alu_cost_table): Fix spelling of "extend".
26253 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
26254
26255 2014-03-19 Richard Biener <rguenther@suse.de>
26256
26257 PR middle-end/60553
26258 * tree-core.h (tree_type_common): Re-order pointer members
26259 to reduce recursion depth during GC walks.
26260
26261 2014-03-19 Marek Polacek <polacek@redhat.com>
26262
26263 PR sanitizer/60569
26264 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
26265 before accessing it.
26266
26267 2014-03-19 Richard Biener <rguenther@suse.de>
26268
26269 PR lto/59543
26270 * lto-streamer-in.c (input_function): In WPA stage do not drop
26271 debug stmts.
26272
26273 2014-03-19 Jakub Jelinek <jakub@redhat.com>
26274
26275 PR tree-optimization/60559
26276 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
26277 with build_zero_cst assignment.
26278
26279 2014-03-18 Kai Tietz <ktietz@redhat.com>
26280
26281 PR rtl-optimization/56356
26282 * sdbout.c (sdbout_parms): Verify that parms'
26283 incoming argument is valid.
26284 (sdbout_reg_parms): Likewise.
26285
26286 2014-03-18 Richard Henderson <rth@redhat.com>
26287
26288 PR target/60562
26289 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
26290 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
26291 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
26292
26293 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
26294
26295 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
26296 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
26297 Italicize plugin event names in description. Explain that
26298 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
26299 Remind that no GCC functions should be called after PLUGIN_FINISH.
26300 Explain what pragmas with expansion are.
26301
26302 2014-03-18 Martin Liska <mliska@suse.cz>
26303
26304 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
26305 gimple call statement is update.
26306 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
26307 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
26308
26309 2014-03-18 Jakub Jelinek <jakub@redhat.com>
26310
26311 PR sanitizer/60557
26312 * ubsan.c (ubsan_instrument_unreachable): Call
26313 initialize_sanitizer_builtins.
26314 (ubsan_pass): Likewise.
26315
26316 PR sanitizer/60535
26317 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
26318 varpool_finalize_decl instead of rest_of_decl_compilation.
26319
26320 2014-03-18 Richard Biener <rguenther@suse.de>
26321
26322 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
26323 by using bitmap_and_compl instead of bitmap_and_compl_into.
26324 (df_rd_transfer_function): Likewise.
26325
26326 2014-03-18 Richard Biener <rguenther@suse.de>
26327
26328 * doc/lto.texi (fresolution): Fix typo.
26329
26330 2014-03-18 Richard Biener <rguenther@suse.de>
26331
26332 * doc/invoke.texi (flto): Update for changes in 4.9.
26333
26334 2014-03-18 Richard Biener <rguenther@suse.de>
26335
26336 * doc/loop.texi: Remove section on the removed lambda framework.
26337 Update loop docs with recent changes in preserving loop structure.
26338
26339 2014-03-18 Richard Biener <rguenther@suse.de>
26340
26341 * doc/lto.texi (-fresolution): Document.
26342
26343 2014-03-18 Richard Biener <rguenther@suse.de>
26344
26345 * doc/contrib.texi: Adjust my name.
26346
26347 2014-03-18 Jakub Jelinek <jakub@redhat.com>
26348
26349 PR ipa/58721
26350 * internal-fn.c: Include diagnostic-core.h.
26351 (expand_BUILTIN_EXPECT): New function.
26352 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
26353 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
26354 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
26355 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
26356 IFN_BUILTIN_EXPECT.
26357 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
26358 Revert 3 argument __builtin_expect code.
26359 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
26360 * gimple-fold.c (gimple_fold_call): Likewise.
26361 * tree.h (fold_builtin_expect): New prototype.
26362 * builtins.c (build_builtin_expect_predicate): Add predictor
26363 argument, if non-NULL, create 3 argument __builtin_expect.
26364 (fold_builtin_expect): No longer static. Add ARG2 argument,
26365 pass it through to build_builtin_expect_predicate.
26366 (fold_builtin_2): Adjust caller.
26367 (fold_builtin_3): Handle BUILT_IN_EXPECT.
26368 * internal-fn.def (BUILTIN_EXPECT): New.
26369
26370 2014-03-18 Tobias Burnus <burnus@net-b.de>
26371
26372 PR ipa/58721
26373 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
26374 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
26375 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
26376
26377 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
26378
26379 PR ipa/58721
26380 * predict.c (combine_predictions_for_bb): Fix up formatting.
26381 (expr_expected_value_1, expr_expected_value): Add predictor argument,
26382 fill what it points to if non-NULL.
26383 (tree_predict_by_opcode): Adjust caller, use the predictor.
26384 * predict.def (PRED_COMPARE_AND_SWAP): Add.
26385
26386 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
26387
26388 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
26389 proper constant for the store mode.
26390
26391 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
26392
26393 * symtab.c (change_decl_assembler_name): Fix transparent alias
26394 chain construction.
26395
26396 2014-03-16 Renlin Li <Renlin.Li@arm.com>
26397
26398 * config/aarch64/aarch64.c: Correct the comments about the
26399 aarch64 stack layout.
26400
26401 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
26402
26403 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
26404 check for GF_OMP_FOR_KIND_FOR.
26405
26406 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
26407
26408 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
26409 ymm and zmm register names.
26410
26411 2014-03-17 Jakub Jelinek <jakub@redhat.com>
26412
26413 PR target/60516
26414 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
26415 note creation for the 2010-08-31 changes.
26416
26417 2014-03-17 Marek Polacek <polacek@redhat.com>
26418
26419 PR middle-end/60534
26420 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
26421 as -fno-tree-loop-vectorize.
26422 (expand_omp_simd): Likewise.
26423
26424 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
26425
26426 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
26427 (eligible_for_call_delay): New prototype.
26428 * config/sparc/sparc.c (tls_call_delay): Rename into...
26429 (eligible_for_call_delay): ...this. Return false if the instruction
26430 cannot be put in the delay slot of a branch.
26431 (eligible_for_restore_insn): Simplify.
26432 (eligible_for_return_delay): Return false if the instruction cannot be
26433 put in the delay slot of a branch and simplify.
26434 (eligible_for_sibcall_delay): Return false if the instruction cannot be
26435 put in the delay slot of a branch.
26436 * config/sparc/sparc.md (fix_ut699): New attribute.
26437 (tls_call_delay): Delete.
26438 (in_call_delay): Reimplement.
26439 (eligible_for_sibcall_delay): Rename into...
26440 (in_sibcall_delay): ...this.
26441 (eligible_for_return_delay): Rename into...
26442 (in_return_delay): ...this.
26443 (in_branch_delay): Reimplement.
26444 (in_uncond_branch_delay): Delete.
26445 (in_annul_branch_delay): Delete.
26446
26447 2014-03-14 Richard Henderson <rth@redhat.com>
26448
26449 PR target/60525
26450 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26451 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26452 (*floathi<X87MODEF>2_i387_with_temp): Remove.
26453 (floathi splitters): Remove.
26454 (float<SWI48x>xf2): New pattern.
26455 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
26456 code that tried to handle DImode for 32-bit, but which was excluded
26457 by the pattern's condition. Drop allocation of stack temporary.
26458 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26459 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26460 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26461 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26462 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26463 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26464 (*float<SWI48><MODEF>2_sse_interunit): Remove.
26465 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26466 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26467 (*float<SWI48x><X87MODEF>2_i387): Remove.
26468 (all float _with_temp splitters): Remove.
26469 (*float<SWI48x><MODEF>2_i387): New pattern.
26470 (*float<SWI48><MODEF>2_sse): New pattern.
26471 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26472 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26473
26474 2014-03-14 Jakub Jelinek <jakub@redhat.com>
26475 Marek Polacek <polacek@redhat.com>
26476
26477 PR middle-end/60484
26478 * common.opt (dump_base_name_prefixed): New Variable.
26479 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26480 if x_dump_base_name_prefixed is already set, set it at the end.
26481
26482 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
26483
26484 PR rtl-optimization/60508
26485 * lra-constraints.c (get_reload_reg): Add new parameter
26486 in_subreg_p.
26487 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26488 Pass the new parameter values.
26489
26490 2014-03-14 Richard Biener <rguenther@suse.de>
26491
26492 * common.opt: Revert unintented changes from r205065.
26493 * opts.c: Likewise.
26494
26495 2014-03-14 Richard Biener <rguenther@suse.de>
26496
26497 PR middle-end/60518
26498 * cfghooks.c (split_block): Properly adjust all loops the
26499 block was a latch of.
26500
26501 2014-03-14 Martin Jambor <mjambor@suse.cz>
26502
26503 PR lto/60461
26504 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26505 and simplify it.
26506
26507 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
26508
26509 PR target/59396
26510 * config/avr/avr.c (avr_set_current_function): Pass function name
26511 through default_strip_name_encoding before sanity checking instead
26512 of skipping the first char of the assembler name.
26513
26514 2014-03-13 Richard Henderson <rth@redhat.com>
26515
26516 PR debug/60438
26517 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26518 (ix86_force_to_memory, ix86_free_from_memory): Remove.
26519 * config/i386/i386-protos.h: Likewise.
26520 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26521 in the expander instead of a splitter.
26522 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26523 any possibility of requiring a memory.
26524 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26525 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26526 (fp branch splitters): Update for ix86_split_fp_branch.
26527 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26528 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26529 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26530 (*fop_<MODEF>_2_i387): Remove f/r alternative.
26531 (*fop_<MODEF>_3_i387): Likewise.
26532 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26533 (splitters for the fop_* register patterns): Remove.
26534 (fscalexf4_i387): Rename from *fscalexf4_i387.
26535 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26536
26537 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26538
26539 PR tree-optimization/59779
26540 * tree-dfa.c (get_ref_base_and_extent): Use double_int
26541 type for bitsize and maxsize instead of HOST_WIDE_INT.
26542
26543 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
26544
26545 PR rtl-optimization/57320
26546 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26547 the CFG after thread_prologue_and_epilogue_insns.
26548
26549 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
26550
26551 PR rtl-optimization/57189
26552 * lra-constraints.c (process_alt_operands): Disfavor spilling
26553 vector pseudos.
26554
26555 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
26556
26557 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26558
26559 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26560
26561 PR tree-optimization/59025
26562 PR middle-end/60418
26563 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26564 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26565
26566 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
26567
26568 PR target/60486
26569 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26570 calls of avr_out_plus_1.
26571
26572 2014-03-13 Bin Cheng <bin.cheng@arm.com>
26573
26574 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26575 BB's single pred and update the father loop's latch info later.
26576
26577 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26578
26579 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26580 (VEC_M): Likewise.
26581 (VEC_N): Likewise.
26582 (VEC_R): Likewise.
26583 (VEC_base): Likewise.
26584 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26585 registers, we need to swap double words in little endian mode.
26586
26587 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26588 to be a container mode for 128-bit integer operations added in ISA
26589 2.07. Unlike TImode and PTImode, the preferred register set is
26590 the Altivec/VMX registers for the 128-bit operations.
26591
26592 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26593 declarations.
26594 (rs6000_split_128bit_ok_p): Likewise.
26595
26596 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26597 macros for creating ISA 2.07 normal and overloaded builtin
26598 functions with 3 arguments.
26599 (BU_P8V_OVERLOAD_3): Likewise.
26600 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26601 for use as overloaded functions.
26602 (VPERM_1TI_UNS): Likewise.
26603 (VSEL_1TI): Likewise.
26604 (VSEL_1TI_UNS): Likewise.
26605 (ST_INTERNAL_1ti): Likewise.
26606 (LD_INTERNAL_1ti): Likewise.
26607 (XXSEL_1TI): Likewise.
26608 (XXSEL_1TI_UNS): Likewise.
26609 (VPERM_1TI): Likewise.
26610 (VPERM_1TI_UNS): Likewise.
26611 (XXPERMDI_1TI): Likewise.
26612 (SET_1TI): Likewise.
26613 (LXVD2X_V1TI): Likewise.
26614 (STXVD2X_V1TI): Likewise.
26615 (VEC_INIT_V1TI): Likewise.
26616 (VEC_SET_V1TI): Likewise.
26617 (VEC_EXT_V1TI): Likewise.
26618 (EQV_V1TI): Likewise.
26619 (NAND_V1TI): Likewise.
26620 (ORC_V1TI): Likewise.
26621 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26622 added in ISA 2.07. Add both normal 'altivec' builtins, and the
26623 overloaded builtin.
26624 (VADDUQM): Likewise.
26625 (VSUBCUQ): Likewise.
26626 (VADDEUQM): Likewise.
26627 (VADDECUQ): Likewise.
26628 (VSUBEUQM): Likewise.
26629 (VSUBECUQ): Likewise.
26630
26631 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26632 __int128_t and __uint128_t types.
26633 (__uint128_type): Likewise.
26634 (altivec_categorize_keyword): Add support for vector __int128_t,
26635 vector __uint128_t, vector __int128, and vector unsigned __int128
26636 as a container type for TImode operations that need to be done in
26637 VSX/Altivec registers.
26638 (rs6000_macro_to_expand): Likewise.
26639 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26640 to support 128-bit integer instructions vaddcuq, vadduqm,
26641 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26642 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26643
26644 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26645 for V1TImode, and set up preferences to use VSX/Altivec registers.
26646 Setup VSX reload handlers.
26647 (rs6000_debug_reg_global): Likewise.
26648 (rs6000_init_hard_regno_mode_ok): Likewise.
26649 (rs6000_preferred_simd_mode): Likewise.
26650 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26651 (easy_altivec_constant): Likewise.
26652 (output_vec_const_move): Likewise.
26653 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26654 simple move.
26655 (rs6000_expand_vector_extract): Likewise.
26656 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26657 addressing.
26658 (rs6000_const_vec): Add support for V1TImode.
26659 (rs6000_emit_le_vsx_load): Swap double words when loading or
26660 storing TImode/V1TImode.
26661 (rs6000_emit_le_vsx_store): Likewise.
26662 (rs6000_emit_le_vsx_move): Likewise.
26663 (rs6000_emit_move): Add support for V1TImode.
26664 (altivec_expand_ld_builtin): Likewise.
26665 (altivec_expand_st_builtin): Likewise.
26666 (altivec_expand_vec_init_builtin): Likewise.
26667 (altivec_expand_builtin): Likewise.
26668 (rs6000_init_builtins): Add support for V1TImode type. Add
26669 support for ISA 2.07 128-bit integer builtins. Define type names
26670 for the VSX/Altivec vector types.
26671 (altivec_init_builtins): Add support for overloaded vector
26672 functions with V1TImode type.
26673 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26674 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26675 external function.
26676 (rs6000_split_128bit_ok_p): Likewise.
26677 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26678 __int128_t and vector __uint128_t.
26679
26680 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26681 and mode attributes.
26682 (VSX_M): Likewise.
26683 (VSX_M2): Likewise.
26684 (VSm): Likewise.
26685 (VSs): Likewise.
26686 (VSr): Likewise.
26687 (VSv): Likewise.
26688 (VS_scalar): Likewise.
26689 (VS_double): Likewise.
26690 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26691
26692 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26693 we support the ISA 2.07 128-bit integer arithmetic instructions.
26694 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26695 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26696 and TImode types for use with the builtin functions.
26697 (V1TI_type_node): Likewise.
26698 (unsigned_V1TI_type_node): Likewise.
26699 (intTI_type_internal_node): Likewise.
26700 (uintTI_type_internal_node): Likewise.
26701
26702 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26703 128-bit builtin functions.
26704 (UNSPEC_VADDEUQM): Likewise.
26705 (UNSPEC_VADDECUQ): Likewise.
26706 (UNSPEC_VSUBCUQ): Likewise.
26707 (UNSPEC_VSUBEUQM): Likewise.
26708 (UNSPEC_VSUBECUQ): Likewise.
26709 (VM): Add V1TImode to vector mode iterators.
26710 (VM2): Likewise.
26711 (VI_unit): Likewise.
26712 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26713 (altivec_vaddcuq): Likewise.
26714 (altivec_vsubuqm): Likewise.
26715 (altivec_vsubcuq): Likewise.
26716 (altivec_vaddeuqm): Likewise.
26717 (altivec_vaddecuq): Likewise.
26718 (altivec_vsubeuqm): Likewise.
26719 (altivec_vsubecuq): Likewise.
26720
26721 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26722 mode iterators.
26723 (BOOL_128): Likewise.
26724 (BOOL_REGS_OUTPUT): Likewise.
26725 (BOOL_REGS_OP1): Likewise.
26726 (BOOL_REGS_OP2): Likewise.
26727 (BOOL_REGS_UNARY): Likewise.
26728 (BOOL_REGS_AND_CR0): Likewise.
26729
26730 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26731 128-bit integer builtin support.
26732 (vec_vadduqm): Likewise.
26733 (vec_vaddecuq): Likewise.
26734 (vec_vaddeuqm): Likewise.
26735 (vec_vsubecuq): Likewise.
26736 (vec_vsubeuqm): Likewise.
26737 (vec_vsubcuq): Likewise.
26738 (vec_vsubuqm): Likewise.
26739
26740 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26741 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26742 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26743 128-bit integer add/subtract to ISA 2.07.
26744
26745 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26746
26747 * config/arc/arc.c (arc_predicate_delay_insns):
26748 Fix third argument passed to conditionalize_nonjump.
26749
26750 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26751
26752 * config/aarch64/aarch64-builtins.c
26753 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26754 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26755 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26756 instead of __builtin_lfloor.
26757 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26758
26759 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26760
26761 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26762 (tree_ssa_ifcombine_bb_1): New function.
26763 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26764 is an empty forwarder block to then_bb or vice versa and then_bb
26765 and else_bb are effectively swapped.
26766
26767 2014-03-12 Christian Bruel <christian.bruel@st.com>
26768
26769 PR target/60264
26770 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26771 REG_CFA_DEF_CFA note.
26772 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26773 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26774
26775 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26776
26777 PR tree-optimization/60454
26778 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26779
26780 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26781
26782 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26783 Do not define target_cpu_default2 to generic.
26784 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26785 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26786 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26787
26788 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26789 Marc Glisse <marc.glisse@inria.fr>
26790
26791 PR tree-optimization/60502
26792 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26793 instead of build_low_bits_mask.
26794
26795 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26796
26797 PR middle-end/60482
26798 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26799 if there are multiple uses, but op doesn't live on E edge.
26800 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26801 clobber stmts before __builtin_unreachable.
26802
26803 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26804
26805 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26806 hard_frame_pointer_rtx.
26807 * cse.c (cse_insn): Remove volatile check.
26808 * cselib.c (cselib_process_insn): Likewise.
26809 * dse.c (scan_insn): Likewise.
26810
26811 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26812
26813 * config/arc/arc.c (conditionalize_nonjump): New function,
26814 broken out of ...
26815 (arc_ifcvt): ... this.
26816 (arc_predicate_delay_insns): Use it.
26817
26818 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26819
26820 * config/arc/predicates.md (extend_operand): During/after reload,
26821 allow const_int_operand.
26822 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26823 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26824 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26825 to "i".
26826 (umulsi3_highpart_i): Likewise.
26827
26828 2014-03-11 Richard Biener <rguenther@suse.de>
26829
26830 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26831 Add asserts to guard possible wrong-code bugs.
26832
26833 2014-03-11 Richard Biener <rguenther@suse.de>
26834
26835 PR tree-optimization/60429
26836 PR tree-optimization/60485
26837 * tree-ssa-structalias.c (set_union_with_increment): Properly
26838 take into account all fields that overlap the shifted vars.
26839 (do_sd_constraint): Likewise.
26840 (do_ds_constraint): Likewise.
26841 (get_constraint_for_ptr_offset): Likewise.
26842
26843 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26844
26845 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26846 (nios2_compute_frame_layout):
26847 Add calculation of cfun->machine->fp_save_offset.
26848 (nios2_expand_prologue): Correct setting of frame pointer register
26849 in prologue.
26850 (nios2_expand_epilogue): Update recovery of stack pointer from
26851 frame pointer accordingly.
26852 (nios2_initial_elimination_offset): Update calculation of offset
26853 for eliminating to HARD_FRAME_POINTER_REGNUM.
26854
26855 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26856
26857 PR ipa/60457
26858 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26859 cgraph_get_create_node on VAR_DECLs.
26860
26861 2014-03-10 Richard Biener <rguenther@suse.de>
26862
26863 PR middle-end/60474
26864 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26865
26866 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26867
26868 * config/vms/vms.opt (vms_float_format): New variable.
26869
26870 2014-03-08 Tobias Burnus <burnus@net-b.de>
26871
26872 * doc/invoke.texi (-fcilkplus): Update implementation status.
26873
26874 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26875 Richard Biener <rguenther@suse.de>
26876
26877 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26878 consistently accross all TUs.
26879 (run_gcc): Enable -fshort-double automatically at link at link-time
26880 and disallow override.
26881
26882 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26883
26884 PR target/58271
26885 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26886 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26887 if they can't be used.
26888
26889 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26890
26891 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26892 for Solaris 11/x86 ld.
26893 * configure: Regenerate.
26894
26895 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26896
26897 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26898 (LIB_TLS_SPEC): Save as ld_tls_libs.
26899 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26900 (HAVE_AS_IX86_TLSLDM): New test.
26901 * configure, config.in: Regenerate.
26902 * config/i386/i386.c (legitimize_tls_address): Fall back to
26903 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26904 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26905 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26906 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26907
26908 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26909
26910 * common.opt (fira-loop-pressure): Mark as optimization.
26911
26912 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26913
26914 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26915 an OpenMP mappable type.
26916
26917 2014-03-06 Matthias Klose <doko@ubuntu.com>
26918
26919 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26920 MULTILIB_OSDIRNAMES is not defined.
26921
26922 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26923 Meador Inge <meadori@codesourcery.com>
26924
26925 PR target/58595
26926 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26927 (arm_legitimize_address): Call legitimize_tls_address for any
26928 arm_tls_referenced_p expression, handle constant addend. Call it
26929 before testing for !TARGET_ARM.
26930 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26931
26932 2014-03-06 Richard Biener <rguenther@suse.de>
26933
26934 PR middle-end/60445
26935 PR lto/60424
26936 PR lto/60427
26937 Revert
26938 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26939
26940 * tree-streamer.c (record_common_node): Assert we don't record
26941 nodes with type double.
26942 (preload_common_node): Skip type double, complex double and double
26943 pointer since it is now frontend dependent due to fshort-double option.
26944
26945 2014-03-06 Richard Biener <rguenther@suse.de>
26946
26947 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26948 or -fno-lto is specified and the linker has full plugin support.
26949 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26950 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26951 * lto-wrapper.c (merge_and_complain): Merge compile-time
26952 optimization levels.
26953 (run_gcc): And pass it through to the link options.
26954
26955 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26956
26957 PR debug/60381
26958 Revert:
26959 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26960 PR debug/59992
26961 * cselib.c (remove_useless_values): Skip to avoid quadratic
26962 behavior if the condition moved from...
26963 (cselib_process_insn): ... here holds.
26964
26965 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26966
26967 PR plugins/59335
26968 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26969 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26970
26971 PR plugins/59335
26972 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26973 (TM_H): Add x86-tune.def.
26974
26975 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26976
26977 * config/aarch64/aarch64.c (generic_tunings):
26978 Use cortexa57_extra_costs.
26979
26980 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26981
26982 PR lto/60404
26983 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26984 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26985 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26986 cost for in_lto_p.
26987
26988 2014-03-04 Heiher <r@hev.cc>
26989
26990 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26991 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26992
26993 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26994
26995 * config/i386/predicates.md (const2356_operand): Change to ...
26996 (const2367_operand): ... this.
26997 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26998 const2367_operand.
26999 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27000 (*avx512pf_scatterpf<mode>sf): Ditto.
27001 (avx512pf_scatterpf<mode>df): Ditto.
27002 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27003 (*avx512pf_scatterpf<mode>df): Ditto.
27004 * config/i386/i386.c (ix86_expand_builtin): Update
27005 incorrect hint operand error message.
27006
27007 2014-03-04 Richard Biener <rguenther@suse.de>
27008
27009 * lto-section-in.c (lto_get_section_data): Fix const cast.
27010
27011 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
27012
27013 * tree-streamer.c (record_common_node): Assert we don't record
27014 nodes with type double.
27015 (preload_common_node): Skip type double, complex double and double
27016 pointer since it is now frontend dependent due to fshort-double option.
27017
27018 2014-03-04 Richard Biener <rguenther@suse.de>
27019
27020 PR lto/60405
27021 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
27022 (lto_input_toplevel_asms): Likewise.
27023 * lto-section-in.c (lto_get_section_data): Instead do it here
27024 for every section.
27025
27026 2014-03-04 Richard Biener <rguenther@suse.de>
27027
27028 PR tree-optimization/60382
27029 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
27030 dead PHIs a reduction.
27031
27032 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
27033
27034 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
27035 hint value.
27036 (_mm_prefetch): Move out of GCC target("sse") pragma.
27037 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
27038 GCC target("prfchw") pragma.
27039 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
27040 for locality <= 2.
27041 * config/i386/i386.c (ix86_option_override_internal): Enable
27042 -mprfchw with -mprefetchwt1.
27043
27044 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
27045
27046 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
27047 Mark as varying.
27048
27049 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
27050
27051 * opts.h (CL_PCH_IGNORE): Define.
27052 * targhooks.c (option_affects_pch_p):
27053 Return false for options that have CL_PCH_IGNORE set.
27054 * opt-functions.awk: Process PchIgnore.
27055 * doc/options.texi: Document PchIgnore.
27056
27057 * config/arc/arc.opt (misize): Add PchIgnore property.
27058
27059 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27060
27061 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
27062 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
27063 constraint on constants to permit them being loaded into
27064 GENERAL_REGS or BASE_REGS.
27065
27066 2014-03-03 Nick Clifton <nickc@redhat.com>
27067
27068 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
27069 anti-cacnonical alternatives.
27070 (negandhi3_real): New pattern.
27071 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
27072
27073 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27074
27075 * config/avr/avr-mcus.def: Remove atxmega16x1.
27076 * config/avr/avr-tables.opt: Regenerate.
27077 * config/avr/t-multilib: Regenerate.
27078 * doc/avr-mmcu.texi: Regenerate.
27079
27080 2014-03-03 Tobias Grosser <tobias@grosser.es>
27081 Mircea Namolaru <mircea.namolaru@inria.fr>
27082
27083 PR tree-optimization/58028
27084 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
27085 scalar dimensions.
27086
27087 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27088
27089 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
27090 not handled by recognizers.
27091
27092 2014-03-03 Jakub Jelinek <jakub@redhat.com>
27093
27094 PR middle-end/60175
27095 * function.c (expand_function_end): Don't emit
27096 clobber_return_register sequence if clobber_after is a BARRIER.
27097 * cfgexpand.c (construct_exit_block): Append instructions before
27098 return_label to prev_bb.
27099
27100 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27101
27102 * config/rs6000/constraints.md: Document reserved use of "wc".
27103
27104 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
27105
27106 PR ipa/60150
27107 * ipa.c (function_and_variable_visibility): When dissolving comdat
27108 group, also set all symbols to local.
27109
27110 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
27111
27112 PR ipa/60306
27113
27114 Revert:
27115 2013-12-14 Jan Hubicka <jh@suse.cz>
27116 PR middle-end/58477
27117 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
27118
27119 2014-03-02 Jon Beniston <jon@beniston.com>
27120
27121 PR bootstrap/48230
27122 PR bootstrap/50927
27123 PR bootstrap/52466
27124 PR target/46898
27125 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
27126 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
27127 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
27128 (simple_return, *simple_return): New patterns
27129 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
27130 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
27131
27132 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
27133
27134 * dwarf2out.c (gen_subprogram_die): Tidy.
27135
27136 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
27137
27138 PR target/60071
27139 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
27140 (*mov_t_msb_neg_negc): ... this new insn.
27141
27142 2014-02-28 Jason Merrill <jason@redhat.com>
27143
27144 PR c++/58678
27145 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
27146 function.
27147
27148 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
27149
27150 PR c++/60314
27151 * dwarf2out.c (decltype_auto_die): New static.
27152 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
27153 (gen_type_die_with_usage): Handle 'decltype(auto)'.
27154 (is_cxx_auto): Likewise.
27155
27156 2014-02-28 Ian Bolton <ian.bolton@arm.com>
27157
27158 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
27159 we are not using general regs only.
27160
27161 2014-02-28 Richard Biener <rguenther@suse.de>
27162
27163 PR target/60280
27164 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
27165 previous fix and only allow to remove trivial pre-headers
27166 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
27167 (remove_forwarder_block): Properly update the latch of a loop.
27168
27169 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
27170
27171 PR debug/59992
27172 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
27173 (cselib_preserved_hash_table): New.
27174 (preserve_constants_and_equivs): Move preserved vals to it.
27175 (cselib_find_slot): Look it up first.
27176 (cselib_init): Initialize it.
27177 (cselib_finish): Release it.
27178 (dump_cselib_table): Dump it.
27179
27180 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
27181
27182 PR debug/59992
27183 * cselib.c (remove_useless_values): Skip to avoid quadratic
27184 behavior if the condition moved from...
27185 (cselib_process_insn): ... here holds.
27186
27187 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
27188
27189 PR debug/57232
27190 * var-tracking.c (vt_initialize): Apply the same condition to
27191 preserve the CFA base value.
27192
27193 2014-02-28 Joey Ye <joey.ye@arm.com>
27194
27195 PR target/PR60169
27196 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
27197 if reload in progress or completed.
27198
27199 2014-02-28 Tobias Burnus <burnus@net-b.de>
27200
27201 PR middle-end/60147
27202 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
27203 NAMELIST_DECL.
27204
27205 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
27206
27207 * doc/tm.texi.in (Condition Code Status): Update documention for
27208 relative locations of cc0-setter and cc0-user.
27209
27210 2014-02-27 Jeff Law <law@redhat.com>
27211
27212 PR rtl-optimization/52714
27213 * combine.c (try_combine): When splitting an unrecognized PARALLEL
27214 into two independent simple sets, if I3 is a jump, ensure the
27215 pattern we place into I3 is a (set (pc) ...).
27216
27217 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
27218 Jeff Law <law@redhat.com>
27219
27220 PR rtl-optimization/49847
27221 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
27222 are in different blocks.
27223 * doc/tm.texi (Condition Code Status): Update documention for
27224 relative locations of cc0-setter and cc0-user.
27225
27226 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
27227
27228 PR target/59222
27229 * lra.c (lra_emit_add): Check SUBREG too.
27230
27231 2014-02-27 Andreas Schwab <schwab@suse.de>
27232
27233 * config/m68k/m68k.c (m68k_option_override): Disable
27234 -flive-range-shrinkage for classic m68k.
27235 (m68k_override_options_after_change): Likewise.
27236
27237 2014-02-27 Marek Polacek <polacek@redhat.com>
27238
27239 PR middle-end/59223
27240 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
27241 -Wmaybe-uninitialized.
27242
27243 2014-02-27 Alan Modra <amodra@gmail.com>
27244
27245 PR target/57936
27246 * reload1.c (emit_input_reload_insns): When reload_override_in,
27247 set old to rl->in_reg when rl->in_reg is a subreg.
27248
27249 2014-02-26 Richard Biener <rguenther@suse.de>
27250
27251 PR bootstrap/60343
27252 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
27253
27254 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
27255
27256 * common/config/i386/predicates.md (const1256_operand): Remove.
27257 (const2356_operand): New.
27258 (const_1_to_2_operand): Remove.
27259 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27260 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27261 (*avx512pf_gatherpf<mode>sf): Ditto.
27262 (avx512pf_gatherpf<mode>df): Ditto.
27263 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27264 (*avx512pf_gatherpf<mode>df): Ditto.
27265 (avx512pf_scatterpf<mode>sf): Ditto.
27266 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27267 (*avx512pf_scatterpf<mode>sf): Ditto.
27268 (avx512pf_scatterpf<mode>df): Ditto.
27269 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27270 (*avx512pf_scatterpf<mode>df): Ditto.
27271 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
27272
27273 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
27274
27275 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
27276 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
27277 (_mm512_mask_testn_epi64_mask): Move to ...
27278 * config/i386/avx512cdintrin.h: Here.
27279 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
27280 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
27281 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
27282 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
27283 TARGET_AVX512F from TARGET_AVX512CD.
27284
27285 2014-02-26 Richard Biener <rguenther@suse.de>
27286
27287 PR ipa/60327
27288 * ipa.c (walk_polymorphic_call_targets): Properly guard
27289 call to inline_update_overall_summary.
27290
27291 2014-02-26 Bin Cheng <bin.cheng@arm.com>
27292
27293 PR target/60280
27294 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
27295 and latches only if requested. Fix latch if it is removed.
27296 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
27297 LOOPS_HAVE_PREHEADERS.
27298
27299 2014-02-25 Andrew Pinski <apinski@cavium.com>
27300
27301 * builtins.c (expand_builtin_thread_pointer): Create a new target
27302 when the target is NULL.
27303
27304 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
27305
27306 PR rtl-optimization/60317
27307 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27308 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
27309 * lra-assigns.c: Include params.h.
27310 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
27311 other reload pseudos considerations.
27312
27313 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27314
27315 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
27316 to use canonical form for nor<mode>3.
27317
27318 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27319
27320 PR target/55426
27321 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
27322 conversions.
27323
27324 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
27325
27326 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
27327 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
27328 (ix86_handle_option): Handle OPT_mprefetchwt1.
27329 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
27330 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27331 PREFETCHWT1 CPUID.
27332 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27333 OPTION_MASK_ISA_PREFETCHWT1.
27334 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
27335 (PTA_PREFETCHWT1): New.
27336 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
27337 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
27338 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
27339 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
27340 (*prefetch_avx512pf_<mode>_: Change into ...
27341 (*prefetch_prefetchwt1_<mode>: This.
27342 * config/i386/i386.opt (mprefetchwt1): New.
27343 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
27344 (_mm_prefetch): Handle intent to write.
27345 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
27346
27347 2014-02-25 Richard Biener <rguenther@suse.de>
27348
27349 PR middle-end/60291
27350 * emit-rtl.c (mem_attrs_htab): Remove.
27351 (mem_attrs_htab_hash): Likewise.
27352 (mem_attrs_htab_eq): Likewise.
27353 (set_mem_attrs): Always allocate new mem-attrs when something changed.
27354 (init_emit_once): Do not allocate mem_attrs_htab.
27355
27356 2014-02-25 Richard Biener <rguenther@suse.de>
27357
27358 PR lto/60319
27359 * lto-opts.c (lto_write_options): Output non-explicit conservative
27360 -fwrapv, -fno-trapv and -fno-strict-overflow.
27361 * lto-wrapper.c (merge_and_complain): Handle merging those options.
27362 (run_gcc): And pass them through.
27363
27364 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
27365
27366 * sel-sched.c (calculate_new_fences): New parameter ptime.
27367 Calculate it as a maximum over all fence cycles.
27368 (sel_sched_region_2): Adjust the call to calculate_new_fences.
27369 Print the final schedule timing when sched_verbose.
27370
27371 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
27372
27373 PR rtl-optimization/60292
27374 * sel-sched.c (fill_vec_av_set): Do not reset target availability
27375 bit fot the fence instruction.
27376
27377 2014-02-24 Alangi Derick <alangiderick@gmail.com>
27378
27379 * calls.h: Fix typo in comment.
27380
27381 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
27382
27383 * config/pa/pa.c (pa_output_move_double): Don't valididate when
27384 adjusting offsetable addresses.
27385
27386 2014-02-24 Guozhi Wei <carrot@google.com>
27387
27388 * sparseset.h (sparseset_pop): Fix the wrong index.
27389
27390 2014-02-24 Walter Lee <walt@tilera.com>
27391
27392 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
27393 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
27394 triplet.
27395 * common/config/tilegx/tilegx-common.c
27396 (TARGET_DEFAULT_TARGET_FLAGS): Define.
27397 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
27398 (LINK_SPEC): Ditto.
27399 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
27400 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
27401 (tilegx_gimplify_va_arg_expr): Handle big endian.
27402 (tilegx_expand_unaligned_load): Ditto.
27403 (tilegx_expand_unaligned_store): Ditto.
27404 (TARGET_RETURN_IN_MSB): New.
27405 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
27406 (TARGET_ENDIAN_DEFAULT): New.
27407 (TARGET_BIG_ENDIAN): Handle big endian.
27408 (BYTES_BIG_ENDIAN): Ditto.
27409 (WORDS_BIG_ENDIAN): Ditto.
27410 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
27411 (ENDIAN_SPEC): New.
27412 (EXTRA_SPECS): New.
27413 * config/tilegx/tilegx.md (extv): Handle big endian.
27414 (extzv): Ditto.
27415 (insn_st<n>): Ditto.
27416 (insn_st<n>_add<bitsuffix>): Ditto.
27417 (insn_stnt<n>): Ditto.
27418 (insn_stnt<n>_add<bitsuffix>):Ditto.
27419 (vec_interleave_highv8qi): Handle big endian.
27420 (vec_interleave_highv8qi_be): New.
27421 (vec_interleave_highv8qi_le): New.
27422 (insn_v1int_h): Handle big endian.
27423 (vec_interleave_lowv8qi): Handle big endian.
27424 (vec_interleave_lowv8qi_be): New.
27425 (vec_interleave_lowv8qi_le): New.
27426 (insn_v1int_l): Handle big endian.
27427 (vec_interleave_highv4hi): Handle big endian.
27428 (vec_interleave_highv4hi_be): New.
27429 (vec_interleave_highv4hi_le): New.
27430 (insn_v2int_h): Handle big endian.
27431 (vec_interleave_lowv4hi): Handle big endian.
27432 (vec_interleave_lowv4hi_be): New.
27433 (vec_interleave_lowv4hi_le): New.
27434 (insn_v2int_l): Handle big endian.
27435 (vec_interleave_highv2si): Handle big endian.
27436 (vec_interleave_highv2si_be): New.
27437 (vec_interleave_highv2si_le): New.
27438 (insn_v4int_h): Handle big endian.
27439 (vec_interleave_lowv2si): Handle big endian.
27440 (vec_interleave_lowv2si_be): New.
27441 (vec_interleave_lowv2si_le): New.
27442 (insn_v4int_l): Handle big endian.
27443 * config/tilegx/tilegx.opt (mbig-endian): New option.
27444 (mlittle-endian): New option.
27445 * doc/install.texi: Document tilegxbe-linux.
27446 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
27447
27448 2014-02-24 Martin Jambor <mjambor@suse.cz>
27449
27450 PR ipa/60266
27451 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27452 there are no parameter descriptors.
27453
27454 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
27455
27456 PR rtl-optimization/60268
27457 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27458 initialization to ...
27459 (sched_rgn_init): ... here.
27460 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27461
27462 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27463
27464 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27465 names.
27466
27467 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
27468
27469 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27470 definition.
27471
27472 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27473
27474 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27475 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27476
27477 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27478
27479 * config/microblaze/predicates.md: Add cmp_op predicate.
27480 * config/microblaze/microblaze.md: Add branch_compare instruction
27481 which uses cmp_op predicate and emits cmp insn before branch.
27482 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27483 to microblaze_expand_conditional_branch and consolidate logic.
27484 (microblaze_expand_conditional_branch): emit branch_compare
27485 insn instead of handling cmp op separate from branch insn.
27486
27487 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27488
27489 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27490 to permit subregs.
27491
27492 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27493
27494 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27495 define_insn with define_expand and new define_insn
27496 *altivec_lve<VI_char>x_internal.
27497 (altivec_stve<VI_char>x): Replace define_insn with define_expand
27498 and new define_insn *altivec_stve<VI_char>x_internal.
27499 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27500 prototype.
27501 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27502 lve*x built-ins.
27503 (altivec_expand_stvex_be): New function.
27504
27505 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
27506
27507 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27508 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27509 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27510 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27511
27512 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
27513
27514 PR target/60298
27515 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27516 instead of emit_move_insn.
27517
27518 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27519
27520 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27521 vspltw with vsldoi.
27522 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27523 gen_altivec_vsumsws.
27524
27525 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27526
27527 * config/rs6000/altivec.md (altivec_lvxl): Rename as
27528 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27529 (altivec_lvxl_<mode>): New define_expand incorporating
27530 -maltivec=be semantics where needed.
27531 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27532 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27533 semantics where needed.
27534 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27535 (altivec_stvx_<mode>): New define_expand incorporating
27536 -maltivec=be semantics where needed.
27537 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27538 VM2 iterator instead of V4SI.
27539 (altivec_stvxl_<mode>): New define_expand incorporating
27540 -maltivec=be semantics where needed.
27541 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27542 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27543 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27544 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27545 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27546 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27547 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27548 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27549 ALTIVEC_BUILTIN_STVXL.
27550 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27551 (altivec_expand_stvx_be): Likewise.
27552 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27553 (altivec_expand_lvx_be): Likewise.
27554 (altivec_expand_stvx_be): Likewise.
27555 (altivec_expand_builtin): Add cases for
27556 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27557 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27558 (altivec_init_builtins): Add definitions for
27559 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27560 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27561
27562 2014-02-21 Catherine Moore <clm@codesourcery.com>
27563
27564 * doc/invoke.texi (mvirt, mno-virt): Document.
27565 * config/mips/mips.opt (mvirt): New option.
27566 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27567
27568 2014-02-21 Richard Biener <rguenther@suse.de>
27569
27570 PR tree-optimization/60276
27571 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27572 (STMT_VINFO_MIN_NEG_DIST): New macro.
27573 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27574 STMT_VINFO_MIN_NEG_DIST.
27575 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27576 made for negative dependence distances still hold.
27577
27578 2014-02-21 Richard Biener <rguenther@suse.de>
27579
27580 PR middle-end/60291
27581 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27582 DECL_INITIAL for globals not in the current function context.
27583
27584 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27585
27586 PR tree-optimization/56490
27587 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27588 * tree-ssa-uninit.c: Include params.h.
27589 (compute_control_dep_chain): Add num_calls argument, return false
27590 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27591 num_calls to recursive call.
27592 (find_predicates): Change dep_chain into normal array,
27593 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27594 variable and adjust compute_control_dep_chain caller.
27595 (find_def_preds): Likewise.
27596
27597 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
27598
27599 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27600 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27601
27602 2014-02-21 Nick Clifton <nickc@redhat.com>
27603
27604 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27605 (pushhi1): Likewise.
27606 (popqi1): Add mode to pre_dec.
27607 (pophi1): Likewise.
27608
27609 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27610
27611 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27612 mode for mask of V8SFmode permutation.
27613
27614 2014-02-20 Richard Henderson <rth@redhat.com>
27615
27616 PR c++/60272
27617 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27618 a new pseudo for OLDVAL.
27619
27620 2014-02-20 Jakub Jelinek <jakub@redhat.com>
27621
27622 PR target/57896
27623 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27624 gen_reg_rtx if d->testing_p.
27625 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27626 if d->testing_p and we will certainly return true.
27627 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
27628 if d->testing_p.
27629
27630 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
27631
27632 * emit-rtl.c (gen_reg_rtx): Assert that
27633 crtl->emit.regno_pointer_align_length is non-zero.
27634
27635 2014-02-20 Richard Henderson <rth@redhat.com>
27636
27637 PR c++/60272
27638 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27639 on failure the store back into EXPECT.
27640
27641 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27642 Sandra Loosemore <sandra@codesourcery.com>
27643
27644 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27645 * config/nios2/nios2.c (nios2_function_profiler): Add
27646 -fPIC (flag_pic == 2) support.
27647 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27648 (nios2_large_offset_p): New function.
27649 (nios2_unspec_reloc_p): Move up position, update to use
27650 nios2_large_offset_p.
27651 (nios2_unspec_address): Remove function.
27652 (nios2_unspec_offset): New function.
27653 (nios2_large_got_address): New function.
27654 (nios2_got_address): Add large offset support.
27655 (nios2_legitimize_tls_address): Update usage of removed and new
27656 functions.
27657 (nios2_symbol_binds_local_p): New function.
27658 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27659 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27660 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27661 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27662 processing for (const (unspec ...)).
27663 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27664
27665 2014-02-20 Richard Biener <rguenther@suse.de>
27666
27667 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27668 doing the substitution.
27669 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27670
27671 2014-02-20 Martin Jambor <mjambor@suse.cz>
27672
27673 PR ipa/55260
27674 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27675 info when checking whether lattices are bottom.
27676
27677 2014-02-20 Richard Biener <rguenther@suse.de>
27678
27679 PR middle-end/60221
27680 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27681 regions at -O0.
27682
27683 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27684
27685 PR ipa/58555
27686 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27687 parameter specifying the scaling.
27688 (inline_call): Update.
27689 (want_inline_recursively): Guard division by zero.
27690 (recursive_inlining): Update.
27691 * ipa-inline.h (clone_inlined_nodes): Update.
27692
27693 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27694
27695 PR target/60204
27696 * config/i386/i386.c (classify_argument): Pass structures of size
27697 64 bytes or less in register.
27698
27699 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27700 Kirill Yukhin <kirill.yukhin@intel.com>
27701
27702 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27703 (_mm_rcp28_round_ss): Ditto.
27704 (_mm_rsqrt28_round_sd): Ditto.
27705 (_mm_rsqrt28_round_ss): Ditto.
27706 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27707 (_mm_rcp14_round_ss): Ditto.
27708 (_mm_rsqrt14_round_sd): Ditto.
27709 (_mm_rsqrt14_round_ss): Ditto.
27710 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27711 the first input operand, get rid of match_dup.
27712 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27713 attribute to sse.
27714 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27715 Ditto.
27716 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27717 operand as the first input operand, set type attribute.
27718 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27719 Set type attribute.
27720 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27721 operand as the first input operand, set type attribute.
27722
27723 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27724
27725 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27726 bit of zero.
27727
27728 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27729
27730 PR target/60207
27731 * config/i386/i386.c (construct_container): Remove TFmode check
27732 for X86_64_INTEGER_CLASS.
27733
27734 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27735
27736 PR target/59794
27737 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27738 only when -Wpsabi is enabled.
27739
27740 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27741
27742 PR target/59799
27743 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27744 passing arrays in registers are the same as for structs, so remove the
27745 special case for them.
27746
27747 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27748
27749 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27750 destination type, extract only the valid bits if the source type is not
27751 integral and has a different mode.
27752
27753 2014-02-19 Richard Biener <rguenther@suse.de>
27754
27755 PR ipa/60243
27756 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27757 for all calls.
27758
27759 2014-02-19 Richard Biener <rguenther@suse.de>
27760
27761 PR ipa/60243
27762 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27763 (ipa_modify_call_arguments): Emit an argument load explicitely and
27764 preserve virtual SSA form there and for the replacement call.
27765 Do not update SSA form nor free dominance info.
27766
27767 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27768
27769 * ipa.c (function_and_variable_visibility): Also clear WEAK
27770 flag when disolving COMDAT_GROUP.
27771
27772 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27773
27774 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27775 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27776 not devirtualizing.
27777 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27778 do more sanity checks.
27779 (detect_type_change): Return true when giving up early.
27780 (compute_complex_assign_jump_func): Fix type parameter of
27781 ipa_set_ancestor_jf.
27782 (compute_complex_ancestor_jump_func): Likewise.
27783 (update_jump_functions_after_inlining): Fix updating of
27784 ancestor function.
27785 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27786
27787 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27788
27789 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27790 inline clones when edge disappears.
27791
27792 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27793
27794 PR target/60203
27795 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27796 Split 64-bit moves into 2 patterns. Do not allow the use of
27797 direct move for TDmode in little endian, since the decimal value
27798 has little endian bytes within a word, but the 64-bit pieces are
27799 ordered in a big endian fashion, and normal subreg's of TDmode are
27800 not allowed.
27801 (mov<mode>_64bit_dm): Likewise.
27802 (movtd_64bit_nodm): Likewise.
27803
27804 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27805
27806 PR tree-optimization/60174
27807 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27808 statement of an SSA_NAME that occurs in an abnormal PHI node.
27809
27810 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27811
27812 PR sanitizer/60142
27813 * final.c (SEEN_BB): Remove.
27814 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27815 (final_scan_insn): Don't force_source_line on second
27816 NOTE_INSN_BASIC_BLOCK.
27817
27818 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27819
27820 PR target/60205
27821 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27822 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27823 (type_natural_mode): Warn ABI change when %zmm register is not
27824 available for AVX512F vector value passing.
27825
27826 2014-02-18 Kai Tietz <ktietz@redhat.com>
27827
27828 PR target/60193
27829 * config/i386/i386.c (ix86_expand_prologue): Use value in
27830 rax register as displacement when restoring %r10 or %rax.
27831 Fix wrong offset when restoring both registers.
27832
27833 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27834
27835 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27836 assertion with conditional return.
27837
27838 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27839 Uros Bizjak <ubizjak@gmail.com>
27840
27841 PR driver/60233
27842 * config/i386/driver-i386.c (host_detect_local_cpu): If
27843 YMM state is not saved by the OS, also clear has_f16c. Move
27844 CPUID 0x80000001 handling before YMM state saving checking.
27845
27846 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27847
27848 PR rtl-optimization/58960
27849 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27850 factored out from ...
27851 (sched_init): ... here.
27852 (free_global_sched_pressure_data): New, factored out from ...
27853 (sched_finish): ... here.
27854 * sched-int.h (free_global_sched_pressure_data): Declare.
27855 * sched-rgn.c (nr_regions_initial): New static global.
27856 (haifa_find_rgns): Initialize it.
27857 (schedule_region): Disable sched-pressure for the newly
27858 generated regions.
27859
27860 2014-02-17 Richard Biener <rguenther@suse.de>
27861
27862 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27863 release SSA defs of pattern stmts.
27864
27865 2014-02-17 Richard Biener <rguenther@suse.de>
27866
27867 * tree-inline.c (expand_call_inline): Release the virtual
27868 operand defined by the call we are about to inline.
27869
27870 2014-02-17 Richard Biener <rguenther@suse.de>
27871
27872 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27873
27874 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27875 Ilya Tocar <ilya.tocar@intel.com>
27876
27877 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27878 arguments order in builtin.
27879 (_mm512_permutexvar_epi64): Ditto.
27880 (_mm512_mask_permutexvar_epi64): Ditto
27881 (_mm512_maskz_permutexvar_epi32): Ditto
27882 (_mm512_permutexvar_epi32): Ditto
27883 (_mm512_mask_permutexvar_epi32): Ditto
27884
27885 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27886
27887 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27888 (p8_vmrgow): Likewise.
27889
27890 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27891
27892 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27893 endian targets.
27894
27895 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27896
27897 PR target/60203
27898 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27899 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27900 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27901 using direct move instructions on ISA 2.07. Also adjust
27902 instruction length for 64-bit.
27903 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27904 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27905
27906 2014-02-15 Alan Modra <amodra@gmail.com>
27907
27908 PR target/58675
27909 PR target/57935
27910 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27911 find_replacement on parts of insn rtl that might be reloaded.
27912
27913 2014-02-15 Richard Biener <rguenther@suse.de>
27914
27915 PR tree-optimization/60183
27916 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27917 (tree_ssa_phiprop): Calculate and free post-dominators.
27918
27919 2014-02-14 Jeff Law <law@redhat.com>
27920
27921 PR rtl-optimization/60131
27922 * ree.c (get_extended_src_reg): New function.
27923 (combine_reaching_defs): Use it rather than assuming location of REG.
27924 (find_and_remove_re): Verify first operand of extension is
27925 a REG before adding the insns to the copy list.
27926
27927 2014-02-14 Roland McGrath <mcgrathr@google.com>
27928
27929 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27930 * configure: Regenerated.
27931 * config.in: Regenerated.
27932 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27933 instead of ASM_SHORT.
27934
27935 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27936 Richard Earnshaw <rearnsha@arm.com>
27937
27938 PR rtl-optimization/59535
27939 * lra-constraints.c (process_alt_operands): Encourage alternative
27940 when unassigned pseudo class is superset of the alternative class.
27941 (inherit_reload_reg): Don't inherit when optimizing for code size.
27942 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27943 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27944 modes not less than 4 for Thumb1.
27945
27946 2014-02-14 Kyle McMartin <kyle@redhat.com>
27947
27948 PR pch/60010
27949 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27950
27951 2014-02-14 Richard Biener <rguenther@suse.de>
27952
27953 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27954 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27955 Do not strip INDIRECT_REFs.
27956
27957 2014-02-14 Richard Biener <rguenther@suse.de>
27958
27959 PR lto/60179
27960 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27961 DECL_FUNCTION_SPECIFIC_TARGET.
27962 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27963 * tree-streamer-out.c (pack_ts_target_option): Remove.
27964 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27965 (write_ts_function_decl_tree_pointers): Do not stream
27966 DECL_FUNCTION_SPECIFIC_TARGET.
27967 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27968 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27969 (lto_input_ts_function_decl_tree_pointers): Do not stream
27970 DECL_FUNCTION_SPECIFIC_TARGET.
27971
27972 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27973
27974 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27975 (get_initial_def_for_induction, vectorizable_induction): Ignore
27976 debug stmts when looking for exit_phi.
27977 (vectorizable_live_operation): Fix up condition.
27978
27979 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27980
27981 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27982 nreverse() because it changes the content of original tree list.
27983
27984 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27985
27986 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27987 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27988
27989 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27990
27991 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27992 GNU coding standards.
27993
27994 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27995
27996 PR debug/60152
27997 * dwarf2out.c (gen_subprogram_die): Don't call
27998 add_calling_convention_attribute if subr_die is old_die.
27999
28000 2014-02-13 Sharad Singhai <singhai@google.com>
28001
28002 * doc/optinfo.texi: Fix order of nodes.
28003
28004 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
28005
28006 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
28007 operands[2], not operands[3].
28008
28009 2014-02-13 Richard Biener <rguenther@suse.de>
28010
28011 PR bootstrap/59878
28012 * doc/install.texi (ISL): Update recommended version to 0.12.2,
28013 mention the possibility of an in-tree build.
28014 (CLooG): Update recommended version to 0.18.1, mention the
28015 possibility of an in-tree build and clarify that the ISL
28016 bundled with CLooG does not work.
28017
28018 2014-02-13 Jakub Jelinek <jakub@redhat.com>
28019
28020 PR target/43546
28021 * expr.c (compress_float_constant): If x is a hard register,
28022 extend into a pseudo and then move to x.
28023
28024 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
28025
28026 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
28027 caused by bad second argument to warning_at() with -mhotpatch and
28028 nested functions (e.g. with gfortran).
28029
28030 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
28031
28032 * opts.c (option_name): Remove "enabled by default" rider.
28033
28034 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
28035
28036 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
28037
28038 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
28039 Uros Bizjak <ubizjak@gmail.com>
28040
28041 PR target/60151
28042 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
28043 * configure: Regenerated.
28044
28045 2014-02-12 Richard Biener <rguenther@suse.de>
28046
28047 * vec.c (vec_prefix::calculate_allocation): Move as
28048 inline variant to vec.h.
28049 (vec_prefix::calculate_allocation_1): New out-of-line version.
28050 * vec.h (vec_prefix::calculate_allocation_1): Declare.
28051 (vec_prefix::m_has_auto_buf): Rename to ...
28052 (vec_prefix::m_using_auto_storage): ... this.
28053 (vec_prefix::calculate_allocation): Inline the easy cases
28054 and dispatch to calculate_allocation_1 which doesn't need the
28055 prefix address.
28056 (va_heap::reserve): Use gcc_checking_assert.
28057 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
28058 m_using_auto_storage.
28059 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
28060 member and adjust.
28061 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
28062 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
28063 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
28064
28065 2014-02-12 Richard Biener <rguenther@suse.de>
28066
28067 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
28068 when we found a dependence.
28069
28070 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
28071
28072 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
28073 common code...
28074 (maybe_fold_stmt): ... into this new function.
28075 * omp-low.c (lower_omp): Update comment.
28076
28077 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
28078 last use.
28079
28080 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
28081 dereference.
28082
28083 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
28084
28085 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
28086 identifiers in comments.
28087 (cortexa53_extra_costs): Likewise.
28088 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
28089 (cortexa7_extra_costs): Likewise.
28090 (cortexa12_extra_costs): Likewise.
28091 (cortexa15_extra_costs): Likewise.
28092 (v7m_extra_costs): Likewise.
28093
28094 2014-02-12 Richard Biener <rguenther@suse.de>
28095
28096 PR middle-end/60092
28097 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
28098 of posix_memalign being successful.
28099 (lower_stmt): Restrict lowering of posix_memalign to when
28100 -ftree-bit-ccp is enabled.
28101
28102 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28103
28104 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
28105 arg_loc.
28106 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
28107
28108 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
28109
28110 PR rtl-optimization/60116
28111 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
28112 other_insn once the combination has been validated.
28113
28114 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
28115
28116 PR lto/59468
28117 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
28118 and wrapper.
28119 * ipa-devirt.c: Include demangle.h
28120 (odr_violation_reported): New static variable.
28121 (add_type_duplicate): Update odr_violations.
28122 (maybe_record_node): Add completep parameter; update it.
28123 (record_target_from_binfo): Add COMPLETEP parameter;
28124 update it as needed.
28125 (possible_polymorphic_call_targets_1): Likewise.
28126 (struct polymorphic_call_target_d): Add nonconstruction_targets;
28127 rename FINAL to COMPLETE.
28128 (record_targets_from_bases): Sanity check we found the binfo;
28129 fix COMPLETEP updating.
28130 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
28131 parameter, fix computing of COMPLETEP.
28132 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
28133 at LTO time do demangling.
28134 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
28135 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
28136 parameter.
28137 (gimple_get_virt_method_for_binfo): Likewise.
28138 * gimple-fold.h (gimple_get_virt_method_for_binfo,
28139 gimple_get_virt_method_for_vtable): Update prototypes.
28140
28141 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
28142
28143 PR target/49008
28144 * genautomata.c (add_presence_absence): Fix typo with
28145 {final_}presence_list.
28146
28147 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28148
28149 PR target/60137
28150 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
28151 for VSX/Altivec vectors that land in GPR registers.
28152
28153 2014-02-11 Richard Henderson <rth@redhat.com>
28154 Jakub Jelinek <jakub@redhat.com>
28155
28156 PR debug/59776
28157 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
28158 around drhs if type conversion to lacc->type is not useless.
28159
28160 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28161
28162 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
28163 tuning struct.
28164 (cortex-a57.cortex-a53): Likewise.
28165 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
28166
28167 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28168
28169 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
28170 arm_restrict_it.
28171
28172 2014-02-11 Renlin Li <Renlin.Li@arm.com>
28173
28174 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
28175 add_options_for_arm_vfp3.
28176
28177 2014-02-11 Jeff Law <law@redhat.com>
28178
28179 PR middle-end/54041
28180 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
28181 object with an undesirable mode.
28182
28183 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28184
28185 PR libgomp/60107
28186 * config/i386/sol2-9.h: New file.
28187 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
28188 *-*-solaris2.9*): Use it.
28189
28190 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
28191
28192 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
28193 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
28194
28195 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
28196
28197 * config/microblaze/microblaze.c: Extend mcpu version format
28198
28199 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
28200
28201 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
28202
28203 2014-02-10 Richard Henderson <rth@redhat.com>
28204
28205 PR target/59927
28206 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
28207 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
28208 ms-abi vs -mno-accumulate-outgoing-args.
28209 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
28210 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
28211 respect to ms-abi.
28212
28213 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
28214
28215 PR middle-end/60080
28216 * cfgexpand.c (expand_asm_operands): Attach source location to
28217 ASM_INPUT rtx objects.
28218 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
28219
28220 2014-02-10 Nick Clifton <nickc@redhat.com>
28221
28222 * config/mn10300/mn10300.c (popcount): New function.
28223 (mn10300_expand_prologue): Include saved registers in stack usage
28224 count.
28225
28226 2014-02-10 Jeff Law <law@redhat.com>
28227
28228 PR middle-end/52306
28229 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
28230 when changing the SET_DEST of a prior insn to avoid an input reload.
28231
28232 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28233
28234 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
28235 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
28236 -mcall-openbsd, or -mcall-linux.
28237 (CC1_ENDIAN_BIG_SPEC): Remove.
28238 (CC1_ENDIAN_LITTLE_SPEC): Remove.
28239 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28240 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
28241 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
28242 and %cc1_endian_default.
28243 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
28244
28245 2014-02-10 Richard Biener <rguenther@suse.de>
28246
28247 PR tree-optimization/60115
28248 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
28249 MEM_REF handling. Properly verify that the accesses are not
28250 out of the objects bound.
28251
28252 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28253
28254 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
28255 coretex to cortex.
28256
28257 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
28258
28259 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
28260 proper constants and fix formatting.
28261 (possible_polymorphic_call_targets): Fix formatting.
28262
28263 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
28264 Ilya Tocar <ilya.tocar@intel.com>
28265
28266 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
28267 (_mm512_loadu_epi32): Renamed into...
28268 (_mm512_loadu_si512): This.
28269 (_mm512_storeu_epi32): Renamed into...
28270 (_mm512_storeu_si512): This.
28271 (_mm512_maskz_ceil_ps): Removed.
28272 (_mm512_maskz_ceil_pd): Ditto.
28273 (_mm512_maskz_floor_ps): Ditto.
28274 (_mm512_maskz_floor_pd): Ditto.
28275 (_mm512_floor_round_ps): Ditto.
28276 (_mm512_floor_round_pd): Ditto.
28277 (_mm512_ceil_round_ps): Ditto.
28278 (_mm512_ceil_round_pd): Ditto.
28279 (_mm512_mask_floor_round_ps): Ditto.
28280 (_mm512_mask_floor_round_pd): Ditto.
28281 (_mm512_mask_ceil_round_ps): Ditto.
28282 (_mm512_mask_ceil_round_pd): Ditto.
28283 (_mm512_maskz_floor_round_ps): Ditto.
28284 (_mm512_maskz_floor_round_pd): Ditto.
28285 (_mm512_maskz_ceil_round_ps): Ditto.
28286 (_mm512_maskz_ceil_round_pd): Ditto.
28287 (_mm512_expand_pd): Ditto.
28288 (_mm512_expand_ps): Ditto.
28289 * config/i386/i386.c (ix86_builtins): Remove
28290 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
28291 (bdesc_args): Ditto.
28292 * config/i386/predicates.md (const1256_operand): New.
28293 (const_1_to_2_operand): Ditto.
28294 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28295 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28296 (*avx512pf_gatherpf<mode>sf): Ditto.
28297 (avx512pf_gatherpf<mode>df): Ditto.
28298 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28299 (*avx512pf_gatherpf<mode>df): Ditto.
28300 (avx512pf_scatterpf<mode>sf): Ditto.
28301 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28302 (*avx512pf_scatterpf<mode>sf): Ditto.
28303 (avx512pf_scatterpf<mode>df): Ditto.
28304 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28305 (*avx512pf_scatterpf<mode>df): Ditto.
28306 (avx512f_expand<mode>): Removed.
28307 (<shift_insn><mode>3<mask_name>): Change predicate type.
28308
28309 2014-02-08 Jakub Jelinek <jakub@redhat.com>
28310
28311 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
28312 not at the end of datarefs vector use ordered_remove to avoid
28313 reordering datarefs vector.
28314
28315 PR c/59984
28316 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
28317 mark local addressable non-static vars as GOVD_PRIVATE
28318 instead of GOVD_LOCAL.
28319 * omp-low.c (lower_omp_for): Move gimple_bind_vars
28320 and BLOCK_VARS of gimple_bind_block to new_stmt rather
28321 than copying them.
28322
28323 PR middle-end/60092
28324 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
28325 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
28326 assume_aligned or alloc_align attributes.
28327 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
28328 arguments. Handle also assume_aligned and alloc_align attributes.
28329 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
28330 calls to functions with assume_aligned or alloc_align attributes.
28331 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
28332
28333 2014-02-08 Terry Guo <terry.guo@arm.com>
28334
28335 * doc/invoke.texi: Document ARM -march=armv7e-m.
28336
28337 2014-02-08 Jakub Jelinek <jakub@redhat.com>
28338
28339 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
28340 flag on __cilkrts_rethrow builtin.
28341
28342 PR ipa/60026
28343 * ipa-cp.c (determine_versionability): Fail at -O0
28344 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
28345 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
28346
28347 Revert:
28348 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28349
28350 PR ipa/60026
28351 * tree-inline.c (copy_forbidden): Fail for
28352 __attribute__((optimize (0))) functions.
28353
28354 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
28355
28356 * varpool.c: Include pointer-set.h.
28357 (varpool_remove_unreferenced_decls): Variables in other partitions
28358 will not be output; be however careful to not lose information
28359 about partitioning.
28360
28361 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
28362
28363 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
28364 lookup in the vtable constructor.
28365
28366 2014-02-07 Jeff Law <law@redhat.com>
28367
28368 PR target/40977
28369 * config/m68k/m68k.md (ashldi_extsi): Turn into a
28370 define_insn_and_split.
28371
28372 * ipa-inline.c (inline_small_functions): Fix typos.
28373
28374 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28375
28376 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
28377 (s390_can_use_return_insn): Declare.
28378 * config/s390/s390.h (EPILOGUE_USES): Define.
28379 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
28380 instructions.
28381 (s390_chunkify_start): Handle return JUMP_LABELs.
28382 (s390_early_mach): Emit a main_pool instruction on the entry edge.
28383 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
28384 (s390_can_use_return_insn): New functions.
28385 (s390_fix_long_loop_prediction): Handle conditional returns.
28386 (TARGET_SET_UP_BY_PROLOGUE): Define.
28387 * config/s390/s390.md (ANY_RETURN): New code iterator.
28388 (*creturn, *csimple_return, return, simple_return): New patterns.
28389
28390 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28391
28392 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
28393 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
28394 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
28395 REG_CFA_RESTORE list when deciding not to restore a register.
28396
28397 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28398
28399 * config/s390/s390.c: Include tree-pass.h and context.h.
28400 (s390_early_mach): New function, split out from...
28401 (s390_emit_prologue): ...here.
28402 (pass_data_s390_early_mach): New pass structure.
28403 (pass_s390_early_mach): New class.
28404 (s390_option_override): Create and register early_mach pass.
28405 Move to end of file.
28406
28407 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28408
28409 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
28410 to match for the exit block.
28411
28412 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28413
28414 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
28415 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
28416 Reject misaligned operands.
28417
28418 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28419
28420 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
28421
28422 2014-02-07 Richard Biener <rguenther@suse.de>
28423
28424 PR middle-end/60092
28425 * gimple-low.c (lower_builtin_posix_memalign): New function.
28426 (lower_stmt): Call it to lower posix_memalign in a way
28427 to make alignment info accessible.
28428
28429 2014-02-07 Jakub Jelinek <jakub@redhat.com>
28430
28431 PR c++/60082
28432 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
28433 __builtin_setjmp_receiver.
28434
28435 2014-02-07 Richard Biener <rguenther@suse.de>
28436
28437 PR middle-end/60092
28438 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
28439 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
28440 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28441 Handle BUILT_IN_POSIX_MEMALIGN.
28442 (find_func_clobbers): Likewise.
28443 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28444 (call_may_clobber_ref_p_1): Likewise.
28445
28446 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28447
28448 PR ipa/59918
28449 * ipa-devirt.c (record_target_from_binfo): Remove overactive
28450 sanity check.
28451
28452 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28453
28454 PR ipa/59469
28455 * lto-cgraph.c (lto_output_node): Use
28456 symtab_get_symbol_partitioning_class.
28457 (lto_output_varpool_node): likewise.
28458 (symtab_get_symbol_partitioning_class): Move here from
28459 lto/lto-partition.c
28460 * cgraph.h (symbol_partitioning_class): Likewise.
28461 (symtab_get_symbol_partitioning_class): Declare.
28462
28463 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28464
28465 * ggc.h (ggc_internal_cleared_alloc): New macro.
28466 * vec.h (vec_safe_copy): Handle memory stats.
28467 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28468 * target-globals.c (save_target_globals): Likewise.
28469
28470 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28471
28472 PR target/60077
28473 * expr.c (emit_move_resolve_push): Export; be bit more selective
28474 on when to clear alias set.
28475 * expr.h (emit_move_resolve_push): Declare.
28476 * function.h (struct function): Add tail_call_marked.
28477 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28478 * config/i386/i386-protos.h (ix86_expand_push): Remove.
28479 * config/i386/i386.md (TImode move expander): De not call
28480 ix86_expand_push.
28481 (FP push expanders): Preserve memory attributes.
28482 * config/i386/sse.md (push<mode>1): Remove.
28483 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28484 (ix86_expand_push): Remove.
28485 * config/i386/mmx.md (push<mode>1): Remove.
28486
28487 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28488
28489 PR rtl-optimization/60030
28490 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28491 lopart with paradoxical subreg before shifting it up by hprec.
28492
28493 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28494
28495 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28496 Remove extra newline at end of file.
28497 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28498 (arm_issue_rate): Handle cortexa57.
28499 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28500 (cortex-a57.cortex-a53): Likewise.
28501
28502 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28503
28504 PR target/59575
28505 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28506 don't record in REG_FRAME_RELATED_EXPR registers not set in that
28507 bitmask.
28508 (arm_expand_prologue): Adjust all callers.
28509 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28510 info, registers also at the lowest numbered registers side. Use
28511 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28512 XEXP.
28513
28514 PR debug/59992
28515 * var-tracking.c (adjust_mems): Before adding a SET to
28516 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28517
28518 2014-02-06 Alan Modra <amodra@gmail.com>
28519
28520 PR target/60032
28521 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28522 change SDmode to DDmode when lra_in_progress.
28523
28524 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28525
28526 PR middle-end/59150
28527 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28528 free_data_ref on the dr first, and before goto again also set dr
28529 to the next dr. For simd_lane_access, free old datarefs[i] before
28530 overwriting it. For get_vectype_for_scalar_type failure, don't
28531 free_data_ref if simd_lane_access.
28532
28533 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28534
28535 PR target/60062
28536 * tree.h (opts_for_fn): New inline function.
28537 (opt_for_fn): Define.
28538 * config/i386/i386.c (ix86_function_regparm): Use
28539 opt_for_fn (decl, optimize) instead of optimize.
28540
28541 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
28542
28543 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28544 for SYMBOL_REF in large memory model.
28545
28546 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28547
28548 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28549 and crypto support.
28550 (cortex-a57): Likewise.
28551 (cortex-a57.cortex-a53): Likewise.
28552
28553 2014-02-06 Yury Gribov <y.gribov@samsung.com>
28554 Kugan Vivekanandarajah <kuganv@linaro.org>
28555
28556 * config/arm/arm.c (arm_vector_alignment_reachable): Check
28557 unaligned_access.
28558 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28559
28560 2014-02-06 Richard Biener <rguenther@suse.de>
28561
28562 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28563 set_loop_copy and initialize_original_copy_tables.
28564
28565 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
28566
28567 * config/aarch64/aarch64-simd.md
28568 (aarch64_ashr_simddi): Change QI to SI.
28569
28570 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28571 Jakub Jelinek <jakub@redhat.com>
28572
28573 PR middle-end/60013
28574 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28575 of the dataflow.
28576
28577 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28578
28579 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28580 CODE_FOR_altivec_vpku[hw]um to
28581 CODE_FOR_altivec_vpku[hw]um_direct.
28582 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28583 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28584 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28585 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28586
28587 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28588
28589 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28590 generation for -maltivec=be.
28591 (altivec_vsumsws): Simplify redundant test.
28592
28593 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28594
28595 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28596 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28597 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28598 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28599 gen_altivec_vpkuwum.
28600 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28601 BYTES_BIG_ENDIAN.
28602 (altivec_vpks<VI_char>ss): Likewise.
28603 (altivec_vpks<VI_char>us): Likewise.
28604 (altivec_vpku<VI_char>us): Likewise.
28605 (altivec_vpku<VI_char>um): Likewise.
28606 (altivec_vpku<VI_char>um_direct): New (copy of
28607 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28608 internal use).
28609 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28610 target is little endian and -maltivec=be is not specified.
28611 (*altivec_vupkhs<VU_char>_direct): New (copy of
28612 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28613 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28614 target is little endian and -maltivec=be is not specified.
28615 (*altivec_vupkls<VU_char>_direct): New (copy of
28616 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28617 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28618 little endian and -maltivec=be is not specified.
28619 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28620 little endian and -maltivec=be is not specified.
28621
28622 2014-02-05 Richard Henderson <rth@redhat.com>
28623
28624 PR debug/52727
28625 * combine-stack-adj.c: Revert r206943.
28626 * sched-int.h (struct deps_desc): Add last_args_size.
28627 * sched-deps.c (init_deps): Initialize it.
28628 (sched_analyze_insn): Add OUTPUT dependencies between insns that
28629 contain REG_ARGS_SIZE notes.
28630
28631 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28632
28633 * lto-cgraph.c (asm_nodes_output): Make global.
28634 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28635 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28636 (driver_handle_option): Handle OPT_fwpa.
28637
28638 2014-02-05 Jakub Jelinek <jakub@redhat.com>
28639
28640 PR ipa/59947
28641 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28642 a comment typo and formatting issue. If odr_hash hasn't been
28643 created, return vNULL and set *completep to false.
28644
28645 PR middle-end/57499
28646 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28647 bb with no successors.
28648
28649 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28650
28651 PR target/59718
28652 * doc/invoke.texi (-march): Clarify documentation for ARM.
28653 (-mtune): Likewise.
28654 (-mcpu): Likewise.
28655
28656 2014-02-05 Richard Biener <rguenther@suse.de>
28657
28658 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28659 when not vectorizing because of too many alias checks.
28660 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28661 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28662
28663 2014-02-05 Nick Clifton <nickc@redhat.com>
28664
28665 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28666 accept extended registers in any mode when compiling for the MN10300.
28667
28668 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28669
28670 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28671 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28672 sanitization attributes.
28673 (can_inline_edge_p): Likewise.
28674 (sanitize_attrs_match_for_inline_p): New function.
28675
28676 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28677
28678 * ipa-prop.c (detect_type_change): Shor circuit testing of
28679 type changes on THIS pointer.
28680
28681 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28682
28683 PR target/59777
28684 * config/pa/pa.c (legitimize_tls_address): Return original address
28685 if not passed a SYMBOL_REF rtx.
28686 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28687 addresses.
28688 (pa_emit_move_sequence): Simplify TLS source operands.
28689 (pa_legitimate_constant_p): Reject all TLS constants.
28690 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28691 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28692
28693 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28694
28695 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28696 groups when we know they are controlled by LTO.
28697 * varasm.c (default_binds_local_p_1): If object is in other partition,
28698 it will be resolved locally.
28699
28700 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28701
28702 * config/host-linux.c (linux_gt_pch_use_address): Don't
28703 use SSIZE_MAX because it is not always defined.
28704
28705 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28706
28707 PR bootstrap/59913
28708 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28709 threshold for pseudo splitting.
28710 (update_ebb_live_info): Process call argument hard registers and
28711 hard registers from insn definition too.
28712 (max_small_class_regs_num): New constant.
28713 (inherit_in_ebb): Update live hard regs through EBBs. Update
28714 reloads_num only for small register classes. Don't split for
28715 outputs of jumps.
28716
28717 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28718
28719 PR ipa/60058
28720 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28721 is non-null.
28722
28723 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28724
28725 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28726 visibility is safe.
28727
28728 2014-02-04 Marek Polacek <polacek@redhat.com>
28729
28730 * gdbinit.in (pel): Define.
28731
28732 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28733
28734 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28735 behavior.
28736
28737 2014-02-04 Richard Biener <rguenther@suse.de>
28738
28739 PR lto/59723
28740 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28741 in function context local.
28742 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28743 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28744 similar to LTO_imported_decl_ref.
28745
28746 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28747
28748 PR tree-optimization/60002
28749 * cgraphclones.c (build_function_decl_skip_args): Clear
28750 DECL_LANG_SPECIFIC.
28751
28752 PR tree-optimization/60023
28753 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28754 false to gsi_replace.
28755 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28756 has been in some EH region and vec_stmt could throw, add
28757 vec_stmt into the same EH region.
28758 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28759 has no lhs, ignore it.
28760 * internal-fn.c (expand_MASK_LOAD): Likewise.
28761
28762 PR ipa/60026
28763 * tree-inline.c (copy_forbidden): Fail for
28764 __attribute__((optimize (0))) functions.
28765
28766 PR other/58712
28767 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28768 is set, copy one less argument.
28769 (expand_simd_clones): Don't subtract clone_info->inbranch
28770 from simd_clone_struct_alloc argument.
28771
28772 PR rtl-optimization/57915
28773 * recog.c (simplify_while_replacing): If all unary/binary/relational
28774 operation arguments are constant, attempt to simplify those.
28775
28776 PR middle-end/59261
28777 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28778 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28779
28780 2014-02-04 Richard Biener <rguenther@suse.de>
28781
28782 PR tree-optimization/60012
28783 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28784 TBAA disambiguation to all DDRs.
28785
28786 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28787
28788 PR target/59788
28789 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28790 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28791
28792 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28793
28794 PR ipa/59882
28795 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28796
28797 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28798
28799 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28800 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28801
28802 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28803
28804 PR ipa/59831
28805 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28806 to figure out targets of polymorphic calls with known decl.
28807 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28808 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28809 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28810 (get_polymorphic_call_info): ... here.
28811 (get_polymorphic_call_info_from_invariant): New function.
28812
28813 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28814
28815 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28816 lookup via vtable pointer; check for type consistency
28817 and turn inconsitent facts into UNREACHABLE.
28818 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28819 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28820 type inconsistent querries; return UNREACHABLE instead.
28821
28822 2014-02-03 Richard Henderson <rth@twiddle.net>
28823
28824 PR tree-opt/59924
28825 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28826 already processed this node.
28827 (normalize_one_pred_1): Pass along mark_set.
28828 (normalize_one_pred): Create and destroy a pointer_set_t.
28829 (normalize_one_pred_chain): Likewise.
28830
28831 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28832
28833 PR gcov-profile/58602
28834 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28835
28836 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28837
28838 PR ipa/59831
28839 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28840 -fno-devirtualize; try to devirtualize by the knowledge of
28841 virtual table pointer given by aggregate propagation.
28842 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28843 (ipa_print_node_jump_functions): Dump also offset that
28844 is relevant for polymorphic calls.
28845 (determine_known_aggregate_parts): Add arg_type parameter; use it
28846 instead of determining the type from pointer type.
28847 (ipa_compute_jump_functions_for_edge): Update call of
28848 determine_known_aggregate_parts.
28849 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28850 (gimple_get_virt_method_for_binfo): ... here; simplify using
28851 vtable_pointer_value_to_vtable.
28852 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28853 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28854 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28855 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28856 POINTER_PLUS_EXPR.
28857 (vtable_pointer_value_to_binfo): ... here.
28858 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28859
28860 2014-02-03 Teresa Johnson <tejohnson@google.com>
28861
28862 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28863 redef of outer loop index variable.
28864
28865 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28866
28867 PR c++/53017
28868 PR c++/59211
28869 * doc/extend.texi (Function Attributes): Typo.
28870
28871 2014-02-03 Cong Hou <congh@google.com>
28872
28873 PR tree-optimization/60000
28874 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28875 if the vectorized statement is a store. A store statement can only
28876 appear at the end of pattern statements.
28877
28878 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28879
28880 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28881 (ix86_option_override_internal): Default long double to 64-bit for
28882 32-bit Bionic and to 128-bit for 64-bit Bionic.
28883
28884 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28885 TARGET_LONG_DOUBLE_128 is true.
28886 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28887
28888 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28889 (mlong-double-64): Negate -mlong-double-128.
28890 (mlong-double-128): New option.
28891
28892 * config/i386/i386-c.c (ix86_target_macros): Define
28893 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28894
28895 * doc/invoke.texi: Document -mlong-double-128.
28896
28897 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28898
28899 PR rtl-optimization/60024
28900 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28901
28902 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28903
28904 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28905
28906 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28907
28908 PR rtl-optimization/57662
28909 * sel-sched.c (code_motion_path_driver): Do not mark already not
28910 existing blocks in the visiting bitmap.
28911
28912 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28913
28914 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28915 on the insn being emitted.
28916
28917 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28918 Will Deacon <will.deacon@arm.com>
28919
28920 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28921
28922 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28923
28924 * config/arm/arm-tables.opt: Regenerate.
28925
28926 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28927
28928 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28929 for vector types other than V16QImode.
28930 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28931 define_expand, and call altivec_expand_vec_perm_le when producing
28932 code with little endian element order.
28933 (*altivec_vperm_<mode>_internal): New insn having previous
28934 behavior of altivec_vperm_<mode>.
28935 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28936 altivec_expand_vec_perm_le when producing code with little endian
28937 element order.
28938 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28939 behavior of altivec_vperm_<mode>_uns.
28940
28941 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28942
28943 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28944 (altivec_vsumsws): Add handling for -maltivec=be with a little
28945 endian target.
28946 (altivec_vsumsws_direct): New.
28947 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28948 gen_altivec_vsumsws.
28949
28950 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28951
28952 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28953 vtable_pointer_value_to_binfo): New functions.
28954 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28955 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28956
28957 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28958
28959 * config/nios2/nios2.md (load_got_register): Initialize GOT
28960 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28961 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28962
28963 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28964
28965 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28966 preserverd by passthrough, do not propagate the type.
28967
28968 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28969
28970 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28971 (mips_atomic_assign_expand_fenv): New function.
28972 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28973
28974 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28975
28976 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28977 (__builtin_mips_set_fcsr): Likewise.
28978 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28979 MIPS_USI_FTYPE_VOID.
28980 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28981 (mips16_expand_set_fcsr): Likewise.
28982 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28983 (mips16_set_fcsr_stub): Likewise.
28984 (mips16_get_fcsr_one_only_stub): New class.
28985 (mips16_set_fcsr_one_only_stub): Likewise.
28986 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28987 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28988 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28989 (hard_float): New availability predicate.
28990 (mips_builtins): Add get_fcsr and set_fcsr.
28991 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28992 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28993 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28994 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28995 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28996 patterns.
28997
28998 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28999
29000 * config/mips/mips.c (mips_one_only_stub): New class.
29001 (mips_need_mips16_rdhwr_p): Replace with...
29002 (mips16_rdhwr_stub): ...this new variable.
29003 (mips16_stub_call_address): New function.
29004 (mips16_rdhwr_one_only_stub): New class.
29005 (mips_expand_thread_pointer): Use mips16_stub_call_address.
29006 (mips_output_mips16_rdhwr): Delete.
29007 (mips_finish_stub): New function.
29008 (mips_code_end): Use it to handle rdhwr stubs.
29009
29010 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
29011
29012 PR target/60017
29013 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
29014 when calculating size of integer atomic types.
29015
29016 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
29017
29018 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
29019
29020 2014-02-01 Jakub Jelinek <jakub@redhat.com>
29021
29022 PR tree-optimization/60003
29023 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
29024 * profile.c (branch_prob): Use gimple_call_builtin_p
29025 to check for BUILT_IN_SETJMP_RECEIVER.
29026 * tree-inline.c (copy_bb): Call notice_special_calls.
29027
29028 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
29029
29030 PR bootstrap/59985
29031 * lra-constraints.c (process_alt_operands): Update reload_sum only
29032 on the first pass.
29033
29034 2014-01-31 Richard Henderson <rth@redhat.com>
29035
29036 PR middle-end/60004
29037 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
29038 until after else_eh is processed.
29039
29040 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
29041
29042 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
29043 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
29044 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
29045 in smmintrin.h, remove them.
29046 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
29047 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
29048 * config/i386/i386.md (ROUND_SAE): Fix value.
29049 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
29050 (const48_operand): New.
29051 * config/i386/subst.md (round), (round_expand): Use
29052 const_4_or_8_to_11_operand.
29053 (round_saeonly), (round_saeonly_expand): Use const48_operand.
29054
29055 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
29056
29057 * config/i386/constraints.md (Yk): Swap meaning with k.
29058 * config/i386/i386.md (movhi_internal): Change Yk to k.
29059 (movqi_internal): Ditto.
29060 (*k<logic><mode>): Ditto.
29061 (*andhi_1): Ditto.
29062 (*andqi_1): Ditto.
29063 (kandn<mode>): Ditto.
29064 (*<code>hi_1): Ditto.
29065 (*<code>qi_1): Ditto.
29066 (kxnor<mode>): Ditto.
29067 (kortestzhi): Ditto.
29068 (kortestchi): Ditto.
29069 (kunpckhi): Ditto.
29070 (*one_cmplhi2_1): Ditto.
29071 (*one_cmplqi2_1): Ditto.
29072 * config/i386/sse.md (): Change k to Yk.
29073 (avx512f_load<mode>_mask): Ditto.
29074 (avx512f_blendm<mode>): Ditto.
29075 (avx512f_store<mode>_mask): Ditto.
29076 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
29077 (avx512f_storedqu<mode>_mask): Ditto.
29078 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
29079 Ditto.
29080 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
29081 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
29082 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
29083 (avx512f_maskcmp<mode>3): Ditto.
29084 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
29085 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
29086 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
29087 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
29088 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
29089 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
29090 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
29091 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
29092 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
29093 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
29094 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
29095 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
29096 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
29097 (vec_extract_lo_<mode>_maskm): Ditto.
29098 (vec_extract_hi_<mode>_maskm): Ditto.
29099 (avx512f_vternlog<mode>_mask): Ditto.
29100 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
29101 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
29102 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
29103 (avx512f_<code>v8div16qi2_mask): Ditto.
29104 (avx512f_<code>v8div16qi2_mask_store): Ditto.
29105 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
29106 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
29107 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
29108 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
29109 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29110 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29111 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29112 (*avx512pf_scatterpf<mode>df_mask): Ditto.
29113 (avx512cd_maskb_vec_dupv8di): Ditto.
29114 (avx512cd_maskw_vec_dupv16si): Ditto.
29115 (avx512f_vpermi2var<mode>3_maskz): Ditto.
29116 (avx512f_vpermi2var<mode>3_mask): Ditto.
29117 (avx512f_vpermi2var<mode>3_mask): Ditto.
29118 (avx512f_vpermt2var<mode>3_maskz): Ditto.
29119 (*avx512f_gathersi<mode>): Ditto.
29120 (*avx512f_gathersi<mode>_2): Ditto.
29121 (*avx512f_gatherdi<mode>): Ditto.
29122 (*avx512f_gatherdi<mode>_2): Ditto.
29123 (*avx512f_scattersi<mode>): Ditto.
29124 (*avx512f_scatterdi<mode>): Ditto.
29125 (avx512f_compress<mode>_mask): Ditto.
29126 (avx512f_compressstore<mode>_mask): Ditto.
29127 (avx512f_expand<mode>_mask): Ditto.
29128 * config/i386/subst.md (mask): Change k to Yk.
29129 (mask_scalar_merge): Ditto.
29130 (sd): Ditto.
29131
29132 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
29133
29134 * doc/extend.texi (Vector Extensions): Document ?: in C++.
29135
29136 2014-01-31 Richard Biener <rguenther@suse.de>
29137
29138 PR middle-end/59990
29139 * builtins.c (fold_builtin_memory_op): Make sure to not
29140 use a floating-point mode or a boolean or enumeral type for
29141 the copy operation.
29142
29143 2014-01-30 DJ Delorie <dj@redhat.com>
29144
29145 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
29146 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
29147 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
29148 whenever main() has an epilogue.
29149
29150 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29151
29152 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
29153 unused variable "field".
29154 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
29155 (vsx_mergeh_<mode>): Likewise.
29156 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
29157 (altivec_vmrghh): Likewise.
29158 (altivec_vmrghw): Likewise.
29159 (altivec_vmrglb): Likewise.
29160 (altivec_vmrglh): Likewise.
29161 (altivec_vmrglw): Likewise.
29162 (altivec_vspltb): Add missing uses.
29163 (altivec_vsplth): Likewise.
29164 (altivec_vspltw): Likewise.
29165 (altivec_vspltsf): Likewise.
29166
29167 2014-01-30 Jakub Jelinek <jakub@redhat.com>
29168
29169 PR target/59923
29170 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
29171 frame related instructions.
29172
29173 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
29174
29175 PR rtl-optimization/59959
29176 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
29177 any reload of register whose subreg is invalid.
29178
29179 2014-01-30 Jakub Jelinek <jakub@redhat.com>
29180
29181 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
29182 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
29183 Add missing return type - void.
29184
29185 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29186
29187 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
29188 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
29189 remove element index adjustment for endian (now handled in vsx.md
29190 and altivec.md).
29191 (altivec_expand_vec_perm_const): Use
29192 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
29193 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
29194 (vsx_xxspltw_<mode>): Adjust element index for little endian.
29195 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
29196 define_expand and a new define_insn *altivec_vspltb_internal;
29197 adjust for -maltivec=be on a little endian target.
29198 (altivec_vspltb_direct): New.
29199 (altivec_vsplth): Divide into a define_expand and a new
29200 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
29201 little endian target.
29202 (altivec_vsplth_direct): New.
29203 (altivec_vspltw): Divide into a define_expand and a new
29204 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
29205 little endian target.
29206 (altivec_vspltw_direct): New.
29207 (altivec_vspltsf): Divide into a define_expand and a new
29208 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
29209 a little endian target.
29210
29211 2014-01-30 Richard Biener <rguenther@suse.de>
29212
29213 PR tree-optimization/59993
29214 * tree-ssa-forwprop.c (associate_pointerplus): Check we
29215 can propagate form the earlier stmt and avoid the transform
29216 when the intermediate result is needed.
29217
29218 2014-01-30 Alangi Derick <alangiderick@gmail.com>
29219
29220 * README.Portability: Fix typo.
29221
29222 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
29223
29224 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
29225 comparison_operator with ordered_comparison_operator.
29226
29227 2014-01-30 Nick Clifton <nickc@redhat.com>
29228
29229 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
29230 Rename to mn10300_store_multiple_regs.
29231 * config/mn10300/mn10300.c: Likewise.
29232 * config/mn10300/mn10300.md (store_movm): Fix typo: call
29233 store_multiple_regs.
29234 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
29235 Call mn10300_store_multiple_regs.
29236
29237 2014-01-30 Nick Clifton <nickc@redhat.com>
29238 DJ Delorie <dj@redhat.com>
29239
29240 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
29241 %fp 2 to keep registers after it properly word-aligned.
29242 (rl78_alloc_physical_registers_umul): Handle the case where both
29243 input operands are the same.
29244
29245 2014-01-30 Richard Biener <rguenther@suse.de>
29246
29247 PR tree-optimization/59903
29248 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
29249 check properly.
29250
29251 2014-01-30 Jason Merrill <jason@redhat.com>
29252
29253 PR c++/59633
29254 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
29255
29256 PR c++/59645
29257 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
29258
29259 2014-01-30 Richard Biener <rguenther@suse.de>
29260
29261 PR tree-optimization/59951
29262 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
29263
29264 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
29265
29266 PR target/59784
29267 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
29268 SFmode to DFmode case.
29269
29270 2014-01-29 DJ Delorie <dj@redhat.com>
29271
29272 * config/msp430/msp430.opt (-minrt): New.
29273 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
29274 if -minrt given.
29275 (ENDFILE_SPEC): Likewise.
29276
29277 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
29278
29279 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
29280 (estimate_function_body_sizes): Use it.
29281
29282 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
29283
29284 PR c++/58561
29285 * dwarf2out.c (is_cxx_auto): New.
29286 (is_base_type): Use it.
29287 (gen_type_die_with_usage): Likewise.
29288
29289 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29290
29291 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
29292 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
29293 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
29294 -maltivec=be with LE targets.
29295 (vsx_mergeh_<mode>): Likewise.
29296 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
29297 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
29298 (altivec_vmrghb): Replace with define_expand and new
29299 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
29300 (altivec_vmrghb_direct): New define_insn.
29301 (altivec_vmrghh): Replace with define_expand and new
29302 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
29303 (altivec_vmrghh_direct): New define_insn.
29304 (altivec_vmrghw): Replace with define_expand and new
29305 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
29306 (altivec_vmrghw_direct): New define_insn.
29307 (*altivec_vmrghsf): Adjust for endianness.
29308 (altivec_vmrglb): Replace with define_expand and new
29309 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
29310 (altivec_vmrglb_direct): New define_insn.
29311 (altivec_vmrglh): Replace with define_expand and new
29312 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
29313 (altivec_vmrglh_direct): New define_insn.
29314 (altivec_vmrglw): Replace with define_expand and new
29315 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
29316 (altivec_vmrglw_direct): New define_insn.
29317 (*altivec_vmrglsf): Adjust for endianness.
29318 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29319 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29320 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
29321 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
29322 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29323 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29324 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
29325 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
29326
29327 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
29328
29329 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
29330 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
29331 whitespace.
29332
29333 2014-01-29 Richard Biener <rguenther@suse.de>
29334
29335 PR tree-optimization/58742
29336 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
29337 associate_pointerplus_align.
29338 (associate_pointerplus_diff): New function.
29339 (associate_pointerplus): Likewise. Call associate_pointerplus_align
29340 and associate_pointerplus_diff.
29341
29342 2014-01-29 Richard Biener <rguenther@suse.de>
29343
29344 * lto-streamer.h (LTO_major_version): Bump to 3.
29345 (LTO_minor_version): Reset to 0.
29346
29347 2014-01-29 Renlin Li <Renlin.Li@arm.com>
29348
29349 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
29350 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
29351 (arm_file_start): Generate correct asm header for armv7ve.
29352 * config/arm/bpabi.h: Add multilib support for armv7ve.
29353 * config/arm/driver-arm.c: Change the architectures of cortex-a7
29354 and cortex-a15 to armv7ve.
29355 * config/arm/t-aprofile: Add multilib support for armv7ve.
29356 * doc/invoke.texi: Document -march=armv7ve.
29357
29358 2014-01-29 Richard Biener <rguenther@suse.de>
29359
29360 PR tree-optimization/58742
29361 * tree-ssa-forwprop.c (associate_plusminus): Return true
29362 if we changed sth, defer EH cleanup to ...
29363 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
29364 (simplify_mult): New function.
29365
29366 2014-01-29 Jakub Jelinek <jakub@redhat.com>
29367
29368 PR middle-end/59917
29369 PR tree-optimization/59920
29370 * tree.c (build_common_builtin_nodes): Remove
29371 __builtin_setjmp_dispatcher initialization.
29372 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
29373 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
29374 instead of gsi_after_labels + manually skipping debug stmts.
29375 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
29376 ignore bbs with IFN_ABNORMAL_DISPATCHER.
29377 * tree-inline.c (copy_edges_for_bb): Remove
29378 can_make_abnormal_goto argument, instead add abnormal_goto_dest
29379 argument. Ignore computed_goto_p stmts. Don't call
29380 make_abnormal_goto_edges. If a call might need abnormal edges
29381 for non-local gotos, see if it already has an edge to
29382 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
29383 with true argument, don't do anything then, otherwise add
29384 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
29385 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
29386 caller.
29387 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
29388 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
29389 (lower_stmt): Don't set data->calls_builtin_setjmp.
29390 (lower_builtin_setjmp): Adjust comment.
29391 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
29392 * tree-cfg.c (found_computed_goto): Remove.
29393 (factor_computed_gotos): Remove.
29394 (make_goto_expr_edges): Return bool, true for computed gotos.
29395 Don't call make_abnormal_goto_edges.
29396 (build_gimple_cfg): Don't set found_computed_goto, don't call
29397 factor_computed_gotos.
29398 (computed_goto_p): No longer static.
29399 (make_blocks): Don't set found_computed_goto.
29400 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
29401 (make_edges): If make_goto_expr_edges returns true, push bb
29402 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
29403 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
29404 vector. Record mapping between bbs and OpenMP regions if there
29405 are any, adjust make_gimple_omp_edges caller. Call
29406 handle_abnormal_edges.
29407 (make_abnormal_goto_edges): Remove.
29408 * tree-cfg.h (make_abnormal_goto_edges): Remove.
29409 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
29410 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
29411 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
29412 * internal-fn.def (ABNORMAL_DISPATCHER): New.
29413 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
29414 filling *region also set *region_idx to (*region)->entry->index.
29415
29416 PR other/58712
29417 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
29418 For REGs set ORIGINAL_REGNO.
29419
29420 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
29421
29422 * doc/md.texi: Mention that a target shouldn't implement
29423 vec_widen_(s|u)mul_even/odd pair if it is less efficient
29424 than hi/lo pair.
29425
29426 2014-01-29 Jakub Jelinek <jakub@redhat.com>
29427
29428 PR tree-optimization/59594
29429 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
29430 a copy of the datarefs vector rather than the vector itself.
29431
29432 2014-01-28 Jason Merrill <jason@redhat.com>
29433
29434 PR c++/53756
29435 * dwarf2out.c (auto_die): New static.
29436 (gen_type_die_with_usage): Handle C++1y 'auto'.
29437 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
29438 on definition.
29439
29440 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
29441
29442 PR target/59672
29443 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
29444 (SPEC_X32): Likewise.
29445 (SPEC_64): Likewise.
29446 * config/i386/i386.c (ix86_option_override_internal): Turn off
29447 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
29448 for TARGET_16BIT.
29449 (x86_file_start): Output .code16gcc for TARGET_16BIT.
29450 * config/i386/i386.h (TARGET_16BIT): New macro.
29451 (TARGET_16BIT_P): Likewise.
29452 * config/i386/i386.opt: Add m16.
29453 * doc/invoke.texi: Document -m16.
29454
29455 2014-01-28 Jakub Jelinek <jakub@redhat.com>
29456
29457 PR preprocessor/59935
29458 * input.c (location_get_source_line): Bail out on when line number
29459 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29460
29461 2014-01-28 Richard Biener <rguenther@suse.de>
29462
29463 PR tree-optimization/58742
29464 * tree-ssa-forwprop.c (associate_plusminus): Handle
29465 pointer subtraction of the form (T)(P + A) - (T)P.
29466
29467 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29468
29469 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29470 at const_int_cost.
29471
29472 2014-01-28 Richard Biener <rguenther@suse.de>
29473
29474 Revert
29475 2014-01-28 Richard Biener <rguenther@suse.de>
29476
29477 PR rtl-optimization/45364
29478 PR rtl-optimization/59890
29479 * var-tracking.c (local_get_addr_clear_given_value): Handle
29480 already cleared slot.
29481 (val_reset): Handle not allocated local_get_addr_cache.
29482 (vt_find_locations): Use post-order on the inverted CFG.
29483
29484 2014-01-28 Richard Biener <rguenther@suse.de>
29485
29486 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29487
29488 2014-01-28 Richard Biener <rguenther@suse.de>
29489
29490 PR rtl-optimization/45364
29491 PR rtl-optimization/59890
29492 * var-tracking.c (local_get_addr_clear_given_value): Handle
29493 already cleared slot.
29494 (val_reset): Handle not allocated local_get_addr_cache.
29495 (vt_find_locations): Use post-order on the inverted CFG.
29496
29497 2014-01-28 Alan Modra <amodra@gmail.com>
29498
29499 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29500 * configure.ac <recursive call for build != host>: Define
29501 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29502 and LD_FOR_BUILD too.
29503 * configure: Regenerate.
29504
29505 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
29506
29507 * config/i386/i386.c (get_builtin_code_for_version): Separate
29508 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29509 Broadwell from Haswell.
29510
29511 2014-01-27 Steve Ellcey <sellcey@mips.com>
29512
29513 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29514 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29515 * config/mips/mips.c (mips_option_override): Change setting
29516 of TARGET_DSP.
29517 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29518 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29519 Change from Mask to Var.
29520
29521 2014-01-27 Jeff Law <law@redhat.com>
29522
29523 * ipa-inline.c (inline_small_functions): Fix typo.
29524
29525 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
29526
29527 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29528 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29529 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29530 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29531 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29532 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29533 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29534 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29535 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29536 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29537 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29538 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29539 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29540 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29541 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29542 (_mm512_storeu_epi64): Ditto.
29543 (_mm512_cmpge_epi32_mask): Ditto.
29544 (_mm512_cmpge_epu32_mask): Ditto.
29545 (_mm512_cmpge_epi64_mask): Ditto.
29546 (_mm512_cmpge_epu64_mask): Ditto.
29547 (_mm512_cmple_epi32_mask): Ditto.
29548 (_mm512_cmple_epu32_mask): Ditto.
29549 (_mm512_cmple_epi64_mask): Ditto.
29550 (_mm512_cmple_epu64_mask): Ditto.
29551 (_mm512_cmplt_epi32_mask): Ditto.
29552 (_mm512_cmplt_epu32_mask): Ditto.
29553 (_mm512_cmplt_epi64_mask): Ditto.
29554 (_mm512_cmplt_epu64_mask): Ditto.
29555 (_mm512_cmpneq_epi32_mask): Ditto.
29556 (_mm512_cmpneq_epu32_mask): Ditto.
29557 (_mm512_cmpneq_epi64_mask): Ditto.
29558 (_mm512_cmpneq_epu64_mask): Ditto.
29559 (_mm512_expand_pd): Ditto.
29560 (_mm512_expand_ps): Ditto.
29561 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29562 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29563 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29564 * config/i386/i386.c (ix86_builtins): Add
29565 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29566 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29567 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29568 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29569 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29570 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29571 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29572 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29573 IX86_BUILTIN_PMOVUSQW512_MEM.
29574 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29575 __builtin_ia32_pmovsqd512mem_mask,
29576 __builtin_ia32_pmovqd512mem_mask,
29577 __builtin_ia32_pmovusqw512mem_mask,
29578 __builtin_ia32_pmovsqw512mem_mask,
29579 __builtin_ia32_pmovqw512mem_mask,
29580 __builtin_ia32_pmovusdw512mem_mask,
29581 __builtin_ia32_pmovsdw512mem_mask,
29582 __builtin_ia32_pmovdw512mem_mask,
29583 __builtin_ia32_pmovqb512mem_mask,
29584 __builtin_ia32_pmovusqb512mem_mask,
29585 __builtin_ia32_pmovsqb512mem_mask,
29586 __builtin_ia32_pmovusdb512mem_mask,
29587 __builtin_ia32_pmovsdb512mem_mask,
29588 __builtin_ia32_pmovdb512mem_mask.
29589 (bdesc_args): Add __builtin_ia32_expanddf512,
29590 __builtin_ia32_expandsf512.
29591 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29592 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29593 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29594 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29595 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29596 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29597 (avx512f_<code>v8div16qi2_mask_store): This.
29598 (avx512f_expand<mode>): New.
29599
29600 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
29601
29602 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29603 New.
29604 (_mm512_mask_prefetch_i64gather_pd): Ditto.
29605 (_mm512_prefetch_i32scatter_pd): Ditto.
29606 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29607 (_mm512_prefetch_i64scatter_pd): Ditto.
29608 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29609 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29610 (_mm512_mask_prefetch_i64gather_ps): Ditto.
29611 (_mm512_prefetch_i32scatter_ps): Ditto.
29612 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29613 (_mm512_prefetch_i64scatter_ps): Ditto.
29614 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29615 * config/i386/i386-builtin-types.def: Define
29616 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29617 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29618 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29619 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29620 IX86_BUILTIN_SCATTERPFQPD.
29621 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29622 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29623 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29624 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29625 __builtin_ia32_scatterpfqps.
29626 (ix86_expand_builtin): Expand new built-ins.
29627 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29628 fix memory access data type.
29629 (*avx512pf_gatherpf<mode>_mask): Ditto.
29630 (*avx512pf_gatherpf<mode>): Ditto.
29631 (avx512pf_scatterpf<mode>): Ditto.
29632 (*avx512pf_scatterpf<mode>_mask): Ditto.
29633 (*avx512pf_scatterpf<mode>): Ditto.
29634 (GATHER_SCATTER_SF_MEM_MODE): New.
29635 (avx512pf_gatherpf<mode>df): Ditto.
29636 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29637 (*avx512pf_scatterpf<mode>df): Ditto.
29638
29639 2014-01-27 Jakub Jelinek <jakub@redhat.com>
29640
29641 PR bootstrap/59934
29642 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29643 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29644 reached.
29645
29646 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29647
29648 * common/config/arm/arm-common.c
29649 (arm_rewrite_mcpu): Handle multiple names.
29650 * config/arm/arm.h
29651 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29652
29653 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29654
29655 * gimple-builder.h (create_gimple_tmp): Delete.
29656
29657 2014-01-27 Christian Bruel <christian.bruel@st.com>
29658
29659 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29660 words comparisons.
29661
29662 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29663
29664 * config/pa/pa.md (call): Generate indirect long calls to non-local
29665 functions when outputing 32-bit code.
29666 (call_value): Likewise except for special call to buggy powf function.
29667
29668 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29669 portable runtime and PIC indirect calls.
29670 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29671 and PIC call sequences. Use ldo instead of blr to set return register
29672 in PIC call sequence.
29673
29674 2014-01-25 Walter Lee <walt@tilera.com>
29675
29676 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29677 avoid clobbering a live register.
29678
29679 2014-01-25 Walter Lee <walt@tilera.com>
29680
29681 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29682 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29683 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29684 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29685
29686 2014-01-25 Walter Lee <walt@tilera.com>
29687
29688 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29689 arguments on even registers.
29690 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29691 STACK_BOUNDARY.
29692 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29693 (BIGGEST_ALIGNMENT): Ditto.
29694 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29695
29696 2014-01-25 Walter Lee <walt@tilera.com>
29697
29698 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29699 insns before bundling.
29700 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29701
29702 2014-01-25 Walter Lee <walt@tilera.com>
29703
29704 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29705 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29706 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29707
29708 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29709
29710 * config/mips/constraints.md (kl): Delete.
29711 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29712 define expands, using...
29713 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29714 instructions for MIPS16.
29715 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29716 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29717
29718 2014-01-25 Walter Lee <walt@tilera.com>
29719
29720 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29721 (clzdi2): Ditto.
29722 (ffsdi2): Ditto.
29723
29724 2014-01-25 Walter Lee <walt@tilera.com>
29725
29726 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29727 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29728
29729 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29730
29731 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29732 Handle XOR.
29733
29734 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29735
29736 * print-rtl.c (in_call_function_usage): New var.
29737 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29738 EXPR_LIST mode as mode and not as reg note name.
29739
29740 PR middle-end/59561
29741 * cfgloopmanip.c (copy_loop_info): If
29742 loop->warned_aggressive_loop_optimizations, make sure
29743 the flag is set in target loop too.
29744
29745 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29746
29747 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29748 flag_cilkplus.
29749 * builtins.def: Likewise.
29750 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29751 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29752 * ira.c (ira_setup_eliminable_regset): Likewise.
29753 * omp-low.c (gate_expand_omp): Likewise.
29754 (execute_lower_omp): Likewise.
29755 (diagnose_sb_0): Likewise.
29756 (gate_diagnose_omp_blocks): Likewise.
29757 (simd_clone_clauses_extract): Likewise.
29758 (gate): Likewise.
29759
29760 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29761
29762 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29763 correction for little endian...
29764 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29765 here.
29766
29767 2014-01-24 Jeff Law <law@redhat.com>
29768
29769 PR tree-optimization/59919
29770 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29771 for non-returning calls.
29772
29773 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29774
29775 * common/config/aarch64/aarch64-common.c
29776 (aarch64_rewrite_mcpu): Handle multiple names.
29777 * config/aarch64/aarch64.h
29778 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29779
29780 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29781
29782 * input.c (add_file_to_cache_tab): Handle the case where fopen
29783 returns NULL.
29784
29785 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29786
29787 PR target/59929
29788 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29789 from push operand if code of push isn't PRE_DEC.
29790
29791 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29792
29793 PR target/59909
29794 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29795 -mquad-memory-atomic. Update -mquad-memory documentation to say
29796 it is only used for non-atomic loads/stores.
29797
29798 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29799 -mquad-memory or -mquad-memory-atomic switches.
29800
29801 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29802 -mquad-memory-atomic to ISA 2.07 support.
29803
29804 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29805 to separate support of normal quad word memory operations (ldq, stq)
29806 from the atomic quad word memory operations.
29807
29808 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29809 support to separate non-atomic quad word operations from atomic
29810 quad word operations. Disable non-atomic quad word operations in
29811 little endian mode so that we don't have to swap words after the
29812 load and before the store.
29813 (quad_load_store_p): Add comment about atomic quad word support.
29814 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29815 options printed with -mdebug=reg.
29816
29817 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29818 -mquad-memory-atomic as the test for whether we have quad word
29819 atomic instructions.
29820 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29821 or -mp8-vector are used, allow byte/half-word atomic operations.
29822
29823 * config/rs6000/sync.md (load_lockedti): Insure that the address
29824 is a proper indexed or indirect address for the lqarx instruction.
29825 On little endian systems, swap the hi/lo registers after the lqarx
29826 instruction.
29827 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29828 insure the address is valid for the lqarx instruction.
29829 (store_conditionalti): Insure that the address is a proper indexed
29830 or indirect address for the stqcrx. instruction. On little endian
29831 systems, swap the hi/lo registers before doing the stqcrx.
29832 instruction.
29833 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29834 insure the address is valid for the stqcrx. instruction.
29835
29836 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29837 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29838 type of quad memory support is available.
29839
29840 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29841
29842 PR regression/59915
29843 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29844 there is a danger of looping.
29845
29846 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29847
29848 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29849 force flag_ira_loop_pressure if set via command line.
29850
29851 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29852
29853 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29854 (ashr_simd): New builtin handling DI mode.
29855 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29856 (aarch64_sshr_simddi): New match pattern.
29857 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29858 (vshrd_n_s64): Likewise.
29859 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29860
29861 2014-01-23 Nick Clifton <nickc@redhat.com>
29862
29863 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29864 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29865 favour of mcu specific scripts.
29866 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29867 430x multilibs.
29868
29869 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29870 Alex Velenko <Alex.Velenko@arm.com>
29871
29872 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29873 (vaddv_s16): Likewise.
29874 (vaddv_s32): Likewise.
29875 (vaddv_u8): Likewise.
29876 (vaddv_u16): Likewise.
29877 (vaddv_u32): Likewise.
29878 (vaddvq_s8): Likewise.
29879 (vaddvq_s16): Likewise.
29880 (vaddvq_s32): Likewise.
29881 (vaddvq_s64): Likewise.
29882 (vaddvq_u8): Likewise.
29883 (vaddvq_u16): Likewise.
29884 (vaddvq_u32): Likewise.
29885 (vaddvq_u64): Likewise.
29886 (vaddv_f32): Likewise.
29887 (vaddvq_f32): Likewise.
29888 (vaddvq_f64): Likewise.
29889 (vmaxv_f32): Likewise.
29890 (vmaxv_s8): Likewise.
29891 (vmaxv_s16): Likewise.
29892 (vmaxv_s32): Likewise.
29893 (vmaxv_u8): Likewise.
29894 (vmaxv_u16): Likewise.
29895 (vmaxv_u32): Likewise.
29896 (vmaxvq_f32): Likewise.
29897 (vmaxvq_f64): Likewise.
29898 (vmaxvq_s8): Likewise.
29899 (vmaxvq_s16): Likewise.
29900 (vmaxvq_s32): Likewise.
29901 (vmaxvq_u8): Likewise.
29902 (vmaxvq_u16): Likewise.
29903 (vmaxvq_u32): Likewise.
29904 (vmaxnmv_f32): Likewise.
29905 (vmaxnmvq_f32): Likewise.
29906 (vmaxnmvq_f64): Likewise.
29907 (vminv_f32): Likewise.
29908 (vminv_s8): Likewise.
29909 (vminv_s16): Likewise.
29910 (vminv_s32): Likewise.
29911 (vminv_u8): Likewise.
29912 (vminv_u16): Likewise.
29913 (vminv_u32): Likewise.
29914 (vminvq_f32): Likewise.
29915 (vminvq_f64): Likewise.
29916 (vminvq_s8): Likewise.
29917 (vminvq_s16): Likewise.
29918 (vminvq_s32): Likewise.
29919 (vminvq_u8): Likewise.
29920 (vminvq_u16): Likewise.
29921 (vminvq_u32): Likewise.
29922 (vminnmv_f32): Likewise.
29923 (vminnmvq_f32): Likewise.
29924 (vminnmvq_f64): Likewise.
29925
29926 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29927
29928 * config/aarch64/aarch64-simd.md
29929 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29930 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29931 (*aarch64_mul3_elt<mode>): Likewise.
29932 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29933 (*aarch64_mul3_elt_to_64v2df): Likewise.
29934 (*aarch64_mla_elt<mode>): Likewise.
29935 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29936 (*aarch64_mls_elt<mode>): Likewise.
29937 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29938 (*aarch64_fma4_elt<mode>): Likewise.
29939 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29940 (*aarch64_fma4_elt_to_64v2df): Likewise.
29941 (*aarch64_fnma4_elt<mode>): Likewise.
29942 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29943 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29944 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29945 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29946 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29947 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29948 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29949 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29950 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29951
29952 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29953
29954 * config/aarch64/aarch64-simd.md
29955 (aarch64_be_checked_get_lane<mode>): New define_expand.
29956 * config/aarch64/aarch64-simd-builtins.def
29957 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29958 New builtin definition.
29959 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29960 Use new safe be builtin.
29961
29962 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29963
29964 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29965 New define_insn.
29966 (aarch64_be_st1<mode>): Likewise.
29967 (aarch_ld1<VALL:mode>): Define_expand modified.
29968 (aarch_st1<VALL:mode>): Likewise.
29969 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29970 (UNSPEC_ST1): Likewise.
29971
29972 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29973
29974 * config/microblaze/microblaze.md: Add trap insn and attribute
29975
29976 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29977
29978 PR preprocessor/58580
29979 * input.h (location_get_source_line): Take an additional line_size
29980 parameter.
29981 (void diagnostics_file_cache_fini): Declare new function.
29982 * input.c (struct fcache): New type.
29983 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29984 New static constants.
29985 (diagnostic_file_cache_init, total_lines_num)
29986 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29987 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29988 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29989 (get_next_line, read_next_line, goto_next_line, read_line_num):
29990 New static function definitions.
29991 (diagnostic_file_cache_fini): New function.
29992 (location_get_source_line): Take an additional output line_len
29993 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29994 read_line_num.
29995 * diagnostic.c (diagnostic_finish): Call
29996 diagnostic_file_cache_fini.
29997 (adjust_line): Take an additional input parameter for the length
29998 of the line, rather than calculating it with strlen.
29999 (diagnostic_show_locus): Adjust the use of
30000 location_get_source_line and adjust_line with respect to their new
30001 signature. While displaying a line now, do not stop at the first
30002 null byte. Rather, display the zero byte as a space and keep
30003 going until we reach the size of the line.
30004 * Makefile.in: Add vec.o to OBJS-libcommon
30005
30006 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
30007 Ilya Tocar <ilya.tocar@intel.com>
30008
30009 * config/i386/avx512fintrin.h (_mm512_kmov): New.
30010 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
30011 (__builtin_ia32_kmov16): Ditto.
30012 * config/i386/i386.md (UNSPEC_KMOV): New.
30013 (kmovw): Ditto.
30014
30015 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
30016
30017 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
30018 (_mm512_storeu_si512): Ditto.
30019
30020 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
30021
30022 PR target/52125
30023 * rtl.h (get_referenced_operands): Declare.
30024 * recog.c (get_referenced_operands): New function.
30025 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
30026 operands have been referenced when recording LO_SUM references.
30027
30028 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
30029
30030 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
30031
30032 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
30033
30034 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
30035 Enable for generic and recent AMD targets.
30036
30037 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
30038
30039 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
30040 ARG_SIZE note when adjustment was eliminated.
30041
30042 2014-01-22 Jeff Law <law@redhat.com>
30043
30044 PR tree-optimization/59597
30045 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
30046 in file. Accept new argument REGISTERING and use it to modify
30047 dump output appropriately.
30048 (register_jump_thread): Corresponding changes.
30049 (mark_threaded_blocks): Reinstate code to cancel unprofitable
30050 thread paths involving joiner blocks. Add code to dump cancelled
30051 jump threading paths.
30052
30053 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
30054
30055 PR rtl-optimization/59477
30056 * lra-constraints.c (inherit_in_ebb): Process call for living hard
30057 regs. Update reloads_num and potential_reload_hard_regs for all insns.
30058
30059 2014-01-22 Tom Tromey <tromey@redhat.com>
30060
30061 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
30062 PARAMS.
30063 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
30064
30065 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
30066
30067 PR rtl-optimization/59896
30068 * lra-constraints.c (process_alt_operands): Check unused note for
30069 matched operands of insn with no output reloads.
30070
30071 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
30072
30073 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
30074 (mips_move_from_gpr_cost): Likewise.
30075
30076 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
30077
30078 PR rtl-optimization/59858
30079 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
30080 ira_class_hard_regs_num.
30081 (process_alt_operands): Increase reject for dying matched operand.
30082
30083 2014-01-21 Jakub Jelinek <jakub@redhat.com>
30084
30085 PR target/59003
30086 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
30087 smaller than size, perform several stores or loads and stores
30088 at dst + count - size to store or copy all of size bytes, rather
30089 than just last modesize bytes.
30090
30091 2014-01-20 DJ Delorie <dj@redhat.com>
30092
30093 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
30094 that CLOBBERs are REGs before propogating their values.
30095
30096 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
30097
30098 PR middle-end/59789
30099 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
30100 (cgraph_inline_failed_type): New function.
30101 * cgraph.h (DEFCIFCODE): Add type.
30102 (cgraph_inline_failed_type_t): New enum.
30103 (cgraph_inline_failed_type): New prototype.
30104 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
30105 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30106 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
30107 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
30108 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
30109 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
30110 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
30111 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
30112 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
30113 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
30114 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
30115 OPTIMIZATION_MISMATCH.
30116 * tree-inline.c (expand_call_inline): Emit errors during
30117 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
30118
30119 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
30120
30121 PR target/59685
30122 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
30123 mode attribute in insn output.
30124
30125 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
30126
30127 * output.h (output_constant): Delete.
30128 * varasm.c (output_constant): Make private.
30129
30130 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
30131
30132 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
30133
30134 2014-01-20 Jakub Jelinek <jakub@redhat.com>
30135
30136 PR middle-end/59860
30137 * tree.h (fold_builtin_strcat): New prototype.
30138 * builtins.c (fold_builtin_strcat): No longer static. Add len
30139 argument, if non-NULL, don't call c_strlen. Optimize
30140 directly into __builtin_memcpy instead of __builtin_strcpy.
30141 (fold_builtin_2): Adjust fold_builtin_strcat caller.
30142 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
30143
30144 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
30145
30146 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30147 for SImode_address_operand operands, having only a REG argument.
30148
30149 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
30150
30151 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
30152 loader name using mbig-endian.
30153 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
30154
30155 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
30156
30157 * doc/invoke.texi (-march): Clarify documentation for AArch64.
30158 (-mtune): Likewise.
30159 (-mcpu): Likewise.
30160
30161 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
30162
30163 * config/aarch64/aarch64-protos.h
30164 (aarch64_cannot_change_mode_class_ptr): Declare.
30165 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
30166 aarch64_cannot_change_mode_class_ptr): New.
30167 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
30168 backend hook aarch64_cannot_change_mode_class.
30169
30170 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
30171
30172 * common/config/aarch64/aarch64-common.c
30173 (aarch64_handle_option): Don't handle any option order logic here.
30174 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
30175 selected_cpu, warn on architecture version mismatch.
30176 (aarch64_override_options): Fix parsing order for option strings.
30177
30178 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30179 Iain Sandoe <iain@codesourcery.com>
30180
30181 PR bootstrap/59496
30182 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
30183 warning. Amend comment to reflect current functionality.
30184
30185 2014-01-20 Richard Biener <rguenther@suse.de>
30186
30187 PR middle-end/59860
30188 * builtins.c (fold_builtin_strcat): Remove case better handled
30189 by tree-ssa-strlen.c.
30190
30191 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
30192
30193 * config/aarch64/aarch64.opt
30194 (mcpu, march, mtune): Make case-insensitive.
30195
30196 2014-01-20 Jakub Jelinek <jakub@redhat.com>
30197
30198 PR target/59880
30199 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
30200 if operands[1] is a REG or ZERO_EXTEND of a REG.
30201
30202 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
30203
30204 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
30205
30206 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
30207
30208 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
30209 long non-pic millicode calls.
30210
30211 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30212
30213 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
30214
30215 2014-01-19 Kito Cheng <kito@0xlab.org>
30216
30217 * builtins.c (expand_movstr): Check movstr expand done or fail.
30218
30219 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
30220 H.J. Lu <hongjiu.lu@intel.com>
30221
30222 PR target/59379
30223 * config/i386/i386.md (*lea<mode>): Zero-extend return register
30224 to DImode for zero-extended addresses.
30225
30226 2014-01-19 Jakub Jelinek <jakub@redhat.com>
30227
30228 PR rtl-optimization/57763
30229 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
30230 on the new indirect jump_insn and increment LABEL_NUSES (label).
30231
30232 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
30233
30234 PR bootstrap/59580
30235 PR bootstrap/59583
30236 * config.gcc (x86_archs): New variable.
30237 (x86_64_archs): Likewise.
30238 (x86_cpus): Likewise.
30239 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
30240 --with-arch/--with-cpu= options.
30241 Support --with-arch=/--with-cpu={nehalem,westmere,
30242 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
30243
30244 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
30245
30246 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
30247 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
30248
30249 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
30250
30251 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
30252
30253 2014-01-18 Jakub Jelinek <jakub@redhat.com>
30254
30255 PR target/58944
30256 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
30257 clear cpp_get_options (parse_in)->warn_unused_macros for
30258 ix86_target_macros_internal with cpp_define.
30259
30260 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
30261
30262 * jump.c (delete_related_insns): Keep (use (insn))s.
30263 * reorg.c (redundant_insn): Check for barriers too.
30264
30265 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
30266
30267 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
30268
30269 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
30270
30271 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
30272 call to $$dyncall when TARGET_LONG_CALLS is true.
30273
30274 2014-01-17 Jeff Law <law@redhat.com>
30275
30276 * ree.c (combine_set_extension): Temporarily disable test for
30277 changing number of hard registers.
30278
30279 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
30280
30281 PR middle-end/58125
30282 * ipa-inline-analysis.c (inline_free_summary):
30283 Do not free summary of aliases.
30284
30285 2014-01-17 Jakub Jelinek <jakub@redhat.com>
30286
30287 PR middle-end/59706
30288 * gimplify.c (gimplify_expr): Use create_tmp_var
30289 instead of create_tmp_var_raw. If cond doesn't have
30290 integral type, don't add the IFN_ANNOTATE builtin at all.
30291
30292 2014-01-17 Martin Jambor <mjambor@suse.cz>
30293
30294 PR ipa/59736
30295 * ipa-cp.c (prev_edge_clone): New variable.
30296 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
30297 Also resize prev_edge_clone vector.
30298 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
30299 (ipcp_edge_removal_hook): New function.
30300 (ipcp_driver): Register ipcp_edge_removal_hook.
30301
30302 2014-01-17 Andrew Pinski <apinski@cavium.com>
30303 Steve Ellcey <sellcey@mips.com>
30304
30305 PR target/59462
30306 * config/mips/mips.c (mips_print_operand): Check operand mode instead
30307 of operator mode.
30308
30309 2014-01-17 Jeff Law <law@redhat.com>
30310
30311 PR middle-end/57904
30312 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
30313 so that pass_ccp runs first.
30314
30315 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
30316
30317 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
30318 (ix86_adjust_cost): Use !TARGET_XXX.
30319 (do_reorder_for_imul): Likewise.
30320 (swap_top_of_ready_list): Likewise.
30321 (ix86_sched_reorder): Likewise.
30322
30323 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
30324
30325 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30326 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
30327 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
30328 (intel_memset): New. Duplicate slm_memset.
30329 (intel_cost): New. Duplicate slm_cost.
30330 (m_INTEL): New macro.
30331 (processor_target_table): Add "intel".
30332 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
30333 with PROCESSOR_INTEL for "intel".
30334 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
30335 PROCESSOR_SILVERMONT.
30336 (ix86_issue_rate): Likewise.
30337 (ix86_adjust_cost): Likewise.
30338 (ia32_multipass_dfa_lookahead): Likewise.
30339 (swap_top_of_ready_list): Likewise.
30340 (ix86_sched_reorder): Likewise.
30341 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
30342 instead of TARGET_OPT_AGU.
30343 * config/i386/i386.h (TARGET_INTEL): New.
30344 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
30345 (processor_type): Add PROCESSOR_INTEL.
30346 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
30347 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
30348
30349 2014-01-17 Marek Polacek <polacek@redhat.com>
30350
30351 PR c/58346
30352 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
30353 size is zero.
30354
30355 2014-01-17 Richard Biener <rguenther@suse.de>
30356
30357 PR tree-optimization/46590
30358 * opts.c (default_options_table): Add entries for
30359 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
30360 all enabled at -O1 but not for -Og.
30361 * common.opt (fbranch-count-reg): Remove Init(1).
30362 (fmove-loop-invariants): Likewise.
30363 (ftree-pta): Likewise.
30364
30365 2014-01-17 Jakub Jelinek <jakub@redhat.com>
30366
30367 * config/i386/i386.c (ix86_data_alignment): For compatibility with
30368 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
30369 decls to at least the GCC 4.8 used alignments.
30370
30371 PR fortran/59440
30372 * tree-nested.c (convert_nonlocal_reference_stmt,
30373 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
30374 of GIMPLE_BIND stmts, adjust associated decls.
30375
30376 2014-01-17 Richard Biener <rguenther@suse.de>
30377
30378 PR tree-optimization/46590
30379 * vec.h (vec<>::bseach): New member function implementing
30380 binary search according to C89 bsearch.
30381 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
30382 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
30383 bitmap pointer again. Make accesses_in_loop a flat array.
30384 (mem_ref_obstack): New global.
30385 (outermost_indep_loop): Adjust for mem_ref->stored changes.
30386 (mark_ref_stored): Likewise.
30387 (ref_indep_loop_p_2): Likewise.
30388 (set_ref_stored_in_loop): New helper function.
30389 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
30390 (memref_free): Adjust.
30391 (record_mem_ref_loc): Simplify.
30392 (gather_mem_refs_stmt): Adjust.
30393 (sort_locs_in_loop_postorder_cmp): New function.
30394 (analyze_memory_references): Sort accesses_in_loop after
30395 loop postorder number.
30396 (find_ref_loc_in_loop_cmp): New function.
30397 (for_all_locs_in_loop): Find relevant cluster of locs in
30398 accesses_in_loop and iterate without recursion.
30399 (execute_sm): Avoid uninit warning.
30400 (struct ref_always_accessed): Simplify.
30401 (ref_always_accessed::operator ()): Likewise.
30402 (ref_always_accessed_p): Likewise.
30403 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
30404 loop postorder numbers here.
30405 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
30406 numbers.
30407
30408 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
30409
30410 PR c++/57945
30411 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
30412 on decls for which assemble_alias has been called.
30413
30414 2014-01-17 Nick Clifton <nickc@redhat.com>
30415
30416 * config/msp430/msp430.opt: (mcpu): New option.
30417 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
30418 (msp430_option_override): Parse target_cpu. If the MCU name
30419 matches a generic string, clear target_mcu.
30420 (msp430_attr): Allow numeric interrupt values up to 63.
30421 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
30422 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
30423 option.
30424 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
30425 Add mcpu matches.
30426 * config/msp430/msp430.md (popm): Use %J rather than %I.
30427 (addsi3): Use msp430_nonimmediate_operand for operand 2.
30428 (addhi_cy_i): Use immediate_operand for operand 2.
30429 * doc/invoke.texi: Document -mcpu option.
30430
30431 2014-01-17 Richard Biener <rguenther@suse.de>
30432
30433 PR rtl-optimization/38518
30434 * df.h (df_analyze_loop): Declare.
30435 * df-core.c: Include cfgloop.h.
30436 (df_analyze_1): Split out main part of df_analyze.
30437 (df_analyze): Adjust.
30438 (loop_inverted_post_order_compute): New function.
30439 (loop_post_order_compute): Likewise.
30440 (df_analyze_loop): New function avoiding whole-function
30441 postorder computes.
30442 * loop-invariant.c (find_defs): Use df_analyze_loop.
30443 (find_invariants): Adjust.
30444 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
30445
30446 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
30447
30448 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
30449 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30450
30451 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30452
30453 * ipa-ref.c (ipa_remove_stmt_references): Fix references
30454 traversal when removing references.
30455
30456 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
30457
30458 PR ipa/59775
30459 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30460
30461 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
30462
30463 PR middle-end/56791
30464 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30465 pushing a reload for an autoinc when we had previously reloaded an
30466 inner part of the address.
30467
30468 2014-01-16 Jakub Jelinek <jakub@redhat.com>
30469
30470 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30471 field.
30472 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30473 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30474 when not giving up or versioning for alias only because of
30475 loop->safelen.
30476 (vect_analyze_data_ref_dependences): Set to true.
30477 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30478 is a GIMPLE_PHI.
30479 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30480 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30481 to the condition.
30482
30483 PR middle-end/58344
30484 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30485
30486 PR target/59839
30487 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30488 operand 0 predicate for gathers, use a new pseudo as subtarget.
30489
30490 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30491
30492 PR middle-end/59609
30493 * lra-constraints.c (process_alt_operands): Add printing debug info.
30494 Check absence of input/output reloads for matched operands too.
30495
30496 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30497
30498 PR rtl-optimization/59835
30499 * ira.c (ira_init_register_move_cost): Increase cost for
30500 impossible modes.
30501
30502 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
30503
30504 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30505
30506 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
30507
30508 PR target/59780
30509 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30510 non-register objects. Use gen_(high/low)part more consistently.
30511 Fix assertions.
30512
30513 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
30514
30515 PR target/59844
30516 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30517 endian support, remove tests for WORDS_BIG_ENDIAN.
30518 (p8_mfvsrd_3_<mode>): Likewise.
30519 (reload_gpr_from_vsx<mode>): Likewise.
30520 (reload_gpr_from_vsxsf): Likewise.
30521 (p8_mfvsrd_4_disf): Likewise.
30522
30523 2014-01-16 Richard Biener <rguenther@suse.de>
30524
30525 PR rtl-optimization/46590
30526 * lcm.c (compute_antinout_edge): Use postorder iteration.
30527 (compute_laterin): Use inverted postorder iteration.
30528
30529 2014-01-16 Nick Clifton <nickc@redhat.com>
30530
30531 PR middle-end/28865
30532 * varasm.c (output_constant): Return the number of bytes actually
30533 emitted.
30534 (output_constructor_array_range): Update the field size with the
30535 number of bytes emitted by output_constant.
30536 (output_constructor_regular_field): Likewise. Also do not
30537 complain if the total number of bytes emitted is now greater
30538 than the expected fieldpos.
30539 * output.h (output_constant): Update prototype and descriptive comment.
30540
30541 2014-01-16 Marek Polacek <polacek@redhat.com>
30542
30543 PR middle-end/59827
30544 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30545 it is error_mark_node.
30546
30547 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
30548
30549 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30550 VALID_AVX256_REG_OR_OI_MODE.
30551
30552 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
30553
30554 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30555 current procedure should be profiled.
30556
30557 2014-01-15 Andrew Pinski <apinski@cavium.com>
30558
30559 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30560 of moving from/to the STACK_REG register class.
30561
30562 2014-01-15 Richard Henderson <rth@redhat.com>
30563
30564 PR debug/54694
30565 * reginfo.c (global_regs_decl): Globalize.
30566 * rtl.h (global_regs_decl): Declare.
30567 * ira.c (do_reload): Diagnose frame_pointer_needed and it
30568 reserved via global_regs.
30569
30570 2014-01-15 Teresa Johnson <tejohnson@google.com>
30571
30572 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30573
30574 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
30575
30576 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30577 and vmulosh rather than call gen_vec_widen_smult_*.
30578 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30579 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30580 (vec_widen_smult_even_v16qi): Likewise.
30581 (vec_widen_umult_even_v8hi): Likewise.
30582 (vec_widen_smult_even_v8hi): Likewise.
30583 (vec_widen_umult_odd_v16qi): Likewise.
30584 (vec_widen_smult_odd_v16qi): Likewise.
30585 (vec_widen_umult_odd_v8hi): Likewise.
30586 (vec_widen_smult_odd_v8hi): Likewise.
30587 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30588 vmuloub rather than call gen_vec_widen_umult_*.
30589 (vec_widen_umult_lo_v16qi): Likewise.
30590 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30591 vmulosb rather than call gen_vec_widen_smult_*.
30592 (vec_widen_smult_lo_v16qi): Likewise.
30593 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30594 rather than call gen_vec_widen_umult_*.
30595 (vec_widen_umult_lo_v8hi): Likewise.
30596 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30597 rather than call gen_vec_widen_smult_*.
30598 (vec_widen_smult_lo_v8hi): Likewise.
30599
30600 2014-01-15 Jeff Law <law@redhat.com>
30601
30602 PR tree-optimization/59747
30603 * ree.c (find_and_remove_re): Properly handle case where a second
30604 eliminated extension requires widening a copy created for elimination
30605 of a prior extension.
30606 (combine_set_extension): Ensure that the number of hard regs needed
30607 for a destination register does not change when we widen it.
30608
30609 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30610
30611 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30612 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30613 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30614 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30615 (avr-*-rtems*): Likewise.
30616 (bfin*-rtems*): Likewise.
30617 (moxie-*-rtems*): Likewise.
30618 (h8300-*-rtems*): Likewise.
30619 (i[34567]86-*-rtems*): Likewise.
30620 (lm32-*-rtems*): Likewise.
30621 (m32r-*-rtems*): Likewise.
30622 (m68k-*-rtems*): Likewise.
30623 (microblaze*-*-rtems*): Likewise.
30624 (mips*-*-rtems*): Likewise.
30625 (powerpc-*-rtems*): Likewise.
30626 (sh-*-rtems*): Likewise.
30627 (sparc-*-rtems*): Likewise.
30628 (sparc64-*-rtems*): Likewise.
30629 (v850-*-rtems*): Likewise.
30630 (m32c-*-rtems*): Likewise.
30631
30632 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
30633
30634 PR rtl-optimization/59511
30635 * ira.c (ira_init_register_move_cost): Use memory costs for some
30636 cases of register move cost calculations.
30637 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30638 instead of BB frequency.
30639 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30640 * lra-assigns.c (find_hard_regno_for): Ditto.
30641
30642 2014-01-15 Richard Biener <rguenther@suse.de>
30643
30644 PR tree-optimization/59822
30645 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30646 (vectorizable_load): Use it to hoist defs of uses of invariant
30647 loads out of the loop.
30648
30649 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30650 Kugan Vivekanandarajah <kuganv@linaro.org>
30651
30652 PR target/59695
30653 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30654 truncation.
30655
30656 2014-01-15 Richard Biener <rguenther@suse.de>
30657
30658 PR rtl-optimization/59802
30659 * lcm.c (compute_available): Use inverted postorder to seed
30660 the initial worklist.
30661
30662 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30663
30664 PR target/59803
30665 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30666 ADDR_REGS for invalid symrefs in non-PIC code.
30667
30668 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30669
30670 PR other/58712
30671 * builtins.c (determine_block_size): Initialize *probable_max_size
30672 even if len_rtx is CONST_INT.
30673
30674 2014-01-14 Andrew Pinski <apinski@cavium.com>
30675
30676 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30677 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30678 (cortexa53_tunings): Likewise.
30679 (aarch64_sched_issue_rate): New function.
30680 (TARGET_SCHED_ISSUE_RATE): Define.
30681
30682 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30683
30684 * ira-costs.c (find_costs_and_classes): Add missed
30685 ira_init_register_move_cost_if_necessary.
30686
30687 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30688
30689 PR target/59787
30690 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30691
30692 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30693
30694 PR target/59794
30695 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30696 to indicate if type is used for function return value. Warn ABI
30697 change if the vector mode isn't available for function return value.
30698 (ix86_function_arg_advance): Pass false to type_natural_mode.
30699 (ix86_function_arg): Likewise.
30700 (ix86_gimplify_va_arg): Likewise.
30701 (function_arg_32): Don't warn ABI change.
30702 (ix86_function_value): Pass true to type_natural_mode.
30703 (ix86_return_in_memory): Likewise.
30704 (ix86_struct_value_rtx): Removed.
30705 (TARGET_STRUCT_VALUE_RTX): Likewise.
30706
30707 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30708
30709 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30710 converting a conditional jump into a conditional return.
30711
30712 2014-01-14 Richard Biener <rguenther@suse.de>
30713
30714 PR tree-optimization/58921
30715 PR tree-optimization/59006
30716 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30717 hoisting invariant stmts.
30718 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30719 invariant loads on the preheader edge if possible.
30720
30721 2014-01-14 Joey Ye <joey.ye@arm.com>
30722
30723 * doc/plugin.texi (Building GCC plugins): Update to C++.
30724
30725 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30726
30727 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30728 (_mm_rcp28_round_ss): Ditto.
30729 (_mm_rsqrt28_round_sd): Ditto.
30730 (_mm_rsqrt28_round_ss): Ditto.
30731 (_mm_rcp28_sd): Ditto.
30732 (_mm_rcp28_ss): Ditto.
30733 (_mm_rsqrt28_sd): Ditto.
30734 (_mm_rsqrt28_ss): Ditto.
30735 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30736 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30737 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30738 (IX86_BUILTIN_RCP28SD): Ditto.
30739 (IX86_BUILTIN_RCP28SS): Ditto.
30740 (IX86_BUILTIN_RSQRT28SD): Ditto.
30741 (IX86_BUILTIN_RSQRT28SS): Ditto.
30742 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30743 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30744 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30745 (ix86_expand_special_args_builtin): Expand new FTYPE.
30746 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30747 (srcp14<mode>): Make insn unary.
30748 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30749 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30750 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30751 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30752 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30753 Fix rounding: make it SAE only.
30754 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30755 Ditto.
30756 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30757 Ditto.
30758 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30759 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30760 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30761 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30762 (round_saeonly_mask_scalar_operand4): Ditto.
30763 (round_saeonly_mask_scalar_op3): Ditto.
30764 (round_saeonly_mask_scalar_op4): Ditto.
30765
30766 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30767
30768 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30769 Implement -maltivec=be for vec_insert and vec_extract.
30770
30771 2014-01-10 DJ Delorie <dj@redhat.com>
30772
30773 * config/msp430/msp430.md (call_internal): Don't allow memory
30774 references with SP as the base register.
30775 (call_value_internal): Likewise.
30776 * config/msp430/constraints.md (Yc): New. For memory references
30777 that don't use SP as a base register.
30778
30779 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30780 "an integer without a # prefix"
30781 * config/msp430/msp430.md (epilogue_helper): Use it.
30782
30783 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30784
30785 PR target/59617
30786 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30787 AVX512F gather builtins.
30788 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30789 on gather decls with INTEGER_TYPE masktype.
30790 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30791 directly into the builtin rather than hoisting it before loop.
30792
30793 PR tree-optimization/59387
30794 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30795 (scev_const_prop): If folded_casts and type has undefined overflow,
30796 use force_gimple_operand instead of force_gimple_operand_gsi and
30797 for each added stmt if it is assign with
30798 arith_code_with_undefined_signed_overflow, call
30799 rewrite_to_defined_overflow.
30800 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30801 gimple-fold.h instead.
30802 (arith_code_with_undefined_signed_overflow,
30803 rewrite_to_defined_overflow): Moved to ...
30804 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30805 rewrite_to_defined_overflow): ... here. No longer static.
30806 Include gimplify-me.h.
30807 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30808 rewrite_to_defined_overflow): New prototypes.
30809
30810 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30811
30812 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30813
30814 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30815
30816 * builtins.c (get_object_alignment_2): Minor tweak.
30817 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30818
30819 2014-01-13 Christian Bruel <christian.bruel@st.com>
30820
30821 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30822 optimized non constant lengths.
30823
30824 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30825
30826 PR libgomp/59194
30827 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30828 load as __atomic_load_N if possible.
30829
30830 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30831
30832 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30833 target parameter.
30834 (rs6000_expand_builtin): Adjust call.
30835
30836 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30837
30838 PR target/58115
30839 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30840 * config/rs6000/rs6000.c: Include target-globals.h.
30841 (rs6000_set_current_function): Instead of doing target_reinit
30842 unconditionally, use save_target_globals_default_opts and
30843 restore_target_globals.
30844
30845 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30846 FPSCR.
30847 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30848 (rs6000_expand_builtin): Handle mffs and mtfsf.
30849 (rs6000_init_builtins): Define mffs and mtfsf.
30850 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30851 (rs6000_mffs): New pattern.
30852 (rs6000_mtfsf): New pattern.
30853
30854 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30855
30856 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30857 Start narrowing with START. Apply candidate-use pair
30858 and check overall cost in narrowing.
30859 (iv_ca_prune): Pass new argument.
30860
30861 2014-01-10 Jeff Law <law@redhat.com>
30862
30863 PR middle-end/59743
30864 * ree.c (combine_reaching_defs): Ensure the defining statement
30865 occurs before the extension when optimizing extensions with
30866 different source and destination hard registers.
30867
30868 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30869
30870 PR ipa/58585
30871 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30872 vtables into the type inheritance graph.
30873
30874 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30875
30876 PR rtl-optimization/59754
30877 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30878 modes in the REGNO != REGNO case.
30879
30880 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30881
30882 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30883
30884 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30885
30886 PR tree-optimization/59745
30887 * tree-predcom.c (tree_predictive_commoning_loop): Call
30888 free_affine_expand_cache if giving up because components is NULL.
30889
30890 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30891 GC in payload of target_globals struct instead of allocating them on
30892 the heap and the larger structs separately using GC.
30893 * target-globals.h (struct target_globals): Make regs, hard_regs,
30894 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30895 of GTY((skip)) and change type to void *.
30896 (reset_target_globals): Cast loads from those fields to corresponding
30897 types.
30898
30899 2014-01-10 Steve Ellcey <sellcey@mips.com>
30900
30901 PR plugins/59335
30902 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30903 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30904 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30905
30906 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30907
30908 PR target/59744
30909 * aarch64-modes.def (CC_Zmode): New flags mode.
30910 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30911 represents an equality.
30912 (aarch64_get_condition_code): Handle CC_Zmode.
30913 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30914
30915 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30916
30917 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30918 extraction in good case.
30919
30920 2014-01-10 Richard Biener <rguenther@suse.de>
30921
30922 PR tree-optimization/59374
30923 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30924 checking after SLP discovery. Mark stmts not participating
30925 in any SLP instance properly.
30926
30927 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30928
30929 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30930 when handling a SET rtx.
30931
30932 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30933
30934 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30935 (cortex-a57): Likewise.
30936 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30937
30938 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30939
30940 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30941 non-iwmmxt builtins.
30942
30943 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30944
30945 PR ipa/58252
30946 PR ipa/59226
30947 * ipa-devirt.c record_target_from_binfo): Take as argument
30948 stack of binfos and lookup matching one for virtual inheritance.
30949 (possible_polymorphic_call_targets_1): Update.
30950
30951 2014-01-10 Huacai Chen <chenhc@lemote.com>
30952
30953 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30954 kernel strings for Loongson-2E/2F/3A.
30955
30956 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30957
30958 PR middle-end/59670
30959 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30960 is_gimple_call before calling gimple_call_internal_p.
30961
30962 2014-01-09 Steve Ellcey <sellcey@mips.com>
30963
30964 * Makefile.in (TREE_FLOW_H): Remove.
30965 (TREE_SSA_H): Add file names from tree-flow.h.
30966 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30967 * tree.h: Remove tree-flow.h reference.
30968 * hash-table.h: Remove tree-flow.h reference.
30969 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30970 reference with tree-ssa-loop.h.
30971
30972 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30973
30974 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30975 default element-order behavior for -maltivec.
30976 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30977 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30978 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30979 when targeting big endian, at least for now.
30980 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30981
30982 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30983
30984 PR middle-end/47735
30985 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30986 var satisfies use_register_for_decl, just take into account type
30987 alignment, rather than decl alignment.
30988
30989 PR tree-optimization/59622
30990 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30991 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30992 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30993 Don't devirtualize for inplace at all. For targets.length () == 1,
30994 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30995
30996 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30997
30998 * config/i386/i386.md (cpu): Remove the unused btver1.
30999
31000 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
31001
31002 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
31003
31004 2014-01-09 Jakub Jelinek <jakub@redhat.com>
31005
31006 PR target/58115
31007 * tree-core.h (struct target_globals): New forward declaration.
31008 (struct tree_target_option): Add globals field.
31009 * tree.h (TREE_TARGET_GLOBALS): Define.
31010 (prepare_target_option_nodes_for_pch): New prototype.
31011 * target-globals.h (struct target_globals): Define even if
31012 !SWITCHABLE_TARGET.
31013 * tree.c (prepare_target_option_node_for_pch,
31014 prepare_target_option_nodes_for_pch): New functions.
31015 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
31016 * config/i386/i386.c: Include target-globals.h.
31017 (ix86_set_current_function): Instead of doing target_reinit
31018 unconditionally, use save_target_globals_default_opts and
31019 restore_target_globals.
31020
31021 2014-01-09 Richard Biener <rguenther@suse.de>
31022
31023 PR tree-optimization/59715
31024 * tree-cfg.h (split_critical_edges): Declare.
31025 * tree-cfg.c (split_critical_edges): Export.
31026 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
31027
31028 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
31029
31030 * cfgexpand.c (expand_stack_vars): Optionally disable
31031 asan stack protection.
31032 (expand_used_vars): Likewise.
31033 (partition_stack_vars): Likewise.
31034 * asan.c (asan_emit_stack_protection): Optionally disable
31035 after return stack usage.
31036 (instrument_derefs): Optionally disable memory access instrumentation.
31037 (instrument_builtin_call): Likewise.
31038 (instrument_strlen_call): Likewise.
31039 (asan_protect_global): Optionally disable global variables protection.
31040 * doc/invoke.texi: Added doc for new options.
31041 * params.def: Added new options.
31042 * params.h: Likewise.
31043
31044 2014-01-09 Jakub Jelinek <jakub@redhat.com>
31045
31046 PR rtl-optimization/59724
31047 * ifcvt.c (cond_exec_process_if_block): Don't call
31048 flow_find_head_matching_sequence with 0 longest_match.
31049 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
31050 non-active insns if !stop_after.
31051 (try_head_merge_bb): Revert 2014-01-07 changes.
31052
31053 2014-01-08 Jeff Law <law@redhat.com>
31054
31055 * ree.c (get_sub_rtx): New function, extracted from...
31056 (merge_def_and_ext): Here.
31057 (combine_reaching_defs): Use get_sub_rtx.
31058
31059 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
31060
31061 * cgraph.h (varpool_variable_node): Do not choke on null node.
31062
31063 2014-01-08 Catherine Moore <clm@codesourcery.com>
31064
31065 * config/mips/mips.md (simple_return): Attempt to use JRC
31066 for microMIPS.
31067 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
31068
31069 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
31070
31071 PR rtl-optimization/59137
31072 * reorg.c (steal_delay_list_from_target): Call update_block for
31073 elided insns.
31074 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
31075
31076 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31077
31078 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
31079 two duplicate entries.
31080
31081 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
31082
31083 Revert:
31084 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
31085
31086 * config/mips/mips.c (mips_truncated_op_cost): New function.
31087 (mips_rtx_costs): Adjust test for BADDU.
31088 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
31089
31090 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
31091
31092 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
31093 (*baddu_si): ...this new pattern.
31094
31095 2014-01-08 Jakub Jelinek <jakub@redhat.com>
31096
31097 PR ipa/59722
31098 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
31099
31100 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
31101
31102 PR middle-end/57748
31103 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
31104 inner_reference_p.
31105 (expand_expr, expand_normal): Adjust.
31106 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
31107 inner_reference_p. Use inner_reference_p to expand inner references.
31108 (store_expr): Adjust.
31109 * cfgexpand.c (expand_call_stmt): Adjust.
31110
31111 2014-01-08 Rong Xu <xur@google.com>
31112
31113 * gcov-io.c (gcov_var): Move from gcov-io.h.
31114 (gcov_position): Ditto.
31115 (gcov_is_error): Ditto.
31116 (gcov_rewrite): Ditto.
31117 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
31118 only part to libgcc/libgcov.h.
31119
31120 2014-01-08 Marek Polacek <polacek@redhat.com>
31121
31122 PR middle-end/59669
31123 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
31124
31125 2014-01-08 Marek Polacek <polacek@redhat.com>
31126
31127 PR sanitizer/59667
31128 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
31129
31130 2014-01-08 Jakub Jelinek <jakub@redhat.com>
31131
31132 PR rtl-optimization/59649
31133 * stor-layout.c (get_mode_bounds): For BImode return
31134 0 and STORE_FLAG_VALUE.
31135
31136 2014-01-08 Richard Biener <rguenther@suse.de>
31137
31138 PR middle-end/59630
31139 * gimple.h (is_gimple_builtin_call): Remove.
31140 (gimple_builtin_call_types_compatible_p): New.
31141 (gimple_call_builtin_p): New overload.
31142 * gimple.c (is_gimple_builtin_call): Remove.
31143 (validate_call): Rename to ...
31144 (gimple_builtin_call_types_compatible_p): ... this and export. Also
31145 check return types.
31146 (validate_type): New static function.
31147 (gimple_call_builtin_p): New overload and adjust.
31148 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
31149 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
31150 (gimple_fold_stmt_to_constant_1): Likewise.
31151 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
31152
31153 2014-01-08 Richard Biener <rguenther@suse.de>
31154
31155 PR middle-end/59471
31156 * gimplify.c (gimplify_expr): Gimplify register-register type
31157 VIEW_CONVERT_EXPRs to separate stmts.
31158
31159 2014-01-07 Jeff Law <law@redhat.com>
31160
31161 PR middle-end/53623
31162 * ree.c (combine_set_extension): Handle case where source
31163 and destination registers in an extension insn are different.
31164 (combine_reaching_defs): Allow source and destination registers
31165 in extension to be different under limited circumstances.
31166 (add_removable_extension): Remove restriction that the
31167 source and destination registers in the extension are the same.
31168 (find_and_remove_re): Emit a copy from the extension's
31169 destination to its source after the defining insn if
31170 the source and destination registers are different.
31171
31172 PR middle-end/59285
31173 * ifcvt.c (merge_if_block): If we are merging a block with more than
31174 one successor with a block with no successors, remove any BARRIER
31175 after the second block.
31176
31177 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
31178
31179 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
31180
31181 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
31182
31183 PR target/59652
31184 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
31185 for 14-bit register offsets when INT14_OK_STRICT is false.
31186
31187 2014-01-07 Roland Stigge <stigge@antcom.de>
31188 Michael Meissner <meissner@linux.vnet.ibm.com>
31189
31190 PR 57386/target
31191 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
31192 Only check TFmode for SPE constants. Don't check TImode or TDmode.
31193
31194 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
31195
31196 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
31197 -mcpu.
31198
31199 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
31200
31201 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
31202 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
31203 rtx is const0_rtx or not.
31204
31205 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
31206
31207 PR target/58115
31208 * target-globals.c (save_target_globals): Remove this_fn_optab
31209 handling.
31210 * toplev.c: Include optabs.h.
31211 (target_reinit): Temporarily restore the global options if another
31212 set of options are in force.
31213
31214 2014-01-07 Jakub Jelinek <jakub@redhat.com>
31215
31216 PR rtl-optimization/58668
31217 * cfgcleanup.c (flow_find_cross_jump): Don't count
31218 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
31219 to determine what is counted.
31220 (flow_find_head_matching_sequence): Use active_insn_p to determine
31221 what is counted.
31222 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
31223 counting change.
31224 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
31225 determine what is counted.
31226
31227 PR tree-optimization/59643
31228 * tree-predcom.c (split_data_refs_to_components): If one dr is
31229 read and one write, determine_offset fails and the write isn't
31230 in the bad component, just put the read into the bad component.
31231
31232 2014-01-07 Mike Stump <mikestump@comcast.net>
31233 Jakub Jelinek <jakub@redhat.com>
31234
31235 PR pch/59436
31236 * tree-core.h (struct tree_optimization_option): Change optabs
31237 type from unsigned char * to void *.
31238 * optabs.c (init_tree_optimization_optabs): Adjust
31239 TREE_OPTIMIZATION_OPTABS initialization.
31240
31241 2014-01-06 Jakub Jelinek <jakub@redhat.com>
31242
31243 PR target/59644
31244 * config/i386/i386.h (struct machine_function): Add
31245 no_drap_save_restore field.
31246 * config/i386/i386.c (ix86_save_reg): Use
31247 !cfun->machine->no_drap_save_restore instead of
31248 crtl->stack_realign_needed.
31249 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
31250 this function clears frame_pointer_needed. Set
31251 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
31252 and DRAP reg is needed.
31253
31254 2014-01-06 Marek Polacek <polacek@redhat.com>
31255
31256 PR c/57773
31257 * doc/implement-c.texi: Mention that other integer types are
31258 permitted as bit-field types in strictly conforming mode.
31259
31260 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
31261
31262 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
31263 is newly allocated.
31264
31265 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
31266
31267 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
31268
31269 2014-01-06 Martin Jambor <mjambor@suse.cz>
31270
31271 PR ipa/59008
31272 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
31273 to int.
31274 * ipa-prop.c (ipa_print_node_params): Fix indentation.
31275
31276 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
31277
31278 PR debug/59350
31279 PR debug/59510
31280 * var-tracking.c (add_stores): Preserve the value of the source even if
31281 we don't record the store.
31282
31283 2014-01-06 Terry Guo <terry.guo@arm.com>
31284
31285 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
31286
31287 2014-01-05 Iain Sandoe <iain@codesourcery.com>
31288
31289 PR bootstrap/59541
31290 * config/darwin.c (darwin_function_section): Adjust return values to
31291 correspond to optimisation changes made in r206070.
31292
31293 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
31294
31295 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
31296 from prefetch_block tune setting.
31297 (nocona_cost): Correct size of prefetch block to 64.
31298
31299 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
31300
31301 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
31302 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
31303 used to save the static chain register in the computation of the offset
31304 from which the FP registers need to be restored.
31305
31306 2014-01-04 Jakub Jelinek <jakub@redhat.com>
31307
31308 PR tree-optimization/59519
31309 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
31310 ICE if get_current_def (current_new_name) is already non-NULL, as long
31311 as it is a phi result of some other phi in *new_exit_bb that has
31312 the same argument.
31313
31314 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
31315 or vmovdqu* for misaligned_operand.
31316 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
31317 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
31318 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
31319 aligned_mem for AVX512F masked aligned load and store builtins and for
31320 non-temporal moves.
31321
31322 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
31323
31324 PR tree-optimization/59651
31325 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31326 Address range for negative step should be added by TYPE_SIZE_UNIT.
31327
31328 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
31329
31330 * config/m68k/m68k.c (handle_move_double): Handle pushes with
31331 overlapping registers also for registers other than the stack pointer.
31332
31333 2014-01-03 Marek Polacek <polacek@redhat.com>
31334
31335 PR other/59661
31336 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
31337 __builtin_FILE.
31338
31339 2014-01-03 Jakub Jelinek <jakub@redhat.com>
31340
31341 PR target/59625
31342 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
31343 asm goto as jump.
31344
31345 * config/i386/i386.md (MODE_SIZE): New mode attribute.
31346 (push splitter): Use <P:MODE_SIZE> instead of
31347 GET_MODE_SIZE (<P:MODE>mode).
31348 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
31349 (mov -1, reg peephole2): Likewise.
31350 * config/i386/sse.md (*mov<mode>_internal,
31351 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
31352 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
31353 *<code><mode>3, *andnot<mode>3<mask_name>,
31354 <mask_codefor><code><mode>3<mask_name>): Likewise.
31355 * config/i386/subst.md (mask_mode512bit_condition,
31356 sd_mask_mode512bit_condition): Likewise.
31357
31358 2014-01-02 Xinliang David Li <davidxl@google.com>
31359
31360 PR tree-optimization/59303
31361 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
31362 (dump_predicates): Better output format.
31363 (pred_equal_p): New function.
31364 (is_neq_relop_p): Ditto.
31365 (is_neq_zero_form_p): Ditto.
31366 (pred_expr_equal_p): Ditto.
31367 (pred_neg_p): Ditto.
31368 (simplify_pred): Ditto.
31369 (simplify_preds_2): Ditto.
31370 (simplify_preds_3): Ditto.
31371 (simplify_preds_4): Ditto.
31372 (simplify_preds): Ditto.
31373 (push_pred): Ditto.
31374 (push_to_worklist): Ditto.
31375 (get_pred_info_from_cmp): Ditto.
31376 (is_degenerated_phi): Ditto.
31377 (normalize_one_pred_1): Ditto.
31378 (normalize_one_pred): Ditto.
31379 (normalize_one_pred_chain): Ditto.
31380 (normalize_preds): Ditto.
31381 (normalize_cond_1): Remove function.
31382 (normalize_cond): Ditto.
31383 (is_gcond_subset_of): Ditto.
31384 (is_subset_of_any): Ditto.
31385 (is_or_set_subset_of): Ditto.
31386 (is_and_set_subset_of): Ditto.
31387 (is_norm_cond_subset_of): Ditto.
31388 (pred_chain_length_cmp): Ditto.
31389 (convert_control_dep_chain_into_preds): Type change.
31390 (find_predicates): Ditto.
31391 (find_def_preds): Ditto.
31392 (destroy_predicates_vecs): Ditto.
31393 (find_matching_predicates_in_rest_chains): Ditto.
31394 (use_pred_not_overlap_with_undef_path_pred): Ditto.
31395 (is_pred_expr_subset): Ditto.
31396 (is_pred_chain_subset_of): Ditto.
31397 (is_included_in): Ditto.
31398 (is_superset_of): Ditto.
31399
31400 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31401
31402 Update copyright years.
31403
31404 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31405
31406 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
31407 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
31408 config/arc/arc.md, config/arc/arc.opt,
31409 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
31410 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
31411 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
31412 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
31413 config/linux-protos.h, config/linux.c, config/winnt-c.c,
31414 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
31415 vtable-verify.c, vtable-verify.h: Use the standard form for the
31416 copyright notice.
31417
31418 2014-01-02 Tobias Burnus <burnus@net-b.de>
31419
31420 * gcc.c (process_command): Update copyright notice dates.
31421 * gcov-dump.c: Ditto.
31422 * gcov.c: Ditto.
31423 * doc/cpp.texi: Bump @copying's copyright year.
31424 * doc/cppinternals.texi: Ditto.
31425 * doc/gcc.texi: Ditto.
31426 * doc/gccint.texi: Ditto.
31427 * doc/gcov.texi: Ditto.
31428 * doc/install.texi: Ditto.
31429 * doc/invoke.texi: Ditto.
31430
31431 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31432
31433 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
31434
31435 2014-01-01 Jakub Jelinek <jakub@redhat.com>
31436
31437 * config/i386/sse.md (*mov<mode>_internal): Guard
31438 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
31439
31440 PR rtl-optimization/59647
31441 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
31442 new_rtx into UNSIGNED_FLOAT rtxes.
31443 \f
31444 Copyright (C) 2014 Free Software Foundation, Inc.
31445
31446 Copying and distribution of this file, with or without modification,
31447 are permitted in any medium without royalty provided the copyright
31448 notice and this notice are preserved.