single_set takes an insn
[gcc.git] / gcc / ChangeLog
1 2014-09-09 David Malcolm <dmalcolm@redhat.com>
2
3 * rtl.h (single_set_2): Strengthen first param from const_rtx to
4 const rtx_insn *, and move prototype to above...
5 (single_set): ...this. Convert this from a macro to an inline
6 function, enforcing the requirement that the param is a const
7 rtx_insn *.
8 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
9
10 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
11 Strengthen both params from rtx to rtx_insn *.
12 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
13 Likewise; introduce locals "producer_set", "consumer_set", using
14 them in place of "producer" and "consumer" when dealing with SET
15 rather than insn.
16 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
17 when invoking single_set in region guarded by INSN_P.
18 (avr_out_bitop): Likewise.
19 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
20 region guarded by GET_CODE check, using methods to strengthen
21 local "this_insn" from rtx to rtx_insn *, and for clarity.
22 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
23 Strengthen local "insn" from rtx to rtx_insn *.
24 (define_insn_and_split "xload<mode>_A"): Likewise.
25 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
26 "insn".
27 (find_load): Likewise for return type.
28 (workaround_speculation): Likewise for both locals named
29 "load_insn".
30 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
31 local "cc0_user".
32 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
33 for local "prev".
34 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
35 param 2.
36 * config/h8300/h8300.c (notice_update_cc): Likewise.
37 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
38 "insn" and "dep_insn".
39 (exact_store_load_dependency): Likewise for both params.
40 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
41 since this now clashes with inline function. Instead, delay
42 calling single_set until the point where its needed, and then
43 assign the result to "compare_set" and rework the conditional that
44 follows.
45 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
46 local "last" from rtx to rtx_insn *.
47 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
48 second param.
49 (mips_store_data_bypass_p): Likewise for both params.
50 * config/mips/mips.c (mips_load_store_insns): Likewise for second
51 param.
52 (mips_store_data_bypass_p): Likewise for both params.
53 (mips_orphaned_high_part_p): Likewise for param "insn".
54 * config/mn10300/mn10300.c (extract_bundle): Likewise.
55 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
56 Introduce local rtx "insn2_pat".
57 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
58 "ninsn".
59 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
60 Introduce local rtx "set", using it in place of "insn" for the
61 result of single_set. This appears to fix a bug, since the call
62 to find_regno_note on a SET does nothing.
63 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
64 params from rtx to rtx_insn *.
65 (set_to_load_agen): Likewise.
66 * config/s390/s390.c (s390_label_align): Likewise for local
67 "prev_insn". Introduce new rtx locals "set" and "src", using
68 them in place of "prev_insn" for the results of single_set
69 and SET_SRC respectively.
70 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
71 Introduce new rtx local "set" using in place of "jump" for the
72 result of single_set. Use SET_SRC (set) rather than plain
73 XEXP (set, 1).
74 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
75 rtx to rtx_insn *.
76 (noncall_uses_reg): Likewise.
77 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
78 guarded by GET_CODE check, using its methods for clarity, and to
79 enable strengthening local "this_insn" from rtx to rtx_insn *.
80 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
81 "insn" from rtx to rtx_insn *.
82 (define_expand "umulhisi3"): Likewise.
83 (define_expand "smulsi3_highpart"): Likewise.
84 (define_expand "umulsi3_highpart"): Likewise.
85 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
86 local "after". Replace GET_CODE check with a dyn_cast,
87 introducing new local rtx_sequence * "seq", using insn method for
88 typesafety.
89
90 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
91 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
92 place of "insn" once we're dealing with patterns rather than the
93 input insn.
94 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
95 (scan_trace): Likewise for local "elt", updating lookups within
96 sequence to use insn method rather than element method.
97 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
98 to rtx_insn *.
99 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
100 * ifcvt.c (noce_try_abs): Likewise for local "insn".
101 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
102 invoking single_set.
103 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
104 "insn" from rtx to rtx_insn *.
105 (skip_usage_debug_insns): Likewise for return type, adding a
106 checked cast.
107 (check_secondary_memory_needed_p): Likewise for local "insn".
108 (inherit_reload_reg): Likewise.
109 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
110 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
111 checked casts.
112 (store_data_bypass_p): Likewise for both params.
113 (if_test_bypass_p): Likewise.
114 * recog.h (store_data_bypass_p): Likewise for both params.
115 (if_test_bypass_p): Likewise.
116 * reload.c (find_equiv_reg): Likewise for local "where".
117 * reorg.c (delete_jump): Likewise for param "insn".
118 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
119 to const rtx_insn *.
120 * store-motion.c (replace_store_insn): Likewise for param "del".
121 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
122 and use its methods for clarity, and to strengthen local "del"
123 from rtx to rtx_insn *.
124 (build_store_vectors): Use insn method of "st" when calling
125 replace_store_insn for typesafety and clarity.
126
127 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
128
129 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
130 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
131 on how to make it legal in future.
132
133 2014-09-09 David Malcolm <dmalcolm@redhat.com>
134
135 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
136 to rtx_insn *.
137 (restinsn): Likewise.
138 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
139 Likewise for param.
140 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
141 Likewise.
142 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
143 first param.
144 (arc_hazard): Likewise for both params.
145 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
146 checked casts to rtx_sequence * and uses of the insn method for
147 type-safety.
148 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
149 (arc_adjust_insn_length): Likewise for param "insn".
150 (struct insn_length_parameters_s): Likewise for first param of
151 "get_variants" callback field.
152 (arc_get_insn_variants): Likewise for first param and local
153 "inner". Replace a check of GET_CODE with a dyn_cast to
154 rtx_sequence *, using methods for type-safety and clarity.
155 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
156 rtx_sequence * and uses of the insn method for type-safety when
157 invoking arc_adjust_insn_length.
158 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
159 for param.
160 (arm_address_offset_is_imm): Likewise.
161 (struct tune_params): Likewise for params 1 and 3 of the
162 "sched_adjust_cost" callback field.
163 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
164 params 1 and 3 ("insn" and "dep").
165 (xscale_sched_adjust_cost): Likewise.
166 (fa726te_sched_adjust_cost): Likewise.
167 (cortexa7_older_only): Likewise for param "insn".
168 (cortexa7_younger): Likewise.
169 (arm_attr_length_move_neon): Likewise.
170 (arm_address_offset_is_imm): Likewise.
171 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
172 * config/avr/avr.c (avr_notice_update_cc): Likewise.
173 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
174 (workaround_speculation): Likewise for local "last_condjump".
175 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
176 (shadow_or_blockage_p): Likewise.
177 (get_unit_reqs): Likewise.
178 (get_unit_operand_masks): Likewise.
179 (c6x_registers_update): Likewise.
180 (returning_call_p): Likewise.
181 (can_use_callp): Likewise.
182 (convert_to_callp): Likewise.
183 (find_last_same_clock): Likwise for local "t".
184 (reorg_split_calls): Likewise for local "shadow".
185 (hwloop_pattern_reg): Likewise for param "insn".
186 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
187 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
188 (frv_extract_membar): Likewise.
189 (frv_optimize_membar_local): Strengthen param "last_membar" from
190 rtx * to rtx_insn **.
191 (frv_optimize_membar_global): Strengthen param "membar" from rtx
192 to rtx_insn *.
193 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
194 to rtx_insn **.
195 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
196 both params from rtx to rtx_insn *.
197 (ia64_ld_address_bypass_p): Likewise.
198 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
199 "insn".
200 (ia64_safe_type): Likewise.
201 (group_barrier_needed): Likewise.
202 (safe_group_barrier_needed): Likewise.
203 (ia64_single_set): Likewise.
204 (is_load_p): Likewise.
205 (record_memory_reference): Likewise.
206 (get_mode_no_for_insn): Likewise.
207 (important_for_bundling_p): Likewise.
208 (unknown_for_bundling_p): Likewise.
209 (ia64_st_address_bypass_p): Likewise for both params.
210 (ia64_ld_address_bypass_p): Likewise.
211 (expand_vselect): Introduce new local rtx_insn * "insn", using it
212 in place of rtx "x" after the emit_insn call.
213 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
214 Strengthen param from rtx to rtx_insn *.
215 (ix86_agi_dependent): Likewise for both params.
216 (ix86_attr_length_immediate_default): Likewise for param 1.
217 (ix86_attr_length_address_default): Likewise for param.
218 (ix86_attr_length_vex_default): Likewise for param 1.
219 * config/i386/i386.c (ix86_attr_length_immediate_default):
220 Likewise for param "insn".
221 (ix86_attr_length_address_default): Likewise.
222 (ix86_attr_length_vex_default): Likewise.
223 (ix86_agi_dependent): Likewise for both params.
224 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
225 (vselect_insn): Likewise for this variable.
226 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
227 for param 1.
228 (m68k_sched_attr_opy_type): Likewise.
229 * config/m68k/m68k.c (sched_get_operand): Likewise.
230 (sched_attr_op_type): Likewise.
231 (m68k_sched_attr_opx_type): Likewise.
232 (m68k_sched_attr_opy_type): Likewise.
233 (sched_get_reg_operand): Likewise.
234 (sched_get_mem_operand): Likewise.
235 (m68k_sched_address_bypass_p): Likewise for both params.
236 (sched_get_indexed_address_scale): Likewise.
237 (m68k_sched_indexed_address_bypass_p): Likewise.
238 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
239 (m68k_sched_indexed_address_bypass_p): Likewise.
240 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
241 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
242 removing another.
243 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
244 params from rtx to rtx_insn *.
245 (mips_fmadd_bypass): Likewise.
246 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
247 (mips_linked_madd_p): Likewise.
248 (mips_macc_chains_last_hilo): Likewise for this variable.
249 (mips_macc_chains_record): Likewise for param.
250 (vr4130_last_insn): Likewise for this variable.
251 (vr4130_swap_insns_p): Likewise for both params.
252 (mips_ls2_variable_issue): Likewise for param.
253 (mips_need_noat_wrapper_p): Likewise for param "insn".
254 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
255 in place of "x" after the emit_insn.
256 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
257 params from rtx to rtx_insn *.
258 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
259 (pa_combine_instructions): Introduce local "par" for result of
260 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
261 to make_insn_raw.
262 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
263 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
264 (rl78_alloc_physical_registers_op1): Likewise.
265 (rl78_alloc_physical_registers_op2): Likewise.
266 (rl78_alloc_physical_registers_ro1): Likewise.
267 (rl78_alloc_physical_registers_cmp): Likewise.
268 (rl78_alloc_physical_registers_umul): Likewise.
269 (rl78_alloc_address_registers_macax): Likewise.
270 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
271 * config/s390/predicates.md (execute_operation): Likewise for
272 local "insn".
273 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
274 params.
275 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
276 (addr_generation_dependency_p): Likewise for param "insn".
277 (s390_agen_dep_p): Likewise for both params.
278 (s390_fpload_toreg): Likewise for param "insn".
279 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
280 * config/sh/sh.c (sh_loop_align): Likewise for param and local
281 "next".
282 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
283 * config/sh/sh_treg_combine.cc
284 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
285 and local "i".
286 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
287 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
288 "and_insn", "load", "shift".
289 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
290 "insn".
291 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
292 for XEXP (note, 0) of the REG_CC_SETTER note.
293 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
294 rtx_insn *, eliminating a checked cast made redundant by this.
295 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
296 to rtx_insn *.
297 * genattr.c (main): When writing out the prototype to
298 const_num_delay_slots, strengthen the param from rtx to
299 rtx_insn *.
300 * genattrtab.c (write_const_num_delay_slots): Likewise when
301 writing out the implementation of const_num_delay_slots.
302 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
303 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
304 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
305 favor of new rtx locals "src" and "set" and new local rtx_insn *
306 "insn" and "seq".
307 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
308 to rtx_insn *.
309 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
310 locals "cond", "if_then_else", "set" and new rtx_insn * locals
311 "insn" and "seq".
312 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
313 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
314 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
315 the top-level scope, replacing with new more tightly-scoped rtx
316 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
317 "new_insn", "copy_of_insn_b", and make local rtx "set" more
318 tightly-scoped.
319 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
320 rtx_insn *.
321 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
322 "move_insn".
323 (ira_setup_alts): Likewise for param "insn".
324 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
325 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
326 and an rtx_insn *.
327 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
328 new more-tightly scoped rtx locals "add3_insn", "insn",
329 "add2_insn" and rtx_insn * "move_insn".
330 * postreload-gcse.c (eliminate_partially_redundant_load): Add
331 checked cast on result of gen_move_insn when invoking
332 extract_insn.
333 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
334 rtx_insn *.
335 (verify_changes): Add a checked cast on "object" when invoking
336 insn_invalid_p.
337 (extract_insn_cached): Strengthen param "insn" from rtx to
338 rtx_insn *.
339 (extract_constrain_insn_cached): Likewise.
340 (extract_insn): Likewise.
341 * recog.h (insn_invalid_p): Likewise for param 1.
342 (recog_memoized): Likewise for param.
343 (extract_insn): Likewise.
344 (extract_constrain_insn_cached): Likewise.
345 (extract_insn_cached): Likewise.
346 * reload.c (can_reload_into): Likewise for local "test_insn".
347 * reload.h (cleanup_subreg_operands): Likewise for param.
348 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
349 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
350 result of emit_insn. Remove a checked cast made redundant by this
351 change.
352 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
353 rtx to rtx_insn *.
354 * sel-sched.c (get_reg_class): Likewise.
355
356 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
357 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
358
359 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
360 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
361 Define.
362 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
363
364 2014-09-09 David Malcolm <dmalcolm@redhat.com>
365
366 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
367 const rtx_insn *, and from rtx to rtx_insn * for the other
368 overloaded variant.
369 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
370 INSN_LOCATION, since we know INSN_P holds.
371 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
372 (insn_file): Likewise.
373 (insn_scope): Likewise.
374 (insn_location): Likewise.
375
376 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
377 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
378 for the result of gen_load_const_gp.
379 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
380 param from rtx to rtx_insn *.
381 * config/rs6000/rs6000.c (output_call): Likewise.
382 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
383 introducing a checked cast to rtx_sequence * and use of the insn
384 method.
385 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
386 from rtx to rtx_insn *.
387 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
388 (insn_line): Likewise.
389 (insn_file): Likewise.
390 (insn_location): Likewise.
391 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
392 from rtx to rtx_insn *.
393 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
394 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
395 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
396 via a checked cast.
397 * reorg.c (relax_delay_slots): Strengthen locals named "after"
398 from rtx to rtx_insn *; use methods of "pat" for type-safety.
399
400 2014-09-09 David Malcolm <dmalcolm@redhat.com>
401
402 * combine.c (try_combine): Eliminate checked cast on result of
403 gen_rtx_INSN.
404 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
405 autogenerated one by strengthening the return type and params 2 and 3
406 from rtx to rtx_insn *, and by naming the params.
407 * gengenrtl.c (special_rtx): Add INSN to those that are
408 special-cased.
409 * rtl.h (gen_rtx_INSN): New prototype.
410
411 2014-09-09 David Malcolm <dmalcolm@redhat.com>
412
413 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
414 than NULL_RTX.
415 (no_equiv): Likewise.
416 (update_equiv_regs): Likewise.
417 (setup_reg_equiv): Likewise. Strengthen locals "elem",
418 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
419 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
420 clarity.
421 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
422 from rtx to rtx_insn_list *.
423 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
424 rtx_insn_list * and use methods for clarity and typesafety.
425 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
426 "list".
427 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
428 redundant check on INSN_P (insns): this cannot hold, as "insns" is
429 an INSN_LIST, not an insn.
430 (reverse_equiv_p): Strengthen local "insns" from rtx to
431 rtx_insn_list * and use methods for clarity and typesafety.
432 (contains_reloaded_insn_p): Likewise for local "list".
433
434 2014-09-09 Jiong Wang <jiong.wang@arm.com>
435
436 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
437 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
438 (arm_builtin_vectorized_function): Likewise.
439 * config/arm/arm_neon_builtins.def: New macro for copysignf.
440 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
441
442 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
443
444 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
445 * builtins.h (default_target_builtins): Likewise.
446 * gcse.h (default_target_gcse): Likewise.
447 * target-globals.h (target_globals): Add a destructor. Convert
448 void-pointer fields back to their real type and change from
449 GTY((atomic)) to GTY((skip)).
450 (restore_target_globals): Remove casts accordingly.
451 * target-globals.c (save_target_globals): Use XCNEW rather than
452 ggc_internal_cleared_alloc to allocate non-GC structures.
453 Use ggc_cleared_alloc to allocate the target_globals structure
454 itself.
455 (target_globals::~target_globals): Define.
456
457 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
458
459 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
460 mnemonic instead of fldmfdd.
461 * config/arm/arm.c (vfp_output_fstmd): Rename to...
462 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
463 Output vpush when address register is SP.
464 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
465 (vfp_output_vstmd): ... This.
466 * config/arm/vfp.md (push_multi_vfp): Update call to
467 vfp_output_vstmd.
468
469 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
470
471 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
472
473 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
474
475 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
476 (*sqrtdf2_vfp): Likewise.
477 (*cmpsf_vfp): Likewise.
478 (*cmpsf_trap_vfp): Likewise.
479 (*cmpdf_vfp): Likewise.
480 (*cmpdf_trap_vfp): Likewise.
481
482 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
483
484 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
485 (*truncdfsf2_vfp): Likewise.
486 (*truncsisf2_vfp): Likewise.
487 (*truncsidf2_vfp): Likewise.
488 (fixuns_truncsfsi2): Likewise.
489 (fixuns_truncdfsi2): Likewise.
490 (*floatsisf2_vfp): Likewise.
491 (*floatsidf2_vfp): Likewise.
492 (floatunssisf2): Likewise.
493 (floatunssidf2): Likewise.
494
495 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
496
497 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
498 (*muldf3_vfp): Likewise.
499 (*mulsf3negsf_vfp): Likewise.
500 (*muldf3negdf_vfp): Likewise.
501 (*mulsf3addsf_vfp): Likewise.
502 (*muldf3adddf_vfp): Likewise.
503 (*mulsf3subsf_vfp): Likewise.
504 (*muldf3subdf_vfp): Likewise.
505 (*mulsf3negsfaddsf_vfp): Likewise.
506 (*fmuldf3negdfadddf_vfp): Likewise.
507 (*mulsf3negsfsubsf_vfp): Likewise.
508 (*muldf3negdfsubdf_vfp): Likewise.
509
510 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
511
512 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
513 (*absdf2_vfp): Likewise.
514 (*negsf2_vfp): Likewise.
515 (*negdf2_vfp): Likewise.
516 (*addsf3_vfp): Likewise.
517 (*adddf3_vfp): Likewise.
518 (*subsf3_vfp): Likewise.
519 (*subdf3_vfp): Likewise.
520 (*divsf3_vfp): Likewise.
521 (*divdf3_vfp): Likewise.
522
523 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
524
525 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
526 multiple.
527 (arm_print_operand): Don't convert real values to decimal
528 representation in default case.
529 (fp_immediate_constant): Delete.
530 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
531 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
532 syntax.
533 (*thumb2_movsi_vfp): Likewise.
534 (*movdi_vfp): Likewise.
535 (*movdi_vfp_cortexa8): Likewise.
536 (*movhf_vfp_neon): Likewise.
537 (*movhf_vfp): Likewise.
538 (*movsf_vfp): Likewise.
539 (*thumb2_movsf_vfp): Likewise.
540 (*movdf_vfp): Likewise.
541 (*thumb2_movdf_vfp): Likewise.
542 (*movsfcc_vfp): Likewise.
543 (*thumb2_movsfcc_vfp): Likewise.
544 (*movdfcc_vfp): Likewise.
545 (*thumb2_movdfcc_vfp): Likewise.
546
547 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
548
549 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
550 (-mtune): Likewise.
551 (-mcpu): Likewise.
552
553 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
554
555 PR target/61749
556 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
557 Use qualifier_immediate for last operand. Rename to...
558 (aarch64_types_ternop_lane_qualifiers): ... This.
559 (TYPES_QUADOP): Rename to...
560 (TYPES_TERNOP_LANE): ... This.
561 (aarch64_simd_expand_args): Return const0_rtx when encountering user
562 error. Change return of 0 to return of NULL_RTX.
563 (aarch64_crc32_expand_builtin): Likewise.
564 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
565 ICE when expanding unknown builtin.
566 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
567 TERNOP_LANE qualifiers.
568 (sqdmlsl_lane): Likewise.
569 (sqdmlal_laneq): Likewise.
570 (sqdmlsl_laneq): Likewise.
571 (sqdmlal2_lane): Likewise.
572 (sqdmlsl2_lane): Likewise.
573 (sqdmlal2_laneq): Likewise.
574 (sqdmlsl2_laneq): Likewise.
575
576 2014-09-09 Nick Clifton <nickc@redhat.com>
577
578 * doc/invoke.texi (Optimization Options): Add missing @gol to the
579 end of a line.
580 (S/390 and zSeries Options): Remove superfluous word from the
581 description of the -mhotpatch option.
582
583 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
584
585 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
586 * ira.c: #include "shrink-wrap.h"
587 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
588 * ifcvt.c: #include "shrink-wrap.h"
589 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
590
591 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
592
593 * common/config/picochip/picochip-common.c: Remove.
594 * config.gcc: Remove support for picochip.
595 * config/picochip/constraints.md: Remove.
596 * config/picochip/dfa_space.md: Remove.
597 * config/picochip/dfa_speed.md: Remove.
598 * config/picochip/picochip-protos.h: Remove.
599 * config/picochip/picochip.c: Remove.
600 * config/picochip/picochip.h: Remove.
601 * config/picochip/picochip.md: Remove.
602 * config/picochip/picochip.opt: Remove.
603 * config/picochip/predicates.md: Remove.
604 * config/picochip/t-picochip: Remove.
605 * doc/md.texi: Don't document picochi.
606
607 2014-09-08 David Malcolm <dmalcolm@redhat.com>
608
609 * basic-block.h (control_flow_insn_p): Strengthen param from
610 const_rtx to const rtx_insn *.
611 * cfgbuild.c (control_flow_insn_p): Likewise.
612
613 2014-09-08 David Malcolm <dmalcolm@redhat.com>
614
615 * gcse.c (modify_mem_list): Strengthen this variable from
616 vec<rtx> * to vec<rtx_insn *> *.
617 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
618 vec<rtx_insn *>.
619 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
620 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
621 (record_last_mem_set_info): Strengthen param "insn" from rtx to
622 rtx_insn *.
623 (record_last_set_info): Likewise for local "last_set_insn".
624
625 2014-09-08 DJ Delorie <dj@redhat.com>
626
627 * doc/invoke.texi (MSP430 Options): Add -minrt.
628
629 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
630
631 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
632 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
633 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
634 handling SH_SPLAT.
635 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
636 of extracted lane.
637 (adjust_splat): New function.
638 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
639 (dump_swap_insn_table): Add case for SH_SPLAT.
640
641 2014-09-08 Richard Biener <rguenther@suse.de>
642
643 PR ipa/63196
644 * tree-inline.c (copy_loops): The source loop header should
645 always be non-NULL.
646 (tree_function_versioning): If loops need fixup after removing
647 unreachable blocks fix them.
648 * omp-low.c (simd_clone_adjust): Do not add incr block to
649 loop under construction.
650
651 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
652
653 * config/aarch64/aarch64-builtins.c
654 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
655
656 2014-09-08 Joseph Myers <joseph@codesourcery.com>
657
658 * config/i386/cygming.h (TF_SIZE): Remove.
659 * config/i386/darwin.h (TF_SIZE): Remove.
660 * config/i386/dragonfly.h (TF_SIZE): Remove.
661 * config/i386/freebsd.h (TF_SIZE): Remove.
662 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
663 * config/i386/openbsdelf.h (TF_SIZE): Remove.
664 * config/i386/sol2.h (TF_SIZE): Remove.
665 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
666 * config/ia64/linux.h (TF_SIZE): Remove.
667 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
668 * doc/tm.texi: Regenerate.
669 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
670
671 2014-09-08 Joseph Myers <joseph@codesourcery.com>
672
673 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
674 Remove.
675 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
676 Remove.
677 * doc/tm.texi: Regenerate.
678 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
679 Poison.
680 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
681 * config/cris/cris.h (__make_dp): Remove.
682
683 2014-09-08 Richard Biener <rguenther@suse.de>
684
685 PR bootstrap/63204
686 * cfgloop.c (mark_loop_for_removal): Track former header
687 unconditionally.
688 * cfgloop.h (struct loop): Add former_header member unconditionally.
689 * loop-init.c (fix_loop_structure): Enable bogus loop removal
690 diagnostic unconditionally.
691
692 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
693
694 PR target/63190
695 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
696 constraint for operand0 and remove write only modifier from operand3.
697
698 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
699
700 PR rtl-optimization/62208
701 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
702 rather than const0_rtx in eq/ne-xor simplifications.
703
704 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
705
706 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
707 (arc_output_mi_thunk): Likewise.
708
709 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
710 arguments to silence bogus warning.
711
712 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
713
714 PR middle-end/63171
715 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
716
717 2014-09-06 Tom de Vries <tom@codesourcery.com>
718
719 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
720 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
721 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
722
723 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
724
725 PR target/63188
726 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
727 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
728
729 2014-09-05 Easwaran Raman <eraman@google.com>
730
731 PR rtl-optimization/62146
732 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
733 hoisted instruction unconditional.
734
735 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
736
737 PR target/63187
738 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
739 Do not allow any_mask_operand for operands[2].
740 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
741
742 2014-09-05 David Malcolm <dmalcolm@redhat.com>
743
744 * config/arc/arc.c (arc_print_operand): Use insn method of
745 final_sequence for type-safety.
746 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
747 "insn" from rtx to rtx_insn *.
748 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
749 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
750 Likewise for locals "branch", "label".
751 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
752 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
753 (same_cmp_following_p): Likewise for locals "i2", "i3".
754 * config/sh/sh_optimize_sett_clrt.cc
755 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
756 param "cbranch_insn".
757 * function.c (convert_jumps_to_returns): Likewis for local "jump".
758 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
759 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
760 const rtx_insn *.
761 (condjump_p): Likewise.
762 (condjump_in_parallel_p): Likewise.
763 (pc_set): Likewise.
764 (any_uncondjump_p): Likewise.
765 (any_condjump_p): Likewise.
766 (condjump_label): Likewise.
767 (returnjump_p): Strengthen param "insn" from rtx to
768 const rtx_insn *.
769 (onlyjump_p): Strengthen param "insn" from const_rtx to
770 const rtx_insn *.
771 (jump_to_label_p): Likewise.
772 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
773 (invert_jump): Likewise.
774 * reorg.c (simplejump_or_return_p): Add checked cast when calling
775 simplejump_p.
776 (get_jump_flags): Strengthen param "insn" from rtx to
777 const rtx_insn *.
778 (get_branch_condition): Likewise.
779 (condition_dominates_p): Likewise.
780 (make_return_insns): Move declaration of local "pat" earlier, to
781 after we've handled NONJUMP_INSN_P and non-sequences, using its
782 methods to simplify the code and for type-safety.
783 * rtl.h (find_constant_src): Strengthen param from const_rtx to
784 const rtx_insn *.
785 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
786 (condjump_p): Strengthen param from const_rtx to
787 const rtx_insn *.
788 (any_condjump_p): Likewise.
789 (any_uncondjump_p): Likewise.
790 (pc_set): Likewise.
791 (condjump_label): Likewise.
792 (simplejump_p): Likewise.
793 (returnjump_p): Likewise.
794 (onlyjump_p): Likewise.
795 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
796 (invert_jump): Likewise.
797 (condjump_in_parallel_p): Strengthen param from const_rtx to
798 const rtx_insn *.
799 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
800 to const rtx_insn *.
801 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
802 to const rtx_insn *.
803 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
804
805 2014-09-05 David Malcolm <dmalcolm@redhat.com>
806
807 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
808 above the conditional, and convert the check on GET_CODE to a
809 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
810 the conditional. Simplify the conditional by using methods of
811 "trial_seq".
812
813 2014-09-05 David Malcolm <dmalcolm@redhat.com>
814
815 * haifa-sched.c (check_clobbered_conditions): Strengthen local
816 "link" from rtx to rtx_insn_list *, and use its methods for
817 clarity and type-safety.
818 (toggle_cancelled_flags): Likewise.
819 (restore_last_backtrack_point): Likewise.
820 (queue_to_ready): Use insn method of "link" in one place.
821 (schedule_block): Strengthen local "link" from rtx to
822 rtx_insn_list *, and use its methods for clarity and type-safety.
823
824 2014-09-05 David Malcolm <dmalcolm@redhat.com>
825
826 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
827 param "insn" from const_rtx to const rtx_insn *.
828 (sched_get_reverse_condition_uncached): Likewise.
829 (sched_get_condition_with_rev): Likewise.
830 (sched_has_condition_p): Likewise.
831 (sched_insns_conditions_mutex_p): Likewise for both params.
832 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
833 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
834 (setup_insn_reg_uses): Move local "list" to be more tightly
835 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
836 its methods for clarity and type-safety.
837 (sched_analyze_1): Strengthen local "pending" from rtx to
838 rtx_insn_list *, and local "pending_mem" from rtx to
839 rtx_expr_list *. Use methods of each for clarity and type-safety.
840 (sched_analyze_2): Likewise.
841 (sched_analyze_insn): Likewise.
842
843 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
844 param from const_rtx to const rtx_insn *.
845 (sched_insns_conditions_mutex_p): Likewise for both params.
846 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
847 param.
848
849 * system.h (CONST_CAST_RTX_INSN): New macro.
850
851 2014-09-05 David Malcolm <dmalcolm@redhat.com>
852
853 * recog.c (peep2_attempt): Strengthen return type from rtx to
854 rtx_insn *.
855 (peep2_update_life): Likewise for params "last", "prev", removing
856 a checked cast made redundant by this.
857 (peephole2_optimize): Likewise for local "last".
858
859 2014-09-05 David Malcolm <dmalcolm@redhat.com>
860
861 * basic-block.h (set_block_for_insn): Eliminate this macro in
862 favor of...
863 * rtl.h (set_block_for_insn): New inline function, imposing the
864 requirement that the "insn" param is an rtx_insn *.
865
866 2014-09-05 David Malcolm <dmalcolm@redhat.com>
867
868 * caller-save.c (setup_save_areas): Strengthen local "insn" from
869 rtx to rtx_insn *.
870 * final.c (get_call_reg_set_usage): Likewise for first param,
871 eliminating a checked cast.
872 * regs.h (get_call_reg_set_usage): Likewise for first param.
873 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
874 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
875 cast, replacing references to "x" with "call_insn" where
876 appropriate.
877 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
878 rtx_insn *, adding a checked cast.
879
880 2014-09-05 David Malcolm <dmalcolm@redhat.com>
881
882 * output.h (final_scan_insn): Strengthen first param from rtx to
883 rtx_insn *.
884
885 * final.c (final_scan_insn): Likewise, renaming it back from
886 "uncast_insn" to "insn", eliminating the checked cast.
887
888 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
889 "vec" with an rtx_sequence * "seq", taking a copy of
890 "final_sequence", and using methods of "seq" for clarity, and for
891 type-safety in the calls to final_scan_insn.
892 * config/mips/mips.c (mips_output_conditional_branch): Use methods
893 of "final_sequence" for clarity, and for type-safety in the call to
894 final_scan_insn.
895 * config/sh/sh.c (print_slot): Strengthen param from rtx to
896 rtx_sequence * and rename from "insn" to "seq".
897
898 2014-09-05 David Malcolm <dmalcolm@redhat.com>
899
900 * jump.c (delete_related_insns): Introduce a new local "table" by
901 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
902 get_labels method of "table" to simplify access to the labels in
903 the jump table.
904
905 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
906
907 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
908 f_minmaxs, f_minmaxd types.
909
910 2014-09-05 Richard Biener <rguenther@suse.de>
911
912 * cfgloop.c (mark_loop_for_removal): Record former header
913 when ENABLE_CHECKING.
914 * cfgloop.h (strut loop): Add former_header member when
915 ENABLE_CHECKING.
916 * loop-init.c (fix_loop_structure): Sanity check loops
917 marked for removal if they re-appeared.
918
919 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
920
921 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
922 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
923
924 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
925 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
926 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
927 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
928 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
929 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
930 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
931 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
932 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
933 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
934 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
935 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
936 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
937 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
938 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
939 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
940 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
941 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
942 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
943 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
944 with int{32,16,8}_t.
945
946 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
947
948 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
949 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
950 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
951 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
952 Remove temporary __asm__ and reimplement.
953
954 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
955
956 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
957 handling cmge, cmgt, cmeq, cmtst.
958
959 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
960 cmlt, cmgeu, cmgtu, cmtst): Remove.
961
962 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
963 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
964 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
965 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
966
967 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
968
969 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
970 TYPES_TST): Define.
971 (aarch64_fold_builtin): Update pattern for cmtst.
972
973 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
974 Declare.
975
976 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
977
978 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
979 Switch operands, separate out more cases, refactor.
980
981 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
982
983 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
984 argument; rename old version to...
985 (aarch64_const_vec_all_same_in_range_p): ...this.
986 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
987
988 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
989
990 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
991
992 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
993 Remove qualifier_const_pointer, update comment.
994
995 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
996
997 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
998
999 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1000
1001 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1002 varargs with pointer parameter.
1003 (aarch64_simd_expand_builtin): pass pointer into previous.
1004
1005 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1006
1007 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1008 alus_ext.
1009
1010 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1011
1012 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1013 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1014 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1015 Replace temporary asm with call to builtin.
1016 (vrbit_p8, vrbitq_p8): New functions.
1017
1018 2014-09-05 Richard Biener <rguenther@suse.de>
1019
1020 * cfgloop.c (mark_loop_for_removal): New function.
1021 * cfgloop.h (mark_loop_for_removal): Declare.
1022 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1023 (merge_blocks): Likewise.
1024 (duplicate_block): Likewise.
1025 * except.c (sjlj_emit_dispatch_table): Likewise.
1026 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1027 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1028 (thread_through_loop_header): Likewise.
1029
1030 2014-09-05 Richard Biener <rguenther@suse.de>
1031
1032 PR middle-end/63148
1033 * fold-const.c (try_move_mult_to_index): Remove.
1034 (fold_binary_loc): Do not call it.
1035 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1036 from the base object again.
1037
1038 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1039
1040 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1041 DImode.
1042
1043 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1044
1045 PR target/55701
1046 * config/arm/arm.md (setmem): New pattern.
1047 * config/arm/arm-protos.h (struct tune_params): New fields.
1048 (arm_gen_setmem): New prototype.
1049 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1050 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1051 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1052 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1053 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1054 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1055 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1056 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1057 (arm_const_inline_cost): New function.
1058 (arm_block_set_max_insns): New function.
1059 (arm_block_set_non_vect_profit_p): New function.
1060 (arm_block_set_vect_profit_p): New function.
1061 (arm_block_set_unaligned_vect): New function.
1062 (arm_block_set_aligned_vect): New function.
1063 (arm_block_set_unaligned_non_vect): New function.
1064 (arm_block_set_aligned_non_vect): New function.
1065 (arm_block_set_vect, arm_gen_setmem): New functions.
1066
1067 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1068
1069 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1070
1071 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1072
1073 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1074
1075 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1076
1077 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1078 an rtx.
1079 * valtrack.h: Adjust.
1080
1081 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1082
1083 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1084 an rtx.
1085 (emit_jump_insn_before_noloc): Likewise.
1086 (emit_call_insn_before_noloc): Likewise.
1087 (emit_label_before): Likewise.
1088 (emit_label_after): Likewise.
1089 (emit_insn_before_setloc): Likewise.
1090 (emit_jump_insn_before_setloc): Likewise.
1091 (emit_call_insn_before_setloc): Likewise.
1092 (emit_call_insn_before): Likewise.
1093 * rtl.h: Adjust.
1094
1095 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1096
1097 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1098 rtx_insn *, eliminating a checked cast.
1099
1100 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1101
1102 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1103 const_rtx to const rtx_insn *.
1104 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1105 cast.
1106
1107 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1108
1109 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1110 fixup_args_size_notes.
1111 * expr.c (fixup_args_size_notes): Strengthen first two params from
1112 rtx to rtx_insn *, eliminating a checked cast.
1113 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1114 rtx to rtx_insn *.
1115
1116 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1117
1118 * haifa-sched.c (get_ready_element): Strengthen return type from
1119 rtx to rtx_insn *.
1120 * sched-int.h (get_ready_element): Likewise.
1121
1122 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1123
1124 PR target/63165
1125 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1126 indexed_or_indirect_operand instead of memory_operand.
1127 (floatsi<mode>2_lfiwzx_mem): Ditto.
1128
1129 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1130
1131 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1132 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1133 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1134
1135 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1136
1137 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1138 rtx.
1139 (get_last_nonnote_insn): Likewise.
1140 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1141 * resource.c (find_basic_block): Likewise.
1142 * rtl.h: Adjust.
1143 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1144 const_rtx.
1145
1146 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1147
1148 * genattr.c (main): Within the prototype of insn_latency written
1149 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1150 * genautomata.c (output_internal_maximal_insn_latency_func):
1151 Within the implementation of insn_latency written out to
1152 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1153 eliminating a pair of checked casts.
1154
1155 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1156
1157 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1158 rtx_insn *.
1159
1160 * rtl.h (eh_returnjump_p): Likewise.
1161
1162 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1163
1164 * Makefile.in (TAGS): Handle constructs in timevar.def.
1165
1166 2014-09-04 Guozhi Wei <carrot@google.com>
1167
1168 PR target/62040
1169 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1170 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1171 it into two patterns.
1172 (move_lo_quad_internal_be_<mode>): Likewise.
1173
1174 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1175
1176 * doc/options.texi: Document that Var and Init are required if CPP
1177 is given.
1178 * optc-gen.awk: Require Var and Init if CPP is given.
1179 * common.opt (Wpedantic): Use Init.
1180
1181 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1182
1183 * config/rs6000/rs6000.c (special_handling_values): Add
1184 SH_EXTRACT.
1185 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1186 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1187 as swappable with special handling SH_EXTRACT. Remove
1188 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1189 optimization.
1190 (adjust_extract): New function.
1191 (handle_special_swappables): Add default to case statement; add
1192 case for SH_EXTRACT that calls adjust_extract.
1193 (dump_swap_insn_table): Handle SH_EXTRACT.
1194
1195 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1196
1197 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1198 selection of 0th memory doubleword, regardless of endianness.
1199
1200 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1201
1202 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1203
1204 2014-09-04 Alan Modra <amodra@gmail.com>
1205
1206 PR debug/60655
1207 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1208 can't be output.
1209
1210 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1211
1212 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1213 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1214 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1215 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1216 * doc/tm.texi: Regenerate.
1217 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1218 selection logic to default_dwarf_frame_reg_mode.
1219
1220 2014-09-03 Marek Polacek <polacek@redhat.com>
1221
1222 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1223 by -Wall.
1224
1225 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1226
1227 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1228 the automodified register.
1229
1230 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1231
1232 * output.h (get_some_local_dynamic_name): Declare.
1233 * final.c (some_local_dynamic_name): New variable.
1234 (get_some_local_dynamic_name): New function.
1235 (final_end_function): Clear some_local_dynamic_name.
1236 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1237 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1238 (print_operand): Report an error if '%&' is used inappropriately.
1239 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1240 (get_some_local_dynamic_name_1): Delete.
1241 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1242 (rs6000_get_some_local_dynamic_name): Delete.
1243 (rs6000_get_some_local_dynamic_name_1): Delete.
1244 (print_operand): Report an error if '%&' is used inappropriately.
1245 * config/s390/s390.c (machine_function): Remove some_ld_name.
1246 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1247 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1248 * config/sparc/sparc.c: Include rtl-iter.h.
1249 (machine_function): Remove some_ld_name.
1250 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1251 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1252
1253 2014-09-03 Richard Henderson <rth@redhat.com>
1254
1255 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1256 (aarch64_popwb_pair_reg): Remove.
1257 (aarch64_set_frame_expr): Remove.
1258 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1259 the restore ops performed by the insns generated.
1260 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1261 insn. Perform the calls_eh_return addition later; do not attempt to
1262 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1263 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1264 special markup at all. Load cfun->machine->frame.hard_fp_offset
1265 into a local variable.
1266 (aarch64_frame_pointer_required): Don't check calls_alloca.
1267
1268 2014-09-03 Richard Biener <rguenther@suse.de>
1269
1270 * opts.c (default_options_optimization): Adjust
1271 max-combine-insns to 2 for -Og.
1272
1273 2014-09-03 Martin Jambor <mjambor@suse.cz>
1274
1275 PR ipa/62015
1276 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1277 pass-trough jump functions correctly.
1278
1279 2014-09-03 Martin Jambor <mjambor@suse.cz>
1280
1281 PR ipa/61986
1282 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1283 created replacements in ascending order of offsets.
1284 (known_aggs_to_agg_replacement_list): Likewise.
1285
1286 2014-09-03 Martin Liska <mliska@suse.cz>
1287
1288 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1289 is set to set uninitialized value for vnresult.
1290
1291 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1292
1293 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1294 for TARGET_MUST_PASS_IN_STACK.
1295
1296 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1297
1298 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1299 for TARGET_ARG_PARTIAL_BYTES.
1300
1301 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1302
1303 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1304 instructions for varargs implementation.
1305 (nds32_expand_epilogue): Emit stack adjustment instructions for
1306 varargs implementation.
1307
1308 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1309
1310 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1311 optimization detection.
1312
1313 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1314
1315 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1316 arguments.
1317 (nds32_function_arg_advance): Deal with nameless arguments.
1318 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1319 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1320 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1321
1322 2014-09-03 Richard Biener <rguenther@suse.de>
1323
1324 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1325 (struct bb_bitmap_sets): Remove deferred member.
1326 (BB_DEFERRED): Remove.
1327 (defer_or_phi_translate_block): Remove.
1328 (compute_antic_aux): Remove deferring of blocks, assert
1329 proper iteration order.
1330 (compute_antic): Do not set BB_DEFERRED.
1331 (eliminate): Allocate el_avail of proper size initially.
1332
1333 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1334
1335 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1336 according to the value of crtl->args.pretend_args_size.
1337
1338 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1339
1340 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1341 varargs information.
1342
1343 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1344
1345 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1346 implementation for TARGET_SETUP_INCOMING_VARARGS.
1347 (nds32_strict_argument_naming): Refine comment.
1348 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1349 Define for future implementation.
1350
1351 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
1352
1353 * config/i386/adxintrin.h (_subborrow_u32): New.
1354 (_addcarry_u32): Ditto.
1355 (_subborrow_u64): Ditto.
1356 (_addcarry_u64): Ditto.
1357 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1358 IX86_BUILTIN_SBB64.
1359 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1360 __builtin_ia32_sbb_u64
1361
1362 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1363
1364 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1365 GPR-specific stuff.
1366 (nds32_function_arg_advance): Likewise.
1367 (nds32_init_cumulative_args): Likewise.
1368 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1369 (NDS32_FIRST_GPR_REGNUM): Define.
1370 (NDS32_LAST_GPR_REGNUM): Define.
1371 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1372 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1373 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1374 (machine_function): Use GRP-specific stuff.
1375
1376 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1377
1378 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1379 (nds32_expand_epilogue): Likewise.
1380 (nds32_expand_prologue_v3push): Likewise.
1381 (nds32_expand_epilogue_v3pop): Likewise.
1382
1383 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1384
1385 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1386 v3push/v3pop for variadic function.
1387 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1388
1389 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1390
1391 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1392 Check rtx for varargs implementation.
1393 (nds32_output_stack_pop): Likewise.
1394 * config/nds32/nds32-protos.h: Have a rtx argument for
1395 nds32_output_stack_push and nds32_output_stack_pop.
1396 * config/nds32/nds32.md: Likewise.
1397
1398 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1399
1400 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1401 to check if FUNC is an interrupt service routine.
1402 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1403
1404 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1405
1406 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1407 arguments implementation.
1408
1409 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1410
1411 * config/nds32/nds32-predicates.c
1412 (nds32_valid_stack_push_pop): Rename to ...
1413 (nds32_valid_stack_push_pop_p): ... this.
1414 * config/nds32/nds32-protos.h: Likewise.
1415 * config/nds32/predicates.md: Likewise.
1416
1417 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1418
1419 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1420 (nds32_emit_stack_v3push): ... this.
1421 (nds32_gen_stack_v3pop): Rename to ...
1422 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1423 information.
1424
1425 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1426
1427 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1428 (nds32_emit_stack_push_multiple): ... this.
1429 (nds32_gen_stack_pop_multiple): Rename to ...
1430 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1431 information.
1432
1433 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1434
1435 PR target/61078
1436 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1437 and add a second splitter to handle the remaining cases.
1438
1439 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1440
1441 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1442
1443 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1444
1445 * cfgexpand.c (label_rtx_for_bb): Change type to
1446 hash_map<basic_block, rtx_code_label *> *.
1447 (expand_gimple_basic_block): Adjust.
1448 (pass_expand::execute): Likewise.
1449
1450 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1451
1452 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1453 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1454 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1455 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1456 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1457 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1458 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1459 of rtx.
1460
1461 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1462
1463 * alloc-pool.c: Include coretypes.h.
1464 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1465 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1466 hash_set instead of htab.
1467 * ggc-page.c (in_gc): New variable.
1468 (ggc_free): Do nothing if a collection is taking place.
1469 (ggc_collect): Set in_gc appropriately.
1470 * ggc.h (gt_ggc_mx(const char *)): New function.
1471 (gt_pch_nx(const char *)): Likewise.
1472 (gt_ggc_mx(int)): Likewise.
1473 (gt_pch_nx(int)): Likewise.
1474 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1475 (hash_map::hash_entry::pch_nx): Likewise.
1476 (hash_map::hash_entry::pch_nx_helper): Likewise.
1477 (hash_map::hash_map): Adjust.
1478 (hash_map::create_ggc): New function.
1479 (gt_ggc_mx): Likewise.
1480 (gt_pch_nx): Likewise.
1481 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1482 (default_hashset_traits::pch_nx): Likewise.
1483 (hash_set::hash_entry::ggc_mx): Likewise.
1484 (hash_set::hash_entry::pch_nx): Likewise.
1485 (hash_set::hash_entry::pch_nx_helper): Likewise.
1486 (hash_set::hash_set): Adjust.
1487 (hash_set::create_ggc): New function.
1488 (hash_set::elements): Likewise.
1489 (gt_ggc_mx): Likewise.
1490 (gt_pch_nx): Likewise.
1491 * hash-table.h (hash_table::hash_table): Adjust.
1492 (hash_table::m_ggc): New member.
1493 (hash_table::~hash_table): Adjust.
1494 (hash_table::expand): Likewise.
1495 (hash_table::empty): Likewise.
1496 (gt_ggc_mx): New function.
1497 (hashtab_entry_note_pointers): Likewise.
1498 (gt_pch_nx): Likewise.
1499
1500 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1501
1502 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
1503 built-in definition.
1504 (XVCVUXDDP_SCALE): Likewise.
1505 (XVCVDPSXDS_SCALE): Likewise.
1506 (XVCVDPUXDS_SCALE): Likewise.
1507 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1508 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1509 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1510 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1511 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1512 prototype.
1513 * config/rs6000/rs6000.c (real.h): New include.
1514 (rs6000_scale_v2df): New function.
1515 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1516 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1517 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1518 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1519 (vsx_xvcvsxddp_scale): New define_expand.
1520 (vsx_xvcvsxddp): New define_insn.
1521 (vsx_xvcvuxddp_scale): New define_expand.
1522 (vsx_xvcvuxddp): New define_insn.
1523 (vsx_xvcvdpsxds_scale): New define_expand.
1524 (vsx_xvcvdpsxds): New define_insn.
1525 (vsx_xvcvdpuxds_scale): New define_expand.
1526 (vsx_xvcvdpuxds): New define_insn.
1527 * doc/extend.texi (vec_ctf): Add new prototypes.
1528 (vec_cts): Likewise.
1529 (vec_ctu): Likewise.
1530 (vec_splat): Likewise.
1531 (vec_div): Likewise.
1532 (vec_mul): Likewise.
1533
1534 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1535
1536 PR target/62275
1537 * config/arm/neon.md
1538 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1539 <v_cmp_result>): New pattern.
1540 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1541 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1542 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1543 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1544 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1545 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1546
1547 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1548
1549 PR target/62275
1550 * config/arm/iterators.md (FIXUORS): New code iterator.
1551 (VCVT): New int iterator.
1552 (su_optab): New code attribute.
1553 (su): Likewise.
1554 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1555
1556 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1557
1558 * config/aarch64/predicates.md (aarch64_comparison_operation):
1559 New special predicate.
1560 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1561 aarch64_comparison_operation instead of matching an operator.
1562 Update operand numbers.
1563 (csinc3<mode>_insn): Likewise.
1564 (*csinv3<mode>_insn): Likewise.
1565 (*csneg3<mode>_insn): Likewise.
1566 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1567 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1568 Return -1 instead of aborting on invalid condition codes.
1569 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1570 to assert that the returned condition code is valid.
1571 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1572
1573 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1574
1575 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1576 tree.def, and gimple.def
1577
1578 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1579 Balaji V. Iyer <balaji.v.iyer@intel.com>
1580 Igor Zamyatin <igor.zamyatin@intel.com>
1581
1582 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1583 (__cilkrts_cilk_for_64): Likewise.
1584 * cilk-common.c (declare_cilk_for_builtin): New function.
1585 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1586 __cilkrts_cilk_for_64 bultins.
1587 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1588 CILK_TI_F_LOOP_64.
1589 (cilk_for_32_fndecl): New define.
1590 (cilk_for_64_fndecl): Likewise.
1591 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1592 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1593 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1594 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1595 GF_OMP_FOR_COMBINED_INTO.
1596 * gimplify.c (gimplify_scan_omp_clauses): Added
1597 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1598 (gimplify_adjust_omp_clauses): Ditto.
1599 (gimplify_omp_for): Added CILK_FOR case.
1600 (gimplify_expr): Ditto.
1601 * omp-low.c: Include cilk.h.
1602 (extract_omp_for_data): Set appropriate kind for
1603 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1604 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1605 (create_omp_child_function_name): Added second argument to handle
1606 cilk_for case.
1607 (cilk_for_check_loop_diff_type): New function.
1608 (expand_cilk_for_call): Likewise.
1609 (expand_cilk_for): Likewise.
1610 (create_omp_child_function): Set cilk_for_count; handle the cases when
1611 it is true; call create_omp_child_function_name with second argument.
1612 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1613 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1614 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1615 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1616 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1617 (convert_local_omp_clauses): Ditto.
1618 * tree-pretty-print.c (dump_omp_clause): Added
1619 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1620 (dump_generic_node): Added CILK_FOR case.
1621 * tree.c (omp_clause_num_ops): New element
1622 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1623 (omp_clause_code_name): New element _Cilk_for_count_.
1624 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1625 * tree.def: Add tree code for CILK_FOR.
1626
1627 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1628
1629 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1630 (ppc403-compare): Add "exts with dot" case.
1631 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1632 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1633 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1634 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1635 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1636 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1637 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1638 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1639 cell-cmp-microcoded): Similarly.
1640 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1641 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1642 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1643 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1644 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1645 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1646 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1647 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1648 (power6-compare): Add "exts with dot" case.
1649 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1650 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1651 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1652
1653 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1654 if avoiding Cell microcode.
1655 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1656 (is_cracked_insn): Ditto.
1657 (insn_must_be_first_in_group): Ditto.
1658 * config/rs6000/rs6000.md (dot): Adjust comment.
1659 (cell_micro): Handle exts+dot.
1660 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1661 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1662 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1663 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1664 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1665 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1666 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1667
1668 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1669
1670 * config/rs6000/rs6000.md (QHSI): Delete.
1671 (EXTQI, EXTHI, EXTSI): New mode iterators.
1672 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1673 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1674 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1675 9 anonymous instructions, and 8 splitters): Delete.
1676 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1677 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1678 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1679 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1680 *zero_extendsi<mode>2_dot2): New.
1681
1682 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1683
1684 * config/rs6000/rs6000.md (any_extend): New code iterator.
1685 (u, su): New code attributes.
1686 (dmode, DMODE): New mode attributes.
1687 (<su>mul<mode>3_highpart): New.
1688 (*<su>mul<mode>3_highpart): New.
1689 (<su>mulsi3_highpart_le): New.
1690 (<su>muldi3_highpart_le): New.
1691 (<su>mulsi3_highpart_64): New.
1692 (<u>mul<mode><dmode>3): New.
1693 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1694 splitters): Delete.
1695 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1696 splitters): Delete.
1697
1698 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1699
1700 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1701 *mulsi3_internal2, and two splitters): Delete.
1702 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1703 Delete.
1704 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1705
1706 2014-09-02 Richard Biener <rguenther@suse.de>
1707
1708 PR tree-optimization/62695
1709 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1710 vector truncate.
1711
1712 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1713
1714 PR target/62312
1715 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1716
1717 2014-09-01 Andi Kleen <ak@linux.intel.com>
1718
1719 * file-find.c (add_prefix_begin): Add.
1720 (do_add_prefix): Rename from add_prefix with first argument.
1721 (add_prefix): Add new wrapper.
1722 * file-find.h (add_prefix_begin): Add.
1723 * gcc-ar.c (main): Support -B option.
1724
1725 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
1726
1727 * genemit.c: Include dumpfile.h.
1728 (gen_split): Print name of splitter function to dump file.
1729
1730 2014-09-01 Richard Biener <rguenther@suse.de>
1731
1732 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
1733 Use stack auto_vecs for constraint expressions.
1734 (find_func_aliases_for_call): Likewise.
1735 (find_func_aliases): Likewise.
1736 (find_func_clobbers): Likewise.
1737
1738 2014-09-01 Richard Biener <rguenther@suse.de>
1739
1740 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
1741 operands vector in most cases. Remove redundant code.
1742
1743 2014-09-01 Olivier Hainque <hainque@adacore.com>
1744
1745 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
1746 $WIND_BASE instead of designating a harcoded arbitrary home dir.
1747 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
1748
1749 2014-09-01 Richard Biener <rguenther@suse.de>
1750
1751 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
1752 copy_reference_ops_from_call, vn_nary_op_compute_hash,
1753 vn_reference_compute_hash, vn_reference_insert): Remove.
1754 (vn_reference_lookup_call): New function.
1755 * tree-ssa-sccvn.c (vn_reference_compute_hash,
1756 copy_reference_ops_from_ref, copy_reference_ops_from_call,
1757 vn_reference_insert, vn_nary_op_compute_hash): Make static.
1758 (create_reference_ops_from_call): Remove.
1759 (vn_reference_lookup_3): Properly update shared_lookup_references.
1760 (vn_reference_lookup_pieces): Assert that we updated
1761 shared_lookup_references properly.
1762 (vn_reference_lookup): Likewise.
1763 (vn_reference_lookup_call): New function.
1764 (visit_reference_op_call): Use it. Avoid re-building the
1765 reference ops.
1766 (visit_reference_op_load): Remove redundant lookup.
1767 (visit_reference_op_store): Perform special tail-merging work
1768 only when possibly doing tail-merging.
1769 (visit_use): Likewise.
1770 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
1771
1772 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1773
1774 PR target/62025
1775 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
1776 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
1777 (find_inc): Revert 2014-08-13 change.
1778
1779 2014-09-01 Marek Polacek <polacek@redhat.com>
1780
1781 PR middle-end/61903
1782 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
1783 Change the type of V to unsigned HOST_WIDE_INT.
1784
1785 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1786
1787 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
1788 the size of byte markers.
1789 (do_shift_rotate): Fix confusion between host, target and marker byte
1790 size.
1791 (verify_symbolic_number_p): Likewise.
1792 (find_bswap_or_nop_1): Likewise.
1793 (find_bswap_or_nop): Likewise.
1794
1795 2014-09-01 Olivier Hainque <hainque@adacore.com>
1796
1797 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
1798 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
1799
1800 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1801
1802 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
1803 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
1804 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
1805
1806 2014-09-01 Yury Gribov <y.gribov@samsung.com>
1807
1808 PR sanitizer/61897
1809 PR sanitizer/62140
1810 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
1811 (build_check_stmt): Likewise.
1812 (instrument_strlen_call): Likewise.
1813 (asan_expand_check_ifn): Likewise and fix types.
1814 (maybe_cast_to_ptrmode): New function.
1815
1816 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1817
1818 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
1819
1820 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1821
1822 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
1823
1824 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
1825
1826 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
1827 prefix to function labels when generating fast indirect calls.
1828
1829 2014-08-30 David Malcolm <dmalcolm@redhat.com>
1830
1831 PR bootstrap/62304
1832
1833 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
1834 param back from rtx_insn * to rtx. Rename param from "label" to
1835 "label_or_return", reintroducing "label" as an rtx_insn * after
1836 we've ensured it's not a RETURN.
1837 (first_active_target_insn): Likewise for return type and param;
1838 add a checked cast to rtx_insn * once we've ensured "insn" is not
1839 a RETURN.
1840 (steal_delay_list_from_target): Convert param "pnew_thread" back
1841 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
1842 with JUMP_LABEL.
1843 (own_thread_p): Convert param "thread" back from an rtx_insn * to
1844 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
1845 cast once we've established we're not dealing with a RETURN,
1846 renaming subsequent uses of "thread" to "thread_insn".
1847 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
1848 to JUMP_LABEL.
1849 (follow_jumps): Convert return type and param "label" from
1850 rtx_insn * back to rtx. Move initialization of "value" to after
1851 the handling for ANY_RETURN_P, adding a checked cast there to
1852 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
1853 rename to "this_label_or_return", reintroducing "this_label" as
1854 an rtx_insn * once we've handled the case where it could be an
1855 ANY_RETURN_P.
1856 (fill_slots_from_thread): Rename param "thread" to
1857 "thread_or_return", converting from an rtx_insn * back to an rtx.
1858 Reintroduce name "thread" as an rtx_insn * local with a checked
1859 cast once we've handled the case of it being an ANY_RETURN_P.
1860 Convert local "new_thread" from an rtx_insn * back to an rtx.
1861 Add a checked cast when assigning to "trial" from "new_thread".
1862 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
1863 checked cast to rtx_insn * from "new_thread" when invoking
1864 get_label_before.
1865 (fill_eager_delay_slots): Convert locals "target_label",
1866 "insn_at_target" from rtx_insn * back to rtx.
1867 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
1868 (relax_delay_slots): Convert locals "trial", "target_label" from
1869 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
1870 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
1871 invoking update_block.
1872 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
1873 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
1874
1875 * resource.h (mark_target_live_regs): Undo erroneous conversion
1876 of second param of r214693, converting it back from rtx_insn * to
1877 rtx, since it could be a RETURN.
1878
1879 * resource.c (find_dead_or_set_registers): Similarly, convert
1880 param "jump_target" back from an rtx_insn ** to an rtx *, as we
1881 could be writing back a RETURN. Rename local rtx_insn * "next" to
1882 "next_insn", and introduce "lab_or_return" as a local rtx,
1883 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
1884 (mark_target_live_regs): Undo erroneous conversion
1885 of second param of r214693, converting it back from rtx_insn * to
1886 rtx, since it could be a RETURN. Rename it from "target" to
1887 "target_maybe_return", reintroducing the name "target" as a local
1888 rtx_insn * with a checked cast, after we've handled the case of
1889 ANY_RETURN_P.
1890
1891 2014-08-29 DJ Delorie <dj@redhat.com>
1892
1893 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
1894 pointer size up to a power of two.
1895 * defaults.h (DWARF2_ADDR_SIZE): Round up.
1896 (POINTER_SIZE_UNITS): New, rounded up value.
1897 * dwarf2asm.c (size_of_encoded_value): Use it.
1898 (dw2_output_indirect_constant_1): Likewise.
1899 * expmed.c (init_expmed_one_conv): We now know the sizes of
1900 partial int modes.
1901 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
1902 * optabs.c (expand_float): Use precision, not size.
1903 (expand_fix): Likewise.
1904 * simplify-rtx (simplify_unary_operation_1): Likewise.
1905 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1906 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
1907 (default_assemble_integer) Likewise.
1908 (dump_tm_clone_pairs): Likewise.
1909 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
1910 * var-tracking.c (adjust_mems): Allow partial-int modes also.
1911 (prepare_call_arguments): Likewise.
1912 * stor-layout.c (finalize_type_size): Preserve precision.
1913 (layout_type): Use precision, not size.
1914
1915 * expr.c (convert_move): If the target has an explicit converter,
1916 use it.
1917
1918 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1919
1920 * gdbinit.in: Skip various inline functions in rtl.h when
1921 stepping.
1922
1923 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
1924
1925 PR bootstrap/62301
1926 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
1927
1928 2014-08-29 Richard Biener <rguenther@suse.de>
1929
1930 PR tree-optimization/62291
1931 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
1932 exactly the vector size needed and use quick_push.
1933 (phi_translate_1): Adjust comment.
1934 (valid_in_sets): Remove block argument and remove pointless
1935 checking of NAMEs.
1936 (dependent_clean): Adjust for removal of block argument.
1937 (clean): Likewise.
1938 (compute_antic_aux): Likewise.
1939 (compute_partial_antic_aux): Likewise.
1940
1941 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1942 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1943 Anna Tikhonova <anna.tikhonova@intel.com>
1944 Ilya Tocar <ilya.tocar@intel.com>
1945 Andrey Turetskiy <andrey.turetskiy@intel.com>
1946 Ilya Verbin <ilya.verbin@intel.com>
1947 Kirill Yukhin <kirill.yukhin@intel.com>
1948 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1949
1950 * config/i386/sse.md
1951 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
1952 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
1953 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
1954 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
1955
1956 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1957 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1958 Anna Tikhonova <anna.tikhonova@intel.com>
1959 Ilya Tocar <ilya.tocar@intel.com>
1960 Andrey Turetskiy <andrey.turetskiy@intel.com>
1961 Ilya Verbin <ilya.verbin@intel.com>
1962 Kirill Yukhin <kirill.yukhin@intel.com>
1963 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1964
1965 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
1966 * config/i386/sse.md
1967 (define_mode_iterator VI4_128_8_256): New.
1968 (define_mode_iterator VI2_128_4_256): Ditto.
1969 (define_mode_iterator PMOV_DST_MODE): Rename into
1970 (define_mode_iterator PMOV_DST_MODE_1): this.
1971 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
1972 Use PMOV_DST_MODE_1 mode iterator.
1973 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1974 Ditto.
1975 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1976 Ditto.
1977 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
1978 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
1979 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
1980 (define_mode_iterator PMOV_DST_MODE_2): New.
1981 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
1982 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
1983 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
1984 Ditto.
1985 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
1986 (define_mode_attr pmov_dst_3): Ditto.
1987 (define_mode_attr pmov_dst_zeroed_3): Ditto.
1988 (define_mode_attr pmov_suff_3): Ditto.
1989 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
1990 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
1991 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
1992 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
1993 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
1994 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
1995 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
1996 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
1997 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
1998 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
1999 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2000 (define_mode_attr pmov_dst_4): Ditto.
2001 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2002 (define_mode_attr pmov_suff_4): Ditto.
2003 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2004 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2005 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2006 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2007 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2008 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2009 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2010 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2011 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2012 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2013 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2014
2015 2014-08-29 Richard Biener <rguenther@suse.de>
2016
2017 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2018 NON_LVALUE_EXPR in gimple.
2019
2020 2014-08-29 Richard Biener <rguenther@suse.de>
2021
2022 PR middle-end/62292
2023 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2024 from previous refactoring.
2025 (gimple_fold_builtin_strncpy): Likewise.
2026
2027 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2028
2029 PR bootstrap/62300
2030 * function.c (assign_parm_setup_reg): Remove erroneous checked
2031 cast to rtx_insn * on result of gen_extend_insn in favor of
2032 introducing a new local rtx "pat".
2033
2034 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2035
2036 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2037 to silence warning.
2038 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2039
2040 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2041
2042 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2043 (next_insn): Likewise.
2044 * emit-rtl.c (next_insn): Likewise.
2045 (previous_insn): Likewise.
2046 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2047 "insn" and "next" from rtx to rtx_insn *.
2048 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2049 "insn", "insn1", "vliw_start", "prologue_end_note",
2050 "last_insn_in_packet".
2051
2052 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2053
2054 * shrink-wrap.h (active_insn_between): Strengthen both params from
2055 rtx to rtx_insn *.
2056 * function.c (active_insn_between): Likewise.
2057
2058 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2059
2060 * genattr.c (main): When writing out insn-attr.h, strengthen param
2061 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2062 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2063 writing out the definition of dfa_clear_single_insn_cache to the
2064 generated insn-automata.c
2065
2066 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2067
2068 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2069 rtx to rtx_insn *.
2070 (incr_ticks_for_insn): Likewise.
2071 (init_resource_info): Likewise.
2072
2073 * resource.c (init_resource_info): Likewise.
2074 (clear_hashed_info_for_insn): Likewise.
2075 (incr_ticks_for_insn): Likewise.
2076
2077 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2078 rtx to rtx_insn *.
2079 (steal_delay_list_from_target): Use methods of "seq".
2080 (try_merge_delay_insns): Use methods of "merged_insns".
2081 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2082 (reorg_redirect_jump): Likewise for param "jump".
2083
2084 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2085
2086 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2087 rtx to rtx_insn *.
2088 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2089 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2090 "set_insn".
2091 (s390_mainpool_finish): In three places, split out a local rtx
2092 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2093 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2094 and split another local rtx "insn" out into rtx "pat" and
2095 rtx_insn * "insn".
2096 * config/sh/sh.c (output_branchy_insn): Rather than working
2097 directly on operands[9], introduce local rtx_code_label *
2098 variables named "lab" in two places, working on them, and then
2099 assigning them to operands[9], so that the intervening operations
2100 are known by the type system to be on insns.
2101
2102 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2103
2104 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2105 const rtx_insn *.
2106
2107 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2108 in invocation of INSN_HAS_LOCATION.
2109
2110 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2111
2112 * config/rs6000/altivec.h (vec_xl): New #define.
2113 (vec_xst): Likewise.
2114 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2115 (XXSPLTD_V2DI): Likewise.
2116 (DIV_V2DI): Likewise.
2117 (UDIV_V2DI): Likewise.
2118 (MUL_V2DI): Likewise.
2119 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2120 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2121 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2122 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2123 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2124 (UNSPEC_VSX_DIVSD): Likewise.
2125 (UNSPEC_VSX_DIVUD): Likewise.
2126 (UNSPEC_VSX_MULSD): Likewise.
2127 (vsx_mul_v2di): New insn-and-split.
2128 (vsx_div_v2di): Likewise.
2129 (vsx_udiv_v2di): Likewise.
2130 (vsx_xxspltd_<mode>): New insn.
2131
2132 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2133
2134 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2135 NEXT_INSN.
2136 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2137 (NEXT_INSN): Likewise.
2138 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2139 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2140 const rtx_insn *.
2141 (no_labels_between_p): Likewise for both params.
2142
2143 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2144 cast when using NEXT_INSN on operands[2].
2145 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2146 "insn" from rtx to rtx_insn *, adding a checked cast.
2147 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2148 rtx_insn *.
2149 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2150 for third param.
2151 (arc_text_label): Likewise for param "insn".
2152 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2153 "insn".
2154 (arc_ccfsm_record_condition): Likewise for param "jump".
2155 (arc_text_label): Likewise for local "label".
2156 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2157 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2158 a method for typesafety. Add a checked cast.
2159 * config/arc/constraints.md (Clb): Add a checked cast when getting
2160 the CODE_LABEL from a LABEL_REF.
2161 * config/arm/arm.c (require_pic_register): Strengthen locals
2162 "seq", "insn" from rtx to rtx_insn *.
2163 (create_fix_barrier): Likewise for locals "selected", "next".
2164 (thumb1_reorg): Likewise for locals "prev", "insn".
2165 (arm_expand_prologue): Likewise for local "last".
2166 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2167 operands[0].
2168 (thumb2_output_casesi): Likewise for operands[2].
2169 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2170 strengthen local "insn" from rtx to rtx_insn *.
2171 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2172 type and param "insn".
2173 (find_prev_insn_start): Likewise.
2174 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2175 "prev".
2176 (gen_one_bundle): Likewise for loal "t".
2177 (find_load): Likewise for param "insn".
2178 (workaround_speculation): Likewise for locals "insn", "next",
2179 "target", "next_tgt".
2180 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2181 and for locals "insn", "within", "last".
2182 (count_unit_reqs): Likewise for params "head", "tail" and local
2183 "insn".
2184 (try_rename_operands): Likewise for params "head", "tail".
2185 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2186 (struct c6x_sched_context): Likewise for fields
2187 "last_scheduled_insn", "last_scheduled_iter0".
2188 (init_sched_state): Replace NULL_RTX with NULL.
2189 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2190 to rtx_insn *.
2191 (undo_split_delayed_nonbranch): Likewise for param and for local
2192 "prev".
2193 (conditionalize_after_sched): Likewise for local "insn".
2194 (bb_earliest_end_cycle): Likewise.
2195 (filter_insns_above): Likewise for locals "insn", "next".
2196 (hwloop_optimize): Remove redundant checked cast.
2197 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2198 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2199 NULL_RTX with NULL.
2200 (cris_simple_epilogue): Likewise.
2201 (cris_expand_prologue): Likewise.
2202 (cris_expand_epilogue): Likewise.
2203 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2204 local "insn" from rtx to rtx_insn *.
2205 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2206 (struct frv_packet_group): Likewise for the elements within array
2207 fields "insns", "sorted", and for field "nop".
2208 (frv_packet): Likewise for the elements within array field
2209 "insns".
2210 (frv_add_insn_to_packet): Likewise for param "insn".
2211 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2212 "last".
2213 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2214 (frv_sort_insn_group_1): Likewise for local "insn".
2215 (frv_optimize_membar_local): Likewise.
2216 (frv_align_label): Likewise for locals "x", "last", "barrier",
2217 "label".
2218 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2219 local.
2220 (ia64_sched_init): Likewise for local "insn".
2221 (scheduled_good_insn): Likewise for param "last".
2222 (struct _ia64_sched_context): Likewise for field
2223 "last_scheduled_insn".
2224 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2225 (struct bundle_state): Likewise for field "insn".
2226 (issue_nops_and_insn): Likewise for param "insn".
2227 (get_next_important_insn): Likewise for return type and both
2228 params.
2229 (ia64_add_bundle_selector_before): Likewise for param "insn".
2230 (bundling): Likewise for params "prev_head_insn", "tail" and
2231 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2232 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2233 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2234 Strengthen final param from rtx to rtx_insn *.
2235 (iq2000_move_1word): Likewise for second param.
2236 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2237 param "cur_insn" and local "next_insn".
2238 (iq2000_move_1word): Likewise for param "insn".
2239 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2240 casts when using NEXT_INSN on operands[1].
2241 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2242 "insn" from rtx to rtx_insn *.
2243 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2244 "x", introducing local rtx_insn * "insn" for when working with the
2245 CODE_LABEL of the LABEL_REF.
2246 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2247 rtx_insn *.
2248 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2249 param.
2250 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2251 type.
2252 (conditionalize_block): Likewise for return type and param.
2253 (mcore_is_dead): Likewise for param "first" and local "insn".
2254 (emit_new_cond_insn): Likewise for return type.
2255 (conditionalize_block): Likewise for return type, param, and
2256 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2257 "newinsn".
2258 (conditionalize_optimization): Likewise for local "insn".
2259 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2260 using NEXT_INSN.
2261 * config/microblaze/microblaze.md: Add checked casts when using
2262 NEXT_INSN.
2263 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2264 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2265 and rtx_insn * "insn".
2266 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2267 checked cast when using NEXT_INSN on operands[2].
2268 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2269 local "insn" from rtx to rtx_insn *.
2270 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2271 Likewise.
2272 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2273 Add a checked cast when using NEXT_INSN on operands[1].
2274 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2275 rtx to rtx_insn *.
2276 (pa_output_cbranch): Likewise for final param.
2277 (pa_output_lbranch): Likewise for second param.
2278 (pa_output_bb): Likewise for third param.
2279 (pa_output_bvb): Likewise.
2280 (pa_output_dbra): Likewise for second param.
2281 (pa_output_movb): Likewise.
2282 (pa_output_parallel_movb): Likewise.
2283 (pa_output_parallel_addb): Likewise.
2284 (pa_output_millicode_call): Likewise for first param.
2285 (pa_output_mul_insn): Likewise for second param.
2286 (pa_output_div_insn): Likewise for third param.
2287 (pa_output_mod_insn): Likewise for second param.
2288 (pa_jump_in_call_delay): Likewise for param.
2289 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2290 (pa_output_div_insn): Likewise.
2291 (pa_output_mod_insn): Likewise.
2292 (pa_output_cbranch): Likewise.
2293 (pa_output_lbranch): Likewise.
2294 (pa_output_bb): Likewise.
2295 (pa_output_bvb): Likewise.
2296 (pa_output_dbra): Likewise.
2297 (pa_output_movb): Likewise.
2298 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2299 to simplify and for typesafety.
2300 (pa_output_call): Use method of rtx_sequence *.
2301 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2302 (pa_jump_in_call_delay): Likewise.
2303 (pa_output_parallel_movb): Likewise.
2304 (pa_output_parallel_addb): Likewise.
2305 (pa_following_call): Likewise.
2306 (pa_combine_instructions): Likewise for locals "anchor",
2307 "floater".
2308 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2309 locals "start", "end".
2310 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2311 param "insn" and local "local_insn".
2312 (picochip_final_prescan_insn): Likewise for local "local_insn".
2313 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2314 local "insn".
2315 (uses_TOC): Likewise.
2316 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2317 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2318 splitting out to more tightly-scoped locals, 3 as rtx and one as
2319 rtx_insn *.
2320 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2321 to rtx_insn *.
2322 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2323 where needed.
2324 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2325 to rtx_insn *.
2326 (fixup_addr_diff_vecs): Likewise.
2327 (reg_unused_after): Likewise for param 2.
2328 (sh_can_redirect_branch): Likewise for both params.
2329 (check_use_sfunc_addr): Likewise for param 1.
2330 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2331 (find_barrier): Likewise for local "last_got".
2332 (gen_block_redirect): Likewise for return type, param "jump" and
2333 locals "prev", "scan", "next", "insn".
2334 (struct far_branch): Likewise for fields "near_label",
2335 "insert_place", "far_label".
2336 (gen_far_branch): Likewise for local "jump".
2337 (fixup_addr_diff_vecs): Likewise for param "first" and locals
2338 "insn", "prev".
2339 (barrier_align): Likewise for param and for locals "prev", "x".
2340 Introduce local rtx_sequence * "prev_seq" and use insn method for
2341 typesafety and clarity.
2342 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2343 (get_dest_uid): Likewise for local "dest".
2344 (split_branches): Likewise for locals "next", "beyond", "label",
2345 "block", "far_label". Add checked casts when assigning to
2346 bp->far_label and "far_label".
2347 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2348 (sequence_insn_p): Likewise.
2349 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
2350 more loop-scoped rtx "insn" when walking LABEL_REFS.
2351 (sh_can_redirect_branch): Strengthen both params from rtx to
2352 rtx_insn *.
2353 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
2354 new local rtx_sequence * "seq" via a dyn_cast, and use a method
2355 for clarity and typesafety.
2356 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2357 "insn" from rtx to rtx_insn *.
2358 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2359 when using NEXT_INSN on the CODE_LABEL in operands[2].
2360 (define_insn "casesi_worker_2"): Likewise.
2361 (define_insn "casesi_shift_media"): Likewise.
2362 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2363 operands[3].
2364 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2365 Strengthen field "insn" from rtx to rtx_insn *.
2366 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2367 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2368 param "start_insn" and local "start_insn".
2369 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2370 field "insn".
2371 (find_set_of_reg_bb): Likewise for param "insn".
2372 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2373 (trace_reg_uses): Likewise for param "start_insn".
2374 (sh_treg_combine::cbranch_trace): Likewise for field
2375 "cbranch_insn".
2376 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2377 param "insn".
2378 (sh_treg_combine::record_set_of_reg): Likewise for param
2379 "start_insn" and local "i".
2380 (sh_treg_combine::can_remove_cstore): Likewise for local
2381 "prev_insn".
2382 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2383 "insn".
2384 (sh_treg_combine::execute): Likewise for local "i".
2385 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2386 param.
2387 (sparc_check_64): Likewise for second param.
2388 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2389 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2390 dyn_cast, using its insn method for typesafety and clarity.
2391 (empty_delay_slot): Strengthen param "insn" from rtx to
2392 rtx_insn *.
2393 (set_extends): Likewise.
2394 (sparc_check_64): Likewise.
2395 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2396 for locals "seq", "last_insn".
2397 (combine_bnp): Likewise for param "insn".
2398 (xstormy16_reorg): Likewise for local "insn".
2399 * config/v850/v850.c (substitute_ep_register): Likewise for params
2400 "first_insn", "last_insn" and local "insn".
2401 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2402 elements of "regs" array, and local "insn".
2403 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2404 * final.c (final_sequence): Strengthen this global from rtx to
2405 rtx_sequence *.
2406 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2407 rtx_insn *.
2408 (final_scan_insn): Update assignment to "final_sequence" to be
2409 from "seq", the cast version of "body", for type-safety.
2410 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2411 "insns" from rtx to rtx_insn *.
2412 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2413 * genattr.c (main): When writing out generated insn-attr.h,
2414 strengthen params 1 and 3 of eligible_for_delay,
2415 eligible_for_annul_true, eligible_for_annul_false from rtx to
2416 rtx_insn *.
2417 * genattrtab.c (write_eligible_delay): Likewise when writing out
2418 generated insn-attrtab.c; also local "insn" the generated
2419 functions.
2420 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2421 to rtx_insn *.
2422 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2423 "start_label" from rtx to rtx_insn *.
2424 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2425 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2426 "insns" and local "insn".
2427 (validate_equiv_mem): Likewise for param "start" and local "insn".
2428 (memref_used_between_p): Likewise for params "start", "end" and
2429 local "insn".
2430 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2431 final param.
2432 * loop-doloop.c (doloop_optimize): Within region guarded by
2433 INSN_P (doloop_pat), introduce a new local rtx_insn *
2434 "doloop_insn" via a checked cast, and use it for typesafety,
2435 eventually writing the value back into doloop_pat.
2436 * output.h (final_sequence): Strengthen this global from rtx to
2437 rtx_sequence *.
2438 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2439 reintroducing "insn" as an rtx_insn * via a checked cast.
2440 Strengthen param "attempt" and local "new_insn"from rtx to
2441 rtx_insn *.
2442 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2443 to rtx_insn *.
2444 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2445 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2446 "p" in favor of more tightly-scoped replacements, sometimes rtx
2447 and sometimes rtx_insn *, as appropriate.
2448 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2449 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2450 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2451 local "trial" from rtx to rtx_insn *.
2452 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2453 rtx to rtx_insn *. Strenghten local "pat" from rtx to
2454 rtx_sequence * and use methods for clarity and typesafety.
2455 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2456 rtx to rtx_insn *. Strenghten local "li" from rtx to
2457 rtx_insn_list * and use its methods for clarity and typesafety.
2458 (steal_delay_list_from_target): Strengthen param "insn" from rtx
2459 to rtx_insn *.
2460 (steal_delay_list_from_fallthrough): Likewise.
2461 (try_merge_delay_insns): Likewise for param "thread" and locals
2462 "trial", "next_trial", "delay_insn".
2463 (redundant_insn): Likewise for param "target" and local "trial".
2464 (own_thread_p): Likewise for param "thread" and locals
2465 "active_insn", "insn".
2466 (get_label_before): Likewise for param "insn".
2467 (fill_simple_delay_slots): Likewise for local "new_label"; use
2468 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2469 (label_before_next_insn): Strengthen return type and local "insn"
2470 from rtx to rtx_insn *.
2471 (relax_delay_slots): Likewise for locals "other", "tmp".
2472 (make_return_insns): Likewise for param "first" and locals "insn",
2473 "jump_insn", "prev". Move declaration of "pat" to its assignment
2474 and strengthen from rtx to rtx_sequence *. Use its methods for
2475 clarity and typesafety.
2476 * rtlanal.c (no_labels_between_p): Strengthen params from
2477 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
2478 rtx_insn *.
2479 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2480 from const_rtx to const rtx_insn *.
2481 (reg_set_between_p): Rename param "from_insn" to
2482 "uncast_from_insn", and reintroduce "from_insn" as a
2483 const rtx_insn * via a checked cast.
2484 (modified_between_p): Likewise for param "start" as "uncast_start".
2485 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2486 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2487 "tmp", head" from rtx to rtx_insn *.
2488 (recompute_rev_top_order): Likewise for local "insn".
2489 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2490 * store-motion.c (build_store_vectors): Likewise for local "insn".
2491 Strengthen local "st" from rtx to rtx_insn_list * and use methods
2492 for clarity and typesafety.
2493 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2494 rtx to rtx_insn *.
2495 (computation_cost): Likewise for local "seq".
2496 (get_address_cost): Likewise.
2497
2498 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2499
2500 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2501 const rtx_insn *.
2502 (label_is_jump_target_p): Likewise for second param.
2503
2504 * rtlanal.c (tablejump_p): Likewise for param "insn".
2505 (label_is_jump_target_p): Likewise for param "jump_insn".
2506
2507 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2508
2509 * rtl.h (find_first_parameter_load): Strengthen return type and
2510 both params from rtx to rtx_insn *.
2511 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2512 both params and locals "before", "first_set" from rtx to
2513 rtx_insn *. Remove now-redundant cast.
2514 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2515
2516 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2517
2518 * rtl.h (find_last_value): Delete.
2519 * rtlanal.c (find_last_value): Delete.
2520
2521 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2522
2523 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2524 from rtx to rtx_insn *.
2525 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2526 rtx "note" with new local rtx_insn * "new_head" when calculating
2527 head insn of new basic block.
2528 * combine.c (combine_split_insns): Strengthen return type and local
2529 "ret" from rtx to rtx_insn *.
2530 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2531 (try_combine): Eliminate local "m_split", splitting into new
2532 locals "m_split_insn" and "m_split_pat".
2533 (find_split_point): Strengthen local "seq" from rtx into
2534 rtx_insn *.
2535 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2536 locals "label", "branch".
2537 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2538 for local "insn".
2539 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2540 * dse.c (note_add_store_info): Likewise for fields "first",
2541 "current".
2542 (note_add_store): Likewise for local "insn".
2543 (emit_inc_dec_insn_before): Likewise for locals "insn",
2544 "new_insn", "cur".
2545 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2546 (replace_read): Likewise for locals "insns", "this_insn".
2547 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2548 (notice_eh_throw): Likewise for param "insn".
2549 (before_next_cfi_note): Likewise for return type, param, and local
2550 "prev".
2551 (connect_traces): Likewise for local "note".
2552 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2553 (verify_rtl_sharing): Likewise.
2554 (unshare_all_rtl_in_chain): Likewise for param "insn".
2555 (get_first_nonnote_insn): Likewise for local "insn".
2556 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2557 "seq" and use its methods to clarify things.
2558 (next_insn): Strengthen return type from rtx to rtx_insn *.
2559 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2560 local rtx_insn * using a checked cast, dropping a checked cast
2561 made redundant by this change. Use a cast to and method of
2562 rtx_sequence to clarify the code.
2563 (previous_insn): Rename param "insn" to "uncast_insn" and
2564 reintroduce "insn" as a local rtx_insn * using a checked cast,
2565 dropping a checked cast made redundant by this change. Use a cast
2566 to and method of rtx_sequence to clarify the code.
2567 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2568 reintroduce "insn" as a local rtx_insn * using a checked cast,
2569 dropping a checked cast made redundant by this change.
2570 (next_nonnote_insn_bb): Likewise.
2571 (prev_nonnote_insn): Likewise.
2572 (prev_nonnote_insn_bb): Likewise.
2573 (next_nondebug_insn): Likewise.
2574 (prev_nondebug_insn): Likewise.
2575 (next_nonnote_nondebug_insn): Likewise.
2576 (prev_nonnote_nondebug_insn): Likewise.
2577 (next_real_insn): Likewise.
2578 (prev_real_insn): Likewise.
2579 (next_active_insn): Likewise.
2580 (prev_active_insn): Likewise.
2581 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2582 clarity.
2583 (prev_cc0_setter): Likewise.
2584 (try_split): Rename param "trial" to "uncast_trial" and
2585 reintroduce "insn" as a local rtx_insn * using a checked cast,
2586 dropping checked casts made redundant by this change.
2587 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2588 rtx to rtx_insn *.
2589 (remove_insn): Rename param "insn" to "uncast_insn" and
2590 reintroduce "insn" as a local rtx_insn * using a checked cast.
2591 (emit_pattern_after_setloc): Likewise for param "after", as
2592 "uncast_after".
2593 (emit_pattern_after): Likewise. Strengthen local "prev" from
2594 rtx to rtx_insn *.
2595 (emit_pattern_before_setloc): Rename param "before" to
2596 "uncast_before" and reintroduce "before" as a local rtx_insn *
2597 using a checked cast. Strengthen locals "first", "last" from
2598 rtx to rtx_insn *.
2599 (emit_pattern_before): Likewise rename/cast param "before" to
2600 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2601 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2602 "first" and local "insn" from rtx to rtx_insn *.
2603 (copy_reg_eh_region_note_backward): Likewise for param "last"
2604 and local "insn".
2605 * expr.c (fixup_args_size_notes): Rename param "last" to
2606 "uncast_last" and reintroduce "last" as a local rtx_insn *
2607 using a checked cast. Strengthen local "insn" from rtx to
2608 rtx_insn *.
2609 * function.c (set_insn_locations): Strengthen param "insn" from
2610 rtx to rtx_insn *.
2611 (record_insns): Likewise for param "insns" and local "tmp".
2612 (active_insn_between): Rename param "tail" to
2613 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2614 using a checked cast.
2615 (thread_prologue_and_epilogue_insns): Split out top-level local
2616 rtx "seq" into three different rtx_insn * locals. Strengthen
2617 local "prologue_seq" from rtx to rtx_insn *.
2618 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2619 from rtx to rtx_insn *.
2620 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2621 (priority): Likewise for locals "prev_first", "twin".
2622 (setup_insn_max_reg_pressure): Likewise for param "after".
2623 (sched_setup_bb_reg_pressure_info): Likewise.
2624 (no_real_insns_p): Strengthen params from const_rtx to
2625 const rtx_insn *.
2626 (schedule_block): Strengthen local "next_tail" from rtx to
2627 rtx_insn *.
2628 * ifcvt.c (find_active_insn_before): Strengthen return type and
2629 param "insn" from rtx to rtx_insn *.
2630 (find_active_insn_after): Likewise.
2631 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2632 (cond_exec_process_if_block): Likewise for locals "then_start",
2633 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2634 (noce_process_if_block): Likewise for local "jump".
2635 (merge_if_block): Likewise for two locals named "end".
2636 (cond_exec_find_if_block): Likewise for local "last_insn".
2637 * jump.c (delete_related_insns): Rename param "insn" to
2638 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2639 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2640 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2641 NULL.
2642 (split_reg): Likewise.
2643 * lra.c (lra_process_new_insns): Likewise.
2644 * modulo-sched.c (permute_partial_schedule): Strengthen param
2645 "last" from rtx to rtx_insn *.
2646 * optabs.c (add_equal_note): Likewise for param "insns" and local
2647 "last_insn".
2648 (expand_binop_directly): Add checked casts to rtx_insn * within
2649 NEXT_INSN (pat) uses.
2650 (expand_unop_direct): Likewise.
2651 (maybe_emit_unop_insn): Likewise.
2652 * recog.c (peep2_attempt): Strengthen locals "last",
2653 "before_try", "x" from rtx to rtx_insn *.
2654 * reorg.c (optimize_skip): Strengthen return type and local
2655 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2656 and locals "trial", "next_trial" from rtx to rtx_insn *.
2657 * resource.c (next_insn_no_annul): Strengthen return type and
2658 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2659 rtx_sequence to clarify the code.
2660 (mark_referenced_resources): Add a checked cast to rtx_insn *
2661 within PREV_INSN (x).
2662 (find_dead_or_set_registers): Strengthen return type, param
2663 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2664 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2665 to rtx_insn **.
2666 (mark_target_live_regs): Strengthen params "insns" and "target",
2667 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2668 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2669 the code.
2670 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2671 from rtx to rtx_insn *.
2672 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2673 from rtx to rtx_insn *.
2674 (copy_reg_eh_region_note_backward): Likewise.
2675 (unshare_all_rtl_in_chain): Likewise for sole param.
2676 (dump_rtl_slim): Strengthen second and third params from const_rtx
2677 to const rtx_insn *.
2678 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2679 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2680 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2681 "next_tail" from rtx to rtx_insn *.
2682 (begin_move_insn): Likewise for local "next".
2683 * sched-int.h (sched_free_deps): Likewise for first and second
2684 params.
2685 (no_real_insns_p): Strengthen both params from const_rtx to
2686 const rtx_insn *.
2687 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2688 rtx to rtx_insn *.
2689 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2690 "next_tail".
2691 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2692 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2693 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2694 rtx_insn *.
2695 (debug_rtl_slim): Strengthen params "first" and "last" from
2696 const_rtx to const rtx_insn *.
2697 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2698 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2699 (convert_to_simple_return): Likewise for param "returnjump".
2700 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2701 "prologue_seq".
2702 (convert_to_simple_return): Likewise for param "returnjump".
2703 * valtrack.c (propagate_for_debug): Likewise for params
2704 "insn", "last".
2705 * valtrack.h (propagate_for_debug): Likewise for second param.
2706
2707 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2708
2709 * output.h (insn_current_reference_address): Strengthen param
2710 from rtx to rtx_insn *.
2711 * final.c (insn_current_reference_address): Likewise.
2712
2713 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2714
2715 * basic-block.h (inside_basic_block_p): Strengthen param from
2716 const_rtx to const rtx_insn *.
2717 * cfgbuild.c (inside_basic_block_p): Likewise.
2718
2719 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2720
2721 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
2722 rtx_insn *.
2723 (get_trace_info): Likewise for param "insn".
2724 (save_point_p): Likewise.
2725 (maybe_record_trace_start): Likewise for both params.
2726 (maybe_record_trace_start_abnormal): Likewise.
2727 (create_trace_edges): Likewise for sole param and for three of the
2728 locals named "lab".
2729 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
2730 to rtx_insn *, and update a call to pat->element to pat->insn.
2731
2732 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2733
2734 * function.h (struct expr_status): Convert field "x_forced_labels"
2735 from rtx_expr_list * to rtx_insn_list *.
2736
2737 * cfgbuild.c (make_edges): Convert local "x" from an
2738 rtx_expr_list * to an rtx_insn_list *, replacing use of
2739 "element" method with "insn" method.
2740 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2741 * except.c (sjlj_emit_dispatch_table): Replace use of
2742 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
2743 forced_labels.
2744 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
2745 rtx_expr_list * to an rtx_insn_list *, replacing use of
2746 "element" method with "insn" method.
2747 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2748 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
2749 rtx_insn *, adding a checked cast. Replace use of
2750 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
2751 forced_labels.
2752 (expand_label): Likewise for local "label_r".
2753
2754 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2755
2756 * function.h (struct rtl_data): Convert field
2757 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
2758 rtx_insn_list *.
2759 * rtl.h (remove_node_from_insn_list): New prototype.
2760
2761 * builtins.c (expand_builtin): When prepending to
2762 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2763 gen_rtx_EXPR_LIST.
2764 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
2765 to rtx_insn_list *, and use its "insn" method rather than
2766 "element" method.
2767 * cfgrtl.c (delete_insn): Use new function
2768 remove_node_from_insn_list rather than
2769 remove_node_from_expr_list.
2770 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
2771 to rtx_insn_list *, and use its "insn" method rather than
2772 "element" method.
2773 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2774 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2775 * rtlanal.c (remove_node_from_insn_list): New function, adapted
2776 from remove_node_from_expr_list.
2777 * stmt.c (expand_label): When prepending to
2778 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2779 gen_rtx_EXPR_LIST.
2780
2781 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2782
2783 * function.h (struct rtl_data): Strengthen fields "x_return_label"
2784 and "x_naked_return_label" from rtx to rtx_code_label *.
2785
2786 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2787
2788 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
2789 (SET_NEXT_INSN): Likewise.
2790 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
2791
2792 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
2793 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
2794 to split out the SEQUENCE from local "bundle", strengthening the
2795 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
2796 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
2797 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
2798 and the type of the elements of the "slot" array from rtx to
2799 rtx_insn *.
2800 (reorg_split_calls): Likewise for locals "insn" and "next", and
2801 the type of the elements of the "slot" array.
2802
2803 * config/frv/frv.c (frv_nops): Likewise for the elements of this
2804 array.
2805 (frv_function_prologue): Likewise for locals "insn", "next",
2806 "last_call".
2807 (frv_register_nop): Introduce a local "nop_insn" to be the
2808 rtx_insn * containing rtx "nop".
2809
2810 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
2811 used as an insn and sometimes as a pattern, so rename it to
2812 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
2813 using it where dealing with the core insn.
2814
2815 * config/picochip/picochip.c (reorder_var_tracking_notes):
2816 Strengthen locals "insn", "next", "last_insn", "queue",
2817 "next_queue", "prev" from rtx to rtx_insn *.
2818
2819 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
2820 the second param is an rtx_insn ** rather than an rtx **.
2821 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
2822 from rtx to rtx_sequence *, and introduce local named "sequence",
2823 using methods of rtx_sequence to clarify the code.
2824 (remove_insn): Introduce local rtx_sequence * named "sequence" and
2825 use its methods.
2826 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
2827 Rename param "after" to "uncast_after", reintroducing "after" as a
2828 local rtx_insn * with a checked cast.
2829 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
2830 reintroducing "after" as a local rtx_insn * with a checked cast.
2831 Strengthen local "last" from rtx to rtx_insn * and remove the
2832 now-redundant checked casts.
2833 (copy_delay_slot_insn): Strengthen return type and param from rtx
2834 to rtx_insn *.
2835
2836 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
2837 "last" from rtx to rtx_insn *.
2838
2839 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2840
2841 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
2842 param from rtx to rtx_insn *.
2843
2844 * emit-rtl.c (copy_delay_slot_insn): Likewise.
2845
2846 * reorg.c (skip_consecutive_labels): Strengthen return type, param
2847 and local "insn" from rtx to rtx_insn *.
2848 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
2849 (unfilled_slots_next): Likewise.
2850 (function_return_label): Strengthen from rtx to rtx_code_label *.
2851 (function_simple_return_label): Likewise.
2852 (first_active_target_insn): Strengthen return type and param from
2853 rtx to rtx_insn *.
2854 (find_end_label): Strengthen return type from rtx to
2855 rtx_code_label *; strengthen locals as appropriate.
2856 (emit_delay_sequence): Strengthen return type, param "insn" and
2857 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
2858 and local "li" from rtx to rtx_insn_list *, using methods of
2859 rtx_insn_list for clarity and typesafety.
2860 (add_to_delay_list): Strengthen return type and param "insn" from
2861 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
2862 rtx_insn_list * and use methods of rtx_insn_list.
2863 (delete_from_delay_slot): Strengthen return type, param "insn",
2864 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
2865 Strengthen local "seq" from rtx to rtx_sequence *, and local
2866 "delay_list" from rtx to rtx_insn_list *, using methods of
2867 rtx_sequence for clarity and type-safety.
2868 (delete_scheduled_jump): Add checked cast when invoking
2869 delete_from_delay_slot. Strengthen local "trial" from rtx to
2870 rtx_insn *.
2871 (optimize_skip): Strengthen return type and local "delay_list"
2872 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
2873 rtx_insn *.
2874 (steal_delay_list_from_target): Strengthen return type, param
2875 "delay_list" and local "new_delay_list" from rtx to
2876 rtx_insn_list *. Strengthen param "seq" from rtx to
2877 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
2878 rtx_insn **.
2879 Split out local "temp" into multiple more-tightly scoped locals:
2880 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
2881 of rtx_insn_list and rtx_sequence for clarity and typesafety.
2882 Strengthen locals named "trial" from rtx to rtx_insn *.
2883 (steal_delay_list_from_fallthrough): Strengthen return type and
2884 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
2885 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
2886 Strengthen local "trial" from rtx to rtx_insn *.
2887 (try_merge_delay_insns): Strength local "merged_insns" from rtx
2888 to rtx_insn_list * and use its methods. Strengthen local "pat"
2889 from rtx to rtx_sequence * and use its methods. Strengthen locals
2890 "dtrial" and "new_rtx" from rtx to rtx_insn *.
2891 (get_label_before): Strengthen return type and local "label" from
2892 rtx to rtx_insn *.
2893 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
2894 "next_trial", "next", prev". Strengthen local "delay_list" from
2895 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
2896 rtx_insn **.
2897 (follow_jumps): Strengthen return type, param "label" and locals
2898 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
2899 (fill_slots_from_thread): Strengthen return type, param
2900 "delay_list" from rtx to rtx_insn_list *. Strengthen params
2901 "insn", "thread", "opposite_thread" and locals "new_thread",
2902 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
2903 "sequence" from a checked cast to rtx_sequence so that we can call
2904 steal_delay_list_from_target and steal_delay_list_from_fallthrough
2905 with an rtx_sequence *.
2906 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
2907 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
2908 Strengthen local "delay_list" from rtx to rtx_insn_list *.
2909 (relax_delay_slots): Strengthen param "first" and locals "insn",
2910 "next", "trial", "delay_insn", "target_label" from rtx to
2911 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
2912 Introduce a local "trial_seq" for PATTERN (trial) of type
2913 rtx_sequence *, in both cases using methods of rtx_sequence.
2914 (dbr_schedule): Strengthen param "first" and locals "insn",
2915 "next", "epilogue_insn" from rtx to rtx_insn *.
2916
2917 2014-08-28 Richard Biener <rguenther@suse.de>
2918
2919 PR tree-optimization/62283
2920 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2921 Do not peel loops for alignment where the vector loop likely
2922 doesn't run at least VF times.
2923
2924 2014-08-28 Bin Cheng <bin.cheng@arm.com>
2925
2926 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
2927 important_candidates. Consider all important candidates if
2928 IVS doesn't give any result. Remove check on ivs->upto.
2929 (try_add_cand_for): Call iv_ca_add_use only once.
2930
2931 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2932 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2933 Anna Tikhonova <anna.tikhonova@intel.com>
2934 Ilya Tocar <ilya.tocar@intel.com>
2935 Andrey Turetskiy <andrey.turetskiy@intel.com>
2936 Ilya Verbin <ilya.verbin@intel.com>
2937 Kirill Yukhin <kirill.yukhin@intel.com>
2938 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2939
2940 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
2941 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
2942 masking.
2943 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
2944 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2945 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2946 (define_insn "*mul<mode>3"): Add EVEX version.
2947
2948 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2950 Anna Tikhonova <anna.tikhonova@intel.com>
2951 Ilya Tocar <ilya.tocar@intel.com>
2952 Andrey Turetskiy <andrey.turetskiy@intel.com>
2953 Ilya Verbin <ilya.verbin@intel.com>
2954 Kirill Yukhin <kirill.yukhin@intel.com>
2955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2956
2957 * config/i386/sse.md
2958 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
2959 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
2960 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
2961 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
2962 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
2963 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
2964 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
2965 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
2966 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
2967 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
2968 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
2969 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
2970 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
2971 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
2972 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
2973 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
2974
2975 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2976 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2977 Anna Tikhonova <anna.tikhonova@intel.com>
2978 Ilya Tocar <ilya.tocar@intel.com>
2979 Andrey Turetskiy <andrey.turetskiy@intel.com>
2980 Ilya Verbin <ilya.verbin@intel.com>
2981 Kirill Yukhin <kirill.yukhin@intel.com>
2982 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2983
2984 * config/i386/sse.md
2985 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
2986 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
2987 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
2988
2989 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2990 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2991 Anna Tikhonova <anna.tikhonova@intel.com>
2992 Ilya Tocar <ilya.tocar@intel.com>
2993 Andrey Turetskiy <andrey.turetskiy@intel.com>
2994 Ilya Verbin <ilya.verbin@intel.com>
2995 Kirill Yukhin <kirill.yukhin@intel.com>
2996 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2997
2998 * config/i386/sse.md
2999 (define_mode_iterator VI128_256): New.
3000 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3001
3002 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3003 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3004 Anna Tikhonova <anna.tikhonova@intel.com>
3005 Ilya Tocar <ilya.tocar@intel.com>
3006 Andrey Turetskiy <andrey.turetskiy@intel.com>
3007 Ilya Verbin <ilya.verbin@intel.com>
3008 Kirill Yukhin <kirill.yukhin@intel.com>
3009 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3010
3011 * config/i386/sse.md
3012 (define_mode_iterator VI8_256_512): New.
3013 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3014 Ditto.
3015 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3016 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3017 Ditto.
3018 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3019
3020 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3021
3022 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3023 pointer to the cumulative reloc value and return the value for
3024 this reloc instead.
3025 (compute_reloc_for_rtx): Take a const_rtx. Call
3026 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3027 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3028 for_each_rtx for the CONST case.
3029
3030 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3031
3032 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3033 (mark_constants_in_pattern): ...this new function to iterate over
3034 all the subrtxes.
3035 (mark_constants): Update accordingly.
3036
3037 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3038
3039 * varasm.c: Include rtl-iter.h.
3040 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3041 Remove the pointer to the cumulative hashval_t and just return
3042 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3043 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3044 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3045
3046 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3047
3048 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3049 Give real type of data parameter. Remove return value.
3050 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3051 to iterate over subrtxes.
3052
3053 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3054
3055 * var-tracking.c (use_narrower_mode_test): Turn from being a
3056 for_each_rtx callback to being a function that examines each
3057 subrtx itself.
3058 (adjust_mems): Update accordingly.
3059
3060 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3061
3062 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3063 callback to being a function that examines each subrtx itself.
3064 Remove handling of null rtxes.
3065 (add_uses): Update accordingly.
3066
3067 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3068
3069 * var-tracking.c: Include rtl-iter.h.
3070 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3071 to being a function that examines each subrtx itself.
3072 (use_type): Update accordingly.
3073
3074 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3075
3076 * store-motion.c: Include rtl-iter.h.
3077 (extract_mentioned_regs_1): Delete.
3078 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3079 for_each_rtx to iterate over subrtxes.
3080
3081 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3082
3083 * sel-sched.c: Include rtl-iter.h
3084 (count_occurrences_1): Delete.
3085 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3086 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3087
3088 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3089
3090 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3091 * rtlanal.c (tls_referenced_p_1): Delete.
3092 (tls_referenced_p): Take a const_rtx rather than an rtx.
3093 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3094
3095 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3096
3097 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3098 (for_each_inc_dec): Take an rtx rather than an rtx *.
3099 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3100 (cselib_record_sets): Likewise.
3101 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3102 (check_for_inc_dec): Likewise.
3103 * rtlanal.c (for_each_inc_dec_ops): Delete.
3104 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3105 rather than a pointer to the memory address. Replace
3106 for_each_inc_dec_ops argument with separate function and data
3107 arguments. Abort on non-autoinc addresses.
3108 (for_each_inc_dec_find_mem): Delete.
3109 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3110 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3111
3112 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3113
3114 * rtl.h (find_all_hard_regs): Declare.
3115 * rtlanal.c (find_all_hard_regs): New function.
3116 (record_hard_reg_uses_1): Delete.
3117 (record_hard_reg_uses): Use find_all_hard_regs.
3118
3119 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3120
3121 * rtl.h (replace_label_data): Delete.
3122 (replace_label): Take the old label, new label and update-nuses flag
3123 as direct arguments. Return void.
3124 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3125 * rtlanal.c (replace_label): Update interface as above. Handle
3126 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3127 iterator. Use FOR_EACH_SUBRTX_PTR.
3128
3129 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3130
3131 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3132 with const_rtx parameters.
3133 * varasm.c (get_pool_constant): Likewise.
3134 * rtlanal.c (rtx_referenced_p_1): Delete.
3135 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3136 Assert that the rtx we're looking for is nonnull. Allow searches
3137 for constant pool SYMBOL_REFs.
3138
3139 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3140
3141 * reload1.c: Include rtl-iter.h.
3142 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3143 to being a function that examines each subrtx itself.
3144 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3145
3146 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3147
3148 * regcprop.c (cprop_find_used_regs_1): Delete.
3149 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3150
3151 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3152
3153 * regcprop.c: Include rtl-iter.h.
3154 (kill_value): Take a const_rtx.
3155 (kill_autoinc_value): Turn from being a for_each_rtx callback
3156 to being a function that examines each subrtx itself.
3157 (copyprop_hardreg_forward_1): Update accordingly.
3158
3159 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3160
3161 * reg-stack.c: Include rtl-iter.h.
3162 (subst_stack_regs_in_debug_insn): Delete.
3163 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3164 instead of for_each_rtx.
3165
3166 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3167
3168 * lower-subreg.c (find_decomposable_subregs): Turn from being
3169 a for_each_rtx callback to being a function that examines each
3170 subrtx itself. Remove handling of null rtxes.
3171 (decompose_multiword_subregs): Update accordingly.
3172
3173 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3174
3175 * lower-subreg.c (adjust_decomposed_uses): Delete.
3176 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3177 Remove handling of null rtxes.
3178
3179 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3180
3181 * lower-subreg.c: Include rtl-iter.h.
3182 (resolve_subreg_use): Turn from being a for_each_rtx callback
3183 to being a function that examines each subrtx itself. Remove
3184 handling of null rtxes.
3185 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3186 (decompose_multiword_subregs): Likewise.
3187
3188 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3189
3190 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3191 to being a function that examines each subrtx itself.
3192 (simplify_using_condition, simplify_using_initial_values): Update
3193 accordingly.
3194
3195 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3196
3197 * loop-iv.c: Include rtl-iter.h.
3198 (find_single_def_src): New function.
3199 (replace_single_def_regs): Turn from being a for_each_rtx callback
3200 to being a function that examines each subrtx itself.
3201 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3202
3203 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3204
3205 * jump.c (eh_returnjump_p_1): Delete.
3206 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3207 Remove handling of null rtxes.
3208
3209 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3210
3211 * jump.c: Include rtl-iter.h.
3212 (returnjump_p_1): Delete.
3213 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3214 Remove handling of null rtxes.
3215
3216 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3217
3218 * ira.c: Include rtl-iter.h.
3219 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3220 to being a function that examines each subrtx itself. Remove
3221 handling of null rtxes.
3222 (update_equiv_regs): Update call accordingly.
3223
3224 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3225
3226 * fwprop.c: Include rtl-iter.h.
3227 (varying_mem_p): Turn from being a for_each_rtx callback to being
3228 a function that examines each subrtx itself.
3229 (propagate_rtx): Update accordingly.
3230
3231 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3232
3233 * function.c: Include rtl-iter.h
3234 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3235 callback to being a function that examines each subrtx itself.
3236 Return the changed flag.
3237 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3238 (instantiate_virtual_regs): Update calls accordingly.
3239
3240 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3241
3242 * final.c: Include rtl-iter.h.
3243 (mark_symbol_ref_as_used): Delete.
3244 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3245 for_each_rtx.
3246
3247 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3248
3249 * emit-rtl.c: Include rtl-iter.h.
3250 (find_auto_inc): Turn from being a for_each_rtx callback to being
3251 a function that examines each subrtx itself. Assume the first operand
3252 to an RTX_AUTOINC is the automodified register.
3253 (try_split): Update call accordingly.
3254
3255 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3256
3257 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3258 Return a bool, inverting the result so that 0/false means "not ok".
3259 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3260 subrtxes of a CONST.
3261 (mem_loc_descriptor, add_const_value_attribute)
3262 (resolve_addr_in_expr): Update calls accordingly.
3263
3264 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3265
3266 * dwarf2out.c: Include rtl-iter.h.
3267 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3268 Remove unused data parameter. Return a bool, inverting the result
3269 so that 0/false means "not ok".
3270 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3271 instead of for_each_rtx.
3272
3273 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3274
3275 * dse.c: Include rtl-iter.h.
3276 (check_mem_read_rtx): Change void * parameter to real type.
3277 Remove return value.
3278 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3279 for_each_rtx. Don't handle null rtxes.
3280
3281 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3282
3283 * df-problems.c: Include rtl-iter.h.
3284 (find_memory): Turn from being a for_each_rtx callback to being
3285 a function that examines each subrtx itself. Continue to look for
3286 volatile references even after a nonvolatile one has been found.
3287 (can_move_insns_across): Update calls accordingly.
3288
3289 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3290
3291 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3292 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3293 to iterate over subrtxes. Return a bool rather than an int.
3294
3295 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3296
3297 * ddg.c: Include rtl-iter.h.
3298 (mark_mem_use_1): Rename to...
3299 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3300 instead of for_each_rtx.
3301 (mem_read_insn_p): Update accordingly.
3302
3303 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3304
3305 * cse.c (change_cc_mode_args): Delete.
3306 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3307 a function that examines each subrtx itself. Take the fields of
3308 change_cc_mode_args as argument and return void.
3309 (cse_change_cc_mode_insn): Update calls accordingly.
3310
3311 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3312
3313 * cse.c (is_dead_reg): Change argument to const_rtx.
3314 (dead_debug_insn_data): Delete.
3315 (is_dead_debug_insn): Expand commentary. Turn from being a
3316 for_each_rtx callback to being a function that examines
3317 each subrtx itself. Take the fields of dead_debug_insn_data
3318 as argument.
3319 (delete_trivially_dead_insns): Update call accordingly.
3320
3321 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3322
3323 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3324 being a for_each_rtx callback to being a function that examines
3325 each subrtx itself.
3326 (cse_extended_basic_block): Update call accordingly.
3327
3328 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3329
3330 * cse.c (check_dependence_data): Delete.
3331 (check_dependence): Change from being a for_each_rtx callback to being
3332 a function that examines all subrtxes itself. Don't handle null rtxes.
3333 (invalidate): Update call accordingly.
3334
3335 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3336
3337 * cse.c: Include rtl-iter.h.
3338 (approx_reg_cost_1): Delete.
3339 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3340 Don't handle null rtxes.
3341
3342 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3343
3344 * cfgcleanup.c: Include rtl-iter.h.
3345 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3346 to being a function that examines each subrtx itself.
3347 (thread_jump): Update accordingly.
3348
3349 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3350
3351 * combine-stack-adj.c: Include rtl-iter.h.
3352 (record_stack_refs_data): Delete.
3353 (record_stack_refs): Turn from being a for_each_rtx callback
3354 to being a function that examines each subrtx itself.
3355 Take a pointer to the reflist. Invert sense of return value
3356 so that true means success and false means failure. Don't
3357 handle null rtxes.
3358 (combine_stack_adjustments_for_block): Update accordingly.
3359
3360 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3361
3362 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3363 callback to a function that takes an rtx and returns a bool
3364 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3365 for_each_rtx.
3366
3367 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3368
3369 * combine.c: Include rtl-iter.h.
3370 (unmentioned_reg_p_1): Delete.
3371 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3372 Don't handle null rtxes.
3373
3374 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3375
3376 * calls.c: Include rtl-iter.h.
3377 (internal_arg_pointer_based_exp_1): Delete.
3378 (internal_arg_pointer_based_exp): Take a const_rtx.
3379 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3380
3381 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3382
3383 * caller-save.c: Include rtl-iter.h.
3384 (add_used_regs_1): Delete.
3385 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3386 to iterate over subrtxes. Assert that any remaining pseudos
3387 have been spilled.
3388
3389 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3390
3391 * bt-load.c: Include rtl-iter.h.
3392 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3393 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3394 to iterate over subrtxes.
3395 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3396 find_btr_use rather than btr_referenced_p.
3397
3398 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3399
3400 * alias.c: Include rtl-iter.h.
3401 (refs_newer_value_cb): Delete.
3402 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3403
3404 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3405
3406 * rtl-iter.h: New file.
3407 * rtlanal.c: Include it.
3408 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3409 (generic_subrtx_iterator <T>::add_single_to_queue)
3410 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3411 (generic_subrtx_iterator <T>::free_array): New functions.
3412 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3413 (generic_subrtx_iterator <const_rtx_accessor>)
3414 (generic_subrtx_iterator <rtx_var_accessor>
3415 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3416 (setup_reg_subrtx_bounds): New function.
3417 (init_rtlanal): Call it.
3418
3419 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3420
3421 PR target/62261
3422 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3423 TARGET_SHMEDIA.
3424 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3425
3426 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3427
3428 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3429
3430 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3431
3432 * rtl.h (JUMP_LABEL_AS_INSN): New.
3433
3434 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3435
3436 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3437 rtx_expr_list **.
3438 (alloc_EXPR_LIST): Strengthen return type from rtx to
3439 rtx_expr_list *.
3440 (remove_free_EXPR_LIST_node): Likewise for param.
3441 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3442 from rtx to rtx_expr_list *.
3443 * sched-int.h (struct deps_desc): Strengthen fields
3444 "pending_read_mems" and "pending_write_mems" from rtx to
3445 rtx_expr_list *.
3446
3447 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3448 rtx to rtx_expr_list *.
3449 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3450 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3451 rtx_expr_list **.
3452 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
3453 from rtx to rtx_expr_list *.
3454 * loop-iv.c (simplify_using_initial_values): Strengthen local
3455 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3456 "pnote_next" from rtx * to rtx_expr_list **.
3457 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
3458 param "exprp" from rtx * to rtx_expr_list **.
3459 (add_insn_mem_dependence): Strengthen local "mem_list" from
3460 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
3461 to rtx_expr_list *.
3462 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3463 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
3464 param "old_mems_p" from rtx * to rtx_expr_list **.
3465 * var-tracking.c (struct adjust_mem_data): Strengthen field
3466 "side_effects" from rtx to rtx_expr_list *.
3467 (adjust_insn): Replace NULL_RTX with NULL when assigning to
3468 rtx_expr_list *.
3469 (prepare_call_arguments): Likewise.
3470
3471 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3472
3473 * function.h (struct rtl_data): Strengthen field
3474 "x_stack_slot_list" from rtx to rtx_expr_list *.
3475
3476 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3477 when assigning to stack_slot_list.
3478
3479 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3480
3481 * function.h (struct rtl_data): Strengthen field
3482 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3483 * rtl.h (remove_node_from_expr_list): Strengthen second param from
3484 rtx * to rtx_expr_list **.
3485
3486 * cfgbuild.c (make_edges): In loop over
3487 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3488 rtx_expr_list *, and use methods of the latter class to clarify
3489 the code.
3490 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3491 rtx_expr_list *, and use methods of the latter class to clarify
3492 the code.
3493 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3494 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3495 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3496 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
3497 to rtx_expr_list *. Use methods of the latter class to clarify
3498 the code.
3499
3500 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3501
3502 * function.h (struct expr_status): Strengthen field
3503 "x_forced_labels" from rtx to rtx_expr_list *.
3504
3505 * cfgbuild.c (make_edges): Split local "x" into two locals,
3506 strengthening one from rtx to rtx_expr_list *, and using methods
3507 of said class.
3508 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3509 loop over forced_labels, introduce strengthen it from rtx to
3510 rtx_expr_list *, using methods to clarify the code.
3511 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3512 to rtx_expr_list *, using methods of said class to clarify the
3513 code.
3514 * reload1.c (set_initial_label_offsets): Split local "x" into two
3515 per-loop variables, strengthening the first from rtx to
3516 rtx_expr_list * and using methods.
3517
3518 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3519
3520 * coretypes.h (class rtx_expr_list): Add forward declaration.
3521 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3522 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3523 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3524 invariant: GET_CODE (X) == EXPR_LIST.
3525 (is_a_helper <rtx_expr_list *>::test): New.
3526 (rtx_expr_list::next): New.
3527 (rtx_expr_list::element): New.
3528 (gen_rtx_EXPR_LIST): New.
3529
3530 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3531
3532 * varasm.c (mark_constants): Convert a GET_CODE check into a
3533 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3534 Use methods of rtx_sequence to clarify the code.
3535
3536 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3537
3538 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3539 local "seq" via a checked cast, and use methods of rtx_sequence
3540 to simplify the code.
3541
3542 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3543
3544 * resource.c (mark_referenced_resources): Strengthen local
3545 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3546 using methods of rtx_sequence to clarify the code.
3547 (find_dead_or_set_registers): Within the switch statement, convert
3548 a GET_CODE check to a dyn_cast, introducing local "seq". Within
3549 the JUMP_P handling, introduce another local "seq", adding a
3550 checked cast to rtx_sequence *. In both cases, use methods of
3551 rtx_sequence to clarify the code.
3552 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3553 via a checked cast, and use methods of rtx_sequence to simplify
3554 the code.
3555
3556 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3557
3558 * reorg.c (redundant_insn): In two places in the function, replace
3559 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3560 usings methods of rtx_sequence to clarify the code.
3561
3562 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3563
3564 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3565 local "seq" with a checked cast, and use methods of rtx_sequence
3566 to clarify the code.
3567
3568 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3569
3570 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3571 with a checked cast, in the region for where we know it's a
3572 SEQUENCE. Use methods of rtx_sequence.
3573
3574 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3575
3576 * final.c (get_attr_length_1): Replace GET_CODE check with a
3577 dyn_cast, introducing local "seq" and the use of methods of
3578 rtx_sequence.
3579 (shorten_branches): Likewise, introducing local "body_seq".
3580 Strengthen local "inner_insn" from rtx to rtx_insn *.
3581 (reemit_insn_block_notes): Replace GET_CODE check with a
3582 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3583 Use methods of rtx_sequence.
3584 (final_scan_insn): Likewise, introducing local "seq" for when
3585 "body" is known to be a SEQUENCE, using its methods.
3586
3587 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3588
3589 * except.c (can_throw_external): Strengthen local "seq" from rtx
3590 to rtx_sequence *. Use methods of rtx_sequence.
3591 (insn_nothrow_p): Likewise.
3592
3593 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3594
3595 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3596 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3597 Use methods of rtx_sequence.
3598 (scan_trace): Likewise for local "pat".
3599
3600 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3601
3602 * coretypes.h (class rtx_sequence): Add forward declaration.
3603 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3604 invariant: GET_CODE (X) == SEQUENCE.
3605 (is_a_helper <rtx_sequence *>::test): New.
3606 (is_a_helper <const rtx_sequence *>::test): New.
3607 (rtx_sequence::len): New.
3608 (rtx_sequence::element): New.
3609 (rtx_sequence::insn): New.
3610
3611 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3612
3613 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3614 rtx_insn_list **.
3615 (alloc_INSN_LIST): Strengthen return type from rtx to
3616 rtx_insn_list *.
3617 (copy_INSN_LIST): Likewise for return type and param.
3618 (concat_INSN_LIST): Likewise for both params and return type.
3619 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3620 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3621 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3622 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3623
3624 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3625 "implicit_sets", "control_uses", "clobbers" from rtx to
3626 rtx_insn_list *.
3627 (struct deps_desc): Likewise for fields "pending_read_insns",
3628 "pending_write_insns", "pending_jump_insns",
3629 "last_pending_memory_flush", "last_function_call",
3630 "last_function_call_may_noreturn", "sched_before_next_call",
3631 "sched_before_next_jump".
3632 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3633 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3634
3635 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3636 from rtx to rtx_insn_list *.
3637 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3638 rtx_insn_list *.
3639
3640 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3641 to rtx_insn_list **.
3642 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3643 rtx_insn_list *.
3644 (queue_insn): Likewise for local "link".
3645 (struct haifa_saved_data): Strengthen field "insn_queue" from
3646 rtx * to rtx_insn_list **.
3647 (save_backtrack_point): Update allocation of save->insn_queue to
3648 reflect the strengthening of elements from rtx to rtx_insn_list *.
3649 (queue_to_ready): Strengthen local "link" from rtx to
3650 rtx_insn_list *; use methods "next" and "insn" when traversing the
3651 list.
3652 (early_queue_to_ready): Likewise for locals "link", "next_link",
3653 "prev_link".
3654 (schedule_block): Update allocation of insn_queue to reflect the
3655 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3656 local "link" from rtx to rtx_insn_list *, and use methods when
3657 working it.
3658 (add_to_speculative_block): Strengthen locals "twins" and
3659 "next_node" from rtx to rtx_insn_list *, and use methods when
3660 working with them. Strengthen local "twin" from rtx to
3661 rtx_insn *, eliminating a checked cast.
3662 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3663 from rtx to rtx_insn_list *, and use methods when working with
3664 them.
3665
3666 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3667 from rtx to rtx_insn_list *, adding a checked cast.
3668 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3669 rtx_insn_list **.
3670 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3671 "newlink" from rtx to rtx_insn_list *. Strengthen local
3672 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3673 from rtx to rtx_insn *.
3674 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3675 from rtx to rtx_insn_list *. Use methods of the latter class.
3676 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3677 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3678 (remove_free_INSN_LIST_node): Strengthen return type and local
3679 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3680 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3681 rtx_insn_list *, using "insn" method.
3682
3683 * sched-deps.c (add_dependence_list): Strengthen param "list"
3684 from rtx to rtx_insn_list *, and use methods when working with it.
3685 (add_dependence_list_and_free): Strengthen param "listp" from
3686 rtx * to rtx_insn_list **.
3687 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3688 to rtx_insn_list **, and use methods when working with *listp.
3689 (remove_from_both_dependence_lists): Strengthen param "listp" from
3690 rtx * to rtx_insn_list **
3691 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3692 to rtx_insn_list **. Eliminate local "link", in favor of two new
3693 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3694 respectively.
3695 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3696 by introducing local "cond_deps".
3697 (remove_from_deps): Strengthen param "insn" from rtx to
3698 rtx_insn *.
3699
3700 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3701 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3702 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3703 Use methods of rtx_insn_list.
3704
3705 * store-motion.c (struct st_expr): Strengthen fields
3706 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3707 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3708 rtx_insn_list *.
3709 (find_moveable_store): Split out "tmp" into multiple more-tightly
3710 scoped locals. Use methods of rtx_insn_list *.
3711 (compute_store_table): Strengthen local "tmp" from rtx to
3712 rtx_insn *. Use methods of rtx_insn_list *.
3713
3714 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3715
3716 * coretypes.h (class rtx_insn_list): Add forward declaration.
3717 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3718 (is_a_helper <rtx_insn_list *>::test): New.
3719 (rtx_insn_list::next): New.
3720 (rtx_insn_list::insn): New.
3721 (gen_rtx_INSN_LIST): Add prototype.
3722 * emit-rtl.c (gen_rtx_INSN_LIST): New.
3723 * gengenrtl.c (special_rtx): Add INSN_LIST.
3724
3725 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3726
3727 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
3728 "prev" from rtx to rtx_insn *.
3729
3730 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3731
3732 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
3733 functions. Require merely an rtx for now, not an rtx_insn *.
3734 (BLOCK_FOR_INSN): Likewise.
3735 (INSN_LOCATION): Likewise.
3736 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
3737
3738 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3739
3740 * rtl.h (PATTERN): Convert this macro into a pair of inline
3741 functions, for now, requiring const_rtx and rtx.
3742
3743 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3744
3745 * target.def (unwind_emit): Strengthen param "insn" from rtx to
3746 rtx_insn *.
3747 (final_postscan_insn): Likewise.
3748 (adjust_cost): Likewise.
3749 (adjust_priority): Likewise.
3750 (variable_issue): Likewise.
3751 (macro_fusion_pair_p): Likewise.
3752 (dfa_post_cycle_insn): Likewise.
3753 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
3754 (first_cycle_multipass_issue): Likewise.
3755 (dfa_new_cycle): Likewise.
3756 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
3757 (speculate_insn): Likewise for param "insn".
3758 (gen_spec_check): Likewise for params "insn" and "label".
3759 (get_insn_spec_ds): Likewise for param "insn".
3760 (get_insn_checked_ds): Likewise.
3761 (dispatch_do): Likewise.
3762 (dispatch): Likewise.
3763 (cannot_copy_insn_p): Likewise.
3764 (invalid_within_doloop): Likewise.
3765 (legitimate_combined_insn): Likewise.
3766 (needed): Likewise.
3767 (after): Likewise.
3768
3769 * doc/tm.texi: Automatically updated to reflect changes to
3770 target.def.
3771
3772 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
3773 working with insn.
3774 (schedule_block): Likewise.
3775 (sched_init): Likewise.
3776 (sched_speculate_insn): Strengthen param "insn" from rtx to
3777 rtx_insn *.
3778 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
3779 working with insn.
3780 * hooks.c (hook_bool_rtx_true): Rename to...
3781 hook_bool_rtx_insn_true): ...this, and strengthen first param from
3782 rtx to rtx_insn *.
3783 (hook_constcharptr_const_rtx_null): Rename to...
3784 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3785 first param from const_rtx to const rtx_insn *.
3786 (hook_bool_rtx_int_false): Rename to...
3787 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3788 param from rtx to rtx_insn *.
3789 (hook_void_rtx_int): Rename to...
3790 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3791 rtx to rtx_insn *.
3792
3793 * hooks.h (hook_bool_rtx_true): Rename to...
3794 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
3795 rtx to rtx_insn *.
3796 (hook_bool_rtx_int_false): Rename to...
3797 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3798 param from rtx to rtx_insn *.
3799 (hook_void_rtx_int): Rename to...
3800 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3801 rtx to rtx_insn *.
3802 (hook_constcharptr_const_rtx_null): Rename to...
3803 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3804 first param from const_rtx to const rtx_insn *.
3805
3806 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
3807 and local "prev" from rtx to rtx_insn *.
3808
3809 * sched-int.h (sched_speculate_insn): Strengthen first param from
3810 rtx to rtx_insn *.
3811
3812 * sel-sched.c (create_speculation_check): Likewise for local "label".
3813 * targhooks.c (default_invalid_within_doloop): Strengthen param
3814 "insn" from const_rtx to const rtx_insn *.
3815 * targhooks.h (default_invalid_within_doloop): Strengthen param
3816 from const_rtx to const rtx_insn *.
3817
3818 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
3819 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
3820
3821 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
3822 "insn".
3823 (arc_invalid_within_doloop): Likewise, with const.
3824
3825 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
3826 (arm_cannot_copy_insn_p): Likewise for param "insn".
3827 (arm_unwind_emit): Likewise.
3828
3829 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
3830 "dep_insn".
3831
3832 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
3833 (c6x_variable_issue): Likewise. Removed now-redundant checked
3834 cast.
3835 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
3836
3837 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
3838 Likewise for param "insn".
3839 (epiphany_mode_after): Likewise.
3840 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
3841 params "insn", "dep_insn".
3842 (epiphany_mode_needed): Likewise for param "insn".
3843 (epiphany_mode_after): Likewise.
3844
3845 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
3846 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3847 (ix86_avx_u128_mode_needed): Likewise.
3848 (ix86_i387_mode_needed): Likewise.
3849 (ix86_mode_needed): Likewise.
3850 (ix86_avx_u128_mode_after): Likewise.
3851 (ix86_mode_after): Likewise.
3852 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
3853 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
3854 (ix86_adjust_priority): Likewise for param "insn".
3855 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
3856 (do_dispatch): Likewise.
3857 (has_dispatch): Likewise.
3858 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
3859
3860 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
3861 reflect renaming of default hook implementation from
3862 hook_constcharptr_const_rtx_null to
3863 hook_constcharptr_const_rtx_insn_null.
3864 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
3865 rtx to rtx_insn *.
3866 (ia64_variable_issue): Likewise for param "insn".
3867 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
3868 (ia64_dfa_new_cycle): Likewise.
3869 (ia64_get_insn_spec_ds): Likewise.
3870 (ia64_get_insn_checked_ds): Likewise.
3871 (ia64_speculate_insn): Likewise.
3872 (ia64_gen_spec_check): Likewise for params "insn", "label".
3873 (ia64_asm_unwind_emit): Likewise for param "insn".
3874
3875 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
3876
3877 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
3878 "insn", "def_insn".
3879 (m68k_sched_variable_issue): Likewise for param "insn".
3880
3881 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
3882 "def_insn".
3883
3884 * config/microblaze/microblaze.c (microblaze_adjust_cost):
3885 Likewise for params "insn", "dep".
3886
3887 * config/mips/mips.c (mips_adjust_cost): Likewise.
3888 (mips_variable_issue): Likewise for param "insn".
3889 (mips_final_postscan_insn): Likewise.
3890
3891 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
3892 for params "insn", "dep".
3893
3894 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
3895 "dep_insn".
3896 (pa_adjust_priority): Likewise for param "insn".
3897
3898 * config/picochip/picochip.c (picochip_sched_adjust_cost):
3899 Likewise for params "insn", "dep_insn".
3900
3901 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
3902 param "insn".
3903 (rs6000_variable_issue): Likewise.
3904 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
3905 (rs6000_debug_adjust_cost): Likewise.
3906 (rs6000_adjust_priority): Likewise for param "insn".
3907 (rs6000_use_sched_lookahead_guard): Likewise.
3908 (get_next_active_insn): Likewise for return type and both params.
3909 (redefine_groups): Likewise for params "prev_head_insn", "tail"
3910 and locals "insn", "next_insn".
3911 (pad_groups): Likewise.
3912
3913 * config/s390/s390.c (s390_adjust_priority): Likewise for param
3914 "insn".
3915 (s390_cannot_copy_insn_p): Likewise.
3916 (s390_sched_variable_issue): Likewise for third param, eliminating
3917 checked cast.
3918 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
3919 default hook implementation from hook_constcharptr_const_rtx_null
3920 to hook_constcharptr_const_rtx_insn_null.
3921
3922 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
3923 from rtx to rtx_insn *.
3924 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
3925 (sh_variable_issue): Likewise for param "insn".
3926 (sh_dfa_new_cycle): Likewise.
3927 (sh_mode_needed): Likewise.
3928 (sh_mode_after): Likewise.
3929
3930 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
3931 params "insn", "dep_insn".
3932 (hypersparc_adjust_cost): Likewise.
3933 (sparc_adjust_cost): Likewise.
3934
3935 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
3936 param, eliminated checked cast.
3937 (spu_sched_adjust_cost): Likewise for first and third params.
3938
3939 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
3940 params "insn" and "dep_insn" from rtx to rtx_insn *.
3941
3942 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
3943
3944 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3945
3946 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
3947 (set_is_load_p): ...this, updating to work on a SET pattern rather
3948 than an insn.
3949 (is_store_insn): Rename to...
3950 (set_is_store_p): ...this, updating to work on a SET pattern
3951 rather than an insn.
3952 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
3953 top of function to where it is needed. Rewrite the bogus
3954 condition that checks for "insn" and "dep" being PARALLEL to
3955 instead use single_set, introducing locals "insn_set" and
3956 "dep_set". Given that we only ever returned "cost" for a non-pair
3957 of SETs, bail out early if we don't have a pair of SET.
3958 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
3959 use the new locals "insn_set" and "dep_set", and update calls to
3960 is_load_insn and is_store_insn to be calls to set_is_load_p and
3961 set_is_store_p.
3962
3963 2014-08-27 Guozhi Wei <carrot@google.com>
3964
3965 PR target/62262
3966 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
3967 amount before using it.
3968
3969 2014-08-27 Richard Biener <rguenther@suse.de>
3970
3971 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
3972 get_maxval_strlen inside a more useful API.
3973 (gimple_fold_builtin_with_strlen): Remove and fold into ...
3974 (gimple_fold_builtin): ... caller.
3975 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
3976 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
3977 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
3978 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
3979 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
3980 gimple_fold_builtin_sprintf): Adjust to compute maxval
3981 themselves.
3982
3983 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
3984
3985 PR other/62248
3986 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
3987
3988 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3989 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3990 Anna Tikhonova <anna.tikhonova@intel.com>
3991 Ilya Tocar <ilya.tocar@intel.com>
3992 Andrey Turetskiy <andrey.turetskiy@intel.com>
3993 Ilya Verbin <ilya.verbin@intel.com>
3994 Kirill Yukhin <kirill.yukhin@intel.com>
3995 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3996
3997 * config/i386/sse.md
3998 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
3999 Use `concat_tg_mode' attribute to determine asm register size.
4000
4001 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4002 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4003 Anna Tikhonova <anna.tikhonova@intel.com>
4004 Ilya Tocar <ilya.tocar@intel.com>
4005 Andrey Turetskiy <andrey.turetskiy@intel.com>
4006 Ilya Verbin <ilya.verbin@intel.com>
4007 Kirill Yukhin <kirill.yukhin@intel.com>
4008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4009
4010 * config/i386/sse.md
4011 (define_mode_iterator VI48_AVX512VL): New.
4012 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4013 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4014 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4015 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4016 with VI1): Change mode iterator.
4017 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4018 with VI_ULOADSTORE_BW_AVX512VL): New.
4019 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4020 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4021 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4022 with VI1): Change mode iterator.
4023 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4024 with VI_ULOADSTORE_BW_AVX512VL): New.
4025 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4026 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4027 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4028 with VI1): Change mode iterator.
4029 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4030 with VI_ULOADSTORE_BW_AVX512VL): New.
4031 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4032 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4033 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4034 (define_insn "<avx512>_storedqu<mode>_mask" with
4035 VI48_AVX512VL): New.
4036 (define_insn "<avx512>_storedqu<mode>_mask" with
4037 VI12_AVX512VL): Ditto.
4038
4039 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4041 Anna Tikhonova <anna.tikhonova@intel.com>
4042 Ilya Tocar <ilya.tocar@intel.com>
4043 Andrey Turetskiy <andrey.turetskiy@intel.com>
4044 Ilya Verbin <ilya.verbin@intel.com>
4045 Kirill Yukhin <kirill.yukhin@intel.com>
4046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4047
4048 * config/i386/sse.md
4049 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4050 (define_mode_iterator VI48_AVX512BW): New.
4051 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4052 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4053 with VI48_AVX2_48_AVX512F): New.
4054 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4055 with VI2_AVX512VL): Ditto.
4056
4057 2014-08-27 Richard Biener <rguenther@suse.de>
4058
4059 PR middle-end/62239
4060 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4061 (fold_builtin_3): Do not fold strcat_chk here.
4062 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4063 from builtins.c.
4064 (gimple_fold_builtin): Fold strcat_chk here.
4065
4066 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4067
4068 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4069 * dwarf2out.c (dwarf2out_decl): Make static.
4070
4071 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4072
4073 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4074
4075 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4076
4077 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4078 from rtx to rtx_insn *.
4079 (cselib_lookup_from_insn): Likewise for final param.
4080 (cselib_subst_to_values_from_insn): Likewise.
4081 (cselib_add_permanent_equiv): Likewise.
4082
4083 * cselib.c (cselib_current_insn): Likewise for this variable.
4084 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4085 (cselib_lookup_from_insn): Likewise.
4086 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4087 "save_cselib_current_insn".
4088 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4089
4090 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4091 from rtx to rtx_insn *.
4092
4093 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4094
4095 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4096 rtx_insn *.
4097
4098 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4099
4100 * df.h (df_dump_insn_problem_function): Strengthen first param of
4101 this callback from const_rtx to const rtx_insn *.
4102 (struct df_insn_info): Strengthen field "insn" from rtx to
4103 rtx_insn *.
4104 (DF_REF_INSN): Eliminate this function, reinstating the older
4105 macro definition.
4106 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4107 (df_reg_defined): Likewise.
4108 (df_find_use): Likewise.
4109 (df_reg_used): Likewise.
4110 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4111 const rtx_insn *.
4112 (df_dump_insn_bottom): Likewise.
4113 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4114 (df_insn_debug_regno): Likewise.
4115 (debug_df_insn): Likewise.
4116 (df_rd_simulate_one_insn): Likewise for param 2.
4117 (df_word_lr_simulate_defs): Likewise for param 1.
4118 (df_word_lr_simulate_uses): Likewise.
4119 (df_md_simulate_one_insn): Likewise for param 2.
4120 (df_simulate_find_noclobber_defs): Likewise for param 1.
4121 (df_simulate_find_defs): Likewise.
4122 (df_simulate_defs): Likewise.
4123 (df_simulate_uses): Likewise.
4124 (df_simulate_one_insn_backwards): Likewise for param 2.
4125 (df_simulate_one_insn_forwards): Likewise.
4126 (df_uses_create): Likewise for param 2.
4127 (df_insn_create_insn_record): Likewise for param 1.
4128 (df_insn_delete): Likewise.
4129 (df_insn_rescan): Likewise.
4130 (df_insn_rescan_debug_internal): Likewise.
4131 (df_insn_change_bb): Likewise.
4132 (df_notes_rescan): Likewise.
4133 * rtl.h (remove_death): Likewise for param 2.
4134 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4135 const rtx_insn *.
4136 * sched-int.h (reemit_notes): Strengthen param from rtx to
4137 rtx_insn *.
4138 * valtrack.h (propagate_for_debug): Likewise for param 1.
4139
4140 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4141 local "tmp_rtx" from const_rtx to const rtx_insn *.
4142 * combine.c (remove_death): Strengthen param "insn" from rtx to
4143 rtx_insn *.
4144 (move_deaths): Likewise for local "where_dead".
4145 * cse.c (delete_trivially_dead_insns): Introduce local
4146 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4147 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4148 rtx_insn *.
4149 (df_reg_defined): Likewise.
4150 (df_find_use): Likewise.
4151 (df_reg_used): Likewise.
4152 (df_dump_insn_problem_data): Strengthen param "insn" from
4153 const_rtx to const rtx_insn *.
4154 (df_dump_insn_top): Likewise.
4155 (df_dump_insn_bottom): Likewise.
4156 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4157 (df_insn_debug_regno): Likewise.
4158 (debug_df_insn): Likewise.
4159 (DF_REF_INSN): Delete.
4160 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4161 from rtx to rtx_insn *.
4162 (df_chain_insn_top_dump): Strengthen param "insn" from
4163 const_rtx to const rtx_insn *.
4164 (df_chain_insn_bottom_dump): Likewise.
4165 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4166 rtx_insn *.
4167 (df_word_lr_simulate_uses): Likewise.
4168 (df_print_note): Likewise.
4169 (df_remove_dead_and_unused_notes): Likewise.
4170 (df_set_unused_notes_for_mw): Likewise.
4171 (df_set_dead_notes_for_mw): Likewise.
4172 (df_create_unused_note): Likewise.
4173 (df_simulate_find_defs): Likewise.
4174 (df_simulate_find_uses): Likewise.
4175 (df_simulate_find_noclobber_defs): Likewise.
4176 (df_simulate_defs): Likewise.
4177 (df_simulate_uses): Likewise.
4178 (df_simulate_one_insn_backwards): Likewise.
4179 (df_simulate_one_insn_forwards): Likewise.
4180 (df_md_simulate_one_insn): Likewise.
4181 * df-scan.c (df_uses_create): Likewise.
4182 (df_insn_create_insn_record): Likewise.
4183 (df_insn_delete): Likewise.
4184 (df_insn_rescan): Likewise.
4185 (df_insn_rescan_debug_internal): Likewise.
4186 (df_insn_change_bb): Likewise.
4187 (df_notes_rescan): Likewise.
4188 (df_refs_add_to_chains): Likewise.
4189 (df_insn_refs_verify): Likewise.
4190 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4191 when invoking df_insn_delete.
4192 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4193 (set_unique_reg_note): Add checked cast.
4194 * final.c (cleanup_subreg_operands): Likewise.
4195 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4196 "insn" from rtx to rtx_insn *.
4197 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4198 "last" from rtx to rtx_insn *.
4199 * ira-emit.c (change_regs_in_insn): New function.
4200 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4201 Invoke change_regs_in_insn rather than change_regs.
4202 * ira.c (update_equiv_regs): Strengthen locals "insn",
4203 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4204 for_each_rtx_in_insn rather than for_each_rtx.
4205 * recog.c (confirm_change_group): Add checked casts.
4206 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4207 Add checked cast.
4208 (peep2_fill_buffer): Add checked cast.
4209 * rtlanal.c (remove_note): Likewise.
4210 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4211 locals "next" "end" from rtx to rtx_insn *.
4212
4213 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4214
4215 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4216 to rtx_insn *.
4217 (struct reg_use_data): Likewise for field "insn".
4218 (insn_cost): Likewise for param.
4219 (real_insn_for_shadow): Likewise for return type and param.
4220 (increase_insn_priority): Likewise for param 1.
4221 (debug_dependencies): Likewise for both params.
4222
4223 * haifa-sched.c (insn_delay): Likewise for param "insn".
4224 (real_insn_for_shadow): Likewise for return type and param "insn".
4225 (update_insn_after_change): Likewise for param "insn".
4226 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4227 "other".
4228 (insn_cost): Likewise for param "insn".
4229 (increase_insn_priority): Likewise.
4230 (calculate_reg_deaths): Likewise.
4231 (setup_insn_reg_pressure_info): Likewise.
4232 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4233 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4234 (model_recompute): Likewise.
4235 (must_restore_pattern_p): Likewise for param "next".
4236 (model_excess_cost): Likewise for param "insn".
4237 (queue_remove): Likewise.
4238 (adjust_priority): Likewise for param "prev".
4239 (update_register_pressure): Likewise for param "insn".
4240 (setup_insn_max_reg_pressure): Likewise for local "insn".
4241 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4242 (model_add_to_schedule): Likewise.
4243 (model_reset_queue_indices): Likewise for local "insn".
4244 (unschedule_insns_until): Strengthen local "recompute_vec" from
4245 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4246 "con" from rtx to rtx_insn *.
4247 (restore_last_backtrack_point): Likewise for both locals "x". Add
4248 checked casts.
4249 (estimate_insn_tick): Likewise for param "insn".
4250 (commit_schedule): Likewise for params "prev_head", "tail" and
4251 local "x".
4252 (verify_shadows): Likewise for locals "i1", "i2".
4253 (dump_insn_stream): Likewise for params "head", "tail" and locals
4254 "next_tail", "insn".
4255 (schedule_block): Likewise for locals "insn", "x". Add a checked
4256 cast.
4257 (fix_inter_tick): Likewise for params "head", "tail".
4258 (create_check_block_twin): Likewise for local "jump".
4259 (haifa_change_pattern): Likewise for param "insn".
4260 (haifa_speculate_insn): Likewise.
4261 (dump_new_block_header): Likewise for params "head", "tail".
4262 (fix_jump_move): Likewise for param "jump".
4263 (move_block_after_check): Likewise.
4264 (sched_init_insn_luid): Likewise for param "insn".
4265 (sched_init_luids): Likewise for local "insn".
4266 (insn_luid): Likewise for param "insn".
4267 (init_h_i_d): Likewise.
4268 (haifa_init_h_i_d): Likewise for local "insn".
4269 (haifa_init_insn): Likewise for param "insn".
4270 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4271 "other".
4272 (create_insn_reg_use): Likewise for param "insn".
4273 (setup_insn_reg_uses): Likewise. Add a checked cast.
4274 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4275 "tail" from rtx to rtx_insn *.
4276 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4277 "insn", "next_tail".
4278
4279 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4280
4281 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4282 from rtx to rtx_insn *.
4283 (model_add_to_schedule): Likewise for locals "start", "end",
4284 "iter".
4285
4286 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4287
4288 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4289 rtx_insn *.
4290 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4291 "to" and locals "insn", "next", "copy". Remove now-redundant
4292 checked cast.
4293
4294 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4295
4296 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4297 rtx_insn * and param 4 from rtx * to rtx_insn **.
4298 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4299 param 2 from rtx * to rtx_insn **.
4300
4301 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4302 rtx_insn * and final param from rtx * to rtx_insn **.
4303
4304 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4305 from rtx to rtx_insn *.
4306 (try_head_merge_bb): Likewise for both locals named "move_upto".
4307 * df-problems.c (can_move_insns_across): Likewise for params
4308 "from", "to", "across_from", "across_to" and locals "insn",
4309 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4310 rtx_insn **.
4311 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4312 from rtx to rtx_insn *.
4313 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4314 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4315 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4316 rtx_insn *.
4317 (noce_try_abs): Likewise.
4318 (noce_get_condition): Likewise for param "jump". Strengthen param
4319 "earliest" from rtx * to rtx_insn **.
4320 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4321 rtx_insn *.
4322 (find_cond_trap): Likewise.
4323 (dead_or_predicable): Likewise for local "earliest".
4324 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4325 checked cast.
4326 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4327 and local "prev". Strengthen param "earliest" from rtx * to
4328 rtx_insn **.
4329 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4330 Strengthen param "earliest" from rtx * to rtx_insn **.
4331
4332 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4333
4334 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4335 "to" and local "insn" from rtx to rtx_insn *.
4336
4337 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4338
4339 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4340 from rtx to rtx_insn *.
4341 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4342 (code_motion_path_driver): Likewise for local "last_insn".
4343 (simplify_changed_insns): Likewise for local "insn".
4344
4345 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4346
4347 * rtl.h (push_to_sequence): Strengthen param from rtx to
4348 rtx_insn *.
4349 (push_to_sequence2): Likewise for both params.
4350 (delete_insns_since): Likewise for param.
4351 (reorder_insns_nobb): Likewise for all three params.
4352 (set_new_first_and_last_insn): Likewise for both params.
4353
4354 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4355 rtx_insn *. Remove now-redundant cast.
4356 (set_last_insn): Likewise.
4357
4358 * builtins.c (expand_builtin_return): Strengthen local
4359 "call_fusage" from rtx to rtx_insn *.
4360 * cfgrtl.c (create_basic_block_structure): Likewise for local
4361 "after".
4362 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4363 "first", "last" and local "insn".
4364 (delete_insns_since): Likewise for param "from".
4365 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4366 and local "x".
4367 (push_to_sequence): Likewise for param "first" and local "last".
4368 (push_to_sequence2): Likewise for params "first" and "last".
4369 * lra.c (emit_add3_insn): Likewise for local "last".
4370 (lra_emit_add): Likewise.
4371 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4372 "last_insn".
4373 (process_address_1): Likewise for locals "insn", last".
4374 * modulo-sched.c (ps_first_note): Likewise for return type.
4375 * optabs.c (expand_binop_directly): Likewise for param "last".
4376
4377 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4378
4379 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4380 to rtx_insn*.
4381 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4382
4383 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4384
4385 * function.h (struct sequence_stack): Strengthen fields "first"
4386 and "last" from rtx to rtx_insn *.
4387 (struct emit_status): Likewise for fields "x_first_insn" and
4388 "x_last_insn".
4389
4390 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4391 (set_first_insn): Add checked cast.
4392 (get_last_insn): Remove now-redundant checked cast.
4393 (set_last_insn): Add checked cast.
4394
4395 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4396 "saved_first" and "saved_last" from rtx to rtx_insn *.
4397
4398 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4399
4400 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4401 (unlink_insn_chain): Strengthen both params from rtx to
4402 rtx_insn *.
4403
4404 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4405 variable.
4406 (unlink_insn_chain): Likewise for params "first" and "last".
4407 Remove now-redundant checked cast.
4408 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4409 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4410 rtx_insn *.
4411 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4412 params.
4413 (add_insn): Likewise for param "insn" and local "prev".
4414 (add_insn_after_nobb): Likewise for both params and local "next".
4415 (add_insn_before_nobb): Likewise for both params and local "prev".
4416 (add_insn_after): Rename param "after" to "uncast_after",
4417 introducing local "after" with another checked cast.
4418 (add_insn_before): Rename params "insn" and "before", giving them
4419 "uncast_" prefixes, adding the old names back using checked casts.
4420 (emit_note_after): Likewise for param "after".
4421 (emit_note_before): Likewise for param "before".
4422 (emit_label): Add a checked cast.
4423
4424 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4425
4426 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4427 "insn" from rtx to rtx_insn *.
4428
4429 * cselib.c (cselib_record_sets_hook): Likewise.
4430
4431 * var-tracking.c (add_with_sets): Likewise, renaming back from
4432 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4433 to rtx_insn *.
4434
4435 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4436
4437 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4438 and "header_" from rtx to rtx_insn *.
4439 (struct basic_block_d): Likewise for field "head_" within "x"
4440 field of union basic_block_il_dependent.
4441 (BB_HEAD): Drop function...
4442 (SET_BB_HEAD): ...and this function in favor of...
4443 (BB_HEAD): ...reinstate macro.
4444 (BB_END): Drop function...
4445 (SET_BB_END): ...and this function in favor of...
4446 (BB_END): ...reinstate macro.
4447 (BB_HEADER): Drop function...
4448 (SET_BB_HEADER): ...and this function in favor of...
4449 (BB_HEADER): ...reinstate macro.
4450
4451 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4452 (fix_crossing_unconditional_branches): Likewise.
4453 * caller-save.c (save_call_clobbered_regs): Likewise.
4454 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4455 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4456 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4457 (merge_blocks_move_successor_nojumps): Likewise.
4458 (outgoing_edges_match): Update use of for_each_rtx to
4459 for_each_rtx_in_insn.
4460 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4461 (expand_gimple_cond): Likewise.
4462 (expand_gimple_tailcall): Likewise.
4463 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4464 SET_BB_END.
4465 (construct_exit_block): Drop use of SET_BB_END.
4466 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4467 rtx_insn *.
4468 (delete_insn): Rename param "insn" to "uncast_insn", introducing
4469 a new local "insn" with a checked cast to rtx_insn *. Drop use of
4470 SET_BB_HEAD and SET_BB_END.
4471 (create_basic_block_structure): Drop use of SET_BB_HEAD and
4472 SET_BB_END.
4473 (rtl_delete_block): Drop use of SET_BB_HEAD.
4474 (rtl_split_block): Drop use of SET_BB_END.
4475 (emit_nop_for_unique_locus_between): Likewise.
4476 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4477 (block_label): Drop use of SET_BB_HEAD.
4478 (fixup_abnormal_edges): Drop use of SET_BB_END.
4479 (record_effective_endpoints): Drop use of SET_BB_HEADER.
4480 (relink_block_chain): Likewise.
4481 (fixup_reorder_chain): Drop use of SET_BB_END.
4482 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4483 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4484 rtx_insn **. Drop use of SET_BB_HEADER.
4485 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4486 SET_BB_HEAD.
4487 (BB_HEAD): Delete this function.
4488 (SET_BB_HEAD): Likewise.
4489 (BB_END): Likewise.
4490 (SET_BB_END): Likewise.
4491 (BB_HEADER): Likewise.
4492 (SET_BB_HEADER): Likewise.
4493 * emit-rtl.c (add_insn_after): Rename param "insn" to
4494 "uncast_insn", adding a new local "insn" and a checked cast to
4495 rtx_insn *. Drop use of SET_BB_END.
4496 (remove_insn): Strengthen locals "next" and "prev" from rtx to
4497 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
4498 (reorder_insns): Drop use of SET_BB_END.
4499 (emit_insn_after_1): Strengthen param "first" and locals "last",
4500 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
4501 (emit_pattern_after_noloc): Add checked cast.
4502 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4503 (restore_other_notes): Likewise.
4504 (move_insn): Likewise.
4505 (sched_extend_bb): Likewise.
4506 (fix_jump_move): Likewise.
4507 * ifcvt.c (noce_process_if_block): Likewise.
4508 (dead_or_predicable): Likewise.
4509 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4510 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4511 * sel-sched-ir.c (sel_move_insn): Likewise.
4512 * sel-sched.c (move_nop_to_previous_block): Likewise.
4513
4514 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4515 SET_BB_END.
4516 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4517
4518 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4519
4520 * basic-block.h (create_basic_block_structure): Strengthen params
4521 1 "head" and 2 "end" from rtx to rtx_insn *.
4522 * cfgrtl.c (create_basic_block_structure): Likewise.
4523 (rtl_create_basic_block): Update casts from void * to rtx to
4524 rtx_insn *, so that we can pass them as rtx_insn * to
4525 create_basic_block_structure.
4526 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4527
4528 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4529
4530 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4531 rtx_insn **.
4532 (check_for_inc_dec): Strengthen param "insn" from rtx to
4533 rtx_insn *.
4534
4535 * cselib.h (cselib_process_insn): Likewise.
4536
4537 * cselib.c (cselib_record_sets): Likewise.
4538 (cselib_process_insn): Likewise.
4539
4540 * dse.c (struct insn_info): Likewise for field "insn".
4541 (check_for_inc_dec_1): Likewise for local "insn".
4542 (check_for_inc_dec): Likewise for param "insn".
4543 (scan_insn): Likewise.
4544 (dse_step1): Likewise for local "insn".
4545
4546 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4547 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
4548
4549 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4550
4551 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4552 from rtx to rtx_insn *.
4553 (DEP_PRO): Delete this function and...
4554 (SET_DEP_PRO): ...this function in favor of...
4555 (DEP_PRO): ...reinstate this macro.
4556 (DEP_CON): Delete this function and...
4557 (SET_DEP_CON): ...this function in favor of...
4558 (DEP_CON): ...reinstate this old macro.
4559 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4560 (init_dep): Likewise.
4561 (set_priorities): Likewise for both params.
4562 (sd_copy_back_deps): Likewise for params 1 and 2.
4563
4564 * haifa-sched.c (priority): Likewise for param "insn" and local
4565 "next".
4566 (set_priorities): Likewise for params "head" and "tail" and local
4567 "insn".
4568 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4569 local "consumer".
4570 (add_to_speculative_block): Add a checked cast.
4571 (create_check_block_twin): Drop use of SET_DEP_CON.
4572 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4573 rtx to rtx_insn *.
4574
4575 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4576 Drop use of SET_DEP_PRO
4577 (init_dep): Strengthen params "pro" and "con" from rtx to
4578 rtx_insn *.
4579 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4580 use of SET_DEP_CON.
4581 (DEP_PRO): Delete.
4582 (DEP_CON): Delete.
4583 (SET_DEP_PRO): Delete.
4584 (SET_DEP_CON): Delete.
4585
4586 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4587
4588 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4589 from rtx to rtx_insn *.
4590 (VINSN_INSN_RTX): Eliminate rvalue function and...
4591 (SET_VINSN_INSN): ...lvalue function in favor of...
4592 (VINSN_INSN_RTX): reinstate this old macro.
4593
4594 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4595 in favor of VINSN_INSN_RTX.
4596 (VINSN_INSN_RTX): Delete this function.
4597 (SET_VINSN_INSN_RTX): Likewise.
4598
4599 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4600
4601 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4602 (BND_TO): Delete this function and...
4603 (SET_BND_TO): ...this functions in favor of...
4604 (BND_TO): ...reinstating this macro.
4605 (struct _fence): Strengthen field "executing_insns" from
4606 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4607 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4608 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4609 and param "insn" from rtx to insn_t.
4610 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4611 rtx_insn *.
4612
4613 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4614 vec<rtx_insn *> .
4615 (rtx_vec_t): Likewise.
4616 (struct sched_deps_info_def): Strengthen param of "start_insn"
4617 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4618 "note_mem_dep" callback and first param of "note_dep" callback.
4619
4620 * haifa-sched.c (add_to_speculative_block): Strengthen param
4621 "insn" from rtx to rtx_insn *.
4622 (clear_priorities): Likewise.
4623 (calc_priorities): Likewise for local "insn".
4624
4625 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4626 Remove redundant checked cast.
4627 (haifa_note_mem_dep): Likewise for param "pending_insn".
4628 (haifa_note_dep): Likewise for param "elem".
4629 (note_mem_dep): Likewise for param "e".
4630 (sched_analyze_1): Add checked casts.
4631 (sched_analyze_2): Likewise.
4632
4633 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4634 from rtx to rtx_insn *.
4635 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4636 from vec<rtx> * to vec<rtx_insn *> *.
4637
4638 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4639 scaffolding.
4640 (flist_add): Strengthen param "executing_insns" from
4641 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4642 (advance_deps_context): Remove now-redundant checked cast.
4643 (init_fences): Replace uses of NULL_RTX with NULL.
4644 (merge_fences): Strengthen params "last_scheduled_insn" and
4645 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4646 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4647 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4648 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4649 an instruction, rather than doing double-duty as a pattern.
4650 (return_nop_to_pool): Update for change of insn_t.
4651 (deps_init_id): Remove now-redundant checked cast.
4652 (struct sched_scan_info_def): Strengthen param of "init_insn"
4653 callback from rtx to insn_t.
4654 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4655 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4656 NULL.
4657 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4658 "end" from rtx to rtx_insn *.
4659 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4660 (rtx insn_rtx, bool force_unique_p)
4661 (BND_TO): Delete function.
4662 (SET_BND_TO): Delete function.
4663
4664 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4665 rtx to rtx_insn *.
4666 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4667 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4668 rtx to rtx_insn *.
4669 (undo_transformations): Likewise for param "insn".
4670 (update_liveness_on_insn): Likewise.
4671 (compute_live_below_insn): Likewise for param "insn" and local
4672 "succ".
4673 (update_data_sets): Likewise for param "insn".
4674 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4675 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4676 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4677 rtx_insn *.
4678 (move_cond_jump): Likewise for param "insn".
4679 (move_cond_jump): Drop use of SET_BND_TO.
4680 (compute_av_set_on_boundaries): Likewise.
4681 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4682 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4683 from rtx to rtx_insn *.
4684 (maybe_emit_renaming_copy): Likewise for param "insn".
4685 (maybe_emit_speculative_check): Likewise.
4686 (handle_emitting_transformations): Likewise.
4687 (remove_insn_from_stream): Likewise.
4688 (code_motion_process_successors): Strengthen local "succ" from rtx
4689 to insn_t.
4690
4691 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4692
4693 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4694 ilist_t, not _xlist_t;
4695 (ILIST_INSN): Define in terms of new union field "insn".
4696 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4697 _XLIST_NEXT.
4698 (struct _list_node): Add new field "insn" to the union, of type
4699 insn_t.
4700 (ilist_add): Replace macro with an inline function, requiring an
4701 insn_t.
4702 (ilist_remove): Define this macro directly in terms of
4703 _list_remove, rather than indirectly via _xlist_remove.
4704 (ilist_clear): Likewise, in terms of _list_clear rather than
4705 _xlist_clear.
4706 (ilist_is_in_p): Replace macro with an inline function, requiring
4707 an insn_t.
4708 (_list_iter_cond_insn): New function.
4709 (ilist_iter_remove): Define this macro directly in terms of
4710 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4711 (ilist_iterator): Define directly in terms of _list_iterator
4712 rather than indirectly through _xlist_iterator.
4713 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4714 than in terms of _FOR_EACH_X.
4715 (FOR_EACH_INSN_1): Likewise.
4716
4717 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4718
4719 PR target/60606
4720 PR target/61330
4721 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
4722 DECL_HARD_REGISTER and return for invalid register specifications.
4723 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
4724 DECL_HARD_REGISTER, call expand_one_error_var.
4725 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
4726 CC_REGNUM with non-MODE_CC modes.
4727 (arm_regno_class): Return NO_REGS for PC_REGNUM.
4728
4729 2014-08-26 Marek Polacek <polacek@redhat.com>
4730
4731 PR c/61271
4732 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
4733
4734 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
4735
4736 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
4737 qi cost; add di cost.
4738 (cortexa57_addrcost_table): Likewise.
4739
4740 2014-08-26 Marek Polacek <polacek@redhat.com>
4741
4742 PR c/61271
4743 * expr.c (is_aligning_offset): Remove logical not.
4744
4745 2014-08-26 Marek Polacek <polacek@redhat.com>
4746
4747 PR c/61271
4748 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
4749 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
4750
4751 2014-08-26 Richard Biener <rguenther@suse.de>
4752
4753 PR tree-optimization/62175
4754 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
4755 expand possibly trapping operations.
4756
4757 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4758
4759 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
4760 "insn" from rtx to rtx_insn *.
4761 (permute_load): Likewise for param "insn".
4762 (permute_store): Likewise.
4763 (handle_special_swappables): Likewise for local "insn".
4764 (replace_swap_with_copy): Likewise for locals "insn" and
4765 "new_insn".
4766 (rs6000_analyze_swaps): Likewise for local "insn".
4767
4768 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4769
4770 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
4771 to rtx_insn *.
4772
4773 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4774
4775 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
4776 "note_list" from rtx to rtx_insn *.
4777 (BB_NOTE_LIST): Replace this function and...
4778 (SET_BB_NOTE_LIST): ...this function with...
4779 (BB_NOTE_LIST): ...the former macro implementation.
4780
4781 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
4782 local "from_start" from rtx to rtx_insn *. Strengthen param
4783 "to_endp" from rtx * to rtx_insn **.
4784
4785 * haifa-sched.c (concat_note_lists): Likewise.
4786 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
4787 BB_NOTE_LIST.
4788 (sel_restore_notes): Likewise.
4789 (move_bb_info): Likewise.
4790 (BB_NOTE_LIST): Delete this function.
4791 (SET_BB_NOTE_LIST): Delete this function.
4792 * sel-sched.c (create_block_for_bookkeeping): Eliminate
4793 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
4794
4795 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4796
4797 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
4798 from rtx * to rtx_insn **.
4799 (reorder2): Likewise.
4800 (dependencies_evaluation_hook): Strengthen params "head", "tail"
4801 from rtx to rtx_insn *.
4802
4803 * doc/tm.texi: Update mechanically for above change to target.def.
4804
4805 * sched-int.h (note_list): Strengthen this variable from rtx to
4806 rtx_insn *.
4807 (remove_notes): Likewise for both params.
4808 (restore_other_notes): Likewise for return type and first param.
4809 (struct ready_list): Strengthen field "vec" from rtx * to
4810 rtx_insn **.
4811 (struct dep_replacement): Strenghten field "insn" from rtx to
4812 rtx_insn *.
4813 (struct deps_desc): Likewise for fields "last_debug_insn",
4814 "last_args_size".
4815 (struct haifa_sched_info): Likewise for callback field
4816 "can_schedule_ready_p"'s param, for first param of "new_ready"
4817 callback field, for both params of "rank" callback field, for
4818 first field of "print_insn" callback field (with a const), for
4819 both params of "contributes_to_priority" callback, for param
4820 of "insn_finishes_block_p" callback, for fields "prev_head",
4821 "next_tail", "head", "tail", for first param of "add_remove_insn"
4822 callback, for first param of "begin_schedule_ready" callback, for
4823 both params of "begin_move_insn" callback, and for second param
4824 of "advance_target_bb" callback.
4825 (add_dependence): Likewise for params 1 and 2.
4826 (sched_analyze): Likewise for params 2 and 3.
4827 (deps_analyze_insn): Likewise for param 2.
4828 (ready_element): Likewise for return type.
4829 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4830 (try_ready): Strenghten param from rtx to rtx_insn *.
4831 (sched_emit_insn): Likewise for return type.
4832 (record_delay_slot_pair): Likewise for params 1 and 2.
4833 (add_delay_dependencies): Likewise for param.
4834 (contributes_to_priority): Likewise for both params.
4835 (find_modifiable_mems): Likewise.
4836
4837 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
4838 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
4839 "first_older_only_insn" from rtx to rtx_insn *.
4840 (arm_sched_reorder): Strengthen param "ready" from rtx * to
4841 rtx_insn **.
4842
4843 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
4844 "last_scheduled_iter0" from rtx to rtx_insn *.
4845 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
4846 (c6x_sched_reorder_1): Strengthen param "ready" and locals
4847 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4848 "insn" from rtx to rtx_insn *.
4849 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
4850 rtx_insn **.
4851 (c6x_sched_reorder2): Strengthen param "ready" and locals
4852 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4853 "insn" from rtx to rtx_insn *.
4854 (c6x_variable_issue): Add a checked cast when assigning from insn
4855 to ss.last_scheduled_iter0.
4856 (split_delayed_branch): Strengthen param "insn" and local "i1"
4857 from rtx to rtx_insn *.
4858 (split_delayed_nonbranch): Likewise.
4859 (undo_split_delayed_nonbranch): Likewise for local "insn".
4860 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
4861 "entry_after", "end_packet", "head_insn", "tail_insn",
4862 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
4863 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
4864 to rtx_insn **. Remove now-redundant checked cast on last_insn,
4865 but add a checked cast on loop->start_label. Consolidate calls to
4866 avoid assigning result of gen_spkernel to "insn", now an
4867 rtx_insn *.
4868
4869 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
4870 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
4871 rtx to rtx_insn *.
4872 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
4873 rtx_insn **. Strengthen locals "top", "next" from rtx to
4874 rtx_insn *.
4875 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
4876 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4877 (add_parameter_dependencies): Strengthen params "call", "head" and
4878 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
4879 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
4880 (add_dependee_for_func_arg): Likewise for param "arg" and local
4881 "insn".
4882 (ix86_dependencies_evaluation_hook): Likewise for params "head",
4883 "tail" and locals "insn", "first_arg".
4884
4885 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
4886 for params "head", "tail" and locals "insn", "next", "next_tail".
4887 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
4888 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
4889 "insn", "lowest", "highest" from rtx to rtx_insn *.
4890 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
4891 rtx_insn **.
4892 (ia64_sched_reorder2): Likewise.
4893
4894 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
4895 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
4896 from rtx * to rtx_insn **.
4897 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
4898 rtx_insn **.
4899 (mep_print_sched_insn): Strengthen param "insn" from rtx to
4900 rtx_insn *.
4901 (mep_sched_reorder): Strengthen param "ready" from rtx * to
4902 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
4903 to rtx_insn *.
4904
4905 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
4906 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
4907 to rtx_insn *.
4908 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
4909 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
4910 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
4911 rtx_insn **.
4912 (vr4130_reorder): Likewise.
4913 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
4914 rtx to rtx_insn *.
4915 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
4916 rtx_insn **.
4917 (mips_sched_reorder): Likewise.
4918 (mips_sched_reorder2): Likewise.
4919
4920 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
4921
4922 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
4923 Strengthen local "tmp" from rtx to rtx_insn *.
4924 (rs6000_sched_reorder2): Likewise.
4925
4926 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
4927 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
4928 (s390_sched_reorder): Strengthen param "ready" from rtx * to
4929 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
4930
4931 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
4932 "tmp2" from rtx to rtx_insn *.
4933 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
4934 Strengthen local "insn" from rtx to rtx_insn *.
4935 (ready_reorder): Strengthen param "ready" from rtx * to
4936 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
4937 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
4938 (sh_reorder2): Likewise.
4939
4940 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
4941 local "insn" from rtx to rtx_insn *.
4942
4943 * haifa-sched.c (note_list): Strengthen this variable from rtx to
4944 rtx_insn *.
4945 (scheduled_insns): Strengthen this variable from vec<rtx> to
4946 vec<rtx_insn *>.
4947 (set_modulo_params): Likewise for locals "i1", "i2".
4948 (record_delay_slot_pair): Likewise for params "i1", "i2".
4949 (add_delay_dependencies): Likewise for param "insn".
4950 (cond_clobbered_p): Likewise.
4951 (recompute_todo_spec): Likewise for local "prev".
4952 (last_scheduled_insn): Likewise for this variable.
4953 (nonscheduled_insns_begin): Likewise.
4954 (model_set_excess_costs): Strengthen param "insns" from rtx * to
4955 rtx_insn **.
4956 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
4957 rtx_insn *.
4958 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
4959 Strengthen local "insn" from rtx to rtx_insn *.
4960 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
4961 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4962 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
4963 (ready_remove_first): Likewise for return type and local "t".
4964 (ready_element): Likewise for return type.
4965 (ready_remove): Likewise for return type and local "t".
4966 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
4967 (check_clobbered_conditions): Strengthen local "x" from rtx to
4968 rtx_insn *, adding a checked cast.
4969 (schedule_insn): Likewise for param "insn".
4970 (remove_notes): Likewise for params "head", "tail" and locals
4971 "next_tail", "insn", "next".
4972 (struct haifa_saved_data): Likewise for fields
4973 "last_scheduled_insn", "nonscheduled_insns_begin".
4974 (save_backtrack_point): Update for change to field "vec" of
4975 struct ready_list.
4976 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
4977 rtx_insn **.
4978 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
4979 from rtx to rtx_insn *
4980 (resolve_dependencies): Strengthen param "insn" from rtx to
4981 rtx_insn *
4982 (restore_other_notes): Likewise for return type, for param "head"
4983 and local "note_head".
4984 (undo_all_replacements): Likewise for local "insn".
4985 (first_nonscheduled_insn): Likewise for return type and local "insn".
4986 (queue_to_ready): Likewise for local "insn", adding checked casts.
4987 (early_queue_to_ready): Likewise for local "insn".
4988 (debug_ready_list_1): Strengthen local "p" from rtx * to
4989 rtx_insn **.
4990 (move_insn): Strengthen param "insn" and local "note" from rtx to
4991 rtx_insn *
4992 (insn_finishes_cycle_p): Likewise for param "insn".
4993 (max_issue): Likewise for local "insn".
4994 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
4995 to rtx_insn **.
4996 (commit_schedule): Strengthen param "prev_head" and local "insn"
4997 from rtx to rtx_insn *
4998 (prune_ready_list): Likewise for local "insn".
4999 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5000 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5001 (set_priorities): Likewise for local "prev_head".
5002 (try_ready): Likewise for param "next".
5003 (fix_tick_ready): Likewise.
5004 (change_queue_index): Likewise.
5005 (sched_extend_ready_list): Update for change to field "vec" of
5006 struct ready_list.
5007 (generate_recovery_code): Strengthen param "insn" from rtx to
5008 rtx_insn *.
5009 (begin_speculative_block): Likewise.
5010 (create_check_block_twin): Likewise for param "insn" and locals
5011 "label", "check", "twin". Introduce local "check_pat" to avoid
5012 "check" being used as a plain rtx before being used as an insn.
5013 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5014 extracting elements from ready_list.
5015 (sched_remove_insn): Strengthen param "insn" from rtx to
5016 rtx_insn *.
5017 (sched_emit_insn): Likewise for return type.
5018 (ready_remove_first_dispatch): Likewise for return type and local
5019 "insn".
5020
5021 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5022
5023 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5024 const rtx_insn *.
5025
5026 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5027 from rtx to rtx_insn *.
5028 (add_dependence_list): Likewise for param "insn". Add a checked
5029 cast.
5030 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5031 to rtx_insn *. Strengthen param "list_p" from rtx * to
5032 rtx_insn **.
5033 (chain_to_prev_insn): Strengthen param "insn" and locals
5034 "prec_nonnote", "i" from rtx to rtx_insn *.
5035 (flush_pending_lists): Likewise for param "insn".
5036 (cur_insn): Likewise for this variable.
5037 (haifa_start_insn): Add a checked cast.
5038 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5039 (sched_analyze_reg): Likewise for param "insn".
5040 (sched_analyze_1): Likewise.
5041 (sched_analyze_2): Likewise. Add checked casts.
5042 (sched_analyze_insn): Likewise. Also for local "prev".
5043 (deps_analyze_insn): Likewise for param "insn".
5044 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5045 (add_dependence_1): Likewise for params "insn", "elem".
5046 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5047 (parse_add_or_inc): Likewise for param "insn".
5048 (find_inc): Likewise for local "inc_cand".
5049 (find_modifiable_mems): Likewise for params "head", "tail" and
5050 locals "insn", "next_tail".
5051
5052 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5053 (begin_schedule_ready): Likewise for param "insn".
5054 (begin_move_insn): Likewise for params "insn" and "last".
5055 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5056 const rtx_insn *.
5057 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5058 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5059 (ebb_add_remove_insn): Likewise for param "insn".
5060 (advance_target_bb): Likewise.
5061
5062 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5063 "insn".
5064 (check_live): Likewise for param "insn".
5065 (init_ready_list): Likewise for local "insn".
5066 (can_schedule_ready_p): Likewise for param "insn".
5067 (begin_schedule_ready): Likewise.
5068 (new_ready): Likewise for param "next".
5069 (rgn_print_insn): Likewise for param "insn".
5070 (rgn_rank): Likewise for params "insn1", "insn2".
5071 (contributes_to_priority): Likewise for params "next", "insn".
5072 (rgn_insn_finishes_block_p): Likewise for param "insn".
5073 (add_branch_dependences): Likewise for params "head", "tail" and
5074 locals "insn", "last".
5075 (rgn_add_remove_insn): Likewise for param "insn".
5076 (advance_target_bb): Likewise.
5077
5078 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5079 const_rtx to const rtx_insn *.
5080
5081 * sel-sched-dump.h (sel_print_insn): Likewise.
5082
5083 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5084 (deps_init_id): Likewise.
5085
5086 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5087 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5088 rtx_insn **.
5089
5090 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5091
5092 * output.h (final_start_function): Strengthen param 1 from rtx to
5093 rtx_insn *.
5094
5095 * final.c (final_start_function): Likewise, renaming back from
5096 "uncast_first" to "first", and dropping the checked cast from rtx
5097 to rtx_insn *.
5098
5099 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5100
5101 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5102 * final.c (final): Likewise. Rename param back from
5103 "uncast_first" to "first" and eliminate the checked cast from rtx
5104 to rtx_insn *.
5105
5106 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5107
5108 * output.h (shorten_branches): Strengthen param from rtx to
5109 rtx_insn *.
5110
5111 * final.c (shorten_branches): Likewise, renaming param back from
5112 "uncast_first" to "first", and dropping the checked cast from rtx
5113 to rtx_insn *.
5114
5115 * genattr.c (gen_attr): Likewise when writing out the prototype of
5116 shorten_branches.
5117
5118 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5119
5120 * sched-int.h (struct haifa_sched_info): Strengthen fields
5121 "prev_head" and "next_tail" from rtx to rtx_insn *.
5122
5123 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5124
5125 * rtl.h (rtx_jump_table_data::get_labels): New method.
5126 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5127 with use of the new rtx_jump_table_data::get_labels method.
5128 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5129 to rtx_jump_table_data *. Simplify by using get_labels method.
5130 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5131 a dyn_cast, introducing local "table", using it to replace
5132 label-lookup logic with a get_labels method call.
5133 (patch_jump_insn): Simplify using get_labels method.
5134 * dwarf2cfi.c (create_trace_edges): Likewise.
5135 * rtlanal.c (label_is_jump_target_p): Likewise.
5136
5137 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5138
5139 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5140 to rtx_insn *.
5141
5142 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5143 (unshare_all_rtl_again): Likewise, also for local "p".
5144
5145 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5146
5147 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5148 to rtx_insn *.
5149 * cfgrtl.c (delete_insn_and_edges): Likewise.
5150
5151 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5152
5153 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5154 from rtx to rtx_insn *.
5155
5156 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5157
5158 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5159
5160 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5161 locals "returnjump", "epilogue_end", "insn", "next".
5162
5163 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5164 "returnjump" from rtx * to rtx_insn **.
5165 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5166
5167 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5168
5169 * basic-block.h (struct edge_def). Strengthen "r" within
5170 union edge_def_insns from rtx to rtx_insn *.
5171
5172 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5173 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5174 rtx_insn *.
5175 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5176 from rtx to rtx_insn *.
5177 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5178 rtx_insn *.
5179 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5180 (reg_used_on_edge): Likewise.
5181 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5182 (gt_pch_nx): New overload for rtx_insn *&.
5183 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5184 from rtx to rtx_insn *.
5185
5186 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5187
5188 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5189 from rtx to rtx_insn *.
5190 (BB_FOOTER): Replace function with access macro.
5191 (SET_BB_FOOTER): Delete.
5192
5193 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5194 with BB_FOOTER.
5195 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5196 (emit_barrier_after_bb): Likewise.
5197 (record_effective_endpoints): Likewise.
5198 (relink_block_chain): Likewise.
5199 (fixup_fallthru_exit_predecessor): Likewise.
5200 (cfg_layout_duplicate_bb): Likewise.
5201 (cfg_layout_split_block): Likewise.
5202 (cfg_layout_delete_block): Likewise.
5203 (cfg_layout_merge_blocks): Likewise.
5204 (BB_FOOTER): Delete function.
5205 (SET_BB_FOOTER): Delete function.
5206 * combine.c (update_cfg_for_uncondjump): Replace uses of
5207 SET_BB_FOOTER with BB_FOOTER.
5208
5209 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5210
5211 * except.h (struct eh_landing_pad_d): Strengthen field
5212 "landing_pad" from rtx to rtx_code_label *.
5213
5214 * except.c (sjlj_emit_dispatch_table): Likewise for param
5215 "dispatch_label"
5216 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5217
5218 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5219
5220 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5221 first param from rtx to rtx_insn *.
5222 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5223 field "set_frame_ptr_insn".
5224 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5225 "csend" from rtx to rtx_code_label *.
5226 (xtensa_expand_atomic): Likewise for local "csloop".
5227 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5228 rtx_insn *.
5229 (xtensa_call_tls_desc): Likewise for return type and locals
5230 "call_insn", "insns".
5231 (xtensa_legitimize_tls_address): Likewise for local "insns".
5232 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5233
5234 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5235
5236 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5237 first param from rtx to rtx_insn *.
5238 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5239 "insn".
5240
5241 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5242
5243 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5244 Strengthen param 1 from rtx to rtx_insn *.
5245 (tilepro_output_cbranch): Likewise.
5246 (tilepro_adjust_insn_length): Likewise.
5247 (tilepro_final_prescan_insn): Likewise for sole param.
5248
5249 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5250 Likewise for local "last".
5251 (cbranch_predicted_p): Likewise for param "insn".
5252 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5253 (tilepro_output_cbranch_with_opcode): Likewise.
5254 (tilepro_output_cbranch): Likewise.
5255 (frame_emit_load): Likewise for return type and locals "seq",
5256 "insn".
5257 (emit_sp_adjust): Likewise for return type and local "insn".
5258 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5259 "insn".
5260 (tilepro_adjust_insn_length): Likewise for param "insn".
5261 (next_insn_to_bundle): Likewise for return type and params
5262 "r", "end".
5263 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5264 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5265 local "new_insns".
5266 (match_addli_pcrel): Likewise for param "insn".
5267 (replace_addli_pcrel): Likewise.
5268 (match_auli_pcrel): Likewise.
5269 (replace_auli_pcrel): Likewise.
5270 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5271 "next_insn".
5272 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5273 "queue", "next_queue", "prev".
5274 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5275 (tilepro_final_prescan_insn): Likewise for param "insn".
5276
5277 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5278
5279 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5280 Strengthen param 1 from rtx to rtx_insn *.
5281 (tilegx_output_cbranch): Likewise.
5282 (tilegx_adjust_insn_length): Likewise.
5283 (tilegx_final_prescan_insn): Likewise for sole param.
5284
5285 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5286 or local "last".
5287 (cbranch_predicted_p): Likewise for param "insn".
5288 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5289 (tilegx_output_cbranch_with_opcode): Likewise.
5290 (tilegx_output_cbranch): Likewise.
5291 (frame_emit_load): Likewise for return type.
5292 (set_frame_related_p): Likewise for locals "seq", "insn".
5293 (emit_sp_adjust): Likewise for return type, and for local "insn".
5294 Introduce local "pat" for use in place of "insn" where the latter
5295 isn't an instruction.
5296 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5297 from rtx to rtx_insn *.
5298 (tilegx_adjust_insn_length): Likewise for param "insn".
5299 (next_insn_to_bundle): Likewise for return type and params "r" and
5300 "end".
5301 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5302 "end".
5303 (replace_insns): Likewise for params "old_insn", "new_insns".
5304 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5305 "new_insns".
5306 (replace_mov_pcrel_step2): Likewise.
5307 (replace_mov_pcrel_step3): Likewise.
5308 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5309 "next_insn".
5310 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5311 "queue", "next_queue", "prev".
5312 (tilegx_output_mi_thunk): Likewise for local "insn".
5313 (tilegx_final_prescan_insn): Likewise for param "insn".
5314
5315 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5316
5317 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5318 rtx to rtx_insn *.
5319 (frame_emit_load): Likewise.
5320 (frame_emit_add_imm): Likewise, also for local "insn".
5321 (spu_expand_prologue): Likewise for local "insn".
5322 (struct spu_bb_info): Likewise for field "prop_jump".
5323 (emit_nop_for_insn): Likewise for param "insn" and local
5324 "new_insn".
5325 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5326 "hbr_insn".
5327 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5328 locals "hint", "insn".
5329 (get_branch_target): Likewise for param "branch".
5330 (insn_clobbers_hbr): Likewise for param "insn".
5331 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5332 locals "insn", "before_4", "before_16".
5333 (insert_hbrp): Likewise for local "insn".
5334 (spu_machine_dependent_reorg): Likewise for locals "branch",
5335 "insn", "next", "bbend".
5336 (uses_ls_unit): Likewise for param "insn".
5337 (get_pipe): Likewise.
5338 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5339 introducing a checked cast.
5340 (spu_sched_adjust_cost): Likewise for params "insn" and
5341 "dep_insn".
5342 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5343 (spu_sms_res_mii): Likewise.
5344
5345 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5346
5347 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5348 from rtx to rtx_insn *.
5349 (output_cbranch): Likewise for param 6.
5350 (output_return): Likewise for param 1.
5351 (output_sibcall): Likewise.
5352 (output_v8plus_shift): Likewise.
5353 (output_v8plus_mult): Likewise.
5354 (output_v9branch): Likewise for param 7.
5355 (output_cbcond): Likewise for param 3.
5356
5357 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5358 for local "insn".
5359 (sparc_legitimize_pic_address): Likewise.
5360 (sparc_emit_call_insn): Likewise.
5361 (emit_save_or_restore_regs): Likewise.
5362 (emit_window_save): Likewise for return type and local "insn".
5363 (sparc_expand_prologue): Likewise for local "insn".
5364 (sparc_flat_expand_prologue): Likewise.
5365 (output_return): Likewise for param "insn".
5366 (output_sibcall): Likewise for param "insn" and local "delay".
5367 (output_ubranch): Likewise for param "insn".
5368 (output_cbranch): Likewise.
5369 (output_cbcond): Likewise.
5370 (output_v9branch): Likewise.
5371 (output_v8plus_shift): Likewise.
5372 (sparc_output_mi_thunk): Likewise for local "insn".
5373 (get_some_local_dynamic_name): Likewise.
5374 (output_v8plus_mult): Likewise for param "insn".
5375
5376 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5377
5378 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5379 from rtx to rtx_insn *.
5380 (output_branchy_insn): Likewise for param 3.
5381 (output_far_jump): Likewise for param 1.
5382 (final_prescan_insn): Likewise.
5383 (sh_insn_length_adjustment): Likewise for sole param.
5384
5385 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5386 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5387 rtx_code_label *.
5388 (sh_emit_compare_and_set): Likewise for local "lab".
5389 (output_far_jump): Strengthen param "insn" and local "prev" from
5390 rtx to rtx_insn *.
5391 (output_branchy_insn): Likewise for param "insn" and local
5392 "next_insn".
5393 (output_ieee_ccmpeq): Likewise for param "insn".
5394 (struct label_ref_list_d): Strengthen field "label" from rtx to
5395 rtx_code_label *.
5396 (pool_node): Likewise.
5397 (pool_window_label): Likewise for this global.
5398 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5399 (dump_table): Strengthen params "start", "barrier" and local
5400 "scan" from rtx to rtx_insn *.
5401 (broken_move): Likewise for param "insn".
5402 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5403 Strengthen param "first_mova" from rtx * to rtx_insn **.
5404 (mova_p): Likewise for param "insn".
5405 (fixup_mova): Likewise for param "mova".
5406 (find_barrier): Likewise for return type, params "mova" and
5407 "from", and locals "barrier_before_mova", "found_barrier",
5408 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5409 "label" from rtx to rtx_code_label *.
5410 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5411 rtx to rtx_insn *.
5412 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5413 (split_branches): Likewise for param "first" and local "insn".
5414 (final_prescan_insn): Likewise for param "insn".
5415 (sequence_insn_p): Likewise for locals "prev", "next".
5416 (sh_insn_length_adjustment): Likewise for param "insn".
5417 (sh_can_redirect_branch): Likewise for local "insn".
5418 (find_r0_life_regions): Likewise for locals "end", "insn".
5419 (sh_output_mi_thunk): Likewise for local "insns".
5420
5421 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5422
5423 * config/score/score.c (score_output_mi_thunk): Strengthen local
5424 "insn" from rtx to rtx_insn *.
5425 (score_prologue): Likewise.
5426
5427 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5428
5429 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5430 1 from rtx to rtx_insn *.
5431 (s390_emit_jump): Likewise for return type.
5432 (s390_emit_call): Likewise.
5433 (s390_load_got): Likewise.
5434
5435 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5436 variable.
5437 (s390_match_ccmode): Likewise for param "insn".
5438 (s390_emit_jump): Likewise for return type.
5439 (s390_split_branches): Likewise for local "label".
5440 (struct constant): Strengthen field "label" from rtx to
5441 rtx_code_label *.
5442 (struct constant_pool): Likewise for field "label". Strengthen
5443 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5444 rtx_insn *.
5445 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5446 insns.
5447 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5448 (s390_end_pool): Likewise.
5449 (s390_dump_pool): Likewise for local "insn".
5450 (s390_mainpool_start): Likewise.
5451 (s390_chunkify_start): Likewise.
5452 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5453 with insns. Strengthen locals "label", "jump", "barrier", "next",
5454 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5455 (s390_chunkify_finish): Strengthen local "insn" from rtx to
5456 rtx_insn *.
5457 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5458 "jump", "label", "next_insn".
5459 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5460 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5461 "tbegin_insn".
5462 (s390_load_got): Likewise for return type and local "insns".
5463 (s390_save_gprs_to_fprs): Likewise for local "insn".
5464 (s390_restore_gprs_from_fprs): Likewise.
5465 (pass_s390_early_mach::execute): Likewise.
5466 (s390_emit_prologue): Likewise for local "insns".
5467 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5468 rtx_code_label *.
5469 (s390_emit_call): Strengthen return type and local "insn" from
5470 rtx to rtx_insn *.
5471 (s390_emit_tpf_eh_return): Likewise for local "insn".
5472 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5473 "next_insn", introducing locals "s_pat", "rpat" to allow this.
5474 (s390_fix_long_loop_prediction): Likewise for param "insn" and
5475 local "cur_insn".
5476 (s390_non_addr_reg_read_p): Likewise for param "insn".
5477 (find_cond_jump): Likewise for return type and param "insn".
5478 (s390_swap_cmp): Likewise for param "insn".
5479 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5480 "prev_insn", "next_insn".
5481 (s390_reorg): Likewise for locals "insn", "target".
5482 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5483 (s390_sched_variable_issue): For now, rename param "insn" to
5484 "uncast_insn", introducing a checked cast.
5485 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5486 insn.
5487 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5488 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
5489
5490 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5491
5492 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5493 param from rtx to rtx_insn *.
5494 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5495
5496 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5497
5498 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5499 4 from rtx to rtx_insn *.
5500 (rs6000_final_prescan_insn): Likewise for first param.
5501 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5502 local "insn".
5503 (rs6000_get_some_local_dynamic_name): Likewise.
5504 (output_cbranch): Likewise for param "insn".
5505 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5506 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5507 (rs6000_emit_allocate_stack): Likewise for local "insn".
5508 (load_cr_save): Likewise.
5509 (restore_saved_cr): Likewise.
5510 (restore_saved_lr): Likewise.
5511 (emit_cfa_restores): Likewise.
5512 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5513 "deleted_debug_label".
5514 (rs6000_output_mi_thunk): Likewise for local "insn".
5515 (rs6000_final_prescan_insn): Likewise for param "insn".
5516
5517 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5518
5519 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5520 Strengthen param "insn" from rtx to rtx_insn *.
5521 * config/picochip/picochip.c (picochip_current_prescan_insn):
5522 Likewise for this variable.
5523 (picochip_final_prescan_insn): Likewise for param "insn".
5524
5525 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5526
5527 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5528 from rtx to rtx_insn *.
5529 (pa_output_indirect_call): Likewise.
5530 (pa_adjust_insn_length): Likewise.
5531 (pa_attr_length_millicode_call): Likewise.
5532 (pa_attr_length_call): Likewise.
5533 (pa_attr_length_indirect_call): Likewise.
5534
5535 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5536 "insn".
5537 (pa_attr_length_millicode_call): Likewise.
5538 (pa_attr_length_call): Likewise.
5539 (pa_output_call): Likewise.
5540 (pa_attr_length_indirect_call): Likewise.
5541 (pa_output_indirect_call): Likewise.
5542
5543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5544
5545 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5546 Strengthen first param from rtx to rtx_insn *.
5547 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5548 param "insn".
5549
5550 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5551
5552 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5553 type from rtx to rtx_insn *.
5554 (mips_expand_call): Likewise.
5555 (mips_adjust_insn_length): Likewise for first param.
5556 (mips_output_conditional_branch): Likewise.
5557 (mips_output_order_conditional_branch): Likewise.
5558 (mips_final_prescan_insn): Likewise.
5559
5560 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5561 rtx_insn * for the SEQUENCE case.
5562 (SEQ_END): Likewise.
5563 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5564 (mips_emit_call_insn): Likewise, also for local "insn".
5565 (mips16_gp_pseudo_reg): Likewise for local "scan".
5566 (mips16_build_call_stub): Likewise for return type and for local
5567 "insn". Introduce a new local "pattern" so that "insn" can indeed
5568 be an insn.
5569 (mips_expand_call): Strengthen return type and local "insn" from
5570 rtx to rtx_insn *.
5571 (mips_block_move_loop): Strengthen local "label" from rtx to
5572 rtx_code_label *.
5573 (mips_expand_synci_loop): Likewise for locals "label",
5574 "end_label".
5575 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5576 rtx_insn *.
5577 (mips16e_collect_argument_saves): Likewise for locals "insn",
5578 "next".
5579 (mips_find_gp_ref): Likewise for param of callback for "pred"
5580 param, and for local "insn".
5581 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5582 (mips_insn_has_flexible_gp_ref_p): Likewise.
5583 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5584 local "insn".
5585 (mips_epilogue_set_cfa): Likewise for local "insn".
5586 (mips_expand_epilogue): Likewise.
5587 (mips_adjust_insn_length): Likewise for param "insn".
5588 (mips_output_conditional_branch): Likewise.
5589 (mips_output_order_conditional_branch): Likewise.
5590 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5591 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5592 "falu2_turn_enabled_insn".
5593 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5594 "done_label" from rtx to rtx_code_label *.
5595 (struct mips16_constant): Likewise for field "label".
5596 (mips16_add_constant): Likewise for return type.
5597 (mips16_emit_constants_1): Strengthen return type and param "insn"
5598 from rtx to rtx_insn *.
5599 (mips16_emit_constants): Likewise for param "insn".
5600 (mips16_insn_length): Likewise.
5601 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5602 to rtx_code_label *.
5603 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5604 from rtx to rtx_insn *.
5605 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5606 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5607 (r10k_simplify_address): Strengthen param "insn" and local
5608 "def_insn" from rtx to rtx_insn *.
5609 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5610 rtx_insn *.
5611 (r10k_needs_protection_p_1): Update target type of cast of data
5612 from to rtx to rtx_insn *.
5613 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5614 rtx * to rtx_insn **.
5615 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5616 rtx_insn *.
5617 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5618 (mips_call_expr_from_insn): Likewise for param "insn".
5619 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5620 (mips_find_pic_call_symbol): Likewise for param "insn".
5621 (mips_annotate_pic_calls): Likewise for local "insn".
5622 (mips_sim_insn): Likewise for this variable.
5623 (struct mips_sim): Likewise for field "insn" within elements of
5624 last_set array.
5625 (mips_sim_wait_reg): Likewise for param "insn".
5626 (mips_sim_wait_regs): Likewise.
5627 (mips_sim_wait_units): Likewise.
5628 (mips_sim_wait_insn): Likewise.
5629 (mips_sim_issue_insn): Likewise.
5630 (mips_sim_finish_insn): Likewise.
5631 (mips_seq_time): Likewise for param "seq" and local "insn".
5632 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5633 locals "first", "second".
5634 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5635 "last", "last2", "next".
5636 (mips_avoid_hazard): Likewise for params "after", "insn".
5637 (mips_reorg_process_insns): Likewise for locals "insn",
5638 "last_insn", "subinsn", "next_insn".
5639 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5640 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5641 "jump_sequence".
5642 (mips_output_mi_thunk): Likewise for local "insn".
5643 (mips_final_prescan_insn): Likewise for param "insn".
5644
5645 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5646
5647 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5648 Strengthen return type and local "insns" from rtx to rtx_insn *.
5649 (microblaze_legitimize_tls_address): Likewise for local "insns".
5650 (microblaze_block_move_loop): Strengthen local "label" from rtx
5651 to rtx_code_label *.
5652 (microblaze_expand_prologue): Strengthen two locals named "insn"
5653 from rtx to rtx_insn *.
5654 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5655 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5656 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5657 to rtx_code_label *.
5658
5659 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5660
5661 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5662 param from rtx to rtx_insn *.
5663 (mep_reuse_lo): Likewise for third param.
5664 (mep_use_post_modify_p): Likewise for first param.
5665 (mep_core_address_length): Likewise.
5666 (mep_cop_address_length): Likewise.
5667 (mep_final_prescan_insn): Likewise.
5668 (mep_store_data_bypass_p): Likewise for both params.
5669 (mep_mul_hilo_bypass_p): Likewise.
5670 (mep_ipipe_ldc_p): Likewise for param.
5671
5672 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5673 (mep_rewrite_mult): Likewise.
5674 (mep_rewrite_mulsi3): Likewise.
5675 (mep_rewrite_maddsi3): Likewise.
5676 (mep_reuse_lo_p_1): Likewise.
5677 (mep_reuse_lo_p): Likewise.
5678 (mep_frame_expr): Likewise.
5679 (mep_make_parallel): Likewise for both params.
5680 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5681 local "insn".
5682 (mep_use_post_modify_p): Likewise for param "insn".
5683 (mep_core_address_length): Likewise.
5684 (mep_cop_address_length): Likewise.
5685 (mep_reg_set_in_function): Likewise for local "insn".
5686 (mep_asm_without_operands_p): Likewise.
5687 (F): Likewise for return type and param "x".
5688 (add_constant): Likewise for local "insn".
5689 (maybe_dead_move): Likewise for return type and local "insn".
5690 (mep_expand_prologue): Likewise for local "insn".
5691 (mep_final_prescan_insn): Likewise for param "insn".
5692 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5693 "next", "follow", "x".
5694 (mep_insert_repeat_label_last): Likewise for return type, param
5695 "last_insn", and locals "next", "prev". Strengthen param "label"
5696 from rtx to rtx_code_label *.
5697 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5698 rtx_insn *.
5699 (struct mep_doloop_end): Likewise for fields "insn" and
5700 "fallthrough".
5701 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5702 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5703 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5704 rtx_insn *.
5705 (mep_invert_branch): Likewise for params "insn" and "after".
5706 (mep_reorg_erepeat): Likewise for param "insns" and locals
5707 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5708 "l" from rtx to rtx_code_label *.
5709 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5710 from rtx to rtx_insn *.
5711 (mep_reorg_addcombine): Likewise for param "insns" and locals
5712 "i", "n".
5713 (add_sp_insn_p): Likewise for param "insn".
5714 (mep_reorg_noframe): Likewise for param "insns" and locals
5715 "start_frame_insn", "end_frame_insn", "next".
5716 (mep_reorg): Likewise for local "insns".
5717 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5718 cast.
5719 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5720 (mep_mul_hilo_bypass_p): Likewise.
5721 (mep_ipipe_ldc_p): Likewise for param "insn".
5722 (mep_make_bundle): Likewise for return type, param "cop" and local
5723 "insn", splitting out the latter into a new local "seq" for when it
5724 is a SEQUENCE rather than an insn.
5725 (core_insn_p): Likewise for param "insn".
5726 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
5727 "last", "first", "note", "prev", "core_insn".
5728
5729 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5730
5731 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
5732 rtx to rtx_insn *.
5733 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
5734 (m68k_final_prescan_insn): Likewise for first param.
5735
5736 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
5737 (m68k_set_frame_related): Likewise for param "insn".
5738 (output_btst): Likewise for param "insn".
5739 (m68k_final_prescan_insn): Likewise.
5740 (m68k_move_to_reg): Likewise for local "insn".
5741 (m68k_call_tls_get_addr): Likewise for local "insns".
5742 (m68k_call_m68k_read_tp): Likewise.
5743 (strict_low_part_peephole_ok): Likewise for param "first_insn".
5744 (m68k_output_mi_thunk): Likewise for local "insn".
5745
5746 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5747
5748 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
5749 first param from rtx to rtx_insn *.
5750 (iq2000_adjust_insn_length): Likewise.
5751 (iq2000_output_conditional_branch): Likewise.
5752 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
5753 "insn" and local "nop_insn".
5754 (iq2000_annotate_frame_insn): Likewise for param "insn".
5755 (iq2000_expand_prologue): Likewise for both locals "insn".
5756 (iq2000_adjust_insn_length): Likewise for param "insn".
5757 (iq2000_output_conditional_branch): Likewise.
5758
5759 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5760
5761 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
5762 "insns" from rtx to rtx_insn *.
5763 (ia64_emit_cond_move): Likewise for locals "insn", "first".
5764 (struct spill_fill_data): Likewise for field "init_after" and for
5765 elements of array field "prev_insn".
5766 (spill_restore_mem): Likewise for locals "insn", "first".
5767 (do_spill): Likewise for local "insn".
5768 (do_restore): Likewise.
5769 (ia64_expand_prologue): Likewise.
5770 (ia64_expand_epilogue): Likewise.
5771 (emit_insn_group_barriers): Likewise for locals "insn",
5772 "last_label".
5773 (emit_all_insn_group_barriers): Likewise for locals "insn",
5774 "last".
5775 (dfa_stop_insn): Likewise for this global.
5776 (dfa_pre_cycle_insn): Likewise.
5777 (ia64_nop): Likewise.
5778 (final_emit_insn_group_barriers): Likewise for locals "insn",
5779 "last".
5780 (emit_predicate_relation_info): Likewise for locals "head", "n",
5781 "insn", "b", "a".
5782 (ia64_reorg): Likewise for local "insn".
5783 (ia64_output_mi_thunk): Likewise.
5784 (expand_vec_perm_interleave_2): Likewise for local "seq".
5785
5786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5787
5788 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
5789 param 1 "insn" from rtx to rtx_insn *.
5790 (ix86_use_lea_for_mov): Likewise.
5791 (ix86_avoid_lea_for_addr): Likewise.
5792 (ix86_split_lea_for_addr): Likewise.
5793 (ix86_lea_for_add_ok): Likewise.
5794 (ix86_output_call_insn): Likewise.
5795
5796 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
5797 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
5798 (ix86_output_function_epilogue): Likewise for locals "insn",
5799 "deleted_debug_label".
5800 (legitimize_tls_address): Likewise for local "insn".
5801 (get_some_local_dynamic_name): Likewise.
5802 (increase_distance): Likewise for params "prev", "next".
5803 (distance_non_agu_define_in_bb): Likewise for params "insn",
5804 "start" and locals "prev", "next".
5805 (distance_non_agu_define): Likewise for param "insn".
5806 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
5807 locals "next", "prev".
5808 (distance_agu_use): Likewise for param "insn".
5809 (ix86_lea_outperforms): Likewise.
5810 (ix86_ok_to_clobber_flags): Likewise.
5811 (ix86_avoid_lea_for_add): Likewise.
5812 (ix86_use_lea_for_mov): Likewise.
5813 (ix86_avoid_lea_for_addr): Likewise.
5814 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
5815 (ix86_split_lea_for_addr): Likewise for param "insn".
5816 (ix86_lea_for_add_ok): Likewise for param "insn".
5817 (ix86_expand_carry_flag_compare): Likewise for local
5818 "compare_seq".
5819 (ix86_expand_int_movcc): Likewise.
5820 (ix86_output_call_insn): Likewise for param "insn".
5821 (ix86_output_call_insn): Likewise for local "i".
5822 (x86_output_mi_thunk): Introduce local "insn", using it in place
5823 of "tmp" when dealing with insns.
5824 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
5825 "start".
5826 (ix86_pad_returns): Likewise for locals "ret", "prev".
5827 (ix86_count_insn_bb): Likewise for local "insn".
5828 (ix86_pad_short_function): Likewise for locals "ret", "insn".
5829 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
5830 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
5831 (expand_vec_perm_interleave2): Likewise for local "seq".
5832 (expand_vec_perm_vperm2f128_vblend): Likewise.
5833 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
5834 call to for_each_rtx with for_each_rtx_in_insn.
5835
5836 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5837
5838 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
5839 "label" from rtx to rtx_code_label *.
5840 (ix86_expand_prologue): Likewise.
5841 (ix86_expand_split_stack_prologue): Likewise for locals "label",
5842 "varargs_label".
5843 (ix86_split_idivmod): Likewise for locals "end_label" and
5844 "qimode_label".
5845 (ix86_expand_branch): Likewise for local "label2".
5846 (ix86_expand_aligntest): Likewise for return type and local "label".
5847 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
5848 "top_label".
5849 (expand_movmem_epilogue): Likewise for the various locals named
5850 "label".
5851 (expand_setmem_epilogue): Likewise.
5852 (expand_small_movmem_or_setmem): Likewise for local "label".
5853 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5854 Strengthen param "done_label" from rtx * to rtx_code_label **.
5855 Strengthen locals "loop_label" and "label" from rtx to
5856 rtx_code_label *.
5857 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5858 Likewise for locals "loop_label", "label".
5859 (ix86_expand_set_or_movmem): Likewise for locals "label",
5860 "jump_around_label", "hot_label".
5861 (ix86_expand_strlensi_unroll_1): Likewise for locals
5862 "align_2_label", align_3_label", "align_4_label", "end_0_label",
5863 "end_2_label".
5864 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
5865 (void ix86_emit_i387_log1p): Likewise for locals "label1",
5866 "label2", "jump_label".
5867 (ix86_expand_sse_compare_and_jump): Likewise for return type and
5868 local "label".
5869 (ix86_expand_lfloorceil): Likewise for local "label".
5870 (ix86_expand_rint): Likewise.
5871 (ix86_expand_floorceildf_32): Likewise.
5872 (ix86_expand_floorceil): Likewise.
5873 (ix86_expand_rounddf_32): Likewise.
5874 (ix86_expand_trunc): Likewise.
5875 (ix86_expand_truncdf_32): Likewise.
5876 (ix86_expand_round): Likewise.
5877
5878 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5879
5880 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
5881 first param from rtx to rtx_insn *.
5882 (h8300_insn_length_from_table): Likewise.
5883 * config/h8300/h8300.c (F): Likewise for return type and param
5884 "x".
5885 (Fpa): Add a checked cast to rtx_insn *.
5886 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
5887 rtx_insn *.
5888 (final_prescan_insn): Likewise for param "insn".
5889 (h8300_binary_length): Likewise.
5890 (h8300_insn_length_from_table): Likewise.
5891
5892 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5893
5894 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
5895 Strengthen first param "insn" from rtx to rtx_insn *.
5896
5897 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
5898 Likewise.
5899 (frame_insn): Likewise for return type. Introduce local "insn"
5900 for use in place of local "x" for use as an rtx_insn *.
5901 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
5902 (epiphany_expand_prologue): Likewise for local "insn".
5903 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
5904 * config/epiphany/resolve-sw-modes.c
5905 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
5906 "seq".
5907
5908 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5909
5910 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
5911 param from rtx to rtx_insn *.
5912 (c6x_final_prescan_insn): Likewise for first param.
5913
5914 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
5915 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
5916 (c6x_expand_compare): Strengthen local "insns" from rtx to
5917 rtx_insn *.
5918 (c6x_get_unit_specifier): Likewise for param "insn".
5919 (c6x_print_unit_specifier_field): Likewise.
5920 (c6x_final_prescan_insn): Likewise.
5921 (emit_add_sp_const): Likewise for local "insn".
5922 (c6x_expand_prologue): Likewise.
5923
5924 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5925
5926 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
5927 param 1 from rtx to rtx_insn *.
5928 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
5929 the various locals named "insn".
5930 (expand_epilogue_reg_restore): Likewise.
5931 (frame_related_constant_load): Likewise.
5932 (add_to_reg): Likewise.
5933 (emit_link_insn): Likewise.
5934 (do_link): Likewise.
5935 (expand_interrupt_handler_prologue): Likewise.
5936 (branch_dest): Likewise for param "branch".
5937 (asm_conditional_branch): Likewise for param "insn".
5938 (gen_one_bundle): Likewise for elements of param "slot" and local
5939 "t".
5940 (bfin_gen_bundles): Likewise for locals "insn", "next" and
5941 elements of local "slot".
5942 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5943 "queue", "next_queue", "prev".
5944 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
5945 (add_sched_insns_for_speculation): Likewise for local "insn".
5946
5947 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5948
5949 * config/avr/avr-protos.h (output_movqi): Strengthen first param
5950 from rtx to rtx_insn *.
5951 (output_movhi): Likewise.
5952 (output_movsisf): Likewise.
5953 (avr_out_tstsi): Likewise.
5954 (avr_out_tsthi): Likewise.
5955 (avr_out_tstpsi): Likewise.
5956 (avr_out_compare): Likewise.
5957 (avr_out_compare64): Likewise.
5958 (avr_out_movpsi): Likewise.
5959 (ashlqi3_out): Likewise.
5960 (ashlhi3_out): Likewise.
5961 (ashlsi3_out): Likewise.
5962 (ashrqi3_out): Likewise.
5963 (ashrhi3_out): Likewise.
5964 (ashrsi3_out): Likewise.
5965 (lshrqi3_out): Likewise.
5966 (lshrhi3_out): Likewise.
5967 (lshrsi3_out): Likewise.
5968 (avr_out_ashlpsi3): Likewise.
5969 (avr_out_ashrpsi3): Likewise.
5970 (avr_out_lshrpsi3): Likewise.
5971 (avr_out_fract): Likewise.
5972 (avr_out_sbxx_branch): Likewise.
5973 (avr_out_round): Likewise.
5974 (avr_out_xload): Likewise.
5975 (avr_out_movmem): Likewise.
5976 (adjust_insn_length): Likewise.
5977 (avr_out_lpm): Likewise.
5978 (reg_unused_after): Likewise.
5979 (_reg_unused_after): Likewise.
5980 (avr_jump_mode): Likewise for second param.
5981 (jump_over_one_insn): Likewise for first param.
5982 (avr_final_prescan_insn): Likewise.
5983 (out_shift_with_cnt): Likewise for second param.
5984
5985 * config/avr/avr.c (get_sequence_length): Likewise for param
5986 "insns" and local "insn".
5987 (emit_push_byte): Likewise for local "insn".
5988 (emit_push_sfr): Likewise.
5989 (avr_prologue_setup_frame): Likewise for locals "insn",
5990 "fp_plus_insns", "sp_plus_insns".
5991 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
5992 "sp_plus_insns".
5993 (avr_jump_mode): Likewise for param "insn".
5994 (avr_final_prescan_insn): Likewise.
5995 (avr_find_unused_d_reg): Likewise.
5996 (avr_out_lpm_no_lpmx): Likewise.
5997 (avr_out_lpm): Likewise.
5998 (avr_out_xload): Likewise.
5999 (output_movqi): Likewise.
6000 (output_movhi): Likewise.
6001 (out_movqi_r_mr): Likewise.
6002 (out_movhi_r_mr): Likewise.
6003 (out_movsi_r_mr): Likewise.
6004 (out_movsi_mr_r): Likewise.
6005 (output_movsisf): Likewise.
6006 (avr_out_load_psi): Likewise.
6007 (avr_out_store_psi): Likewise.
6008 (avr_out_movpsi): Likewise.
6009 (out_movqi_mr_r): Likewise.
6010 (avr_out_movhi_mr_r_xmega): Likewise.
6011 (out_movhi_mr_r): Likewise.
6012 (compare_condition): Likewise for param "insn" and local "next".
6013 (compare_sign_p): Likewise for param "insn".
6014 (compare_diff_p): Likewise.
6015 (compare_eq_p): Likewise.
6016 (avr_out_compare): Likewise.
6017 (avr_out_compare64): Likewise.
6018 (avr_out_tsthi): Likewise.
6019 (avr_out_tstpsi): Likewise.
6020 (avr_out_tstsi): Likewise.
6021 (out_shift_with_cnt): Likewise.
6022 (ashlqi3_out): Likewise.
6023 (ashlhi3_out): Likewise.
6024 (avr_out_ashlpsi3): Likewise.
6025 (ashlsi3_out): Likewise.
6026 (ashrqi3_out): Likewise.
6027 (ashrhi3_out): Likewise.
6028 (avr_out_ashrpsi3): Likewise.
6029 (ashrsi3_out): Likewise.
6030 (lshrqi3_out): Likewise.
6031 (lshrhi3_out): Likewise.
6032 (avr_out_lshrpsi3): Likewise.
6033 (lshrsi3_out): Likewise.
6034 (avr_out_fract): Likewise.
6035 (avr_out_round): Likewise.
6036 (avr_adjust_insn_length): Likewise.
6037 (reg_unused_after): Likewise.
6038 (_reg_unused_after): Likewise.
6039 (avr_compare_pattern): Likewise.
6040 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6041 and locals "branch1", "branch2", "insn2", "jump".
6042 (avr_reorg): Likewise for local "insn".
6043 (avr_2word_insn_p): Likewise for param "insn".
6044 (jump_over_one_insn_p): Likewise.
6045 (avr_out_sbxx_branch): Likewise.
6046 (avr_out_movmem): Likewise.
6047
6048 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6049
6050 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6051 param from rtx to rtx_insn *.
6052 (thumb1_final_prescan_insn): Likewise.
6053 (thumb2_final_prescan_insn): Likewise.
6054
6055 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6056 rtx to rtx_insn *.
6057 (struct minipool_node): Likewise for field "insn".
6058 (dump_minipool): Likewise for param "scan".
6059 (create_fix_barrier): Likewise for local "from". Strengthen local
6060 "label" from rtx to rtx_code_label *.
6061 (push_minipool_barrier): Strengthen param "insn" from rtx to
6062 rtx_insn *.
6063 (push_minipool_fix): Likewise.
6064 (note_invalid_constants): Likewise.
6065 (thumb2_reorg): Likewise for local "insn".
6066 (arm_reorg): Likewise.
6067 (thumb2_final_prescan_insn): Likewise for param
6068 "insn" and local "first_insn".
6069 (arm_final_prescan_insn): Likewise for param "insn" and locals
6070 "start_insn", "this_insn".
6071 (arm_debugger_arg_offset): Likewise for param "insn".
6072 (thumb1_emit_multi_reg_push): Likewise for return type and local
6073 "insn".
6074 (thumb1_final_prescan_insn): Likewise for param "insn".
6075 (thumb_far_jump_used_p): Likewise for local "insn".
6076 (thumb1_expand_prologue): Likewise.
6077 (arm_expand_epilogue_apcs_frame): Likewise.
6078 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6079 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6080 from rtx to rtx_code_label *.
6081 (arm_split_atomic_op): Likewise for local "label".
6082 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6083
6084 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6085
6086 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6087 first param from rtx to rtx_insn *.
6088 (arc_verify_short): Likewise.
6089 (arc_short_long): Likewise.
6090 (arc_need_delay): Likewise.
6091
6092 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6093 "target_insn".
6094 (arc_ccfsm_advance): Likewise for param "insn" and locals
6095 "start_insn", "this_insn".
6096 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6097 (arc_ccfsm_post_advance): Likewise for param "insn".
6098 (arc_next_active_insn): Likewise for return type and param "insn".
6099 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6100 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6101 (output_short_suffix): Likewise for local "insn".
6102 (arc_final_prescan_insn): Likewise for param "insn". Remove
6103 now-redundant checked cast.
6104 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6105 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6106 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6107 for use where lc_set became an insn.
6108 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6109 rtx to rtx_insn *.
6110 (arc_get_insn_variants): Likewise for local "prev".
6111 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6112 "next".
6113 (arc_predicate_delay_insns): Likewise for local "insn".
6114 (arc_pad_return): Likewise for local "prev". For now, add a
6115 checked cast when extracting the insn from "final_sequence".
6116 (arc_short_long): Likewise for param "insn".
6117 (arc_need_delay): Likewise for param "insn" and local "next".
6118 (arc_label_align): Likewise for locals "prev", "next".
6119
6120 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6121
6122 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6123 "insn" from rtx to rtx_insn *.
6124 (alpha_gp_save_rtx): Likewise for local "seq".
6125 (alpha_instantiate_decls): Likewise for local "top".
6126 (get_some_local_dynamic_name): Likewise for local "insn".
6127 (alpha_does_function_need_gp): Likewise.
6128 (set_frame_related_p): Likewise for return type and for locals
6129 "seq" and "insn".
6130 (emit_frame_store_1): Likewise for local "insn".
6131 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6132 (alpha_end_function): Likewise for local "insn".
6133 (alpha_output_mi_thunk_osf): Likewise.
6134 (alphaev4_insn_pipe): Likewise for param "insn".
6135 (alphaev5_insn_pipe): Likewise.
6136 (alphaev4_next_group): Likewise for return type and param 1
6137 "insn".
6138 (alphaev5_next_group): Likewise.
6139 (alpha_align_insns_1): Likewise for return type and param 1 of
6140 callback param "next_group", and for locals "i", "next", "prev",
6141 "where", "where2", "insn".
6142
6143 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6144
6145 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6146 rather than modifying the stmt.
6147
6148 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6149
6150 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6151 cgraph_state conversion.
6152
6153 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6154
6155 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6156 Strengthen local "insns" from rtx to rtx_insn *.
6157 (aarch64_set_frame_expr): Likewise for local "insn".
6158 (aarch64_save_or_restore_fprs): Likewise.
6159 (aarch64_save_or_restore_callee_save_registers): Likewise.
6160 (aarch64_expand_prologue): Likewise.
6161 (aarch64_expand_epilogue): Likewise.
6162 (aarch64_output_mi_thunk): Likewise.
6163 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6164 "label2" from rtx to rtx_code_label *.
6165 (aarch64_split_atomic_op): Likewise for local "label".
6166
6167 2014-08-25 Martin Liska <mliska@suse.cz>
6168
6169 * cgraph.h (symtab_node):
6170 (bool needed_p (void)): created from decide_is_symbol_needed
6171 (bool referred_to_p (void)): created from referred_to_p
6172 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6173 * cgraph.h (cgraph_node):
6174 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6175 (void expand (void)): created from expand_function
6176 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6177 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6178 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6179 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6180 * cgraph.h (varpool_node):
6181 (static void add (tree decl): created from varpool_add_new_variable
6182 * cgraph.h (cgraph_edge):
6183 void remove (void);
6184 (void remove_caller (void)): created from cgraph_edge_remove_caller
6185 (void remove_callee (void)): created from cgraph_edge_remove_callee
6186 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6187 created from cgraph_set_call_stmt
6188 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6189 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6190 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6191 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6192 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6193 created from cgraph_speculative_call_info
6194 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6195 int freq_scale, bool update_original)): created from cgraph_clone_edge
6196 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6197 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6198 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6199 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6200 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6201 (static void rebuild_references (void)): created from cgraph_rebuild_references
6202 * cgraph.h (symbol_table):
6203 (create_reference): renamed from add_reference
6204 (maybe_create_reference): renamed from maybe_add_reference
6205 (void register_symbol (symtab_node *node)): new function
6206 (void clear_asm_symbols (void)): new function
6207 (void unregister (symtab_node *node)): new function
6208 (void release_symbol (cgraph_node *node, int uid)): new function
6209 (cgraph_node * allocate_cgraph_symbol (void)): new function
6210 (void initialize (void)): created from cgraph_init
6211 (symtab_node *first_symbol (void)):new function
6212 (asm_node *first_asm_symbol (void)):new function
6213 (symtab_node *first_defined_symbol (void)):new function
6214 (varpool_node *first_variable (void)):new function
6215 (varpool_node *next_variable (varpool_node *node)):new function
6216 (varpool_node *first_static_initializer (void)):new function
6217 (varpool_node *next_static_initializer (varpool_node *node)):new function
6218 (varpool_node *first_defined_variable (void)):new function
6219 (varpool_node *next_defined_variable (varpool_node *node)):new function
6220 (cgraph_node *first_defined_function (void)):new function
6221 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6222 (cgraph_node *first_function (void)):new function
6223 (cgraph_node *next_function (cgraph_node *node)):new function
6224 (cgraph_node *first_function_with_gimple_body (void)):new function
6225 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6226 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6227 created from symtab_remove_unreachable_nodes
6228 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6229 (void process_new_functions (void)): created from cgraph_process_new_functions
6230 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6231 (bool output_variables (void)): created from varpool_node::output_variables
6232 (void output_asm_statements (void)): created from output_asm_statements
6233 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6234 (void compile (void)): created from compile
6235 (void output_weakrefs (void)): created from output_weakrefs
6236 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6237 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6238 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6239 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6240 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6241 created from cgraph_next_function_with_gimple_body
6242 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6243 created from cgraph_remove_edge_removal_hook
6244 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6245 created from cgraph_add_node_removal_hook
6246 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6247 created from cgraph_remove_node_removal_hook
6248 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6249 created from varpool_add_node_removal_hook
6250 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6251 created from varpool_remove_node_removal_hook
6252 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6253 created from cgraph_add_function_insertion_hook
6254 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6255 created from cgraph_remove_function_insertion_hook
6256 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6257 created from varpool_add_variable_insertion_hook
6258 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6259 created from varpool_remove_variable_insertion_hook
6260 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6261 created from cgraph_add_edge_duplication_hook
6262 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6263 created from cgraph_remove_edge_duplication_hook
6264 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6265 created from cgraph_add_node_duplication_hook
6266 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6267 created from cgraph_remove_node_duplication_hook
6268 (void call_edge_removal_hooks (cgraph_edge *e)):
6269 created from cgraph_call_edge_removal_hooks
6270 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6271 created from call_function_insertion_hooks
6272 (void call_cgraph_removal_hooks (cgraph_node *node)):
6273 created from cgraph_call_node_removal_hooks
6274 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6275 created from cgraph_node::call_duplication_hooks
6276 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6277 created from cgraph_call_edge_duplication_hooks
6278 (void call_varpool_removal_hooks (varpool_node *node)):
6279 created from varpool_call_node_removal_hooks
6280 (void call_varpool_insertion_hooks (varpool_node *node)):
6281 created from varpool_call_variable_insertion_hooks
6282 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6283 created from insert_to_assembler_name_hash
6284 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6285 created from unlink_from_assembler_name_hash
6286 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6287 created from symtab_prevail_in_asm_name_hash
6288 (void symtab_initialize_asm_name_hash (void)):
6289 created from symtab_initialize_asm_name_hash
6290 (void change_decl_assembler_name (tree decl, tree name)):
6291 created from change_decl_assembler_name
6292 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6293 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6294 created from decl_assembler_name_hash
6295 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6296 created from decl_assembler_name_equal
6297 (static hashval_t hash_node_by_assembler_name (const void *p)):
6298 created from hash_node_by_assembler_name
6299 (static int eq_assembler_name (const void *p1, const void *p2)):
6300 created from eq_assembler_name
6301
6302 2014-08-25 Marek Polacek <polacek@redhat.com>
6303
6304 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6305
6306 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6307
6308 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6309 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6310 SWI1248_AVX512BW mode iterator.
6311
6312 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6313
6314 PR target/62111
6315 * config/sh/predicates.md (general_extend_operand): Disable
6316 TRUNCATE before reload completes.
6317
6318 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6319
6320 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6321
6322 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6323
6324 PR target/61996
6325 * config/sh/sh.opt (musermode): Allow negative form.
6326 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6327 targets that don't support it.
6328 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6329 Document -mno-usermode option.
6330
6331 2014-08-24 Kito Cheng <kito@0xlab.org>
6332
6333 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6334 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6335 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6336 * doc/tm.texi: Regenerate.
6337
6338 2014-08-24 Kito Cheng <kito@0xlab.org>
6339
6340 * ira.c: Fix typo in comment.
6341
6342 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6343
6344 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6345 Deprecate c++1y. Change language to reflect greater confidence in C++14.
6346
6347 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
6348
6349 PR target/62038
6350 * config/pa/pa.c (pa_output_function_epilogue): Don't set
6351 last_address when the current function is a thunk.
6352 (pa_asm_output_mi_thunk): When we don't have named sections or they
6353 are not being used, check that thunk can reach the stub table with a
6354 short branch.
6355
6356 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6357
6358 * web.c (union_match_dups): Strengthen param "insn" from rtx to
6359 rtx_insn *.
6360 (pass_web::execute): Likewise for local "insn".
6361
6362 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6363
6364 * var-tracking.c (struct micro_operation_def): Strengthen field
6365 "insn" from rtx to rtx_insn *.
6366 (struct emit_note_data_def): Likewise.
6367 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6368 (vt_stack_adjustments): Likewise for local "insn".
6369 (adjust_insn): Likewise for param "insn".
6370 (val_store): Likewise.
6371 (val_resolve): Likewise.
6372 (struct count_use_info): Likewise for field "insn".
6373 (log_op_type): Likewise for param "insn".
6374 (reverse_op): Likewise.
6375 (prepare_call_arguments): Likewise.
6376 (add_with_sets): The initial param takes an insn, but we can't
6377 yet strengthen it from rtx to rtx_insn * since it's used as a
6378 cselib_record_sets_hook callback. For now rename initial param
6379 from "insn" to "uncast_insn", and introduce a local "insn" of
6380 the stronger rtx_insn * type, with a checked cast.
6381 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6382 rtx_insn *.
6383 (emit_note_insn_var_location): Likewise.
6384 (emit_notes_for_changes): Likewise.
6385 (emit_notes_for_differences): Likewise.
6386 (next_non_note_insn_var_location): Likewise for return type and
6387 for param "insn".
6388 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6389 (vt_initialize): Likewise for local "insn".
6390 (delete_debug_insns): Likewise for locals "insn" and "next".
6391
6392 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6393
6394 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6395 rtx_insn *.
6396 (mark_constant_pool): Likewise for local "insn".
6397
6398 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6399
6400 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6401 rtx to rtx_insn *.
6402 (dead_debug_promote_uses): Likewise.
6403 (dead_debug_insert_temp): Likewise.
6404
6405 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6406
6407 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6408 from const_rtx to const rtx_insn *.
6409 (store_killed_after): Likewise. Strengthen locals "last", "act"
6410 from rtx to rtx_insn *.
6411 (store_killed_before): Strengthen param "insn" from const_rtx to
6412 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6413 (find_moveable_store): Strengthen param "insn" from rtx to
6414 rtx_insn *.
6415 (compute_store_table): Likewise for local "insn".
6416 (insert_insn_start_basic_block): Likewise for param "insn" and
6417 locals "prev", "before", "insn".
6418 (insert_store): For now, add a checked cast to rtx_insn * on the
6419 result of gen_move_insn.
6420 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6421 to rtx_insn *.
6422 (replace_store_insn): Likewise. For now, add a checked cast to
6423 rtx_insn * on the result of gen_move_insn.
6424
6425 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6426
6427 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6428 rtx_insn *.
6429 (expand_sjlj_dispatch_table): Likewise.
6430
6431 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6432
6433 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6434 "insn" from rtx to rtx_insn *.
6435
6436 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6437
6438 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6439 "insn" from rtx to rtx_insn *.
6440 (dup_block_and_redirect): Likewise for param 3 "before".
6441
6442 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6443 from rtx to rtx_insn *.
6444 (move_insn_for_shrink_wrap): Likewise.
6445 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6446 (dup_block_and_redirect): Likewise for param "before" and local
6447 "insn".
6448 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6449 "end".
6450 (convert_to_simple_return): Likewise for local "start".
6451
6452 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6453 Strengthen local "insn" from rtx to rtx_insn *, for use when
6454 invoking requires_stack_frame_p.
6455
6456 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6457
6458 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6459 rtx_insn *.
6460 (speculate_expr): Likewise for locals "orig_insn_rtx",
6461 "spec_insn_rtx".
6462 (eq_transformed_insns): Likewise for locals "i1", "i2".
6463 (check_for_new_jump): Likewise for return type and local "end".
6464 (find_new_jump): Likewise for return type and local "jump".
6465 (sel_split_edge): Likewise for local "jump".
6466 (sel_create_recovery_block): Likewise.
6467 (sel_redirect_edge_and_branch_force): Likewise.
6468 (sel_redirect_edge_and_branch): Likewise.
6469
6470 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6471
6472 * sel-sched.c (substitute_reg_in_expr): Strengthen local
6473 "new_insn" from rtx to rtx_insn *.
6474 (create_insn_rtx_with_rhs): Likewise for return type and for local
6475 "insn_rtx".
6476 (create_insn_rtx_with_lhs): Likewise.
6477 (create_speculation_check): Likewise for local "insn_rtx".
6478 (implicit_clobber_conflict_p): Likewise for local "insn".
6479 (get_expr_cost): Likewise.
6480 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6481 (move_cond_jump): Likewise for locals "next", "prev", "link",
6482 "head", "from", "to".
6483
6484 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6485
6486 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6487 "next" from rtx to rtx_insn *.
6488 (find_conditional_protection): Likewise for local "next".
6489 (is_conditionally_protected): Likewise for local "insn1".
6490 (is_pfree): Likewise for locals "insn1", "insn2".
6491
6492 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6493
6494 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6495 from rtx to rtx_insn *.
6496
6497 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6498 locals "insn1", "insn2" from rtx to rtx_insn *.
6499 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6500 locals "insn", "prev", "last_jump", "next_tail".
6501 (schedule_ebb): Likewise for params "head", "tail".
6502 (schedule_ebbs): Likewise for locals "tail", "head".
6503
6504 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6505 to rtx_insn on "last_insn" in one of the invocations of
6506 schedule_ebb.
6507
6508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6509
6510 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6511 "elem", "insn" from rtx to rtx_insn *.
6512 (change_spec_dep_to_hard): Likewise.
6513 (get_back_and_forw_lists): Likewise for local "con".
6514 (sd_add_dep): Likewise for locals "elem", "insn".
6515 (sd_resolve_dep): Likewise for locals "pro", "con".
6516 (sd_unresolve_dep): Likewise.
6517 (sd_delete_dep): Likewise.
6518 (chain_to_prev_insn): Likewise for local "pro".
6519 (find_inc): Likewise for locals "pro", "con".
6520
6521 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6522
6523 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6524 to rtx_insn *.
6525 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6526 const rtx_insn *.
6527 (modified_between_p): Strengthen local "insn" from rtx to
6528 rtx_insn *.
6529 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6530 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6531 const rtx_insn *.
6532
6533 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6534
6535 * resource.c (next_insn_no_annul): Strengthen local "next" from
6536 rtx to rtx_insn *.
6537 (mark_referenced_resources): Likewise for local "insn".
6538
6539 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6540
6541 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6542 to rtx_insn *.
6543 (find_reloads): Likewise for param 1.
6544 (subst_reloads): Likewise for sole param.
6545 (find_equiv_reg): Likwise for param 2.
6546 (regno_clobbered_p): Likwise for param 2.
6547 (reload): Likewise for param 1.
6548
6549 * caller-save.c (save_call_clobbered_regs): Strengthen local
6550 "insn" from rtx to rtx_insn *.
6551 (insert_one_insn): Likewise for local "insn".
6552
6553 * reload.c (this_insn): Likewise for this global.
6554 (find_reloads): Likewise for param "insn".
6555 (find_reloads_toplev): Likewise.
6556 (find_reloads_address): Likewise.
6557 (subst_reg_equivs): Likewise.
6558 (update_auto_inc_notes): Likewise.
6559 (find_reloads_address_1): Likewise.
6560 (find_reloads_subreg_address): Likewise.
6561 (subst_reloads): Likewise.
6562 (find_equiv_reg): Likewise, also for local "p".
6563 (regno_clobbered_p): Likewise for param "insn".
6564
6565 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6566 array.
6567 (spill_reg_store): Likewise for the elements of this array.
6568 (remove_init_insns): Likewise for local "equiv_insn".
6569 (will_delete_init_insn_p): Likewise for param "insn".
6570 (reload): Likewise for param ""first" and local "insn".
6571 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6572 rtx_insn *.
6573 (calculate_elim_costs_all_insns): Likewise.
6574 (delete_caller_save_insns): Likewise.
6575 (spill_failure): Likewise for param "insn".
6576 (delete_dead_insn): Likewise.
6577 (set_label_offsets): Likewise.
6578 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6579 "prev_insn".
6580 (elimination_costs_in_insn): Likewise for param "insn".
6581 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6582 when referring to an insn.
6583 (set_initial_label_offsets): Likewise.
6584 (set_offsets_for_label): Strengthen param "insn" from rtx to
6585 rtx_insn *.
6586 (init_eliminable_invariants): Likewise for param "first" and local
6587 "insn".
6588 (fixup_eh_region_note): Likewise for param "insn".
6589 (reload_as_needed): Likewise for locals "prev", "insn",
6590 "old_next", "old_prev", "next".
6591 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6592 "last".
6593 (reload_inheritance_insn): Strengthen elements of this array from
6594 rtx to rtx_insn *.
6595 (failed_reload): Likewise for param "insn".
6596 (choose_reload_regs): Likewise for local "insn". Replace use of
6597 NULL_RTX with NULL when referring to an insn.
6598 (input_reload_insns): Strengthen elements of this array from rtx
6599 to rtx_insn *.
6600 (other_input_address_reload_insns): Likewise for this global.
6601 (other_input_reload_insns): Likewise for this global.
6602 (input_address_reload_insns): Likwise for the elements of this
6603 array.
6604 (inpaddr_address_reload_insns): Likwise for the elements of this
6605 array.
6606 (output_reload_insns): Likewise for the elements of this array.
6607 (output_address_reload_insns): Likewise for the elements of this
6608 array.
6609 (outaddr_address_reload_insns): Likewise for the elements of this
6610 array.
6611 (operand_reload_insns): Likewise for this global.
6612 (other_operand_reload_insns): Likewise for this global.
6613 (other_output_reload_insns): Likewise for the elements of this
6614 array.
6615 (new_spill_reg_store): Likewise for the elements of this
6616 array.
6617 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6618 Strengthen local "where" from rtx * to rtx_insn **.
6619 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6620 from rtx to rtx_insn *.
6621 (do_input_reload): Likewise for local "insn".
6622 (do_output_reload): Likewise for local "insn".
6623 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6624 (emit_insn_if_valid_for_reload): Likewise for return type and local
6625 "last". Add checked cast to rtx_insn when returning "insn" since
6626 this has been through emit_insn.
6627 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6628 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6629 returning "insn" since it's been through
6630 emit_insn_if_valid_for_reload at this point.
6631 (delete_output_reload): Strengthen param "insn" and locals
6632 "output_reload_insn", "i2" from rtx to rtx_insn *.
6633 (delete_address_reloads): Likewise for params "dead_insn",
6634 "current_insn" and locals "prev", "next".
6635 (delete_address_reloads_1): Likewise for params "dead_insn",
6636 "current_insn" and locals "prev", "i2".
6637 (inc_for_reload): Likewise for locals "last", "add_insn".
6638 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6639 rtx_insn *.
6640
6641 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6642 param of this duplicate of the prototype from reload.h
6643
6644 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6645
6646 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6647 rtx to rtx_insn *.
6648 (regstat_bb_compute_calls_crossed): Likewise.
6649
6650 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6651
6652 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6653 to rtx_insn *.
6654 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6655 with an insn.
6656 (regrename_analyze): Strengthen local "insn" from rtx to
6657 rtx_insn *.
6658 (scan_rtx_reg): Likewise for param "insn".
6659 (scan_rtx_address): Likewise.
6660 (scan_rtx): Likewise.
6661 (restore_operands): Likewise.
6662 (record_out_operands): Likewise.
6663 (build_def_use): Likewise for local "insn". Replace use of
6664 NULL_RTX with NULL when dealing with an insn.
6665
6666 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6667
6668 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6669 * reginfo.c (reg_scan): Likewise, also for local "insn".
6670 (reg_scan_mark_refs): Likewise for param "insn".
6671 (init_subregs_of_mode): Likewise for local "insn".
6672
6673 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6674
6675 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6676 "insn" from rtx to rtx_insn *.
6677 (replace_oldest_value_reg): Likewise for param "insn".
6678 (replace_oldest_value_addr): Likewise.
6679 (replace_oldest_value_mem): Likewise.
6680 (apply_debug_insn_changes): Likewise for local "last_insn".
6681 (copyprop_hardreg_forward_1): Likewise for local "insn".
6682
6683 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6684
6685 * reg-stack.c (next_flags_user): Strengthen return type and param
6686 "insn" from rtx to rtx_insn *.
6687 (straighten_stack): Likewise for param "insn".
6688 (check_asm_stack_operands): Likewise.
6689 (remove_regno_note): Likewise.
6690 (emit_pop_insn): Likewise for return type, param "insn", local
6691 "pop_insn".
6692 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6693 "limit" from rtx to rtx_insn *.
6694 (swap_to_top): Likewise for param "insn".
6695 (move_for_stack_reg): Likewise.
6696 (move_nan_for_stack_reg): Likewise.
6697 (swap_rtx_condition): Likewise.
6698 (compare_for_stack_reg): Likewise.
6699 (subst_all_stack_regs_in_debug_insn): Likewise.
6700 (subst_stack_regs_pat): Likewise, and local "insn2".
6701 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6702 rtx_insn *.
6703 (subst_stack_regs): Likewise.
6704 (change_stack): Likewise.
6705 (convert_regs_1): Likewise for locals "insn", "next".
6706
6707 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6708
6709 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6710 rtx_insn *.
6711 (combine_set_extension): Likewise for param "curr_insn".
6712 (transform_ifelse): Likewise for param "def_insn".
6713 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6714 from vec<rtx> * to vec<rtx_insn *> *.
6715 (is_cond_copy_insn): Likewise for param "insn".
6716 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6717 to vec<rtx_insn *>.
6718 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6719 local "def_insn" from rtx to rtx_insn *.
6720 (get_sub_rtx): Likewise for param "def_insn".
6721 (merge_def_and_ext): Likewise.
6722 (combine_reaching_defs): Likewise.
6723 (add_removable_extension): Likewise for param "insn".
6724 (find_removable_extensions): Likewise for local "insn".
6725 (find_and_remove_re): Likewise for locals "curr_insn" and
6726 "def_insn". Strengthen locals "reinsn_del_list" and
6727 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
6728
6729 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6730
6731 * recog.c (split_insn): Strengthen param "insn" and locals
6732 "first", "last" from rtx to rtx_insn *.
6733 (split_all_insns): Likewise for locals "insn", "next".
6734 (split_all_insns_noflow): Likewise.
6735
6736 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6737
6738 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
6739 const rtx_insn *.
6740 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6741 (debug_rtx_find): Likewise for param 1 "x".
6742
6743 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
6744 const_rtx to const rtx_insn *. Likewise for local "insn".
6745 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6746 (debug_rtx_find): Likewise for param 1 "x".
6747 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
6748 from const_rtx to const rtx_insn * within the appropriate cases of
6749 the switch statement.
6750
6751 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
6752 Strengthen local "insns" from rtx to rtx_insn * since this is
6753 passed to a call to debug_rtx_list.
6754
6755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6756
6757 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
6758 to rtx_insn *.
6759
6760 * function.c (stack_protect_epilogue): Add checked cast to
6761 rtx_insn for now when invoking predict_insn_def.
6762
6763 * predict.c (predict_insn): Strengthen param "insn" from rtx to
6764 rtx_insn *.
6765 (predict_insn_def): Likewise.
6766 (rtl_predict_edge): Likewise for local "last_insn".
6767 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
6768 const rtx_insn *.
6769 (combine_predictions_for_insn): Strengthen param "insn" from rtx
6770 to rtx_insn *.
6771 (bb_estimate_probability_locally): Likewise for local "last_insn".
6772 (expensive_function_p): Likewise for local "insn".
6773
6774 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
6775 local "jmp", since this is used when invoking predict_insn_def.
6776
6777 2014-08-22 Marek Polacek <polacek@redhat.com>
6778
6779 PR c++/62199
6780 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
6781
6782 2014-08-22 Marek Polacek <polacek@redhat.com>
6783
6784 PR c/61271
6785 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
6786 a comparison in parens.
6787 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
6788 in parens.
6789
6790 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6791
6792 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
6793 rtx_insn *.
6794
6795 * cprop.c (fis_get_condition): Likewise.
6796
6797 * postreload.c (reload_cse_regs): Likewise for param "first".
6798 (reload_cse_simplify): Likewise for param "insn".
6799 (reload_cse_regs_1): Likewise for local "insn".
6800 (reload_cse_simplify_set): Likewise for param "insn".
6801 (reload_cse_simplify_operands): Likewise.
6802 (struct reg_use): Likewise for field "insn".
6803 (reload_combine_purge_insn_uses): Likewise for param "insn".
6804 (fixup_debug_insns): Likewise for params "from", "to" and local
6805 "insn".
6806 (try_replace_in_use): Likewise for local "use_insn".
6807 (reload_combine_recognize_const_pattern): Likewise for param
6808 "insn" and locals "add_moved_after_insn", "use_insn".
6809 (reload_combine_recognize_pattern): Likewise for param "insn" and
6810 local "prev".
6811 (reload_combine): Likewise for locals "insn", "prev".
6812 (reload_combine_note_use): Likewise for param "insn".
6813 (move2add_use_add2_insn): Likewise.
6814 (move2add_use_add3_insn): Likewise.
6815 (reload_cse_move2add): Likewise, also for local "next".
6816 (move2add_note_store): Likewise for local "insn".
6817
6818 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6819
6820 * postreload-gcse.c (struct occr): Strengthen field "insn" from
6821 rtx to rtx_insn *.
6822 (struct unoccr): Likewise.
6823 (struct modifies_mem): Likewise.
6824 (alloc_mem): Likewise for local "insn".
6825 (insert_expr_in_table): Likewise for param "insn".
6826 (dump_expr_hash_table_entry): Likewise for local "insn".
6827 (oprs_unchanged_p): Likewise for param "insn".
6828 (load_killed_in_block_p): Likewise for local "setter".
6829 (record_last_reg_set_info): Likewise for param "insn".
6830 (record_last_reg_set_info_regno): Likewise.
6831 (record_last_mem_set_info): Likewise.
6832 (record_last_set_info): Likewise for local "last_set_insn".
6833 (record_opr_changes): Likewise for param "insn".
6834 (hash_scan_set): Likewise.
6835 (compute_hash_table): Likewise for local "insn".
6836 (get_avail_load_store_reg): Likewise for param "insn".
6837 (eliminate_partially_redundant_load): Likewise, also for locals
6838 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
6839 RTX for insns.
6840 (eliminate_partially_redundant_loads): Likewise for local "insn".
6841
6842 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6843
6844 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
6845 rtx to rtx_insn *.
6846 (expand_binop): Likewise for locals "entry_last", "last", "insns"
6847 (expand_twoval_unop): Likewise for locals entry_last", "last".
6848 (expand_twoval_binop): Likewise.
6849 (expand_twoval_binop_libfunc): Likewise for local "insns".
6850 (widen_leading): Likewise for local "last".
6851 (expand_doubleword_clz): Likewise for local "seq". Strengthen
6852 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
6853 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
6854 (expand_parity): Likewise for locals "last" and "seq".
6855 (expand_ffs): Likewise for local "seq". Strengthen local
6856 "nonzero_label" from rtx to rtx_code_label *.
6857 (expand_absneg_bit): Strengthen local "insns" from rtx to
6858 rtx_insn *.
6859 (expand_unop_direct): Likewise for local "last".
6860 (expand_unop): Likewise for locals "last", "insns".
6861 (expand_abs_nojump): Likewise for local "last".
6862 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
6863 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
6864 rtx_insn *.
6865 (expand_copysign_absneg): Strengthen local "label" from rtx to
6866 rtx_code_label *.
6867 (expand_copysign_bit): Strengthen local "insns" from rtx to
6868 rtx_insn *.
6869 (struct no_conflict_data): Likewise for fields "first", "insn".
6870 (emit_libcall_block_1): Likewise for param "insns" and locals
6871 "next", "last", "insn".
6872 (emit_libcall_block): For now, add a checked cast to rtx_insn *
6873 on "insns" when invoking emit_libcall_block_1. Ultimately we
6874 want to strengthen insns itself.
6875 (prepare_cmp_insn): Strengthen local "last" from rtx to
6876 rtx_insn *.
6877 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
6878 (prepare_float_lib_cmp): Likewise for local "insns".
6879 (emit_conditional_move): Likewise for local "last".
6880 (emit_conditional_add): Likewise.
6881 (have_sub2_insn): Likewise for local "seq".
6882 (expand_float): Likewise for local "insns". Strengthen locals
6883 "label", "neglabel" from rtx to rtx_code_label *.
6884 (expand_fix): Likewise for locals "last", "insn", "insns" (to
6885 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
6886 (expand_fixed_convert): Likewise for local "insns" (to
6887 rtx_insn *).
6888 (expand_sfix_optab): Likewise for local "last".
6889 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
6890 to rtx_code_label *.
6891 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
6892 from rtx to rtx_insn *.
6893 (expand_atomic_fetch_op): Likewise for local "insn".
6894 (maybe_legitimize_operand_same_code): Likewise for local "last".
6895 (maybe_legitimize_operands): Likewise.
6896
6897 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6898
6899 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
6900 "insn" from rtx to rtx_insn *.
6901 (ps_rtl_insn): Likewise for return type.
6902 (doloop_register_get): Likewise for params "head", "tail" and
6903 locals "insn", "first_insn_not_to_check".
6904 (schedule_reg_move): Likewise for local "this_insn".
6905 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
6906 of gen_move_insn for now.
6907 (reset_sched_times): Strengthen local "insn" from rtx to
6908 rtx_insn *.
6909 (permute_partial_schedule): Likewise.
6910 (duplicate_insns_of_cycles): Likewise for local "u_insn".
6911 (dump_insn_location): Likewise for param "insn".
6912 (loop_canon_p): Likewise for local "insn".
6913 (sms_schedule): Likewise.
6914 (print_partial_schedule): Likewise.
6915 (ps_has_conflicts): Likewise.
6916
6917 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6918
6919 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
6920 "tailp" from rtx * to rtx_insn **.
6921
6922 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
6923 from rtx to rtx_insn *.
6924 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
6925 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
6926 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
6927 rtx to rtx_insn *.
6928 * modulo-sched.c (const_iteration_count): Strengthen return type
6929 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
6930 use of NULL_RTX with NULL when working with insns.
6931 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
6932 to rtx_insn *.
6933 (sms_schedule): Likewise.
6934 * sched-rgn.c (init_ready_list): Likewise, also for locals
6935 "src_head" and "src_next_tail".
6936 (compute_block_dependences): Likewise.
6937 (free_block_dependencies): Likewise.
6938 (debug_rgn_dependencies): Likewise.
6939 (free_rgn_deps): Likewise.
6940 (compute_priorities): Likewise.
6941 (schedule_region): Likewise.
6942 * sel-sched.c (find_ebb_boundaries): Likewise.
6943
6944 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
6945 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
6946
6947 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6948
6949 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
6950 from rtx to rtx_insn *.
6951 (new_seginfo): Likewise for param "insn".
6952 (create_pre_exit): Likewise for locals "last_insn",
6953 "before_return_copy", "return_copy".
6954 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
6955 "mode_set".
6956
6957 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6958
6959 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
6960 from rtx to rtx_insn *.
6961 (lra_push_insn): Likewise for 1st param.
6962 (lra_push_insn_and_update_insn_regno_info): Likewise.
6963 (lra_pop_insn): Likewise for return type.
6964 (lra_invalidate_insn_data): Likewise for 1st param.
6965 (lra_set_insn_deleted): Likewise.
6966 (lra_delete_dead_insn): Likewise.
6967 (lra_process_new_insns): Likewise for first 3 params.
6968 (lra_set_insn_recog_data): Likewise for 1st param.
6969 (lra_update_insn_recog_data): Likewise.
6970 (lra_set_used_insn_alternative): Likewise.
6971 (lra_invalidate_insn_regno_info): Likewise.
6972 (lra_update_insn_regno_info): Likewise.
6973 (lra_former_scratch_operand_p): Likewise.
6974 (lra_eliminate_regs_1): Likewise.
6975 (lra_get_insn_recog_data): Likewise.
6976
6977 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
6978 rtx to rtx_insn *.
6979
6980 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
6981 "mv1" and "mv2".
6982 (substitute_within_insn): New.
6983 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
6984 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
6985 Replace call to "substitute" with call to substitute_within_insn.
6986
6987 * lra-constraints.c (curr_insn): Strengthen from rtx to
6988 rtx_insn *.
6989 (get_equiv_with_elimination): Likewise for param "insn".
6990 (match_reload): Strengthen params "before" and "after" from rtx *
6991 to rtx_insn **.
6992 (emit_spill_move): Likewise for return type. Add a checked cast
6993 to rtx_insn * on result of gen_move_insn for now.
6994 (check_and_process_move): Likewise for local "before". Replace
6995 NULL_RTX with NULL when referring to insns.
6996 (process_addr_reg): Strengthen params "before" and "after" from
6997 rtx * to rtx_insn **.
6998 (insert_move_for_subreg): Likewise.
6999 (simplify_operand_subreg): Strengthen locals "before" and "after"
7000 from rtx to rtx_insn *.
7001 (process_address_1): Strengthen params "before" and "after" from
7002 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7003 rtx to rtx_insn *.
7004 (process_address): Strengthen params "before" and "after" from
7005 rtx * to rtx_insn **.
7006 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7007 (curr_insn_transform): Strengthen locals "before" and "after"
7008 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7009 to insns.
7010 (loc_equivalence_callback): Update cast of "data", changing
7011 resulting type from rtx to rtx_insn *.
7012 (substitute_pseudo_within_insn): New.
7013 (inherit_reload_reg): Strengthen param "insn" from rtx to
7014 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7015 NULL when referring to insns. Add a checked cast to rtx_insn *
7016 when using usage_insn to invoke lra_update_insn_regno_info.
7017 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7018 likewise for locals "restore", "save". Add checked casts to
7019 rtx_insn * when using usage_insn to invoke
7020 lra_update_insn_regno_info and lra_process_new_insns. Replace
7021 NULL_RTX with NULL when referring to insns.
7022 (split_if_necessary): Strengthen param "insn" from rtx to
7023 rtx_insn *.
7024 (update_ebb_live_info): Likewise for params "head", "tail" and local
7025 "prev_insn".
7026 (get_last_insertion_point): Likewise for return type and local "insn".
7027 (get_live_on_other_edges): Likewise for local "last".
7028 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7029 "prev_insn", "next_insn", "restore".
7030 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7031 (undo_optional_reloads): Likewise for local "insn".
7032
7033 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7034 "insn".
7035 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7036 insns.
7037 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7038 rtx_insn *.
7039 (spill_pseudos): Likewise for local "insn".
7040 (init_elimination): Likewise.
7041 (process_insn_for_elimination): Likewise for param "insn".
7042
7043 * lra-lives.c (curr_insn): Likewise.;
7044
7045 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7046 (remove_pseudos): Likewise for param "insn".
7047 (spill_pseudos): Likewise for local "insn".
7048 (lra_final_code_change): Likewise for locals "insn", "curr".
7049
7050 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7051 (lra_set_insn_deleted): Likewise.
7052 (lra_delete_dead_insn): Likewise, and for local "prev".
7053 (new_insn_reg): Likewise for param "insn".
7054 (lra_set_insn_recog_data): Likewise.
7055 (lra_update_insn_recog_data): Likewise.
7056 (lra_set_used_insn_alternative): Likewise.
7057 (get_insn_freq): Likewise.
7058 (invalidate_insn_data_regno_info): Likewise.
7059 (lra_invalidate_insn_regno_info): Likewise.
7060 (lra_update_insn_regno_info): Likewise.
7061 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7062 vec<rtx_insn *>.
7063 (lra_push_insn_1): Strengthen param "insn" from rtx to
7064 rtx_insn *.
7065 (lra_push_insn): Likewise.
7066 (lra_push_insn_and_update_insn_regno_info): Likewise.
7067 (lra_pop_insn): Likewise for return type and local "insn".
7068 (push_insns): Likewise for params "from", "to", and local "insn".
7069 (setup_sp_offset): Likewise for params "from", "last" and locals
7070 "before", "insn".
7071 (lra_process_new_insns): Likewise for params "insn", "before",
7072 "after" and local "last".
7073 (struct sloc): Likewise for field "insn".
7074 (lra_former_scratch_operand_p): Likewise for param "insn".
7075 (remove_scratches): Likewise for locals "insn", "last".
7076 (check_rtl): Likewise for local "insn".
7077 (add_auto_inc_notes): Likewise for param "insn".
7078 (update_inc_notes): Likewise for local "insn".
7079 (lra): Replace NULL_RTX with NULL when referring to insn.
7080
7081 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7082
7083 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7084 to rtx_insn *.
7085 (resolve_reg_notes): Likewise.
7086 (resolve_simple_move): Likewise for return type, param "insn", and
7087 locals "insns", "minsn".
7088 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7089 (resolve_use): Likewise.
7090 (resolve_debug): Likewise.
7091 (find_decomposable_shift_zext): Likewise.
7092 (resolve_shift_zext): Likewise for return type, param "insn", and
7093 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7094 (decompose_multiword_subregs): Likewise for local "insn",
7095 "orig_insn", "decomposed_shift", "end".
7096
7097 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7098
7099 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7100 param "insns" from rtx to rtx_insn *.
7101
7102 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7103 rtx to rtx_insn *.
7104 (struct iv_to_split): Likewise.
7105 (loop_exit_at_end_p): Likewise for local "insn".
7106 (split_edge_and_insert): Likewise for param "insns".
7107 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7108 and locals "seq", "jump".
7109 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7110 "branch_code"; update invocations of compare_and_jump_seq to
7111 eliminate NULL_RTX in favor of NULL.
7112 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7113 rtx to rtx_insn *.
7114 (reset_debug_uses_in_loop): Likewise.
7115 (analyze_insn_to_expand_var): Likewise for param "insn".
7116 (analyze_iv_to_split_insn): Likewise.
7117 (analyze_insns_in_loop): Likewise for local "insn".
7118 (insert_base_initialization): Likewise for param
7119 "insn" and local "seq".
7120 (split_iv): Likewise for param "insn" and local "seq".
7121 (expand_var_during_unrolling): Likewise for param "insn".
7122 (insert_var_expansion_initialization): Likewise for local "seq".
7123 (combine_var_copies_in_loop_exit): Likewise.
7124 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7125 "insn".
7126 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7127 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7128 "next".
7129
7130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7131
7132 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7133 rtx_insn *.
7134 (iv_analyze_result): Likewise.
7135 (iv_analyze_expr): Likewise.
7136 (biv_p): Likewise.
7137
7138 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7139 local "def_insn" from rtx to rtx_insn *.
7140 (get_biv_step_1): Likewise for local "insn".
7141 (iv_analyze_expr): Likewise for param "insn".
7142 (iv_analyze_def): Likewise for local "insn".
7143 (iv_analyze_op): Likewise for param "insn".
7144 (iv_analyze): Likewise.
7145 (iv_analyze_result): Likewise.
7146 (biv_p): Likewise.
7147 (suitable_set_for_replacement): Likewise.
7148 (simplify_using_initial_values): Likewise for local "insn".
7149 (iv_number_of_iterations): Likewise for param "insn".
7150 (check_simple_exit): Add checked cast to rtx_insn when invoking
7151 iv_number_of_iterations for now (until get_condition is
7152 strengthened).
7153
7154 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7155 "insn" from rtx to rtx_insn *.
7156 (analyze_insns_in_loop): Likewise for local "insn".
7157
7158 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7159
7160 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7161 to rtx_insn *.
7162 (struct invariant): Likewise.
7163 (hash_invariant_expr_1): Likewise for param "insn".
7164 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7165 (find_exits): Likewise for local "insn".
7166 (create_new_invariant): Likewise for param "insn".
7167 (check_dependencies): Likewise.
7168 (find_invariant_insn): Likewise.
7169 (record_uses): Likewise.
7170 (find_invariants_insn): Likewise.
7171 (find_invariants_bb): Likewise for local "insn".
7172 (get_pressure_class_and_nregs): Likewise for param "insn".
7173 (calculate_loop_reg_pressure): Likewise for local "insn".
7174
7175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7176
7177 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7178 to rtx_insn *.
7179 (add_test): Likewise for locals "seq", "jump".
7180 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7181
7182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7183
7184 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7185 rtx_insn *.
7186 (rebuild_jump_labels_chain): Likewise for param "chain".
7187
7188 * cfgexpand.c (pass_expand::execute): Add checked cast to
7189 rtx_insn * when calling rebuild_jump_labels_chain in region where
7190 we know e->insns.r is non-NULL.
7191
7192 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7193 rtx_insn *.
7194 (rebuild_jump_labels): Likewise.
7195 (rebuild_jump_labels_chain): Likewise for param "chain".
7196 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7197 (init_label_info): Likewise for param "f".
7198 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7199 "prev_nonjump_insn".
7200 (mark_all_labels): Likewise for param "f" and locals "insn",
7201 "prev_nonjump_insn".
7202
7203 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7204
7205 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7206 from rtx to rtx_insn *insn.
7207 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7208 (ira_add_allocno_copy): Likewise.
7209 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7210 rtx to rtx_insn *.
7211 (ira_create_copy): Likewise.
7212 (ira_add_allocno_copy): Likewise.
7213 (create_bb_allocnos): Likewise for local "insn".
7214 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7215 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7216 process_regs_for_copy for rtx_insn * param.
7217 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7218 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7219 process_regs_for_copy for rtx_insn * param.
7220 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7221 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7222 (record_operand_costs): Likewise.
7223 (scan_one_insn): Likewise for return type, and for param "insn".
7224 (process_bb_for_costs): Likewise for local "insn".
7225 (process_bb_node_for_hard_reg_moves): Likewise.
7226 * ira-emit.c (struct move): Likewise for field "insn".
7227 (create_move): Eliminate use of NULL_RTX when dealing with an
7228 rtx_insn *.
7229 (emit_move_list): Strengthen return type and locals "result",
7230 "insn" from rtx to rtx_insn *insn.
7231 (emit_moves): Likewise for locals "insns", "tmp".
7232 (ira_emit): Likewise for local "insn".
7233 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7234 "insn".
7235 (find_call_crossed_cheap_reg): Likewise.
7236 (process_bb_node_lives): Likewise for local "insn".
7237 * ira.c (decrease_live_ranges_number): Likewise.
7238 (compute_regs_asm_clobbered): Likewise.
7239 (build_insn_chain): Likewise.
7240 (find_moveable_pseudos): Likewise, also locals "def_insn",
7241 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7242 to rtx_insn **. Add a checked cast when assigning from
7243 "closest_use" into closest_uses array in a region where we know
7244 it's a non-NULL insn.
7245 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7246 to rtx_insn *.
7247 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7248 "last_interesting_insn", "uin".
7249 (move_unallocated_pseudos): Likewise for locals "def_insn",
7250 "move_insn", "newinsn".
7251
7252 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7253
7254 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7255 Strengthen locals "done_label", "do_error" from rtx to
7256 rtx_code_label *.
7257 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7258 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7259 rtx_code_label *.
7260 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7261 "done_label", "do_error" to rtx_code_label * and local "last" to
7262 rtx_insn *.
7263 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7264 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7265 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7266 "after_lopart_neg", "do_overflow", "hipart_different" to
7267 rtx_code_label * and local "last" to rtx_insn *.
7268
7269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7270
7271 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7272 "insn" and "move_insn" from rtx to rtx_insn *.
7273
7274 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7275
7276 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7277 rtx_insn *.
7278 (cheap_bb_rtx_cost_p): Likewise.
7279 (first_active_insn): Likewise for return type and local "insn".
7280 (last_active_insn): Likewise for return type and locals "insn",
7281 "head".
7282 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7283 "insn_b".
7284 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7285 "seq".
7286 (noce_try_move): Likewise for local "seq".
7287 (noce_try_store_flag): Likewise.
7288 (noce_try_store_flag_constants): Likewise.
7289 (noce_try_addcc): Likewise.
7290 (noce_try_store_flag_mask): Likewise.
7291 (noce_try_cmove): Likewise.
7292 (noce_try_minmax): Likewise.
7293 (noce_try_abs): Likewise.
7294 (noce_try_sign_mask): Likewise.
7295 (noce_try_bitop): Likewise.
7296 (noce_can_store_speculate_p): Likewise for local "insn".
7297 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7298 seq".
7299 (check_cond_move_block): Likewise for local "insn".
7300 (cond_move_convert_if_block): Likewise.
7301 (cond_move_process_if_block): Likewise for locals "seq",
7302 "loc_insn".
7303 (noce_find_if_block): Likewise for local "jump".
7304 (merge_if_block): Likewise for local "last".
7305 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7306 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7307 (block_has_only_trap): Likewise for return type and local "trap".
7308 (find_if_case_1): Likewise for local "jump".
7309 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7310 "insn".
7311
7312 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7313
7314 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7315 "last_insn", "loop_end" from rtx to rtx_insn *.
7316
7317 * hw-doloop.c (scan_loop): Likewise for local "insn".
7318 (discover_loop): Likewise for param "tail_insn".
7319 (discover_loops): Likewise for local "tail".
7320
7321 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7322 cast to rtx_insn * when assigning from an rtx local to a
7323 hwloop_info's "last_insn" field.
7324
7325 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7326
7327 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7328 (add_delay_dependencies): Strengthen local "pro" from rtx to
7329 rtx_insn *.
7330 (recompute_todo_spec): Likewise.
7331 (dep_cost_1): Likewise for locals "insn", "used".
7332 (schedule_insn): Likewise for local "dbg".
7333 (schedule_insn): Likewise for locals "pro", "next".
7334 (unschedule_insns_until): Likewise for local "con".
7335 (restore_pattern): Likewise for local "next".
7336 (estimate_insn_tick): Likewise for local "pro".
7337 (resolve_dependencies): Likewise for local "next".
7338 (fix_inter_tick): Likewise.
7339 (fix_tick_ready): Likewise for local "pro".
7340 (add_to_speculative_block): Likewise for locals "check", "twin",
7341 "pro".
7342 (sched_extend_bb): Likewise for locals "end", "insn".
7343 (init_before_recovery): Likewise for local "x".
7344 (sched_create_recovery_block): Likewise for local "barrier".
7345 (create_check_block_twin): Likewise for local "pro".
7346 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7347 "consumer".
7348 (unlink_bb_notes): Update for change to type of bb_header.
7349 Strengthen locals "prev", "label", "note", "next" from rtx to
7350 rtx_insn *.
7351 (clear_priorities): Likewise for local "pro".
7352
7353 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7354
7355 * gcse.c (struct occr): Strengthen field "insn" from rtx to
7356 rtx_insn *.
7357 (test_insn): Likewise for this global.
7358 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7359 const rtx_insn *.
7360 (oprs_anticipatable_p): Likewise.
7361 (oprs_available_p): Likewise.
7362 (insert_expr_in_table): Strengthen param "insn" from rtx to
7363 rtx_insn *.
7364 (hash_scan_set): Likewise.
7365 (hash_scan_clobber): Likewise.
7366 (hash_scan_call): Likewise.
7367 (hash_scan_insn): Likewise.
7368 (compute_hash_table_work): Likewise for local "insn".
7369 (process_insert_insn): Likewise for return type and local "pat".
7370 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7371 "pat", "pat_end", "maybe_cc0_setter".
7372 (pre_edge_insert): Likewise for local "insn".
7373 (pre_insert_copy_insn): Likewise for param "insn".
7374 (pre_insert_copies): Likewise for local "insn".
7375 (struct set_data): Likewise for field "insn".
7376 (single_set_gcse): Likewise for param "insn".
7377 (gcse_emit_move_after): Likewise.
7378 (pre_delete): Likewise for local "insn".
7379 (update_bb_reg_pressure): Likewise for param "from" and local
7380 "insn".
7381 (should_hoist_expr_to_dom): Likewise for param "from".
7382 (hoist_code): Likewise for local "insn".
7383 (get_pressure_class_and_nregs): Likewise for param "insn".
7384 (calculate_bb_reg_pressure): Likewise for local "insn".
7385 (compute_ld_motion_mems): Likewise.
7386
7387 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7388
7389 * genpeep.c (main): Rename param back from "uncast_ins1" to
7390 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7391 checked cast.
7392
7393 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7394
7395 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7396
7397 PR target/62195
7398 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7399 documentation to state it is only for VSX operations.
7400
7401 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7402 constraint only active if VSX.
7403
7404 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7405 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7406 (lfiwzx): Likewise.
7407
7408 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7409
7410 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7411 Strengthen local "insn" from rtx to rtx_insn *.
7412 (use_killed_between): Likewise for param "target_insn".
7413 (all_uses_available_at): Likewise for param "target_insn" and
7414 local "next".
7415 (update_df_init): Likewise for params "def_insn", "insn".
7416 (update_df): Likewise for param "insn".
7417 (try_fwprop_subst): Likewise for param "def_insn" and local
7418 "insn".
7419 (free_load_extend): Likewise for param "insn".
7420 (forward_propagate_subreg): Likewise for param "def_insn" and
7421 local "use_insn".
7422 (forward_propagate_asm): Likewise for param "def_insn" and local
7423 "use_insn".
7424 (forward_propagate_and_simplify): Likewise for param "def_insn"
7425 and local "use_insn".
7426 (forward_propagate_into): Likewise for locals "def_insn" and
7427 "use_insn".
7428
7429 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7430
7431 * function.c (emit_initial_value_sets): Strengthen local "seq"
7432 from rtx to rtx_insn *.
7433 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7434 local "seq".
7435 (instantiate_virtual_regs): Likewise for local "insn".
7436 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7437 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7438 (expand_function_end): Likewise for locals "insn" and "seq".
7439 (epilogue_done): Likewise for local "insn".
7440 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7441 "last", "trial".
7442 (reposition_prologue_and_epilogue_notes): Likewise for locals
7443 "insn", "last", "note", "first".
7444 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7445 (pass_match_asm_constraints::execute): Likewise for local "insn".
7446
7447 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7448
7449 * output.h (final_scan_insn): Strengthen return type from rtx to
7450 rtx_insn *.
7451 (final_forward_branch_p): Likewise for param.
7452 (current_output_insn): Likewise for this global.
7453
7454 * final.c (rtx debug_insn): Likewise for this variable.
7455 (current_output_insn): Likewise.
7456 (get_attr_length_1): Rename param "insn" to "uncast_insn",
7457 adding "insn" back in as an rtx_insn * with a checked cast, so
7458 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7459 first param.
7460 (compute_alignments): Strengthen local "label" from rtx to
7461 rtx_insn *.
7462 (shorten_branches): Rename param from "first" to "uncast_first",
7463 introducing a new local rtx_insn * "first" using a checked cast to
7464 effectively strengthen "first" from rtx to rtx_insn * without
7465 affecting the type signature. Strengthen locals "insn", "seq",
7466 "next", "label" from rtx to rtx_insn *.
7467 (change_scope): Strengthen param "orig_insn" and local "insn" from
7468 rtx to rtx_insn *.
7469 (final_start_function): Rename param from "first" to "uncast_first",
7470 introducing a new local rtx_insn * "first" using a checked cast to
7471 effectively strengthen "first" from rtx to rtx_insn * without
7472 affecting the type signature. Strengthen local "insn" from rtx to
7473 rtx_insn *.
7474 (dump_basic_block_info): Strengthen param "insn" from rtx to
7475 rtx_insn *.
7476 (final): Rename param from "first" to "uncast_first",
7477 introducing a new local rtx_insn * "first" using a checked cast to
7478 effectively strengthen "first" from rtx to rtx_insn * without
7479 affecting the type signature. Strengthen locals "insn", "next"
7480 from rtx to rtx_insn *.
7481 (output_alternate_entry_point): Strengthen param "insn" from rtx to
7482 rtx_insn *.
7483 (call_from_call_insn): Strengthen param "insn" from rtx to
7484 rtx_call_insn *.
7485 (final_scan_insn): Rename param from "insn" to "uncast_insn",
7486 introducing a new local rtx_insn * "insn" using a checked cast to
7487 effectively strengthen "insn" from rtx to rtx_insn * without
7488 affecting the type signature. Strengthen return type and locals
7489 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
7490 now-redundant checked cast to rtx_insn * from both invocations of
7491 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
7492 introducing a local "call_insn" for use when invoking
7493 call_from_call_insn.
7494 (notice_source_line): Strengthen param "insn" from rtx to
7495 rtx_insn *.
7496 (leaf_function_p): Likewise for local "insn".
7497 (final_forward_branch_p): Likewise.
7498 (leaf_renumber_regs): Likewise for param "first".
7499 (rest_of_clean_state): Likewise for locals "insn" and "next".
7500 (self_recursive_call_p): Likewise for param "insn".
7501 (collect_fn_hard_reg_usage): Likewise for local "insn".
7502 (get_call_fndecl): Likewise for param "insn".
7503 (get_call_cgraph_rtl_info): Likewise.
7504 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7505 introducing a new local rtx_insn * "insn" using a checked cast to
7506 effectively strengthen "insn" from rtx to rtx_insn * without
7507 affecting the type signature.
7508
7509 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7510 cast when assigning from param "insn" to current_output_insn.
7511 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7512 so that we can assign it back to current_output_insn.
7513
7514 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7515
7516 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7517 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7518 atmxt540s and atmxt540sreva devices.
7519 * config/avr/avr-tables.opt: Regenerate.
7520 * config/avr/t-multilib: Regenerate.
7521 * doc/avr-mmcu.texi: Regenerate.
7522
7523 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7524
7525 * expr.c (convert_move): Strengthen local "insns" from rtx to
7526 rtx_insn *.
7527 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7528 "top_label" from rtx to rtx_code_label *.
7529 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7530 rtx_insn *.
7531 (emit_single_push_insn): Likewise for locals "prev", "last".
7532 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7533 to rtx_code_label *.
7534 (store_constructor): Likewise for locals "loop_start", "loop_end".
7535 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7536 rtx_insn *.
7537 (expand_expr_real_2): Likewise.
7538 (expand_expr_real_1): Strengthen local "label" from rtx to
7539 rtx_code_label *.
7540
7541 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7542
7543 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7544 from rtx to rtx_insn *.
7545 (store_bit_field_1): Likewise.
7546 (extract_bit_field_1): Likewise.
7547 (expand_mult_const): Likewise for local "insns".
7548 (expmed_mult_highpart): Strengthen local "label" from rtx to
7549 rtx_code_label *.
7550 (expand_smod_pow2): Likewise.
7551 (expand_sdiv_pow2): Likewise.
7552 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7553 rtx_insn *. Strengthen locals "label", "label1", "label2",
7554 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7555 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7556 (emit_store_flag): Likewise.
7557 (emit_store_flag_force): Strengthen local "label" from rtx to
7558 rtx_code_label *.
7559 (do_cmp_and_jump): Likewise for param "label".
7560
7561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7562
7563 * explow.c (force_reg): Strengthen local "insn" from rtx to
7564 rtx_insn *.
7565 (adjust_stack_1): Likewise.
7566 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7567 "final_label", "available_label", "space_available" from rtx to
7568 rtx_code_label *.
7569 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7570 (anti_adjust_stack_and_probe): Likewise.
7571
7572 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7573
7574 * except.h (sjlj_emit_function_exit_after): Strengthen param
7575 "after" from rtx to rtx_insn *. This is only called with
7576 result of get_last_insn (in function.c) so type-change should be
7577 self-contained.
7578
7579 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7580 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7581 to rtx_insn *. These fields are only used from except.c so this
7582 type-change should be self-contained to this patch.
7583
7584 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7585 local "last" from rtx to rtx_insn *.
7586 (dw2_build_landing_pads): Likewise for local "seq".
7587 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7588 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7589 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7590 rtx to rtx_insn *.
7591 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7592 to rtx_insn *.
7593 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7594 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7595 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7596 referring to an insn. Strengthen local "dispatch_label" from
7597 rtx to rtx_code_label *.
7598 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7599 rtx_insn *.
7600 (expand_eh_return): Strengthen local "around_label" from
7601 rtx to rtx_code_label *.
7602 (convert_to_eh_region_ranges): Strengthen locals "iter",
7603 "last_action_insn", "first_no_action_insn",
7604 "first_no_action_insn_before_switch",
7605 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7606
7607 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7608
7609 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7610 from rtx to rtx_insn *.
7611 (cached_next_real_insn): Likewise.
7612 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7613 working with insns.
7614 (dwarf2out_var_location): Strengthen locals "next_real",
7615 "next_note", "expected_next_loc_note", "last_start", "insn" from
7616 rtx to rtx_insn *.
7617
7618 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7619
7620 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7621 from rtx to rtx_insn *.
7622 (create_pseudo_cfg): Likewise for local "insn".
7623
7624 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7625
7626 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7627 from rtx to rtx_insn *.
7628 (df_bb_regno_last_def_find): Likewise.
7629
7630 * df-problems.c (df_rd_bb_local_compute): Likewise.
7631 (df_lr_bb_local_compute): Likewise.
7632 (df_live_bb_local_compute): Likewise.
7633 (df_chain_remove_problem): Likewise.
7634 (df_chain_create_bb): Likewise.
7635 (df_word_lr_bb_local_compute): Likewise.
7636 (df_remove_dead_eq_notes): Likewise for param "insn".
7637 (df_note_bb_compute): Likewise for local "insn".
7638 (simulate_backwards_to_point): Likewise.
7639 (df_md_bb_local_compute): Likewise.
7640
7641 * df-scan.c (df_scan_free_bb_info): Likewise.
7642 (df_scan_start_dump): Likewise.
7643 (df_scan_start_block): Likewise.
7644 (df_install_ref_incremental): Likewise for local "insn".
7645 (df_insn_rescan_all): Likewise.
7646 (df_reorganize_refs_by_reg_by_insn): Likewise.
7647 (df_reorganize_refs_by_insn_bb): Likewise.
7648 (df_recompute_luids): Likewise.
7649 (df_bb_refs_record): Likewise.
7650 (df_update_entry_exit_and_calls): Likewise.
7651 (df_bb_verify): Likewise.
7652
7653 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7654
7655 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7656 "first_note" from rtx to rtx_insn *.
7657 (get_node_of_insn): Likewise for param 2 "insn".
7658 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7659
7660 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7661 rtx_insn *.
7662 (mem_write_insn_p): Likewise.
7663 (mem_access_insn_p): Likewise.
7664 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7665 (def_has_ccmode_p): Likewise for param "insn".
7666 (add_cross_iteration_register_deps): Likewise for locals
7667 "def_insn" and "use_insn".
7668 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7669 (build_intra_loop_deps): Likewise for local "src_insn".
7670 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7671 to rtx_insn *.
7672 (get_node_of_insn): Likewise for param "insn".
7673
7674 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7675
7676 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7677 (deletable_insn_p): Strengthen param "insn" from rtx to
7678 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7679 find_call_stack_args, since this is guarded by CALL_P (insn).
7680 (marked_insn_p): Strengthen param "insn" from rtx to
7681 rtx_insn *.
7682 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7683 invoking find_call_stack_args, since this is guarded by
7684 CALL_P (insn).
7685 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7686 rtx_insn *; we know this is an insn since this was called by
7687 mark_nonreg_stores.
7688 (mark_nonreg_stores_2): Likewise.
7689 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7690 rtx_insn *.
7691 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7692 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7693 to rtx_insn *.
7694 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7695 from rtx to rtx_insn *.
7696 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7697 "next", "ref_insn".
7698 (delete_unmarked_insns): Likewise for locals "insn", "next".
7699 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7700 (mark_reg_dependencies): Likewise for param "insn".
7701 (rest_of_handle_ud_dce): Likewise for local "insn".
7702 (word_dce_process_block): Likewise.
7703 (dce_process_block): Likewise.
7704
7705 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7706
7707 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7708 from rtx to rtx_insn *.
7709 (struct change_cc_mode_args): Likewise for field "insn".
7710 (this_insn): Strengthen from rtx to rtx_insn *.
7711 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7712 with insn.
7713 (validate_canon_reg): Strengthen param "insn" from rtx to
7714 rtx_insn *.
7715 (canon_reg): Likewise.
7716 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7717 dealing with insn.
7718 (record_jump_equiv): Strengthen param "insn" from rtx to
7719 rtx_insn *.
7720 (try_back_substitute_reg): Likewise, also for locals "prev",
7721 "bb_head".
7722 (find_sets_in_insn): Likewise for param "insn".
7723 (canonicalize_insn): Likewise.
7724 (cse_insn): Likewise. Add a checked cast.
7725 (invalidate_from_clobbers): Likewise for param "insn".
7726 (invalidate_from_sets_and_clobbers): Likewise.
7727 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
7728 dealing with insn.
7729 (cse_prescan_path): Strengthen local "insn" from rtx to
7730 rtx_insn *.
7731 (cse_extended_basic_block): Likewise for locals "insn" and
7732 "prev_insn".
7733 (cse_main): Likewise for param "f".
7734 (check_for_label_ref): Likewise for local "insn".
7735 (set_live_p): Likewise for second param ("insn").
7736 (insn_live_p): Likewise for first param ("insn") and for local
7737 "next".
7738 (cse_change_cc_mode_insn): Likewise for first param "insn".
7739 (cse_change_cc_mode_insns): Likewise for first and second params
7740 "start" and "end".
7741 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
7742 and "end".
7743 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
7744 "cc_src_insn".
7745
7746 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7747 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7748 Anna Tikhonova <anna.tikhonova@intel.com>
7749 Ilya Tocar <ilya.tocar@intel.com>
7750 Andrey Turetskiy <andrey.turetskiy@intel.com>
7751 Ilya Verbin <ilya.verbin@intel.com>
7752 Kirill Yukhin <kirill.yukhin@intel.com>
7753 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7754
7755 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
7756 New.
7757 * config/i386/sse.md
7758 (define_mode_iterator VI248_AVX2): Delete.
7759 (define_mode_iterator VI2_AVX2_AVX512BW): New.
7760 (define_mode_iterator VI48_AVX2): Ditto.
7761 (define_insn <shift_insn><mode>3): Delete.
7762 (define_insn "<shift_insn><mode>3<mask_name>" with
7763 VI2_AVX2_AVX512BW): New.
7764 (define_insn "<shift_insn><mode>3<mask_name>" with
7765 VI48_AVX2): Ditto.
7766
7767 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7768 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7769 Anna Tikhonova <anna.tikhonova@intel.com>
7770 Ilya Tocar <ilya.tocar@intel.com>
7771 Andrey Turetskiy <andrey.turetskiy@intel.com>
7772 Ilya Verbin <ilya.verbin@intel.com>
7773 Kirill Yukhin <kirill.yukhin@intel.com>
7774 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7775
7776 * config/i386/sse.md
7777 (define_mode_iterator VI4F_BRCST32x2): New.
7778 (define_mode_attr 64x2_mode): Ditto.
7779 (define_mode_attr 32x2mode): Ditto.
7780 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
7781 with VI4F_BRCST32x2): Ditto.
7782 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
7783 with V16FI mode iterator): Ditto.
7784 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7785 with V16FI): Ditto.
7786 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7787 with VI8F_BRCST64x2): Ditto.
7788
7789 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7790 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7791 Anna Tikhonova <anna.tikhonova@intel.com>
7792 Ilya Tocar <ilya.tocar@intel.com>
7793 Andrey Turetskiy <andrey.turetskiy@intel.com>
7794 Ilya Verbin <ilya.verbin@intel.com>
7795 Kirill Yukhin <kirill.yukhin@intel.com>
7796 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7797
7798 * config/i386/sse.md
7799 (define_mode_iterator VI8_AVX512VL): New.
7800 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
7801
7802 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7803
7804 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
7805 (define_mode_iterator V48_AVX512VL): New.
7806 (define_mode_iterator V12_AVX512VL): Ditto.
7807 (define_insn <avx512>_load<mode>_mask): Split into two similar
7808 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
7809 Refactor output template.
7810 (define_insn "<avx512>_store<mode>_mask"): Ditto.
7811
7812 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7813
7814 * cprop.c (struct occr): Strengthen field "insn" from rtx to
7815 rtx_insn *.
7816 (reg_available_p): Likewise for param "insn".
7817 (insert_set_in_table): Likewise.
7818 (hash_scan_set): Likewise.
7819 (hash_scan_insn): Likewise.
7820 (make_set_regs_unavailable): Likewise.
7821 (compute_hash_table_work): Likewise for local "insn".
7822 (reg_not_set_p): Strengthen param "insn" from const_rtx to
7823 const rtx_insn *.
7824 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
7825 (try_replace_reg): Likewise.
7826 (find_avail_set): Likewise.
7827 (cprop_jump): Likewise for params "setcc", "jump".
7828 (constprop_register): Likewise for param "insn".
7829 (cprop_insn): Likewise.
7830 (do_local_cprop): Likewise.
7831 (local_cprop_pass): Likewise for local "insn".
7832 (bypass_block): Likewise for params "setcc" and "jump".
7833 (bypass_conditional_jumps): Likewise for locals "setcc" and
7834 "insn".
7835 (one_cprop_pass): Likewise for local "insn".
7836
7837 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7838
7839 * compare-elim.c (struct comparison_use): Strengthen field "insn"
7840 from rtx to rtx_insn *.
7841 (struct comparison): Likewise, also for field "prev_clobber".
7842 (conforming_compare): Likewise for param "insn".
7843 (arithmetic_flags_clobber_p): Likewise.
7844 (find_flags_uses_in_insn): Likewise.
7845 (find_comparison_dom_walker::before_dom_children): Likewise for
7846 locals "insn", "next", "last_clobber".
7847 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
7848
7849 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7850
7851 * combine-stack-adj.c (struct csa_reflist): Strengthen field
7852 "insn" from rtx to rtx_insn *.
7853 (single_set_for_csa): Likewise for param "insn".
7854 (record_one_stack_ref): Likewise.
7855 (try_apply_stack_adjustment): Likewise.
7856 (struct record_stack_refs_data): Likewise for field "insn".
7857 (maybe_move_args_size_note): Likewise for params "last" and "insn".
7858 (prev_active_insn_bb): Likewise for return type and param "insn".
7859 (next_active_insn_bb): Likewise.
7860 (force_move_args_size_note): Likewise for params "prev" and "last"
7861 and locals "test", "next_candidate", "prev_candidate".
7862 (combine_stack_adjustments_for_block): Strengthen locals
7863 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
7864 rtx_insn *.
7865
7866 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7867
7868 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
7869 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
7870 (subst_insn): Likewise for this variable.
7871 (added_links_insn): Likewise.
7872 (struct insn_link): Likewise for field "insn".
7873 (alloc_insn_link): Likewise for param "insn".
7874 (struct undobuf): Likewise for field "other_insn".
7875 (find_single_use): Likewise for param "insn" and local "next".
7876 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
7877 (delete_noop_moves): Likewise for locals "insn", "next".
7878 (create_log_links): Likewise for locals "insn", "use_insn".
7879 Strengthen local "next_use" from rtx * to rtx_insn **.
7880 (insn_a_feeds_b): Likewise for params "a", "b".
7881 (combine_instructions): Likewise for param "f" and locals "insn",
7882 "next", "prev", "first", "last_combined_insn", "link", "link1",
7883 "temp". Replace use of NULL_RTX with NULL when referring to
7884 insns.
7885 (setup_incoming_promotions): Likewise for param "first"
7886 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
7887 (can_combine_p): Likewise for params "insn", "i3", "pred",
7888 "pred2", "succ", "succ2" and for local "p".
7889 (combinable_i3pat): Likewise for param "i3".
7890 (cant_combine_insn_p): Likewise for param "insn".
7891 (likely_spilled_retval_p): Likewise.
7892 (adjust_for_new_dest): Likewise.
7893 (update_cfg_for_uncondjump): Likewise, also for local "insn".
7894 (try_combine): Likewise for return type and for params "i3", "i2",
7895 "i1", "i0", "last_combined_insn", and for locals "insn",
7896 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
7897 "i0_insn". Eliminate local "tem" in favor of new locals
7898 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
7899 checked cast for now to rtx_insn * on the return type of
7900 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
7901 insns.
7902 (find_split_point): Strengthen param "insn" from rtx to
7903 rtx_insn *.
7904 (simplify_set): Likewise for local "other_insn".
7905 (recog_for_combine): Likewise for param "insn".
7906 (record_value_for_reg): Likewise.
7907 (record_dead_and_set_regs_1): Likewise for local
7908 "record_dead_insn".
7909 (record_dead_and_set_regs): Likewise for param "insn".
7910 (record_promoted_value): Likewise.
7911 (check_promoted_subreg): Likewise.
7912 (get_last_value_validate): Likewise.
7913 (reg_dead_at_p): Likewise.
7914 (move_deaths): Likewise for param "to_insn".
7915 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
7916 and locals "place", "place2", "cc0_setter". Eliminate local "tem
7917 in favor of new locals "tem_note" and "tem_insn", the latter being
7918 an rtx_insn *.
7919 (distribute_links): Strengthen locals "place", "insn" from rtx to
7920 rtx_insn *.
7921
7922 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7923
7924 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
7925 than a const_rtx.
7926 (can_delete_label_p): Require a const rtx_code_label * rather than
7927 a const_rtx.
7928 (delete_insn): Add checked cast to rtx_code_label * when we know
7929 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
7930 rtx to rtx_insn *.
7931 (delete_insn_chain): Strengthen locals "prev" and "current" from
7932 rtx to rtx_insn *. Add a checked cast when assigning from
7933 "finish" (strengthening the params will come later). Add a
7934 checked cast to rtx_note * in region where we know
7935 NOTE_P (current).
7936 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
7937 rtx_insn *.
7938 (compute_bb_for_insn): Likewise.
7939 (free_bb_for_insn): Likewise for local "insn".
7940 (compute_bb_for_insn): Likewise.
7941 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
7942 local "insn" from rtx to rtx_insn *
7943 (flow_active_insn_p): Require a const rtx_insn * rather than a
7944 const_rtx.
7945 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
7946 rtx_insn *.
7947 (can_fallthru): Likewise for locals "insn" and "insn2".
7948 (bb_note): Likewise for local "note".
7949 (first_insn_after_basic_block_note): Likewise for local "note" and
7950 for return type.
7951 (rtl_split_block): Likewise for locals "insn" and "next".
7952 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
7953 "end".
7954 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
7955 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
7956 "prev", "tmp".
7957 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
7958 them), "kill_from", "barrier", "new_insn".
7959 (patch_jump_insn): Likewise for params "insn", "old_label".
7960 (redirect_branch_edge): Likewise for locals "old_label", "insn".
7961 (force_nonfallthru_and_redirect): Likewise for locals "insn",
7962 "old_label", "new_label".
7963 (rtl_tidy_fallthru_edge): Likewise for local "q".
7964 (rtl_split_edge): Likewise for locals "before", "last".
7965 (commit_one_edge_insertion): Likewise for locals "before",
7966 "after", "insns", "tmp", "last", adding a checked cast where
7967 currently necessary.
7968 (commit_edge_insertions): Likewise.
7969 (rtl_dump_bb): Likewise for locals "insn", "last".
7970 (print_rtl_with_bb): Likewise for local "x".
7971 (rtl_verify_bb_insns): Likewise for local "x".
7972 (rtl_verify_bb_pointers): Likewise for local "insn".
7973 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
7974 "head", "end".
7975 (rtl_verify_fallthru): Likewise for local "insn".
7976 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
7977 (purge_dead_edges): Likewise for local "insn".
7978 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
7979 (skip_insns_after_block): Likewise for return type and for locals
7980 "insn", "last_insn", "next_head", "prev".
7981 (record_effective_endpoints): Likewise for locals "next_insn",
7982 "insn", "end".
7983 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
7984 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
7985 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
7986 (duplicate_insn_chain): For now, add checked cast from rtx to
7987 rtx_insn * when returning insn.
7988 (cfg_layout_duplicate_bb): Likewise for local "insn".
7989 (cfg_layout_delete_block): Likewise for locals "insn", "next",
7990 "prev", "remaints".
7991 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
7992 (rtl_block_empty_p): Likewise.
7993 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
7994 "split_point", "last".
7995 (rtl_block_ends_with_call_p): Likewise for local "insn".
7996 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
7997 const rtx_insn *.
7998 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
7999 "split_at_insn" from rtx to rtx_insn *.
8000 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8001 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8002 to const rtx_insn *.
8003 (rtl_account_profile_record): Likewise.
8004
8005 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8006
8007 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8008 rtx to rtx_insn *.
8009 (average_num_loop_insns): Likewise.
8010 (init_set_costs): Likewise for local "seq".
8011 (seq_cost): Likewise for param "seq", from const_rtx to const
8012 rtx_insn *.
8013
8014 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8015
8016 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8017 rtx to rtx_insn *.
8018
8019 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8020
8021 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8022 "f1" and "f2" from rtx * to rtx_insn **.
8023 (flow_find_head_matching_sequence): Likewise.
8024
8025 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8026 "cbranch_insn" from rtx to rtx_insn *.
8027 (thread_jump): Likewise for local "insn".
8028 (try_forward_edges): Likewise for local "last".
8029 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8030 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8031 "real_b_end".
8032 (can_replace_by): Likewise for params "i1", "i2".
8033 (old_insns_match_p): Likewise.
8034 (merge_notes): Likewise.
8035 (walk_to_nondebug_insn): Likewise for param "i1".
8036 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8037 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8038 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8039 (flow_find_head_matching_sequence): Strengthen params "f1" and
8040 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8041 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8042 rtx_insn *.
8043 (outgoing_edges_match): Likewise for locals "last1", "last2".
8044 (try_crossjump_to_edge): Likewise for local "insn".
8045 Replace call to for_each_rtx with for_each_rtx_in_insn.
8046
8047 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8048 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8049 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8050 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8051 (try_optimize_cfg): Strengthen local "last" from rtx to
8052 rtx_insn *.
8053 (delete_dead_jumptables): Likewise for locals "insn", "next",
8054 "label".
8055
8056 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8057 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8058 "rtx else_first_tail", to reflect the basic-block.h changes above.
8059
8060 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8061
8062 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8063 rtx_insn *.
8064 (purge_dead_tablejump_edges): Likewise.
8065 (find_bb_boundaries): Likewise for locals "insn", "end",
8066 "flow_transfer_insn".
8067
8068 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8069
8070 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8071 "ins" and "prev" from rtx to rtx_insn *.
8072
8073 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8074
8075 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8076 rtx_insn *.
8077 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8078 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8079 "scan_start".
8080 (load_register_parameters): Likewise for local "before_arg".
8081 (check_sibcall_argument_overlap): Likewise for param "insn".
8082 (expand_call): Likewise for locals "normal_call_insns",
8083 "tail_call_insns", "insns", "before_call", "after_args",
8084 "before_arg", "last", "prev". Strengthen one of the "last" from
8085 rtx to rtx_call_insn *.
8086 (fixup_tail_calls): Strengthen local "insn" from rtx to
8087 rtx_insn *.
8088 (emit_library_call_value_1): Likewise for locals "before_call" and
8089 "last".
8090
8091 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8092
8093 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8094 and "last" from rtx to rtx_insn *.
8095 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8096 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8097 rtx_call_insn *.
8098 (expand_errno_check): Strengthen local "lab" from rtx to
8099 rtx_code_label *.
8100 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8101 rtx_insn *.
8102 (expand_builtin_mathfn_2): Likewise.
8103 (expand_builtin_mathfn_ternary): Likewise.
8104 (expand_builtin_mathfn_3): Likewise.
8105 (expand_builtin_interclass_mathfn): Likewise for local "last".
8106 (expand_builtin_int_roundingfn): Likewise for local "insns".
8107 (expand_builtin_int_roundingfn_2): Likewise.
8108 (expand_builtin_strlen): Likewise for local "before_strlen".
8109 (expand_builtin_strncmp): Likewise for local "seq".
8110 (expand_builtin_signbit): Likewise for local "last".
8111 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8112 from rtx to rtx_code_label *.
8113 (expand_stack_restore): Strengthen local "prev" from rtx to
8114 rtx_insn *.
8115
8116 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8117
8118 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8119 to rtx_insn *.
8120 (struct btr_def_s): Likewise.
8121 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8122 const rtx_insn *.
8123 (add_btr_def): Likewise.
8124 (new_btr_user): Likewise.
8125 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8126 rtx to rtx_insn *.
8127 (link_btr_uses): Likewise.
8128 (move_btr_def): Likewise for locals "insp", "old_insn",
8129 "new_insn". Add checked cast to rtx_insn * for now on result of
8130 gen_move_insn.
8131 (can_move_up): Strengthen param "insn" from const_rtx to
8132 const rtx_insn *.
8133
8134 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8135
8136 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8137 rtx_insn *.
8138 (get_uncond_jump_length): Likewise for locals "label", "jump".
8139 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8140 "jump", "insn".
8141 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8142 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8143 (find_jump_block): Likewise for local "insn".
8144 (fix_crossing_conditional_branches): Likewise for locals
8145 "old_jump", "new_jump".
8146 (fix_crossing_unconditional_branches): Likewise for locals
8147 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8148 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8149
8150 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8151
8152 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8153 rtx to rtx_insn *.
8154 (struct mem_insn): Likewise for field "insn".
8155 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8156 (reg_next_inc_use): Likewise.
8157 (reg_next_def): Likewise.
8158 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8159 from rtx to rtx_insn *.
8160 (move_insn_before): Likewise for param "next_insn" and local "insns".
8161 (attempt_change): Likewise for local "mov_insn".
8162 (try_merge): Likewise for param "last_insn".
8163 (get_next_ref): Likewise for return type and local "insn".
8164 Strengthen param "next_array" from rtx * to rtx_insn **.
8165 (parse_add_or_inc): Strengthen param "insn" from rtx to
8166 rtx_insn *.
8167 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8168 the latter).
8169 (merge_in_block): Likewise for locals "insn", "curr",
8170 "other_insn".
8171 (pass_inc_dec::execute): Update allocations of the arrays to
8172 reflect the stronger types.
8173
8174 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8175
8176 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8177 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8178 from rtx to rtx_code_label *.
8179
8180 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8181
8182 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8183 to rtx_insn *.
8184
8185 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8186
8187 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8188 generated a warning and prevented bootstrapping the compiler.
8189
8190 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8191
8192 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8193 rtx_insn *.
8194
8195 * jump.c (delete_related_insns): Likewise, also for locals "next"
8196 and "prev".
8197
8198 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8199
8200 * genautomata.c (output_internal_insn_latency_func): When writing
8201 the function "internal_insn_latency" to insn-automata.c,
8202 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8203 allowing the optional guard function of (define_bypass) clauses to
8204 expect a pair of rtx_insn *, rather than a pair of rtx.
8205 (output_insn_latency_func): When writing the function
8206 "insn_latency", add an "uncast_" prefix to params "insn" and
8207 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8208 using checked casts from the params, thus enabling the above
8209 change to the generated "internal_insn_latency" function.
8210
8211 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8212
8213 PR tree-optimization/62091
8214 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8215 handle correctly arrays.
8216 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8217 inheritance binfos.
8218 (record_known_type): Walk into inner type.
8219 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8220 condition on no type changes.
8221
8222 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8223
8224 * genattrtab.c (write_attr_get): Within the generated get_attr_
8225 functions, rename param "insn" to "uncast_insn" and reintroduce
8226 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8227 is an rtx_insn * within insn-attrtab.c
8228
8229 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8230
8231 * output.h (peephole): Strengthen return type from rtx to
8232 rtx_insn *.
8233 * rtl.h (delete_for_peephole): Likewise for both params.
8234 * genpeep.c (main): In generated "peephole" function, strengthen
8235 return type and local "insn" from rtx to rtx_insn *. For now,
8236 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8237 rtx_insn *, with a checked cast.
8238 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8239 locals "insn", "next", "prev" from rtx to rtx_insn *.
8240
8241 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8242
8243 PR tree-optimization/62112
8244 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8245 * gimple-iterator.h (gsi_replace): Return bool.
8246 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8247 moved from ref_may_alias_global_p.
8248 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8249 New overloads.
8250 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8251 (stmt_kills_ref_p_1): Rename...
8252 (stmt_kills_ref_p): ... to this.
8253 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8254 stmt_kills_ref_p): Declare.
8255 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8256 Move the self-assignment case...
8257 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8258
8259 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8260
8261 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8262
8263 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8264 "after". For now, don't strengthen param "trial", which requires
8265 adding checked casts when returning it.
8266
8267 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8268
8269 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8270 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8271 "var_location" hook from rtx to rtx_insn *.
8272 (debug_nothing_rtx): Delete in favor of...
8273 (debug_nothing_rtx_code_label): New prototype.
8274 (debug_nothing_rtx_rtx): Delete unused prototype.
8275 (debug_nothing_rtx_insn): New prototype.
8276
8277 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8278 invoking debug_hooks->var_location (in two places, one in a NOTE
8279 case of a switch statement, the other guarded by a CALL_P
8280 conditional. Add checked cast to rtx_code_label * when invoking
8281 debug_hooks->label (within CODE_LABEL case of switch statement).
8282
8283 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8284 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8285 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8286 (xcoff_debug_hooks): Likewise.
8287 * debug.c (do_nothing_debug_hooks): Likewise.
8288 (debug_nothing_rtx): Delete in favor of...
8289 (debug_nothing_rtx_insn): New function.
8290 (debug_nothing_rtx_rtx): Delete unused function.
8291 (debug_nothing_rtx_code_label): New function.
8292 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8293 debug_nothing_rtx to debug_nothing_rtx_code_label.
8294 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8295 to rtx_insn *.
8296 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8297 debug_nothing_rtx to debug_nothing_rtx_insn.
8298 (sdbout_label): Strengthen param "insn" from rtx to
8299 rtx_code_label *.
8300 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8301 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8302 "var_location" hook from debug_nothing_rtx to
8303 debug_nothing_rtx_insn.
8304
8305 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8306
8307 * recog.h (insn_output_fn): Update this function typedef to match
8308 the changes below to the generated output functions, strengthening
8309 the 2nd param from rtx to rtx_insn *.
8310
8311 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8312 insn when invoking an output function, to match the new signature
8313 of insn_output_fn with a stronger second param.
8314
8315 * genconditions.c (write_header): In the generated code for
8316 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8317 to match the other changes in this patch.
8318
8319 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8320 the generated "gen_" functions from rtx to rtx_insn * within their
8321 implementations.
8322
8323 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8324 the subfunctions within the generated "recog_", "split", "peephole2"
8325 function trees from rtx to rtx_insn *. For now, the top-level
8326 generated functions ("recog", "split", "peephole2") continue to
8327 take a plain rtx for "insn", to avoid introducing dependencies on
8328 other patches. Rename this 2nd param from "insn" to
8329 "uncast_insn", and reintroduce "insn" as a local variable of type
8330 rtx_insn *, initialized at the top of the generated function with
8331 a checked cast on "uncast_insn".
8332 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8333 the generated "gen_" functions from rtx to rtx_insn * within their
8334 prototypes.
8335
8336 * genoutput.c (process_template): Strengthen the 2nd param within
8337 the generated "output_" functions "insn" from rtx to rtx_insn *.
8338
8339 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8340
8341 * tree-profile.c (tree_profiling): Skip external functions
8342 when doing coverage instrumentation.
8343 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8344
8345 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8346
8347 * config/rs6000/altivec.h (vec_cpsgn): New #define.
8348 (vec_mergee): Likewise.
8349 (vec_mergeo): Likewise.
8350 (vec_cntlz): Likewise.
8351 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8352 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8353 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8354 VMRGEW, and VMRGOW.
8355 * doc/extend.texi: Document various forms of vec_cpsgn,
8356 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8357 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8358 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8359 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8360 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8361
8362 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8363
8364 * config/rs6000/rs6000.c (context.h): New include.
8365 (tree-pass.h): Likewise.
8366 (make_pass_analyze_swaps): New decl.
8367 (rs6000_option_override): Register pass_analyze_swaps.
8368 (swap_web_entry): New subsclass of web_entry_base (df.h).
8369 (special_handling_values): New enum.
8370 (union_defs): New function.
8371 (union_uses): Likewise.
8372 (insn_is_load_p): Likewise.
8373 (insn_is_store_p): Likewise.
8374 (insn_is_swap_p): Likewise.
8375 (rtx_is_swappable_p): Likewise.
8376 (insn_is_swappable_p): Likewise.
8377 (chain_purpose): New enum.
8378 (chain_contains_only_swaps): New function.
8379 (mark_swaps_for_removal): Likewise.
8380 (swap_const_vector_halves): Likewise.
8381 (adjust_subreg_index): Likewise.
8382 (permute_load): Likewise.
8383 (permute_store): Likewise.
8384 (handle_special_swappables): Likewise.
8385 (replace_swap_with_copy): Likewise.
8386 (dump_swap_insn_table): Likewise.
8387 (rs6000_analyze_swaps): Likewise.
8388 (pass_data_analyze_swaps): New pass_data.
8389 (pass_analyze_swaps): New rtl_opt_pass.
8390 (make_pass_analyze_swaps): New function.
8391 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8392
8393 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8394
8395 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8396 type from rtx to rtx_insn *.
8397 (create_copy_of_insn_rtx): Likewise.
8398 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8399 (create_copy_of_insn_rtx): Likewise, also for local "res".
8400
8401 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8402
8403 * rtl.h (find_first_parameter_load): Strengthen return type from
8404 rtx to rtx_insn *.
8405 * rtlanal.c (find_first_parameter_load): Strengthen return type
8406 from rtx to rtx_insn *. Add checked cast for now, to postpone
8407 strengthening the params.
8408
8409 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8410
8411 PR fortran/44054
8412 * diagnostic.c: Set default caret.
8413 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8414 line is needed.
8415 * diagnostic.h (struct diagnostic_context):
8416
8417 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8418
8419 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8420 (sel_bb_head): Strengthen return type insn_t (currently just an
8421 rtx) to rtx_insn *.
8422 (sel_bb_end): Likewise.
8423
8424 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8425 (sel_bb_head): Strengthen return type and local "head" from
8426 insn_t (currently just an rtx) to rtx_insn *.
8427 (sel_bb_end): Likewise for return type.
8428 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8429 working with insn.
8430
8431 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8432
8433 * basic-block.h (get_last_bb_insn): Strengthen return type from
8434 rtx to rtx_insn *.
8435 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8436 end".
8437
8438 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8439
8440 PR fortran/44054
8441 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8442 to here ...
8443 (diagnostic_report_diagnostic): ... from here.
8444 * toplev.c (general_init): Move code to c-family.
8445
8446 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8447
8448 * df.h (web_entry_base): Replace existing struct web_entry with a
8449 new class web_entry_base with only the predecessor member.
8450 (unionfind_root): Remove declaration and move to class member.
8451 (unionfind_union): Remove declaration and move to friend
8452 function.
8453 (union_defs): Remove declaration.
8454 * web.c (web_entry_base::unionfind_root): Modify to be member
8455 function and adjust accessors.
8456 (unionfind_union): Modify to be friend function and adjust
8457 accessors.
8458 (web_entry): New subclass of web_entry_base containing the reg
8459 member.
8460 (union_match_dups): Modify for struct -> class changes.
8461 (union_defs): Likewise.
8462 (entry_register): Likewise.
8463 (pass_web::execute): Likewise.
8464
8465 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
8466
8467 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8468 builtin define __VEC_ELEMENT_REG_ORDER__.
8469
8470 2014-08-20 Martin Jambor <mjambor@suse.cz>
8471 Wei Mi <wmi@google.com>
8472
8473 PR ipa/60449
8474 PR middle-end/61776
8475 * tree-ssa-operands.c (update_stmt_operands): Remove
8476 MODIFIED_NORETURN_CALLS.
8477 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8478 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8479 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8480 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8481 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8482 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8483 (gimple_call_set_ctrl_altering): New func.
8484 (gimple_call_ctrl_altering_p): Ditto.
8485 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8486 (make_blocks): Use gimple_call_initialize_ctrl_altering.
8487 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8488 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8489 remove MODIFIED_NORETURN_CALLS.
8490
8491 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8492
8493 * coverage.c (coverage_compute_profile_id): Return non-0;
8494 also handle symbols with unique name.
8495 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8496
8497 2014-08-20 Steve Ellcey <sellcey@mips.com>
8498
8499 PR middle-end/49191
8500 * doc/sourcebuild.texi (non_strict_align): New.
8501
8502 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8503
8504 * cgraphunit.c (ipa_passes, compile): Reshedule
8505 symtab_remove_unreachable_nodes passes; update comments.
8506 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8507 TODO_remove_functions before the pass; the functions ought to be
8508 already removed.
8509 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8510 TODO_remove_functions.
8511 * passes.c (pass_data_early_local_passes): Do not schedule function
8512 removal.
8513 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8514
8515 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8516
8517 PR c/59304
8518 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8519 before setting the option.
8520 * diagnostic.c (diagnostic_classify_diagnostic): Record
8521 command-line status.
8522
8523 2014-08-20 Richard Biener <rguenther@suse.de>
8524
8525 PR lto/62190
8526 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8527 to build uint{16,32,64}_type_node.
8528
8529 2014-08-20 Terry Guo <terry.guo@arm.com>
8530
8531 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8532 with immediate_operand.
8533
8534 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8535
8536 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8537 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8538 NULL.
8539
8540 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8541
8542 PR preprocessor/51303
8543 * incpath.c (remove_duplicates): Use cpp_warning.
8544
8545 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8546
8547 PR c/60975
8548 PR c/53063
8549 * doc/options.texi (CPP): Document it.
8550 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8551 * optc-gen.awk: Handle CPP.
8552 * opth-gen.awk: Likewise.
8553
8554 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8555
8556 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8557 rtx_insn *.
8558 (duplicate_insn_chain): Likewise.
8559 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8560 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8561 checked cast for now (until we can strengthen the params in the
8562 same way).
8563 (duplicate_insn_chain): Likewise.
8564
8565 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8566
8567 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8568 rtx_insn *.
8569 (prev_cc0_setter): Likewise.
8570
8571 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8572 rtx_insn *, adding checked casts for now as necessary.
8573 (prev_cc0_setter): Likewise.
8574
8575 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8576
8577 * expr.h (emit_move_insn): Strengthen return type from rtx to
8578 rtx_insn *.
8579 (emit_move_insn_1): Likewise.
8580 (emit_move_complex_push): Likewise.
8581 (emit_move_complex_parts): Likewise.
8582
8583 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8584 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8585 with insns.
8586 (emit_move_complex_push): Strengthen return type from rtx to
8587 rtx_insn *.
8588 (emit_move_complex): Likewise, also for local "ret".
8589 (emit_move_ccmode): Likewise.
8590 (emit_move_multi_word): Likewise for return type and locals
8591 "last_insn", "seq".
8592 (emit_move_insn_1): Likewise for return type and locals "result",
8593 "ret".
8594 (emit_move_insn): Likewise for return type and local "last_insn".
8595 (compress_float_constant): Likewise.
8596
8597 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8598
8599 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8600 from rtx to rtx_insn *.
8601
8602 * rtl.h (emit_insn_before): Likewise.
8603 (emit_insn_before_noloc): Likewise.
8604 (emit_insn_before_setloc): Likewise.
8605 (emit_jump_insn_before): Likewise.
8606 (emit_jump_insn_before_noloc): Likewise.
8607 (emit_jump_insn_before_setloc): Likewise.
8608 (emit_call_insn_before): Likewise.
8609 (emit_call_insn_before_noloc): Likewise.
8610 (emit_call_insn_before_setloc): Likewise.
8611 (emit_debug_insn_before): Likewise.
8612 (emit_debug_insn_before_noloc): Likewise.
8613 (emit_debug_insn_before_setloc): Likewise.
8614 (emit_label_before): Likewise.
8615 (emit_insn_after): Likewise.
8616 (emit_insn_after_noloc): Likewise.
8617 (emit_insn_after_setloc): Likewise.
8618 (emit_jump_insn_after): Likewise.
8619 (emit_jump_insn_after_noloc): Likewise.
8620 (emit_jump_insn_after_setloc): Likewise.
8621 (emit_call_insn_after): Likewise.
8622 (emit_call_insn_after_noloc): Likewise.
8623 (emit_call_insn_after_setloc): Likewise.
8624 (emit_debug_insn_after): Likewise.
8625 (emit_debug_insn_after_noloc): Likewise.
8626 (emit_debug_insn_after_setloc): Likewise.
8627 (emit_label_after): Likewise.
8628 (emit_insn): Likewise.
8629 (emit_debug_insn): Likewise.
8630 (emit_jump_insn): Likewise.
8631 (emit_call_insn): Likewise.
8632 (emit_label): Likewise.
8633 (gen_clobber): Likewise.
8634 (emit_clobber): Likewise.
8635 (gen_use): Likewise.
8636 (emit_use): Likewise.
8637 (emit): Likewise.
8638
8639 (emit_barrier_before): Strengthen return type from rtx to
8640 rtx_barrier *.
8641 (emit_barrier_after): Likewise.
8642 (emit_barrier): Likewise.
8643
8644 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8645 from rtx to rtx_insn *. Add checked casts for now when converting
8646 "last" from rtx to rtx_insn *.
8647 (emit_insn_before_noloc): Likewise for return type.
8648 (emit_jump_insn_before_noloc): Likewise.
8649 (emit_call_insn_before_noloc): Likewise.
8650 (emit_debug_insn_before_noloc): Likewise.
8651 (emit_barrier_before): Strengthen return type and local "insn"
8652 from rtx to rtx_barrier *.
8653 (emit_label_before): Strengthen return type from rtx to
8654 rtx_insn *. Add checked cast for now when returning param
8655 (emit_pattern_after_noloc): Strengthen return type from rtx to
8656 rtx_insn *. Add checked casts for now when converting "last" from
8657 rtx to rtx_insn *.
8658 (emit_insn_after_noloc): Strengthen return type from rtx to
8659 rtx_insn *.
8660 (emit_jump_insn_after_noloc): Likewise.
8661 (emit_call_insn_after_noloc): Likewise.
8662 (emit_debug_insn_after_noloc): Likewise.
8663 (emit_barrier_after): Strengthen return type from rtx to
8664 rtx_barrier *.
8665 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8666 Add checked cast for now when converting "label" from rtx to
8667 rtx_insn *.
8668 (emit_pattern_after_setloc): Strengthen return type from rtx to
8669 rtx_insn *. Add checked casts for now when converting "last" from
8670 rtx to rtx_insn *.
8671 (emit_pattern_after): Strengthen return type from rtx to
8672 rtx_insn *.
8673 (emit_insn_after_setloc): Likewise.
8674 (emit_insn_after): Likewise.
8675 (emit_jump_insn_after_setloc): Likewise.
8676 (emit_jump_insn_after): Likewise.
8677 (emit_call_insn_after_setloc): Likewise.
8678 (emit_call_insn_after): Likewise.
8679 (emit_debug_insn_after_setloc): Likewise.
8680 (emit_debug_insn_after): Likewise.
8681 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8682 when converting "last" from rtx to rtx_insn *.
8683 (emit_pattern_before): Strengthen return type from rtx to
8684 rtx_insn *.
8685 (emit_insn_before_setloc): Likewise.
8686 (emit_insn_before): Likewise.
8687 (emit_jump_insn_before_setloc): Likewise.
8688 (emit_jump_insn_before): Likewise.
8689 (emit_call_insn_before_setloc): Likewise.
8690 (emit_call_insn_before): Likewise.
8691 (emit_debug_insn_before_setloc): Likewise.
8692 (emit_debug_insn_before): Likewise.
8693 (emit_insn): Strengthen return type and locals "last", "insn",
8694 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8695 within cases where we know we have an insn.
8696 (emit_debug_insn): Likewise.
8697 (emit_jump_insn): Likewise.
8698 (emit_call_insn): Strengthen return type and local "insn" from rtx
8699 to rtx_insn *.
8700 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8701 a checked cast to rtx_insn * for now on "label".
8702 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8703 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8704 (emit_use): Likewise.
8705 (gen_use): Likewise, also for local "seq".
8706 (emit): Likewise for return type and local "insn".
8707 (rtx_insn): Likewise for return type and local "new_rtx".
8708
8709 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8710 from rtx to rtx_barrier *.
8711
8712 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8713 changed return type from rtx to rtx_insn *, we must update
8714 "emit_fn" type, and this in turn means updating...
8715 (frame_insn): ...this. Strengthen return type from rtx to
8716 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8717
8718 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8719
8720 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8721 rtx to rtx_jump_table_data *. Also for local.
8722 * rtl.h (emit_jump_table_data): Likewise.
8723
8724 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8725
8726 * basic-block.h (create_basic_block_structure): Strengthen third
8727 param "bb_note" from rtx to rtx_note *.
8728 * rtl.h (emit_note_before): Strengthen return type from rtx to
8729 rtx_note *.
8730 (emit_note_after): Likewise.
8731 (emit_note): Likewise.
8732 (emit_note_copy): Likewise. Also, strengthen param similarly.
8733 * function.h (struct rtl_data): Strengthen field
8734 "x_stack_check_probe_note" from rtx to rtx_note *.
8735
8736 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
8737 from rtx to rtx_note *.
8738 * cfgrtl.c (create_basic_block_structure): Strengthen third param
8739 "bb_note" from rtx to rtx_note *.
8740 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
8741 when calling emit_note_copy.
8742 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
8743 rtx_note *.
8744 (emit_note_after): Likewise.
8745 (emit_note_before): Likewise.
8746 (emit_note_copy): Likewise. Also, strengthen param similarly.
8747 (emit_note): Likewise.
8748 * except.c (emit_note_eh_region_end): Likewise for return type.
8749 Strengthen local "next" from rtx to rtx_insn *.
8750 (convert_to_eh_region_ranges): Strengthen local "note"
8751 from rtx to rtx_note *.
8752 * final.c (change_scope): Likewise.
8753 (reemit_insn_block_notes): Likewise, for both locals named "note".
8754 Also, strengthen local "insn" from rtx to rtx_insn *.
8755 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
8756 rtx to rtx_note *.
8757 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
8758 strengthen local "seq" from rtx to rtx_insn *.
8759 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
8760 to rtx_note *.
8761 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
8762 vec<rtx_note *>.
8763 (get_bb_note_from_pool): Strengthen return type from rtx to
8764 rtx_note *.
8765 (sel_create_basic_block): Strengthen local "new_bb_note" from
8766 insn_t to rtx_note *.
8767 * var-tracking.c (emit_note_insn_var_location): Strengthen local
8768 "note" from rtx to rtx_note *.
8769 (emit_notes_in_bb): Likewise.
8770
8771 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8772
8773 * function.h (struct rtl_data): Strengthen field
8774 "x_parm_birth_insn" from rtx to rtx_insn *.
8775 * function.c (struct assign_parm_data_all): Strengthen fields
8776 "first_conversion_insn" and "last_conversion_insn" from rtx to
8777 rtx_insn *.
8778
8779 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8780
8781 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
8782 to rtx_insn *; also for local "var_end_seq".
8783 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
8784 (maybe_cleanup_end_of_block): Likewise for param "last" and local
8785 "insn".
8786 (expand_gimple_cond): Likewise for locals "last2" and "last".
8787 (mark_transaction_restart_calls): Likewise for local "insn".
8788 (expand_gimple_stmt): Likewise for return type and locals "last"
8789 and "insn".
8790 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
8791 (avoid_complex_debug_insns): Likewise for param "insn".
8792 (expand_debug_locations): Likewise for locals "insn", "last",
8793 "prev_insn" and "insn2".
8794 (expand_gimple_basic_block): Likewise for local "last".
8795 (construct_exit_block): Likewise for locals "head", "end",
8796 "orig_end".
8797 (pass_expand::execute): Likewise for locals "var_seq",
8798 "var_ret_seq", "next".
8799
8800 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8801
8802 * asan.h (asan_emit_stack_protection): Strengthen return type from
8803 rtx to rtx_insn *.
8804 * asan.c (asan_emit_stack_protection): Likewise. Add local
8805 "insns" to hold the return value.
8806
8807 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8808
8809 * basic-block.h (bb_note): Strengthen return type from rtx to
8810 rtx_note *.
8811 * sched-int.h (bb_note): Likewise.
8812 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
8813
8814 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8815
8816 * rtl.h (make_insn_raw): Strengthen return type from rtx to
8817 rtx_insn *.
8818
8819 * emit-rtl.c (make_insn_raw): Strengthen return type and local
8820 "insn" from rtx to rtx_insn *.
8821 (make_debug_insn_raw): Strengthen return type from rtx to
8822 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
8823 (make_jump_insn_raw): Strengthen return type from rtx to
8824 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
8825 (make_call_insn_raw): Strengthen return type from rtx to
8826 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
8827 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
8828 callback from rtx to rtx_insn *; likewise for local "insn" and
8829 "next", adding a checked cast to rtx_insn in the relevant cases of
8830 the switch statement.
8831 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
8832 callback from rtx to rtx_insn *.
8833 (emit_pattern_after_setloc): Likewise.
8834 (emit_pattern_after): Likewise.
8835 (emit_pattern_before_setloc): Likewise.
8836 (emit_pattern_before): Likewise.
8837
8838 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8839
8840 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
8841 rtx_call_insn *.
8842 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
8843 accepting an rtx_insn *.
8844 (last_call_insn): Strengthen return type from rtx to
8845 rtx_call_insn *.
8846
8847 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8848
8849 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
8850 "insns" from rtx to rtx_insn *.
8851 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
8852 locals "insn" and "prev".
8853
8854 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8855
8856 * rtl.h (tablejump_p): Strengthen third param from rtx * to
8857 rtx_jump_table_data **.
8858
8859 * cfgbuild.c (make_edges): Introduce local "table", using it in
8860 place of "tmp" for jump table data.
8861 (find_bb_boundaries): Strengthen local "table" from rtx to
8862 rtx_jump_table_data *.
8863 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8864 (outgoing_edges_match): Likewise for locals "table1" and "table2".
8865 (try_crossjump_to_edge): Likewise.
8866 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
8867 "table".
8868 (patch_jump_insn): Introduce local "table", using it in place of
8869 "tmp" for jump table data.
8870 (force_nonfallthru_and_redirect): Introduce local "table", so that
8871 call to tablejump_p can receive an rtx_jump_table_data **. Update
8872 logic around the call to overwrite "note" appropriately if
8873 tablejump_p returns non-zero.
8874 (get_last_bb_insn): Introduce local "table", using it in place of
8875 "tmp" for jump table data.
8876 * dwarf2cfi.c (create_trace_edges): Likewise.
8877
8878 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
8879 from rtx to rtx_jump_table_data *.
8880 (create_fix_barrier): Strengthen local "tmp" from rtx to
8881 rtx_jump_table_data *.
8882 (arm_reorg): Likewise for local "table".
8883
8884 * config/s390/s390.c (s390_chunkify_start): Likewise.
8885
8886 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
8887
8888 * jump.c (delete_related_insns): Strengthen local "lab_next" from
8889 rtx to rtx_jump_table_data *.
8890
8891 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
8892 rtx_jump_table_data **. Add a checked cast when writing through
8893 the pointer: we know there that local "table" is non-NULL and that
8894 JUMP_TABLE_DATA_P (table) holds.
8895 (label_is_jump_target_p): Introduce local "table", using it in
8896 place of "tmp" for jump table data.
8897
8898 2014-08-19 Marek Polacek <polacek@redhat.com>
8899
8900 PR c++/62153
8901 * doc/invoke.texi: Document -Wbool-compare.
8902
8903 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8904
8905 * rtl.h (entry_of_function): Strengthen return type from rtx to
8906 rtx_insn *.
8907 * cfgrtl.c (entry_of_function): Likewise.
8908
8909 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8910
8911 * emit-rtl.h (get_insns): Strengthen return type from rtx to
8912 rtx_insn *, adding a checked cast for now.
8913 (get_last_insn): Likewise.
8914
8915 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8916
8917 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
8918 rtx_code_label *.
8919
8920 * emit-rtl.c (gen_label_rtx): Likewise.
8921
8922 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8923
8924 * rtl.h (previous_insn): Strengthen return type from rtx to
8925 rtx_insn *.
8926 (next_insn): Likewise.
8927 (prev_nonnote_insn): Likewise.
8928 (prev_nonnote_insn_bb): Likewise.
8929 (next_nonnote_insn): Likewise.
8930 (next_nonnote_insn_bb): Likewise.
8931 (prev_nondebug_insn): Likewise.
8932 (next_nondebug_insn): Likewise.
8933 (prev_nonnote_nondebug_insn): Likewise.
8934 (next_nonnote_nondebug_insn): Likewise.
8935 (prev_real_insn): Likewise.
8936 (next_real_insn): Likewise.
8937 (prev_active_insn): Likewise.
8938 (next_active_insn): Likewise.
8939
8940 * emit-rtl.c (next_insn): Strengthen return type from rtx to
8941 rtx_insn *, adding a checked cast.
8942 (previous_insn): Likewise.
8943 (next_nonnote_insn): Likewise.
8944 (next_nonnote_insn_bb): Likewise.
8945 (prev_nonnote_insn): Likewise.
8946 (prev_nonnote_insn_bb): Likewise.
8947 (next_nondebug_insn): Likewise.
8948 (prev_nondebug_insn): Likewise.
8949 (next_nonnote_nondebug_insn): Likewise.
8950 (prev_nonnote_nondebug_insn): Likewise.
8951 (next_real_insn): Likewise.
8952 (prev_real_insn): Likewise.
8953 (next_active_insn): Likewise.
8954 (prev_active_insn): Likewise.
8955
8956 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
8957 param "stepfunc" so that it returns an rtx_insn * rather than an
8958 rtx, to track the change to prev_nonnote_insn_bb, which is the
8959 only function this is called with.
8960 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
8961
8962 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
8963
8964 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
8965 assert.
8966
8967 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8968
8969 * coretypes.h (class rtx_debug_insn): Add forward declaration.
8970 (class rtx_nonjump_insn): Likewise.
8971 (class rtx_jump_insn): Likewise.
8972 (class rtx_call_insn): Likewise.
8973 (class rtx_jump_table_data): Likewise.
8974 (class rtx_barrier): Likewise.
8975 (class rtx_code_label): Likewise.
8976 (class rtx_note): Likewise.
8977
8978 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
8979 adding the invariant DEBUG_INSN_P (X).
8980 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
8981 the invariant NONJUMP_INSN_P (X).
8982 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
8983 the invariant JUMP_P (X).
8984 (class rtx_call_insn): New, a subclass of rtx_insn, adding
8985 the invariant CALL_P (X).
8986 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
8987 invariant JUMP_TABLE_DATA_P (X).
8988 (class rtx_barrier): New, a subclass of rtx_insn, adding the
8989 invariant BARRIER_P (X).
8990 (class rtx_code_label): New, a subclass of rtx_insn, adding
8991 the invariant LABEL_P (X).
8992 (class rtx_note): New, a subclass of rtx_insn, adding
8993 the invariant NOTE_P(X).
8994 (is_a_helper <rtx_debug_insn *>::test): New.
8995 (is_a_helper <rtx_nonjump_insn *>::test): New.
8996 (is_a_helper <rtx_jump_insn *>::test): New.
8997 (is_a_helper <rtx_call_insn *>::test): New.
8998 (is_a_helper <rtx_jump_table_data *>::test): New functions,
8999 overloaded for both rtx and rtx_insn *.
9000 (is_a_helper <rtx_barrier *>::test): New.
9001 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9002 for both rtx and rtx_insn *.
9003 (is_a_helper <rtx_note *>::test): New.
9004
9005 2014-08-19 Marek Polacek <polacek@redhat.com>
9006
9007 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9008 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9009 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9010 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9011
9012 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9013
9014 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9015 rtx_insn *. To help with transition, for now, convert from an
9016 access macro into a pair of functions: BND_TO, returning an
9017 rtx_insn *, and...
9018 (SET_BND_TO): New function, for use where BND_TO is used as an
9019 lvalue.
9020
9021 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9022 SET_BND_TO.
9023 (BND_TO): New function, adding a checked cast.
9024 (SET_BND_TO): New function.
9025
9026 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9027 SET_BND_TO.
9028 (compute_av_set_on_boundaries): Likewise.
9029
9030 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9031
9032 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9033 destination if it is used in source.
9034 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9035 (*popcount<mode>2_falsedep_1): Likewise.
9036
9037 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9038
9039 PR other/62168
9040 * configure.ac: Set install_gold_as_default to no first.
9041 * configure: Regenerated.
9042
9043 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9044
9045 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9046 "note_list" field will eventually be an rtx_insn *. To help with
9047 transition, for now, convert from an access macro into a pair of
9048 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9049 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9050 used as an lvalue.
9051
9052 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9053 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9054
9055 * sel-sched-ir.c (init_bb): Likewise.
9056 (sel_restore_notes): Likewise.
9057 (move_bb_info): Likewise.
9058 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9059 (SET_BB_NOTE_LIST): New function.
9060
9061 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9062
9063 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9064 field will eventually be an rtx_insn *. To help with transition,
9065 for now, convert from an access macro into a pair of functions:
9066 VINSN_INSN_RTX, returning an rtx_insn *, and...
9067 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9068 is used as an lvalue.
9069
9070 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9071 SET_VINSN_INSN_RTX where it's used as an lvalue.
9072 (VINSN_INSN_RTX): New function.
9073 (SET_VINSN_INSN_RTX): New function.
9074
9075 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9076
9077 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9078 eventually be rtx_insn *, but to help with transition, for now,
9079 convert from an access macro into a pair of functions: DEP_PRO
9080 returning an rtx_insn * and...
9081 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9082 lvalue, returning an rtx&.
9083 (DEP_CON): Analogous changes to DEP_PRO above.
9084 (SET_DEP_CON): Likewise.
9085
9086 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9087 an lvalue to SET_DEP_CON.
9088 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9089 (sd_copy_back_deps): Likewise for DEP_CON.
9090 (DEP_PRO): New function, adding a checked cast for now.
9091 (DEP_CON): Likewise.
9092 (SET_DEP_PRO): New function.
9093 (SET_DEP_CON): Likewise.
9094
9095 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9096
9097 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9098 (extra_options): Add i386/cygwin.opt.
9099 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9100 (CPP_SPEC): Accept -pthread.
9101 (LINK_SPEC): Ditto.
9102 (GOMP_SELF_SPECS): Update comment.
9103 * config/i386/cygwin.opt: New file for -pthread flag.
9104
9105 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9106
9107 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9108 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9109 that we can return an rtx_insn *.
9110
9111 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9112
9113 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9114 when building executables, not DLLs. Add --large-address-aware
9115 under the same conditions.
9116 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9117 when building executables, not DLLs. Add --large-address-aware
9118 under the same conditions when using -m32.
9119
9120 * config/i386/cygwin-stdint.h: Throughout, make type
9121 definitions dependent on target architecture, not host.
9122
9123 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9124
9125 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9126 the return type from rtx to rtx_insn *, which will enable various
9127 conversions in followup patches. For now this is is done by a
9128 checked cast.
9129 (NEXT_INSN): Likewise.
9130 (SET_PREV_INSN): Convert to an inline function. This is intended
9131 for use as an lvalue, and so returns an rtx& to allow in-place
9132 modification.
9133 (SET_NEXT_INSN): Likewise.
9134
9135 2014-07-08 Mark Wielaard <mjw@redhat.com>
9136
9137 PR debug/59051
9138 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9139
9140 2014-08-19 Marek Polacek <polacek@redhat.com>
9141
9142 PR c/61271
9143 * cgraphunit.c (handle_alias_pairs): Fix condition.
9144
9145 2014-08-19 Richard Biener <rguenther@suse.de>
9146
9147 * gimple-fold.c (fold_gimple_assign): Properly build a
9148 null-pointer constant when devirtualizing addresses.
9149
9150 2014-07-07 Mark Wielaard <mjw@redhat.com>
9151
9152 * dwarf2out.c (decl_quals): New function.
9153 (modified_type_die): Take one cv_quals argument instead of two,
9154 one for const and one for volatile.
9155 (add_type_attribute): Likewise.
9156 (generic_parameter_die): Call add_type_attribute with one modifier
9157 argument.
9158 (base_type_for_mode): Likewise.
9159 (add_bounds_info): Likewise.
9160 (add_subscript_info): Likewise.
9161 (gen_array_type_die): Likewise.
9162 (gen_descr_array_type_die): Likewise.
9163 (gen_entry_point_die): Likewise.
9164 (gen_enumeration_type_die): Likewise.
9165 (gen_formal_parameter_die): Likewise.
9166 (gen_subprogram_die): Likewise.
9167 (gen_variable_die): Likewise.
9168 (gen_const_die): Likewise.
9169 (gen_field_die): Likewise.
9170 (gen_pointer_type_die): Likewise.
9171 (gen_reference_type_die): Likewise.
9172 (gen_ptr_to_mbr_type_die): Likewise.
9173 (gen_inheritance_die): Likewise.
9174 (gen_subroutine_type_die): Likewise.
9175 (gen_typedef_die): Likewise.
9176 (force_type_die): Likewise.
9177
9178 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9179
9180 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9181 if unset.
9182 * configure: Regenerate.
9183
9184 2014-08-19 Richard Biener <rguenther@suse.de>
9185
9186 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9187 DECL_EXTERNALs in BLOCKs as non-references.
9188 * tree-streamer-out.c (streamer_write_chain): Likewise.
9189
9190 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9191 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9192 Anna Tikhonova <anna.tikhonova@intel.com>
9193 Ilya Tocar <ilya.tocar@intel.com>
9194 Andrey Turetskiy <andrey.turetskiy@intel.com>
9195 Ilya Verbin <ilya.verbin@intel.com>
9196 Kirill Yukhin <kirill.yukhin@intel.com>
9197 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9198
9199 * config/i386/sse.md
9200 (define_mode_iterator VI48_AVX512F): Delete.
9201 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9202 (define_mode_iterator VI2_AVX512VL): Ditto.
9203 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9204 Delete.
9205 (define_insn
9206 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9207 New.
9208 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9209 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9210 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9211 with VI48_AVX512F_AVX512VL): New.
9212 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9213 with VI2_AVX512VL): Ditto.
9214
9215 2014-08-19 Marek Polacek <polacek@redhat.com>
9216
9217 * doc/invoke.texi: Document -Wc99-c11-compat.
9218
9219 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9220
9221 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9222 for rvalues, and...
9223 (SET_PREV_INSN): New macro, for use as an lvalue.
9224 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9225
9226 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9227 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9228 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9229 (fixup_abnormal_edges): Likewise.
9230 (unlink_insn_chain): Likewise.
9231 (fixup_reorder_chain): Likewise.
9232 (cfg_layout_delete_block): Likewise.
9233 (cfg_layout_merge_blocks): Likewise.
9234 * combine.c (update_cfg_for_uncondjump): Likewise.
9235 * emit-rtl.c (link_insn_into_chain): Likewise.
9236 (remove_insn): Likewise.
9237 (delete_insns_since): Likewise.
9238 (reorder_insns_nobb): Likewise.
9239 (emit_insn_after_1): Likewise.
9240 * final.c (rest_of_clean_state): Likewise.
9241 (final_scan_insn): Likewise.
9242 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9243 * haifa-sched.c (concat_note_lists): Likewise.
9244 (remove_notes): Likewise.
9245 (restore_other_notes): Likewise.
9246 (move_insn): Likewise.
9247 (unlink_bb_notes): Likewise.
9248 (restore_bb_notes): Likewise.
9249 * jump.c (delete_for_peephole): Likewise.
9250 * optabs.c (emit_libcall_block_1): Likewise.
9251 * reorg.c (emit_delay_sequence): Likewise.
9252 (fill_simple_delay_slots): Likewise.
9253 * sel-sched-ir.c (sel_move_insn): Likewise.
9254 (sel_remove_insn): Likewise.
9255 (get_bb_note_from_pool): Likewise.
9256 * sel-sched.c (move_nop_to_previous_block): Likewise.
9257
9258 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9259 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9260 (c6x_gen_bundles): Likewise.
9261 (hwloop_optimize): Likewise.
9262 * config/frv/frv.c (frv_function_prologue): Likewise.
9263 (frv_register_nop): Likewise.
9264 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9265 (ia64_reorg): Likewise.
9266 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9267 (mep_make_bundle): Likewise.
9268 (mep_bundle_insns): Likewise.
9269 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9270 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9271 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9272
9273 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9274
9275 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9276 return type from rtx to rtx_insn *.
9277 (BB_END): Likewise.
9278 (BB_HEADER): Likewise.
9279 (BB_FOOTER): Likewise.
9280 (SET_BB_HEAD): Convert to a function.
9281 (SET_BB_END): Likewise.
9282 (SET_BB_HEADER): Likewise.
9283 (SET_BB_FOOTER): Likewise.
9284
9285 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9286 Strengthen the return type from rtx to rtx_insn *. For now, this
9287 is done by adding a checked cast, but this will eventually
9288 become a field lookup.
9289 (BB_END): Likewise.
9290 (BB_HEADER): Likewise.
9291 (BB_FOOTER): Likewise.
9292 (SET_BB_HEAD): New function, from macro of same name. This is
9293 intended for use as an lvalue, and so returns an rtx& to allow
9294 in-place modification.
9295 (SET_BB_END): Likewise.
9296 (SET_BB_HEADER): Likewise.
9297 (SET_BB_FOOTER): Likewise.
9298
9299 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9300
9301 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9302 for rvalues, and...
9303 (SET_BB_HEAD): New macro, for use as a lvalue.
9304 (BB_END, SET_BB_END): Likewise.
9305 (BB_HEADER, SET_BB_HEADER): Likewise.
9306 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9307
9308 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9309 of BB_* macros into SET_BB_* macros.
9310 (fix_crossing_unconditional_branches): Likewise.
9311 * caller-save.c (save_call_clobbered_regs): Likewise.
9312 (insert_one_insn): Likewise.
9313 * cfgbuild.c (find_bb_boundaries): Likewise.
9314 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9315 (outgoing_edges_match): Likewise.
9316 (try_optimize_cfg): Likewise.
9317 * cfgexpand.c (expand_gimple_cond): Likewise.
9318 (expand_gimple_tailcall): Likewise.
9319 (expand_gimple_basic_block): Likewise.
9320 (construct_exit_block): Likewise.
9321 * cfgrtl.c (delete_insn): Likewise.
9322 (create_basic_block_structure): Likewise.
9323 (rtl_delete_block): Likewise.
9324 (rtl_split_block): Likewise.
9325 (emit_nop_for_unique_locus_between): Likewise.
9326 (rtl_merge_blocks): Likewise.
9327 (block_label): Likewise.
9328 (try_redirect_by_replacing_jump): Likewise.
9329 (emit_barrier_after_bb): Likewise.
9330 (fixup_abnormal_edges): Likewise.
9331 (record_effective_endpoints): Likewise.
9332 (relink_block_chain): Likewise.
9333 (fixup_reorder_chain): Likewise.
9334 (fixup_fallthru_exit_predecessor): Likewise.
9335 (cfg_layout_duplicate_bb): Likewise.
9336 (cfg_layout_split_block): Likewise.
9337 (cfg_layout_delete_block): Likewise.
9338 (cfg_layout_merge_blocks): Likewise.
9339 * combine.c (update_cfg_for_uncondjump): Likewise.
9340 * emit-rtl.c (add_insn_after): Likewise.
9341 (remove_insn): Likewise.
9342 (reorder_insns): Likewise.
9343 (emit_insn_after_1): Likewise.
9344 * haifa-sched.c (get_ebb_head_tail): Likewise.
9345 (restore_other_notes): Likewise.
9346 (move_insn): Likewise.
9347 (sched_extend_bb): Likewise.
9348 (fix_jump_move): Likewise.
9349 * ifcvt.c (noce_process_if_block): Likewise.
9350 (dead_or_predicable): Likewise.
9351 * ira.c (update_equiv_regs): Likewise.
9352 * reg-stack.c (change_stack): Likewise.
9353 * sel-sched-ir.c (sel_move_insn): Likewise.
9354 * sel-sched.c (move_nop_to_previous_block): Likewise.
9355
9356 * config/c6x/c6x.c (hwloop_optimize): Likewise.
9357 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9358
9359 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9360
9361 * rtl.h (for_each_rtx_in_insn): New function.
9362 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9363
9364 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9365
9366 * coretypes.h (class rtx_insn): Add forward declaration.
9367
9368 * rtl.h: Include is-a.h.
9369 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9370 workaround to ensure gengtype knows inheritance is occurring,
9371 whilst continuing to use the pre-existing special-casing for
9372 rtx_def.
9373 (class rtx_insn): New subclass of rtx_def, adding the
9374 invariant that we're dealing with something we can sanely use
9375 INSN_UID, NEXT_INSN, PREV_INSN on.
9376 (is_a_helper <rtx_insn *>::test): New.
9377 (is_a_helper <const rtx_insn *>::test): New.
9378
9379 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9380
9381 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9382
9383 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9384
9385 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9386 comdats as extern.
9387
9388 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9389
9390 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9391 to BUILT_IN_UNREACHABLE.
9392
9393 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9394
9395 PR target/62011
9396 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9397 New tune flag.
9398 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9399 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9400 (ffs<mode>2): Do not expand with tzcnt for
9401 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9402 (ffssi2_no_cmove): Ditto.
9403 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9404 (ctz<mode>2): New expander.
9405 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9406 (*ctz<mode>2_falsedep): New insn.
9407 (*ctz<mode>2): Rename from ctz<mode>2.
9408 (clz<mode>2_lzcnt): New expander.
9409 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9410 (*clz<mode>2_lzcnt_falsedep): New insn.
9411 (*clz<mode>2): Rename from ctz<mode>2.
9412 (popcount<mode>2): New expander.
9413 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9414 (*popcount<mode>2_falsedep): New insn.
9415 (*popcount<mode>2): Rename from ctz<mode>2.
9416 (*popcount<mode>2_cmp): Remove.
9417 (*popcountsi2_cmp_zext): Ditto.
9418
9419 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9420
9421 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9422 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9423 * config/microblaze/microblaze.h
9424 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9425
9426 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9427
9428 PR other/62168
9429 * configure.ac: Set install_gold_as_default to no for
9430 --enable-gold=no.
9431 * configure: Regenerated.
9432
9433 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9434
9435 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9436 * config.in: Add undef of HAVE_isl.
9437 * configure: Regenerate.
9438 * configure.ac: Add definition of HAVE_isl.
9439 * graphite-blocking.c: Add checking of HAVE_isl.
9440 * graphite-dependences.c: Likewise.
9441 * graphite-interchange.c: Likewise.
9442 * graphite-isl-ast-to-gimple.c: Likewise.
9443 * graphite-optimize-isl.c: Likewise.
9444 * graphite-poly.c: Likewise.
9445 * graphite-scop-detection.c: Likewise.
9446 * graphite-sese-to-poly.c: Likewise.
9447 * graphite.c: Likewise.
9448 * toplev.c: Replace the checking of HAVE_cloog with the checking
9449 of HAVE_isl.
9450
9451 2014-08-18 Richard Biener <rguenther@suse.de>
9452
9453 PR tree-optimization/62090
9454 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9455 (fold_builtin_3): Do not fold snprintf.
9456 (fold_builtin_4): Likewise.
9457 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9458 moved from builtins.c.
9459 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9460 (gimple_fold_builtin): Do not fold sprintf here.
9461
9462 2014-08-18 Richard Biener <rguenther@suse.de>
9463
9464 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9465 code to ...
9466 (maybe_canonicalize_mem_ref_addr): ... this function.
9467 (fold_stmt_1): Apply it here before all simplification.
9468
9469 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
9470
9471 PR ipa/61800
9472 * cgraph.h (cgraph_node::create_indirect_edge): Add
9473 compute_indirect_info param.
9474 * cgraph.c (cgraph_node::create_indirect_edge): Compute
9475 indirect_info only when it is required.
9476 * cgraphclones.c (cgraph_clone_edge): Do not recompute
9477 indirect_info fore cloned indirect edge.
9478
9479 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9481 Anna Tikhonova <anna.tikhonova@intel.com>
9482 Ilya Tocar <ilya.tocar@intel.com>
9483 Andrey Turetskiy <andrey.turetskiy@intel.com>
9484 Ilya Verbin <ilya.verbin@intel.com>
9485 Kirill Yukhin <kirill.yukhin@intel.com>
9486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9487
9488 * config/i386/sse.md
9489 (define_mode_iterator VI8_AVX2_AVX512BW): New.
9490 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9491
9492 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9493 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9494 Anna Tikhonova <anna.tikhonova@intel.com>
9495 Ilya Tocar <ilya.tocar@intel.com>
9496 Andrey Turetskiy <andrey.turetskiy@intel.com>
9497 Ilya Verbin <ilya.verbin@intel.com>
9498 Kirill Yukhin <kirill.yukhin@intel.com>
9499 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9500
9501 * config/i386/sse.md
9502 (define_mode_iterator VF1_AVX512VL): New.
9503 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9504 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9505 New.
9506
9507 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9508 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9509 Anna Tikhonova <anna.tikhonova@intel.com>
9510 Ilya Tocar <ilya.tocar@intel.com>
9511 Andrey Turetskiy <andrey.turetskiy@intel.com>
9512 Ilya Verbin <ilya.verbin@intel.com>
9513 Kirill Yukhin <kirill.yukhin@intel.com>
9514 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9515
9516 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9517 * config/i386/i386.md
9518 (define_code_iterator any_float): New.
9519 (define_code_attr floatsuffix): New.
9520 * config/i386/sse.md
9521 (define_mode_iterator VF1_128_256VL): New.
9522 (define_mode_iterator VF2_512_256VL): New.
9523 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9524 TARGET check.
9525 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9526 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9527 New.
9528 (define_mode_attr qq2pssuff): New.
9529 (define_mode_attr sselongvecmode): New.
9530 (define_mode_attr sselongvecmodelower): New.
9531 (define_mode_attr sseintvecmode3): New.
9532 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9533 New.
9534 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9535 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9536 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9537 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9538
9539 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9540 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9541 Anna Tikhonova <anna.tikhonova@intel.com>
9542 Ilya Tocar <ilya.tocar@intel.com>
9543 Andrey Turetskiy <andrey.turetskiy@intel.com>
9544 Ilya Verbin <ilya.verbin@intel.com>
9545 Kirill Yukhin <kirill.yukhin@intel.com>
9546 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9547
9548 * config/i386/sse.md
9549 (define_mode_iterator VF2_AVX512VL): New.
9550 (define_mode_attr sseintvecmode2): New.
9551 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9552 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9553 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9554 (define_insn
9555 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9556 Ditto.
9557 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9558 Ditto.
9559 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9560 Ditto.
9561
9562 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9563 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9564 Anna Tikhonova <anna.tikhonova@intel.com>
9565 Ilya Tocar <ilya.tocar@intel.com>
9566 Andrey Turetskiy <andrey.turetskiy@intel.com>
9567 Ilya Verbin <ilya.verbin@intel.com>
9568 Kirill Yukhin <kirill.yukhin@intel.com>
9569 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9570
9571 * config/i386/i386.md
9572 (define_insn "*movoi_internal_avx"): Add evex version.
9573 (define_insn "*movti_internal"): Ditto.
9574
9575 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9576 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9577 Anna Tikhonova <anna.tikhonova@intel.com>
9578 Ilya Tocar <ilya.tocar@intel.com>
9579 Andrey Turetskiy <andrey.turetskiy@intel.com>
9580 Ilya Verbin <ilya.verbin@intel.com>
9581 Kirill Yukhin <kirill.yukhin@intel.com>
9582 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9583
9584 * config/i386/i386.md
9585 (define_attr "isa"): Add avx512dq, noavx512dq.
9586 (define_attr "enabled"): Ditto.
9587 * config/i386/sse.md
9588 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9589
9590 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9591 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9592 Anna Tikhonova <anna.tikhonova@intel.com>
9593 Ilya Tocar <ilya.tocar@intel.com>
9594 Andrey Turetskiy <andrey.turetskiy@intel.com>
9595 Ilya Verbin <ilya.verbin@intel.com>
9596 Kirill Yukhin <kirill.yukhin@intel.com>
9597 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9598
9599 * config/i386/i386.c
9600 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9601 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9602 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9603 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9604 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9605 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9606 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9607 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9608 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9609 * config/i386/sse.md
9610 (define_mode_iterator VMOVE): Allow V4TI mode.
9611 (define_mode_iterator V_AVX512VL): New.
9612 (define_mode_iterator V): New handling for AVX512VL.
9613 (define_insn "avx512f_load<mode>_mask"): Delete.
9614 (define_insn "<avx512>_load<mode>_mask"): New.
9615 (define_insn "avx512f_store<mode>_mask"): Delete.
9616 (define_insn "<avx512>_store<mode>_mask"): New.
9617
9618
9619 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9620
9621 PR sanitizer/62089
9622 * asan.c (instrument_derefs): Fix bitfield check.
9623
9624 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9625
9626 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9627 * config/rs6000/htm.md (ttest): Remove clobber.
9628 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9629 (and_operand): Reformat.
9630 (and_2rld_operand): New predicate.
9631 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9632 parameter.
9633 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9634 parameter. Handle AND directly.
9635 (rs6000_split_logical_di): Remove last parameter.
9636 (rs6000_split_logical): Remove last parameter. Remove obsolete
9637 comment.
9638 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9639 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9640 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9641 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9642 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9643 and 5 anonymous splitters): Delete.
9644 (and<mode>3): New expander.
9645 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9646 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9647 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9648 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9649 (floatdisf2_internal1): Remove clobbers.
9650 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9651 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9652 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9653 (and<mode>3 for BOOL_128): Remove clobber.
9654 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9655 rs6000_split_logical.
9656 (*bool<mode>3_internal for BOOL_128): Adjust call of
9657 rs6000_split_logical.
9658 (*boolc<mode>3_internal1 for BOOL_128,
9659 *boolc<mode>3_internal2 for BOOL_128,
9660 *boolcc<mode>3_internal1 for BOOL_128,
9661 *boolcc<mode>3_internal2 for BOOL_128,
9662 *eqv<mode>3_internal1 for BOOL_128,
9663 *eqv<mode>3_internal2 for BOOL_128,
9664 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9665 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9666 clobber.
9667 (*vec_reload_and_reg_<mptrsize>): Delete.
9668
9669 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9670
9671 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9672 and split, *boolccsi3_internal3 and split): Delete.
9673 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9674 *boolccdi3_internal3 and split): Delete.
9675 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9676 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9677
9678 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9679
9680 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9681 and split, *boolcsi3_internal3 and split): Delete.
9682 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9683 *boolcdi3_internal3 and split): Delete.
9684 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9685
9686 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9687
9688 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9689 <'u'>: Also support printing the low-order 16 bits.
9690 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9691 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9692 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9693 *booldi3_internal3 and split): Delete.
9694 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9695 *bool<mode>3_dot2): New.
9696 (two anonymous define_splits for non_logical_cint_operand): Merge.
9697
9698 2014-08-17 Marek Polacek <polacek@redhat.com>
9699 Manuel López-Ibáñez <manu@gcc.gnu.org>
9700
9701 PR c/62059
9702 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9703 (diagnostic_show_locus): Don't print caret diagnostic
9704 if a column is larger than the line_width.
9705
9706 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9707
9708 * common.opt: Make the ISL AST generator to be the main code generator
9709 of Graphite.
9710
9711 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9712
9713 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9714
9715 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9716
9717 PR target/61641
9718 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9719 Declare.
9720 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9721 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
9722 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
9723 Define.
9724 * config/pa/pa.md (begin_brtab): Delete insn.
9725 (end_brtab): Likewise.
9726
9727 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9728
9729 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
9730
9731 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
9732
9733 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9734 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9735 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9736 (get_dynamic_type): Remove.
9737 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9738 (clear_speculation): Bring to ipa-deivrt.h
9739 (get_class_context): Rename to ...
9740 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9741 (contains_type_p): Update.
9742 (get_dynamic_type): Rename to ...
9743 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9744 (possible_polymorphic_call_targets): UPdate.
9745 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
9746 * ipa-prop.c (ipa_analyze_call_uses): Update.
9747
9748 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
9749
9750 * doc/invoke.texi (SH options): Document missing processor variant
9751 options. Remove references to Hitachi. Undocument deprecated mspace
9752 option.
9753
9754 2014-08-15 Jason Merrill <jason@redhat.com>
9755
9756 * tree.c (type_hash_canon): Uncomment assert.
9757
9758 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9759
9760 * input.h (in_system_header_at): Add comment.
9761
9762 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9763
9764 PR fortran/44054
9765 * diagnostic.c (build_message_string): Make it extern.
9766 * diagnostic.h (build_message_string): Make it extern.
9767
9768 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
9769
9770 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
9771 load/store from/to non-floating class pseudo.
9772
9773 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9774
9775 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
9776
9777 2014-08-15 Richard Biener <rguenther@suse.de>
9778
9779 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
9780 (get_constraint_for_ssa_var): Remove dead code.
9781 (get_constraint_for_1): Adjust.
9782 (find_what_var_points_to): Likewise.
9783 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
9784
9785 2014-08-15 Ilya Tocar <tocarip@gmail.com>
9786
9787 PR target/61878
9788 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
9789 (_mm512_mask_cmpge_epu32_mask): Ditto.
9790 (_mm512_cmpge_epu32_mask): Ditto.
9791 (_mm512_mask_cmpge_epi64_mask): Ditto.
9792 (_mm512_cmpge_epi64_mask): Ditto.
9793 (_mm512_mask_cmpge_epu64_mask): Ditto.
9794 (_mm512_cmpge_epu64_mask): Ditto.
9795 (_mm512_mask_cmple_epi32_mask): Ditto.
9796 (_mm512_cmple_epi32_mask): Ditto.
9797 (_mm512_mask_cmple_epu32_mask): Ditto.
9798 (_mm512_cmple_epu32_mask): Ditto.
9799 (_mm512_mask_cmple_epi64_mask): Ditto.
9800 (_mm512_cmple_epi64_mask): Ditto.
9801 (_mm512_mask_cmple_epu64_mask): Ditto.
9802 (_mm512_cmple_epu64_mask): Ditto.
9803 (_mm512_mask_cmplt_epi32_mask): Ditto.
9804 (_mm512_cmplt_epi32_mask): Ditto.
9805 (_mm512_mask_cmplt_epu32_mask): Ditto.
9806 (_mm512_cmplt_epu32_mask): Ditto.
9807 (_mm512_mask_cmplt_epi64_mask): Ditto.
9808 (_mm512_cmplt_epi64_mask): Ditto.
9809 (_mm512_mask_cmplt_epu64_mask): Ditto.
9810 (_mm512_cmplt_epu64_mask): Ditto.
9811 (_mm512_mask_cmpneq_epi32_mask): Ditto.
9812 (_mm512_mask_cmpneq_epu32_mask): Ditto.
9813 (_mm512_cmpneq_epu32_mask): Ditto.
9814 (_mm512_mask_cmpneq_epi64_mask): Ditto.
9815 (_mm512_cmpneq_epi64_mask): Ditto.
9816 (_mm512_mask_cmpneq_epu64_mask): Ditto.
9817 (_mm512_cmpneq_epu64_mask): Ditto.
9818 (_mm512_castpd_ps): Ditto.
9819 (_mm512_castpd_si512): Ditto.
9820 (_mm512_castps_pd): Ditto.
9821 (_mm512_castps_si512): Ditto.
9822 (_mm512_castsi512_ps): Ditto.
9823 (_mm512_castsi512_pd): Ditto.
9824 (_mm512_castpd512_pd128): Ditto.
9825 (_mm512_castps512_ps128): Ditto.
9826 (_mm512_castsi512_si128): Ditto.
9827 (_mm512_castpd512_pd256): Ditto.
9828 (_mm512_castps512_ps256): Ditto.
9829 (_mm512_castsi512_si256): Ditto.
9830 (_mm512_castpd128_pd512): Ditto.
9831 (_mm512_castps128_ps512): Ditto.
9832 (_mm512_castsi128_si512): Ditto.
9833 (_mm512_castpd256_pd512): Ditto.
9834 (_mm512_castps256_ps512): Ditto.
9835 (_mm512_castsi256_si512): Ditto.
9836 (_mm512_cmpeq_epu32_mask): Ditto.
9837 (_mm512_mask_cmpeq_epu32_mask): Ditto.
9838 (_mm512_mask_cmpeq_epu64_mask): Ditto.
9839 (_mm512_cmpeq_epu64_mask): Ditto.
9840 (_mm512_cmpgt_epu32_mask): Ditto.
9841 (_mm512_mask_cmpgt_epu32_mask): Ditto.
9842 (_mm512_mask_cmpgt_epu64_mask): Ditto.
9843 (_mm512_cmpgt_epu64_mask): Ditto.
9844 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
9845 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
9846 * config/i386/i386.c (enum ix86_builtins): Add
9847 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
9848 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
9849 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
9850 (bdesc_args): Add __builtin_ia32_si512_256si,
9851 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
9852 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
9853 __builtin_ia32_pd512_pd.
9854 (ix86_expand_args_builtin): Handle new FTYPEs.
9855 * config/i386/sse.md (castmode): Add 512-bit modes.
9856 (AVX512MODE2P): New.
9857 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
9858 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
9859
9860 2014-08-15 Richard Biener <rguenther@suse.de>
9861
9862 * fold-const.c (tree_swap_operands_p): Put all constants
9863 last, also strip sign-changing NOPs when considering further
9864 canonicalization. Canonicalize also when optimizing for size.
9865
9866 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9867
9868 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
9869 one_match > zero_match case to just before simple_sequence.
9870
9871 2014-08-15 Richard Biener <rguenther@suse.de>
9872
9873 * data-streamer.h (streamer_string_index, string_for_index):
9874 Remove.
9875 * data-streamer-out.c (streamer_string_index): Make static.
9876 * data-streamer-in.c (string_for_index): Likewise.
9877 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
9878 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
9879
9880 2014-08-15 Richard Biener <rguenther@suse.de>
9881
9882 PR tree-optimization/62031
9883 * tree-data-ref.c (dr_analyze_indices): Do not set
9884 DR_UNCONSTRAINED_BASE.
9885 (dr_may_alias_p): All indirect accesses have to go the
9886 formerly DR_UNCONSTRAINED_BASE path.
9887 * tree-data-ref.h (struct indices): Remove
9888 unconstrained_base member.
9889 (DR_UNCONSTRAINED_BASE): Remove.
9890
9891 2014-08-15 Jakub Jelinek <jakub@redhat.com>
9892
9893 PR middle-end/62092
9894 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
9895 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
9896 in OMP_CLAUSE_MAP in some outer target region.
9897
9898 2014-08-15 Bin Cheng <bin.cheng@arm.com>
9899
9900 * tree-ssa-loop-ivopts.c (ivopts_data): New field
9901 name_expansion_cache.
9902 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
9903 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
9904 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
9905 (difference_cannot_overflow_p): New parameter. Use affine
9906 expansion for equality check.
9907 (iv_elimination_compare_lt): Pass new argument.
9908
9909 2014-08-14 DJ Delorie <dj@redhat.com>
9910
9911 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
9912 variables to the accumulator.
9913
9914 * config/rl78/predicates.md (rl78_near_mem_operand): New.
9915 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
9916 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
9917 with far-far moves.
9918
9919 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
9920 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
9921 (umulqihi3_virt): Likewise.
9922 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
9923 (umulqihi3_real): Likewise.
9924
9925 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
9926
9927 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9928
9929 PR tree-optimization/62091
9930 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
9931 function_entry_reached.
9932 (walk_aliased_vdefs): Clear it here.
9933 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
9934
9935 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9936
9937 * ipa-utils.h (compare_virtual_tables): Declare.
9938 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
9939
9940 2014-08-14 Marek Polacek <polacek@redhat.com>
9941
9942 DR 458
9943 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
9944 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
9945
9946 2014-08-14 Tom de Vries <tom@codesourcery.com>
9947
9948 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
9949
9950 2014-08-14 Tom de Vries <tom@codesourcery.com>
9951
9952 PR rtl-optimization/62004
9953 PR rtl-optimization/62030
9954 * ifcvt.c (rtx_interchangeable_p): New function.
9955 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
9956 * emit-rtl.h (mem_attrs_eq_p): Declare.
9957
9958 2014-08-14 Roman Gareev <gareevroman@gmail.com>
9959
9960 * graphite-scop-detection.c:
9961 Add inclusion of cp-tree.h.
9962 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
9963 in case they are pointers to object types
9964
9965 2014-08-14 Richard Biener <rguenther@suse.de>
9966
9967 * BASE-VER: Change to 5.0.0
9968
9969 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9971 Anna Tikhonova <anna.tikhonova@intel.com>
9972 Ilya Tocar <ilya.tocar@intel.com>
9973 Andrey Turetskiy <andrey.turetskiy@intel.com>
9974 Ilya Verbin <ilya.verbin@intel.com>
9975 Kirill Yukhin <kirill.yukhin@intel.com>
9976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9977
9978 * config/i386/sse.md (define_mode_attr avx512): New.
9979 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
9980 V4DI modes.
9981 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
9982 (define_mode_attr ssse3_avx2): Ditto.
9983 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
9984 (define_mode_attr avx2_avx512bw): New.
9985 (define_mode_attr ssedoublemodelower): New.
9986 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
9987 V32HI, V64QI modes.
9988 (define_mode_attr ssebytemode): Allow V8DI modes.
9989 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
9990 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
9991 (define_mode_attr ssePSmode2): New.
9992 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
9993 V16HI, V32HI modes.
9994 (define_mode_attr dbpsadbwmode): New.
9995 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
9996 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
9997 (vi8_sse4_1_avx2_avx512): New.
9998 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
9999 mode attribute.
10000 (define_mode_attr blendbits): Move before its immediate use.
10001
10002 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10003 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10004 Anna Tikhonova <anna.tikhonova@intel.com>
10005 Ilya Tocar <ilya.tocar@intel.com>
10006 Andrey Turetskiy <andrey.turetskiy@intel.com>
10007 Ilya Verbin <ilya.verbin@intel.com>
10008 Kirill Yukhin <kirill.yukhin@intel.com>
10009 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10010
10011 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10012 * config/i386/subst.md
10013 (define_mode_iterator SUBST_V): Update.
10014 (define_mode_iterator SUBST_A): Ditto.
10015 (define_subst_attr "mask_operand7"): New.
10016 (define_subst_attr "mask_operand10"): New.
10017 (define_subst_attr "mask_operand_arg34") : New.
10018 (define_subst_attr "mask_expand_op3"): New.
10019 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10020 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10021 (define_subst_attr "mask_avx512vl_condition"): New.
10022 (define_subst_attr "round_mask_operand4"): Ditto.
10023 (define_subst_attr "round_mask_scalar_op3"): Delete.
10024 (define_subst_attr "round_mask_op4"): New.
10025 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10026 V16SImode.
10027 (define_subst_attr "round_modev8sf_condition"): New.
10028 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10029 <MODE>mode.
10030 (define_subst_attr "round_saeonly_mask_operand4"): New.
10031 (define_subst_attr "round_saeonly_mask_op4"): New.
10032 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10033 V8DImode, V16SImode.
10034 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10035 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10036 (define_subst_attr "mask_expand4_args"): New.
10037 (define_subst "mask_expand4"): New.
10038
10039 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10041 Anna Tikhonova <anna.tikhonova@intel.com>
10042 Ilya Tocar <ilya.tocar@intel.com>
10043 Andrey Turetskiy <andrey.turetskiy@intel.com>
10044 Ilya Verbin <ilya.verbin@intel.com>
10045 Kirill Yukhin <kirill.yukhin@intel.com>
10046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10047
10048 * config/i386/i386.md
10049 (define_attr "isa"): Add avx512bw,noavx512bw.
10050 (define_attr "enabled"): Ditto.
10051 (define_split): Add 32/64-bit mask logic.
10052 (define_insn "*k<logic>qi"): New.
10053 (define_insn "*k<logic>hi"): New.
10054 (define_insn "*anddi_1"): Add mask version.
10055 (define_insn "*andsi_1"): Ditto.
10056 (define_insn "*<code><mode>_1"): Ditto.
10057 (define_insn "*<code>hi_1"): Ditto.
10058 (define_insn "kxnor<mode>"): New.
10059 (define_insn "kunpcksi"): New.
10060 (define_insn "kunpckdi"): New.
10061 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10062 (define_insn "*one_cmplhi2_1"): Ditto.
10063
10064 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10065 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10066 Anna Tikhonova <anna.tikhonova@intel.com>
10067 Ilya Tocar <ilya.tocar@intel.com>
10068 Andrey Turetskiy <andrey.turetskiy@intel.com>
10069 Ilya Verbin <ilya.verbin@intel.com>
10070 Kirill Yukhin <kirill.yukhin@intel.com>
10071 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10072
10073 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10074 V32HImode.
10075
10076 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10077 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10078 Anna Tikhonova <anna.tikhonova@intel.com>
10079 Ilya Tocar <ilya.tocar@intel.com>
10080 Andrey Turetskiy <andrey.turetskiy@intel.com>
10081 Ilya Verbin <ilya.verbin@intel.com>
10082 Kirill Yukhin <kirill.yukhin@intel.com>
10083 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10084
10085 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10086 registers.
10087 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10088 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10089 xmm/ymm16+ when availble.
10090 * config/i386/i386.h
10091 (HARD_REGNO_NREGS): Add mask regs.
10092 (VALID_AVX512F_REG_MODE): Ditto.
10093 (VALID_AVX512F_REG_MODE) : Define.
10094 (VALID_MASK_AVX512BW_MODE): Ditto.
10095 (reg_class) (MASK_REG_P(X)): Define.
10096 * config/i386/i386.md: Do not split long moves with mask register,
10097 use kmovb if avx512bw is availible.
10098 (movdi_internal): Handle mask registers.
10099
10100 2014-08-14 Richard Biener <rguenther@suse.de>
10101
10102 PR tree-optimization/62081
10103 * tree-ssa-loop.c (pass_fix_loops): New pass.
10104 (pass_tree_loop::gate): Do not fixup loops here.
10105 * tree-pass.h (make_pass_fix_loops): Declare.
10106 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10107
10108 2014-08-14 Richard Biener <rguenther@suse.de>
10109
10110 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10111 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10112
10113 2014-08-14 Richard Biener <rguenther@suse.de>
10114
10115 PR tree-optimization/62090
10116 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10117 (fold_builtin_2): Do not fold sprintf.
10118 (fold_builtin_3): Likewise.
10119 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10120 moved from builtins.c.
10121 (gimple_fold_builtin): Fold sprintf.
10122
10123 2014-08-14 Richard Biener <rguenther@suse.de>
10124
10125 PR rtl-optimization/62079
10126 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10127 run cleanup_cfg.
10128
10129 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10130
10131 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10132 current_function_decl.
10133
10134 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10135
10136 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10137 cgraph_function_node to cgraph_node::function_symbol
10138 refactoring.
10139
10140 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10141
10142 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10143 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10144
10145 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10146
10147 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10148 warning.
10149
10150 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10151
10152 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10153 generator.
10154
10155 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10156
10157 PR target/62025
10158 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10159 any registers that are used in mem_insn.
10160
10161 2014-08-12 Steve Ellcey <sellcey@mips.com>
10162
10163 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10164
10165 2014-08-12 Steve Ellcey <sellcey@mips.com>
10166
10167 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10168 (MULTILIB_DIRNAMES): Ditto.
10169 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10170 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10171 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10172 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10173 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10174 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10175
10176 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10177
10178 PR target/61413
10179 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10180 of __ARM_SIZEOF_WCHAR_T.
10181
10182 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10183
10184 PR target/62098
10185 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10186 Remove unnecessary attributes.
10187
10188 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10189
10190 * internal-fn.c (init_internal_fns): Fix off-by-one.
10191
10192 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10193 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10194 Anna Tikhonova <anna.tikhonova@intel.com>
10195 Ilya Tocar <ilya.tocar@intel.com>
10196 Andrey Turetskiy <andrey.turetskiy@intel.com>
10197 Ilya Verbin <ilya.verbin@intel.com>
10198 Kirill Yukhin <kirill.yukhin@intel.com>
10199 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10200
10201 * config/i386/i386.c (standard_sse_constant_opcode): Use
10202 vpxord/vpternlog if avx512 is availible.
10203
10204 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10205
10206 PR middle-end/62103
10207 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10208 bitfields, that is when size doesn't match the size of type or the
10209 size of the constructor.
10210
10211 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10212
10213 * config/rs6000/constraints.md (wh constraint): New constraint,
10214 for FP registers if direct move is available.
10215 (wi constraint): New constraint, for VSX/FP registers that can
10216 handle 64-bit integers.
10217 (wj constraint): New constraint for VSX/FP registers that can
10218 handle 64-bit integers for direct moves.
10219 (wk constraint): New constraint for VSX/FP registers that can
10220 handle 64-bit doubles for direct moves.
10221 (wy constraint): Make documentation match implementation.
10222
10223 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10224 scalar_in_vmx_p field to simplify tests of whether SFmode or
10225 DFmode can go in the Altivec registers.
10226 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10227 (rs6000_setup_reg_addr_masks): Likewise.
10228 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10229 field, and wh/wi/wj/wk constraints.
10230 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10231 the wh/wi/wj/wk constraints.
10232 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10233 upper registers, prefer VSX registers unless the operation is a
10234 memory operation with REG+OFFSET addressing.
10235
10236 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10237 DImode. Change SFmode to use ww constraint instead of d to allow
10238 SF registers in the upper registers.
10239 (VSr2): Likewise.
10240 (VSr3): Likewise.
10241 (VSr5): Fix thinko in comment.
10242 (VSa): New mode attribute that is an alternative to wa, that
10243 returns the VSX register class that a mode can go in, but may not
10244 be the preferred register class.
10245 (VS_64dm): New mode attribute for appropriate register classes for
10246 referencing 64-bit elements of vectors for direct moves and normal
10247 moves.
10248 (VS_64reg): Likewise.
10249 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10250 register allocator to only registers the data type can handle.
10251 (vsx_le_perm_load_<mode>): Likewise.
10252 (vsx_le_perm_store_<mode>): Likewise.
10253 (vsx_xxpermdi2_le_<mode>): Likewise.
10254 (vsx_xxpermdi4_le_<mode>): Likewise.
10255 (vsx_lxvd2x2_le_<mode>): Likewise.
10256 (vsx_lxvd2x4_le_<mode>): Likewise.
10257 (vsx_stxvd2x2_le_<mode>): Likewise.
10258 (vsx_add<mode>3): Likewise.
10259 (vsx_sub<mode>3): Likewise.
10260 (vsx_mul<mode>3): Likewise.
10261 (vsx_div<mode>3): Likewise.
10262 (vsx_tdiv<mode>3_internal): Likewise.
10263 (vsx_fre<mode>2): Likewise.
10264 (vsx_neg<mode>2): Likewise.
10265 (vsx_abs<mode>2): Likewise.
10266 (vsx_nabs<mode>2): Likewise.
10267 (vsx_smax<mode>3): Likewise.
10268 (vsx_smin<mode>3): Likewise.
10269 (vsx_sqrt<mode>2): Likewise.
10270 (vsx_rsqrte<mode>2): Likewise.
10271 (vsx_tsqrt<mode>2_internal): Likewise.
10272 (vsx_fms<mode>4): Likewise.
10273 (vsx_nfma<mode>4): Likewise.
10274 (vsx_eq<mode>): Likewise.
10275 (vsx_gt<mode>): Likewise.
10276 (vsx_ge<mode>): Likewise.
10277 (vsx_eq<mode>_p): Likewise.
10278 (vsx_gt<mode>_p): Likewise.
10279 (vsx_ge<mode>_p): Likewise.
10280 (vsx_xxsel<mode>): Likewise.
10281 (vsx_xxsel<mode>_uns): Likewise.
10282 (vsx_copysign<mode>3): Likewise.
10283 (vsx_float<VSi><mode>2): Likewise.
10284 (vsx_floatuns<VSi><mode>2): Likewise.
10285 (vsx_fix_trunc<mode><VSi>2): Likewise.
10286 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10287 (vsx_x<VSv>r<VSs>i): Likewise.
10288 (vsx_x<VSv>r<VSs>ic): Likewise.
10289 (vsx_btrunc<mode>2): Likewise.
10290 (vsx_b2trunc<mode>2): Likewise.
10291 (vsx_floor<mode>2): Likewise.
10292 (vsx_ceil<mode>2): Likewise.
10293 (vsx_<VS_spdp_insn>): Likewise.
10294 (vsx_xscvspdp): Likewise.
10295 (vsx_xvcvspuxds): Likewise.
10296 (vsx_float_fix_<mode>2): Likewise.
10297 (vsx_set_<mode>): Likewise.
10298 (vsx_extract_<mode>_internal1): Likewise.
10299 (vsx_extract_<mode>_internal2): Likewise.
10300 (vsx_extract_<mode>_load): Likewise.
10301 (vsx_extract_<mode>_store): Likewise.
10302 (vsx_splat_<mode>): Likewise.
10303 (vsx_xxspltw_<mode>): Likewise.
10304 (vsx_xxspltw_<mode>_direct): Likewise.
10305 (vsx_xxmrghw_<mode>): Likewise.
10306 (vsx_xxmrglw_<mode>): Likewise.
10307 (vsx_xxsldwi_<mode>): Likewise.
10308 (vsx_xscvdpspn): Tighten constraints to only use register classes
10309 the types use.
10310 (vsx_xscvspdpn): Likewise.
10311 (vsx_xscvdpspn_scalar): Likewise.
10312
10313 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10314 wj, and wk constraints.
10315 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10316 general purpose registers.
10317
10318 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10319 direct moves.
10320 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10321 DImode instead of wm. Use wk constraint for direct move of DFmode
10322 instead of wm.
10323 (extendsidi2_lfiwax): Likewise.
10324 (lfiwax): Likewise.
10325 (lfiwzx): Likewise.
10326 (movdi_internal64): Likewise.
10327
10328 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10329 wk constraints. Make the wy constraint documentation match them
10330 implementation.
10331
10332 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10333
10334 Replacement of isl_int by isl_val
10335 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10336 (compute_bounds_for_param): use isl_val instead of isl_int
10337 (compute_bounds_for_loop): likewise
10338 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10339 (build_linearized_memory_access): use isl_val instead of isl_int
10340 (pdr_stride_in_loop): likewise
10341 * graphite-optimize-isl.c:
10342 (getPrevectorMap): use isl_val instead of isl_int
10343 * graphite-poly.c:
10344 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10345 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10346 (extern the_isl_ctx): declare
10347 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10348 (extract_affine_gmp): likewise
10349 (wrap): likewise
10350 (build_loop_iteration_domains): likewise
10351 (add_param_constraints): likewise
10352
10353 2014-08-11 Richard Biener <rguenther@suse.de>
10354
10355 PR tree-optimization/62075
10356 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10357 handle uses in patterns.
10358
10359 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10360 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10361 Anna Tikhonova <anna.tikhonova@intel.com>
10362 Ilya Tocar <ilya.tocar@intel.com>
10363 Andrey Turetskiy <andrey.turetskiy@intel.com>
10364 Ilya Verbin <ilya.verbin@intel.com>
10365 Kirill Yukhin <kirill.yukhin@intel.com>
10366 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10367
10368 * common/config/i386/i386-common.c
10369 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10370 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10371 (ix86_handle_option): Handle OPT_mavx512vl.
10372 * config/i386/cpuid.h (bit_AVX512VL): Define.
10373 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10374 set -mavx512vl accordingly.
10375 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10376 OPTION_MASK_ISA_AVX512VL.
10377 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10378 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10379 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10380 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10381 * config/i386/i386.h (TARGET_AVX512VL): Define.
10382 (TARGET_AVX512VL_P(x)): Ditto.
10383 * config/i386/i386.opt: Add mavx512vl.
10384
10385 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10386
10387 PR tree-optimization/62073
10388 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10389 a basic block.
10390
10391 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10392 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10393 Anna Tikhonova <anna.tikhonova@intel.com>
10394 Ilya Tocar <ilya.tocar@intel.com>
10395 Andrey Turetskiy <andrey.turetskiy@intel.com>
10396 Ilya Verbin <ilya.verbin@intel.com>
10397 Kirill Yukhin <kirill.yukhin@intel.com>
10398 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10399
10400 * common/config/i386/i386-common.c
10401 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10402 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10403 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10404 (ix86_handle_option): Handle OPT_mavx512bw.
10405 * config/i386/cpuid.h (bit_AVX512BW): Define.
10406 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10407 set -mavx512bw accordingly.
10408 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10409 OPTION_MASK_ISA_AVX512BW.
10410 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10411 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10412 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10413 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10414 * config/i386/i386.h (TARGET_AVX512BW): Define.
10415 (TARGET_AVX512BW_P(x)): Ditto.
10416 * config/i386/i386.opt: Add mavx512bw.
10417
10418 2014-08-11 Richard Biener <rguenther@suse.de>
10419
10420 PR tree-optimization/62070
10421 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10422 Remove SSA checking.
10423
10424 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10425
10426 * asan.c (asan_check_flags): New enum.
10427 (build_check_stmt_with_calls): Removed function.
10428 (build_check_stmt): Split inlining logic to
10429 asan_expand_check_ifn.
10430 (instrument_derefs): Rename parameter.
10431 (instrument_mem_region_access): Rename parameter.
10432 (instrument_strlen_call): Likewise.
10433 (asan_expand_check_ifn): New function.
10434 (asan_instrument): Remove old code.
10435 (pass_sanopt::execute): Change handling of
10436 asan-instrumentation-with-call-threshold.
10437 (asan_clear_shadow): Fix formatting.
10438 (asan_function_start): Likewise.
10439 (asan_emit_stack_protection): Likewise.
10440 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10441 Update description.
10442 * internal-fn.c (expand_ASAN_CHECK): New function.
10443 * internal-fn.def (ASAN_CHECK): New internal function.
10444 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10445 Update description.
10446 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10447 * tree.c: Small comment fix.
10448
10449 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10450
10451 * gimple.c (gimple_call_fnspec): Support internal functions.
10452 (gimple_call_return_flags): Use const.
10453 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10454 * internal-fn.def: Add fnspec information.
10455 * internal-fn.h (internal_fn_fnspec): New function.
10456 (init_internal_fns): Declare new function.
10457 * internal-fn.c (internal_fn_fnspec_array): New global variable.
10458 (init_internal_fns): New function.
10459 * tree-core.h: Update macro call.
10460 * tree.c (build_common_builtin_nodes): Initialize internal fns.
10461
10462 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
10463
10464 * lto-streamer.h (struct output_block::symbol): Change from
10465 struct symtab_node to plain symtab_node.
10466 (referenced_from_this_partition_p): Change first parameter
10467 from struct symtab_node to plain symtab_node.
10468
10469 2014-08-10 Marek Polacek <polacek@redhat.com>
10470
10471 PR c/51849
10472 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10473
10474 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
10475
10476 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10477 DECL correctly; do not give up on types in static storage.
10478
10479 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
10480
10481 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10482
10483 2014-08-09 Roman Gareev <gareevroman@gmail.com>
10484
10485 * graphite-isl-ast-to-gimple.c:
10486 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10487
10488 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10489
10490 2014-08-08 Guozhi Wei <carrot@google.com>
10491
10492 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10493
10494 2014-08-08 Cary Coutant <ccoutant@google.com>
10495
10496 * dwarf2out.c (get_skeleton_type_unit): Remove.
10497 (output_skeleton_debug_sections): Remove skeleton type units.
10498 (output_comdat_type_unit): Likewise.
10499 (dwarf2out_finish): Likewise.
10500
10501 2014-08-07 Yi Yang <ahyangyi@google.com>
10502
10503 * predict.c (expr_expected_value_1): Remove the redundant assignment.
10504
10505 2014-08-08 Richard Biener <rguenther@suse.de>
10506
10507 * lto-streamer.h (struct lto_input_block): Make it a class
10508 with a constructor.
10509 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10510 (struct lto_function_header, struct lto_simple_header,
10511 struct lto_simple_header_with_strings,
10512 struct lto_decl_header, struct lto_function_header): Make
10513 a simple inheritance hieararchy. Remove unused fields.
10514 (struct lto_asm_header): Remove.
10515 * lto-streamer-out.c (produce_asm): Adjust.
10516 (lto_output_toplevel_asms): Likewise.
10517 (produce_asm_for_decls): Likewise.
10518 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10519 * data-streamer-in.c (string_for_index): Likewise.
10520 * ipa-inline-analysis.c (inline_read_section): Likewise.
10521 * ipa-prop.c (ipa_prop_read_section): Likewise.
10522 (read_replacements_section): Likewise.
10523 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10524 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10525 (lto_destroy_simple_input_block): Likewise.
10526 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10527 (lto_input_toplevel_asms): Likewise.
10528
10529 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10530 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10531 Anna Tikhonova <anna.tikhonova@intel.com>
10532 Ilya Tocar <ilya.tocar@intel.com>
10533 Andrey Turetskiy <andrey.turetskiy@intel.com>
10534 Ilya Verbin <ilya.verbin@intel.com>
10535 Kirill Yukhin <kirill.yukhin@intel.com>
10536 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10537
10538 * common/config/i386/i386-common.c
10539 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10540 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10541 (ix86_handle_option): Handle OPT_mavx512dq.
10542 * config/i386/cpuid.h (bit_AVX512DQ): Define.
10543 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10544 set -mavx512dq accordingly.
10545 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10546 OPTION_MASK_ISA_AVX512DQ.
10547 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10548 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10549 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10550 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10551 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10552 (TARGET_AVX512DQ_P(x)): Ditto.
10553 * config/i386/i386.opt: Add mavx512dq.
10554
10555 2014-08-08 Richard Biener <rguenther@suse.de>
10556
10557 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10558 target_percent, target_percent_s): Export.
10559 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10560 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10561 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10562 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10563 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10564 Move to gimple-fold.c.
10565 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10566 strcat and strcpy.
10567 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10568 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10569 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10570 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10571 (rewrite_call_expr_array): Remove.
10572 (fold_builtin_sprintf_chk): Likewise.
10573 (fold_builtin_snprintf_chk): Likewise.
10574 (fold_builtin_varargs): Remove handling of sprintf_chk,
10575 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10576 (gimple_fold_builtin_sprintf_chk): Remove.
10577 (gimple_fold_builtin_snprintf_chk): Likewise.
10578 (gimple_fold_builtin_varargs): Likewise.
10579 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10580 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10581 * gimple.c (gimple_seq_add_seq_without_update): New function.
10582 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10583 * gimple-fold.c: Include output.h.
10584 (gsi_replace_with_seq_vops): New function, split out from ...
10585 (gimplify_and_update_call_from_tree): ... here.
10586 (replace_call_with_value): New function.
10587 (replace_call_with_call_and_fold): Likewise.
10588 (var_decl_component_p): Moved from builtins.c.
10589 (gimple_fold_builtin_memory_op): Moved from builtins.c
10590 fold_builtin_memory_op and rewritten to GIMPLE.
10591 (gimple_fold_builtin_memset): Likewise.
10592 (gimple_fold_builtin_strcpy): Likewise.
10593 (gimple_fold_builtin_strncpy): Likewise.
10594 (gimple_fold_builtin_strcat): Likewise.
10595 (gimple_fold_builtin_fputs): Likewise.
10596 (gimple_fold_builtin_memory_chk): Likewise.
10597 (gimple_fold_builtin_stxcpy_chk): Likewise.
10598 (gimple_fold_builtin_stxncpy_chk): Likewise.
10599 (gimple_fold_builtin_snprintf_chk): Likewise.
10600 (gimple_fold_builtin_sprintf_chk): Likewise.
10601 (gimple_fold_builtin_strlen): New function.
10602 (gimple_fold_builtin_with_strlen): New function split out from
10603 gimple_fold_builtin.
10604 (gimple_fold_builtin): Change signature and handle
10605 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10606 here. Call gimple_fold_builtin_with_strlen.
10607 (gimple_fold_call): Adjust.
10608
10609 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10610
10611 * calls.c (precompute_arguments): Check
10612 promoted_for_signed_and_unsigned_p and set the promoted mode.
10613 (promoted_for_signed_and_unsigned_p): New function.
10614 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10615 and set the promoted mode.
10616 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10617 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10618 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10619
10620
10621 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10622
10623 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10624 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10625 (expand_call): Likewise.
10626 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10627 to get promoted mode.
10628 * combine.c (record_promoted_value): Skip > 0 comparison with
10629 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10630 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10631 of SUBREG_PROMOTED_UNSIGNED_P.
10632 (convert_modes): Likewise.
10633 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10634 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10635 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10636 SUBREG_PROMOTED_UNSIGNED_SET.
10637 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10638 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10639 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10640 SUBREG_PROMOTED_SET.
10641 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10642 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10643 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10644 of SUBREG_PROMOTED_UNSIGNED_P.
10645 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10646 (SUBREG_PROMOTED_SET): New define.
10647 (SUBREG_PROMOTED_GET): Likewise.
10648 (SUBREG_PROMOTED_SIGN): Likewise.
10649 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10650 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10651 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10652 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10653 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10654 (nonzero_bits1): Skip > 0 comparison with the results as
10655 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10656 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10657 of !SUBREG_PROMOTED_UNSIGNED_P.
10658 * simplify-rtx.c (simplify_unary_operation_1): Use new
10659 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10660 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10661 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10662 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10663
10664 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10665
10666 * ipa-devirt.c: Include gimple-pretty-print.h
10667 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10668 further tests.
10669 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10670 (get_polymorphic_call_info): Fix return value
10671 (type_change_info): New sturcture based on ipa-prop
10672 variant.
10673 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10674 based on ipa-prop variant.
10675 (extr_type_from_vtbl_ptr_store): New function
10676 based on ipa-prop variant.
10677 (record_known_type): New function.
10678 (check_stmt_for_type_change): New function.
10679 (get_dynamic_type): New function.
10680 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10681 * tree-ssa-pre.c: ipa-utils.h
10682 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10683 machinery; sanity check with ipa-prop devirtualization.
10684 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10685 polymorphic flag.
10686
10687 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10688
10689 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10690 * alias.c, cfgexpand.c, cgraphbuild.c,
10691 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10692 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10693 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10694 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10695 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10696 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10697 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10698 dse.c, except.c, gengtype.c, gimple-expr.c,
10699 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10700 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10701 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10702 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10703 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10704 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10705 pointer-set.h.
10706 * pointer-set.c: Remove file.
10707 * pointer-set.h: Remove file.
10708
10709 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10710
10711 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10712 * config/arm/types.md (f_sels, f_seld): Delete.
10713
10714 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10715
10716 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10717 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10718 (aarch64_movdi_<mode>high): Likewise.
10719 (aarch64_mov<mode>high_di): Likewise.
10720 (aarch64_movdi_<mode>low): Likewise.
10721 (aarch64_mov<mode>low_di): Likewise.
10722 (aarch64_movtilow_tilow): Likewise.
10723 Add comment explaining usage of fp,simd attributes and of
10724 TARGET_FLOAT and TARGET_SIMD.
10725
10726 2014-08-07 Ian Bolton <ian.bolton@arm.com>
10727 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10728
10729 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
10730 Use MOVN when one of the half-words is 0xffff.
10731
10732 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10733
10734 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
10735
10736 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10737
10738 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
10739 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
10740 (rfs_str): String corresponding to RFS_* constants.
10741 (rank_for_schedule_stats_t): New typedef.
10742 (rank_for_schedule_stats): New static variable.
10743 (rfs_result): New static function.
10744 (rank_for_schedule): Track statistics for deciding heuristics.
10745 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
10746 static functions.
10747 (ready_sort): Use them for debug printouts.
10748 (schedule_block): Init statistics state. Print statistics on
10749 rank_for_schedule decisions.
10750
10751 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10752
10753 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
10754
10755 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
10756
10757 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
10758 constraint.
10759
10760 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10761
10762 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
10763 function to not conflict.
10764 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
10765 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
10766 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
10767 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
10768 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
10769 of pointer_map.
10770
10771 2014-08-07 Marek Polacek <polacek@redhat.com>
10772
10773 * fold-const.c (fold_binary_loc): Add folding of
10774 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
10775
10776 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
10777
10778 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
10779 instead of type size.
10780 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10781
10782 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10783
10784 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
10785 (*thumb1_movqi_insn): Likewise.
10786 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
10787
10788 2014-08-07 Tom de Vries <tom@codesourcery.com>
10789
10790 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10791 (glibc_2_11_or_earlier): Remove effective-target keywords.
10792
10793 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10794
10795 * config/arm/arm.c (bdesc_2arg): Fix typo.
10796 (arm_atomic_assign_expand_fenv): Remove The default implementation.
10797
10798 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
10799
10800 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
10801
10802 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
10803
10804 PR debug/61923
10805 * haifa-sched.c (advance_one_cycle): Fix dump.
10806 (schedule_block): Don't advance cycle if we are already at the
10807 beginning of the cycle.
10808
10809 2014-08-06 Martin Jambor <mjambor@suse.cz>
10810
10811 PR ipa/61393
10812 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
10813
10814 2014-08-06 Richard Biener <rguenther@suse.de>
10815
10816 PR lto/62034
10817 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
10818 SCCs here.
10819 (lto_input_tree): Pop SCCs here.
10820
10821 2014-08-06 Richard Biener <rguenther@suse.de>
10822
10823 PR tree-optimization/61320
10824 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
10825 handle misaligned loads.
10826
10827 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
10828
10829 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
10830 (aarch64_expand_vec_perm_const): Check for dup before zip.
10831
10832 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10833
10834 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
10835 CONST_INT_P instead of GET_CODE and compare.
10836 (aarch64_select_cc_mode): Likewise.
10837 (aarch64_print_operand): Likewise.
10838 (aarch64_rtx_costs): Likewise.
10839 (aarch64_simd_valid_immediate): Likewise.
10840 (aarch64_simd_check_vect_par_cnst_half): Likewise.
10841 (aarch64_simd_emit_pair_result_insn): Likewise.
10842
10843 2014-08-05 David Malcolm <dmalcolm@redhat.com>
10844
10845 * gdbhooks.py (find_gcc_source_dir): New helper function.
10846 (class PassNames): New class, locating and parsing passes.def.
10847 (class BreakOnPass): New command "break-on-pass".
10848
10849 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
10850
10851 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
10852 getting olde.
10853
10854 2014-08-05 Richard Biener <rguenther@suse.de>
10855
10856 PR rtl-optimization/61672
10857 * emit-rtl.h (mem_attrs_eq_p): Declare.
10858 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
10859 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
10860 * cfgcleanup.c (merge_memattrs): Likewise.
10861 Include emit-rtl.h.
10862
10863 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10864
10865 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
10866 rather than singleton vectors.
10867 (vqdmlsls_lane_s32): Likewise.
10868
10869 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10870
10871 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
10872 Use VSDQ_HSI mode iterator.
10873 (aarch64_sqrdmulh_laneq<mode>): Likewise.
10874 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
10875 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
10876 Use BUILTIN_VDQHS macro.
10877 (sqrdmulh_laneq): Likewise.
10878 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
10879 (vqdmlals_laneq_s32): Likewise.
10880 (vqdmlslh_laneq_s16): Likewise.
10881 (vqdmlsls_laneq_s32): Likewise.
10882 (vqdmulhh_laneq_s16): Likewise.
10883 (vqdmulhs_laneq_s32): Likewise.
10884 (vqrdmulhh_laneq_s16): Likewise.
10885 (vqrdmulhs_laneq_s32): Likewise.
10886
10887 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10888
10889 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
10890 (vmuld_laneq_f64): Likewise.
10891 (vmuls_laneq_f32): Likewise.
10892 (vmul_n_f64): Likewise.
10893 (vmuld_lane_f64): Reimplement in C.
10894 (vmuls_lane_f32): Likewise.
10895
10896 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10897
10898 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
10899 to reservation.
10900 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
10901
10902 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10903
10904 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
10905 (rbitsi2): Likewise.
10906 (*arm_rev): Set predicable and predicable_short_it attributes.
10907
10908 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10909
10910 * convert.c (convert_to_integer): Guard transformation to lrint by
10911 -fno-math-errno.
10912
10913 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
10914
10915 * config/aarch64/aarch64-builtins.c
10916 (aarch64_simd_builtin_type_mode): Delete.
10917 (v8qi_UP): Remap to V8QImode.
10918 (v4hi_UP): Remap to V4HImode.
10919 (v2si_UP): Remap to V2SImode.
10920 (v2sf_UP): Remap to V2SFmode.
10921 (v1df_UP): Remap to V1DFmode.
10922 (di_UP): Remap to DImode.
10923 (df_UP): Remap to DFmode.
10924 (v16qi_UP):V16QImode.
10925 (v8hi_UP): Remap to V8HImode.
10926 (v4si_UP): Remap to V4SImode.
10927 (v4sf_UP): Remap to V4SFmode.
10928 (v2di_UP): Remap to V2DImode.
10929 (v2df_UP): Remap to V2DFmode.
10930 (ti_UP): Remap to TImode.
10931 (ei_UP): Remap to EImode.
10932 (oi_UP): Remap to OImode.
10933 (ci_UP): Map to CImode.
10934 (xi_UP): Remap to XImode.
10935 (si_UP): Remap to SImode.
10936 (sf_UP): Remap to SFmode.
10937 (hi_UP): Remap to HImode.
10938 (qi_UP): Remap to QImode.
10939 (aarch64_simd_builtin_datum): Make mode a machine_mode.
10940 (VAR1): Build builtin name.
10941 (aarch64_init_simd_builtins): Remove dead code.
10942
10943 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10944
10945 * graphite-isl-ast-to-gimple.c:
10946 (set_options): New function.
10947 (scop_to_isl_ast): Add calling of set_options.
10948
10949 2014-08-05 Jakub Jelinek <jakub@redhat.com>
10950
10951 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
10952 (analyze_iv_to_split_insn): Don't initialize them.
10953 (get_ivts_expr): Removed.
10954 (allocate_basic_variable, insert_base_initialization): Use
10955 SET_SRC instead of *get_ivts_expr.
10956 (split_iv): Use &SET_SRC instead of get_ivts_expr.
10957
10958 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10959
10960 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
10961 (translate_isl_ast_for_loop): Add checking of the
10962 flag_loop_parallelize_all.
10963 (ast_build_before_for): New function.
10964 (scop_to_isl_ast): Add checking of the
10965 flag_loop_parallelize_all.
10966 * graphite-dependences.c: Move the defenition of the
10967 scop_get_dependences from graphite-optimize-isl.c to this file.
10968 (apply_schedule_on_deps): Add checking of the ux's emptiness.
10969 (carries_deps): Add checking of the x's value.
10970 * graphite-optimize-isl.c: Move the defenition of the
10971 scop_get_dependences to graphite-dependences.c.
10972 * graphite-poly.h: Add declarations of scop_get_dependences
10973 and carries_deps.
10974
10975 2014-08-04 Rohit <rohitarulraj@freescale.com>
10976
10977 PR target/60102
10978 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
10979 names.
10980 (alt_reg_names): Likewise.
10981 (rs6000_dwarf_register_span): For SPE high registers, replace
10982 dwarf register numbers with GCC hard register numbers.
10983 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
10984 (rs6000_dbx_register_number): For SPE high registers, return dwarf
10985 register number for the corresponding GCC hard register number.
10986 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
10987 newly added GCC hard register numbers for SPE high registers.
10988 (DWARF_FRAME_REGISTERS): Likewise.
10989 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
10990 (DWARF_FRAME_REGNUM): Likewise.
10991 (FIXED_REGISTERS): Likewise.
10992 (CALL_USED_REGISTERS): Likewise.
10993 (CALL_REALLY_USED_REGISTERS): Likewise.
10994 (REG_ALLOC_ORDER): Likewise.
10995 (enum reg_class): Likewise.
10996 (REG_CLASS_NAMES): Likewise.
10997 (REG_CLASS_CONTENTS): Likewise.
10998 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
10999
11000 2014-08-04 Richard Biener <rguenther@suse.de>
11001
11002 * gimple-fold.h (gimple_fold_builtin): Remove.
11003 * gimple-fold.c (gimple_fold_builtin): Make static.
11004 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11005 fold_stmt, not gimple_fold_builtin.
11006
11007 2014-08-04 Martin Liska <mliska@suse.cz>
11008
11009 * cgraph.h (csi_end_p): Removed.
11010 (csi_next): Likewise.
11011 (csi_node): Likewise.
11012 (csi_start): Likewise.
11013 (cgraph_node_in_set_p): Likewise.
11014 (cgraph_node_set_size): Likewise.
11015 (vsi_end_p): Likewise.
11016 (vsi_next): Likewise.
11017 (vsi_node): Likewise.
11018 (vsi_start): Likewise.
11019 (varpool_node_set_size): Likewise.
11020 (cgraph_node_set_nonempty_p): Likewise.
11021 (varpool_node_set_nonempty_p): Likewise.
11022 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11023 cgraph_node_set.
11024 * ipa-inline-transform.c: Likewise.
11025 * ipa-utils.c (cgraph_node_set_new): Removed.
11026 (cgraph_node_set_add): Likewise.
11027 (cgraph_node_set_remove): Likewise.
11028 (cgraph_node_set_find): Likewise.
11029 (dump_cgraph_node_set): Likewise.
11030 (debug_cgraph_node_set): Likewise.
11031 (free_cgraph_node_set): Likewise.
11032 (varpool_node_set_new): Likewise.
11033 (varpool_node_set_add): Likewise.
11034 (varpool_node_set_remove): Likewise.
11035 (varpool_node_set_find): Likewise.
11036 (dump_varpool_node_set): Likewise.
11037 (free_varpool_node_set): Likewise.
11038 (debug_varpool_node_set): Likewise.
11039 * tree-emutls.c (struct tls_var_data):
11040 (emutls_index): Removed.
11041 (emutls_decl): Likewise.
11042 (gen_emutls_addr): Function implementation uses newly added
11043 hash_map<varpool_node *, tls_var_data>.
11044 (clear_access_vars): Likewise.
11045 (create_emultls_var): Likewise.
11046 (ipa_lower_emutls): Likewise.
11047 (reset_access): New function.
11048
11049 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11050
11051 * config/i386/i386.c (ix86_option_override_internal): Add
11052 PTA_RDRND and PTA_MOVBE for bdver4.
11053
11054 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11055 James Greenhalgh <james.greenhalgh@arm.com>
11056
11057 * doc/md.texi (clrsb): Document.
11058 (clz): Change reference to x into operand 1.
11059 (ctz): Likewise.
11060 (popcount): Likewise.
11061
11062 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11063
11064 PR target/61713
11065 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11066 move to subtarget in serial version if result is ignored.
11067
11068 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11069 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11070
11071 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11072 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11073 (sched_analyze_insn): Update use of try_group_insn to
11074 sched_macro_fuse_insns.
11075 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11076 arguments that are not conditional jumps.
11077
11078 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11079
11080 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11081 family information. Handle BTVER2 cpu with cpuid family value.
11082
11083 2014-08-04 Tom de Vries <tom@codesourcery.com>
11084
11085 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11086 (glibc_2_11_or_earlier): Document effective-target keywords.
11087
11088 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11089
11090 * ipa-devirt.c (odr_type_warn_count): Add type.
11091 (possible_polymorphic_call_targets): Set it.
11092 (ipa_devirt): Use it.
11093
11094 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11095
11096 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11097 Document.
11098 * ipa-devirt.c: Include hash-map.h
11099 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11100 (clear_speculation): Break out of ...
11101 (get_class_context): ... here; speed up handling obviously useless
11102 speculations.
11103 (odr_type_warn_count, decl_warn_count): New structures.
11104 (final_warning_record): New structure.
11105 (final_warning_records): New static variable.
11106 (possible_polymorphic_call_targets): Cleanup handling of
11107 speculative info; do not build speculation when user do not care;
11108 record info about warnings when asked for.
11109 (add_decl_warning): New function.
11110 (type_warning_cmp): New function.
11111 (decl_warning_cmp): New function.
11112 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11113 (gate): Enable pass when warnings are requested.
11114 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11115 options.
11116
11117 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11118
11119 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11120 Fix cast.
11121 (hash_map::remove): New method.
11122 (hash_map::traverse): New method.
11123 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11124 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11125 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11126 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11127 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11128 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11129 pointer_map.
11130
11131 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11132
11133 * hash-set.h: new File.
11134 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11135 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11136 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11137 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11138 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11139 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11140 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11141 varpool.c: Use hash_set instead of pointer_set.
11142
11143 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11144
11145 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11146
11147 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11148
11149 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11150 for frame access when strict_p is false.
11151
11152 2014-08-01 Renlin Li <renlin.li@arm.com>
11153 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11154
11155 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11156 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11157 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11158 Declaration.
11159 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11160 predicate.
11161 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11162 aarch64_mem_pair_offset.
11163
11164 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11165
11166 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11167 offset.
11168 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11169 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11170
11171 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11172
11173 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11174
11175 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11176
11177 PR regression/61510
11178 * cgraphunit.c (analyze_functions): Use get_create rather than get
11179 for decls which are clones of abstract functions.
11180
11181 2014-08-01 Martin Liska <mliska@suse.cz>
11182
11183 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11184 * ipa-prop.h (count_formal_params): Global function created from static.
11185 * ipa-prop.c (count_formal_params): Likewise.
11186 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11187 profiles for semantically equivalent functions.
11188 * passes.c (do_per_function): If we load body of a function
11189 during WPA, this condition should behave same.
11190 * varpool.c (ctor_for_folding): More tolerant assert for variable
11191 aliases created during WPA.
11192
11193 2014-08-01 Martin Liska <mliska@suse.cz>
11194
11195 * doc/invoke.texi (Options That Control Optimization): Documentation
11196 for -foptimize-strlen introduced. Optimization levels default options
11197 fixed.
11198
11199 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11200
11201 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11202 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11203 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11204 type to bool.
11205 * stor-layout.h (min_align_of_type): New prototype.
11206 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11207 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11208 check.
11209 * ubsan.c: Include builtins.h.
11210 (ubsan_expand_bounds_ifn): Change return type to bool,
11211 always return true.
11212 (ubsan_expand_null_ifn): Change return type to bool, change
11213 argument to gimple_stmt_iterator *. Handle both null and alignment
11214 sanitization, take type from ckind argument's type rather than
11215 first argument.
11216 (instrument_member_call): Removed.
11217 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11218 Handle both null and alignment sanitization, don't say whole
11219 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11220 call instead of 2 argument.
11221 (instrument_null): Adjust instrument_mem_ref caller. Don't
11222 instrument calls here.
11223 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11224 like SANITIZE_NULL.
11225 * stor-layout.c (min_align_of_type): New function.
11226 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11227 Or it into SANITIZE_UNDEFINED.
11228 * doc/invoke.texi (-fsanitize=alignment): Document.
11229
11230 2014-07-31 Andi Kleen <ak@linux.intel.com>
11231
11232 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11233
11234 2014-07-31 Andi Kleen <ak@linux.intel.com>
11235
11236 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11237 inchash.
11238 (vn_reference_compute_hash): Dito.
11239 (vn_nary_op_compute_hash): Dito.
11240 (vn_phi_compute_hash): Dito.
11241 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11242
11243 2014-07-31 Andi Kleen <ak@linux.intel.com>
11244
11245 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11246 Rename to inchash:add_expr_commutative. Convert to inchash.
11247 (iterative_hash_hashable_expr): Rename to
11248 inchash:add_hashable_expr. Convert to inchash.
11249 (avail_expr_hash): Dito.
11250
11251 2014-07-31 Andi Kleen <ak@linux.intel.com>
11252
11253 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11254 Convert to inchash.
11255
11256 2014-07-31 Andi Kleen <ak@linux.intel.com>
11257
11258 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11259
11260 2014-07-31 Andi Kleen <ak@linux.intel.com>
11261
11262 * Makefile.in (OBJS): Add rtlhash.o
11263 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11264 (loc_checksum): Dito.
11265 (loc_checksum_ordered): Dito.
11266 (hash_loc_operands): Dito.
11267 (hash_locs): Dito.
11268 (hash_loc_list): Dito.
11269 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11270 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11271 * rtlhash.c: New file.
11272 * rtlhash.h: New file.
11273
11274 2014-07-31 Andi Kleen <ak@linux.intel.com>
11275
11276 * inchash.h (inchash): Change inchash class to namespace.
11277 (class hash): ... Rename from inchash.
11278 (add_object): Move from macro to class template.
11279 * lto-streamer-out.c (hash_tree): Change inchash
11280 to inchash::hash.
11281 * tree.c (build_type_attribute_qual_variant): Dito.
11282 (type_hash_list): Dito.
11283 (attribute_hash_list): Dito.
11284 (iterative_hstate_expr): Rename to inchash::add_expr
11285 (build_range_type_1): Change inchash to inchash::hash
11286 and use hash::add_expr.
11287 (build_array_type_1): Dito.
11288 (build_function_type): Dito
11289 (build_method_type_directly): Dito.
11290 (build_offset_type): Dito.
11291 (build_complex_type): Dito.
11292 (make_vector_type): Dito.
11293 * tree.h (iterative_hash_expr): Dito.
11294
11295 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11296
11297 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11298
11299 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11300
11301 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11302 correct alphabetical position.
11303 (vpaddd_f64): Rewrite using builtins.
11304 (vpaddd_s64): Move to correct alphabetical position.
11305 (vpaddd_u64): New.
11306
11307 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11308
11309 PR target/61844
11310 * config/sh/sh.c (sh_legitimate_address_p,
11311 sh_legitimize_reload_address): Handle reg+reg address modes when
11312 ALLOW_INDEXED_ADDRESS is false.
11313 * config/sh/predicates.md (general_movsrc_operand,
11314 general_movdst_operand): Likewise.
11315
11316 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11317
11318 * config/aarch64/aarch64-builtins.c
11319 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11320 BYTES_BIG_ENDIAN.
11321
11322 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11323
11324 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11325 the generated mask based on BYTES_BIG_ENDIAN.
11326 (aarch64_simd_check_vect_par_cnst_half): New.
11327 * config/aarch64/aarch64-protos.h
11328 (aarch64_simd_check_vect_par_cnst_half): New.
11329 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11330 the check out to aarch64_simd_check_vect_par_cnst_half.
11331 (vect_par_cnst_lo_half): Likewise.
11332 * config/aarch64/aarch64-simd.md
11333 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11334 (move_hi_quad_<mode>): Always generate a low mask.
11335
11336 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11337
11338 * doc/invoke.texi (AVR Options): Add documentation about
11339 __AVR_DEVICE_NAME__ built-in macro.
11340
11341 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
11342
11343 PR target/61948
11344 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11345 constraints are satisfied.
11346 (<shift>di3_neon): Likewise.
11347
11348 2014-07-31 Richard Biener <rguenther@suse.de>
11349
11350 PR tree-optimization/61964
11351 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11352 by structural equality.
11353
11354 2014-07-31 Yury Gribov <y.gribov@samsung.com>
11355
11356 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11357 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11358 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11359 New enums.
11360 * gcc.c (sanitize_spec_function): Support new option.
11361 (SANITIZER_SPEC): Remove now redundant check.
11362 * opts.c (common_handle_option): Support new option.
11363 (finish_options): Check for incompatibilities.
11364 * toplev.c (process_options): Split userspace-specific checks.
11365
11366 2014-07-31 Richard Biener <rguenther@suse.de>
11367
11368 * lto-streamer.h (struct output_block): Remove global.
11369 (struct data_in): Remove labels, num_named_labels and
11370 num_unnamed_labels.
11371 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11372 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11373
11374 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11375
11376 PR c++/60517
11377 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11378 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11379 (isolate_path): New argument to avoid inserting a trap.
11380 (find_implicit_erroneous_behaviour): Handle returning the address
11381 of a local variable.
11382 (find_explicit_erroneous_behaviour): Likewise.
11383
11384 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11385
11386 PR lto/61868
11387 * toplev.c (init_random_seed): Move piece of code never called to
11388 set_random_seed.
11389 (set_random_seed): see above.
11390
11391 2014-07-31 Tom de Vries <tom@codesourcery.com>
11392
11393 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11394
11395 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11396
11397 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11398 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11399
11400 2014-07-31 Richard Biener <rguenther@suse.de>
11401
11402 * data-streamer.h (streamer_write_data_stream): Declare here,
11403 renamed from ...
11404 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11405 * lto-cgraph.c (lto_output_node): Adjust.
11406 (lto_output_varpool_node): Likewise.
11407 * data-streamer-out.c (streamer_string_index): Likewise.
11408 (streamer_write_data_stream, lto_append_block): Move from ...
11409 * lto-section-out.c (lto_output_data_stream,
11410 lto_append_block): ... here.
11411
11412 2014-07-30 Mike Stump <mikestump@comcast.net>
11413
11414 * configure.ac: Also check for popen.
11415 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11416 * configure: Regenerate.
11417 * config.in: Regenerate.
11418
11419 2014-07-30 Martin Jambor <mjambor@suse.cz>
11420
11421 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11422 parameter to gimple.
11423
11424 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11425
11426 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11427 address as second parameter to __tpf_eh_return routine.
11428
11429 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11430
11431 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11432 Thumb2.
11433
11434 2014-07-30 Tom Tromey <tromey@redhat.com>
11435
11436 PR c/59855
11437 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11438 * doc/extend.texi (Type Attributes): Document designated_init
11439 attribute.
11440
11441 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11442
11443 * graphite-isl-ast-to-gimple.c:
11444 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11445 (gcc_expression_from_isl_expression): Pass type to
11446 gcc_expression_from_isl_ast_expr_id.
11447
11448 2014-07-30 Richard Biener <rguenther@suse.de>
11449
11450 * lto-streamer.h (lto_write_data): New function.
11451 * langhooks.c (lhd_append_data): Do not free block.
11452 * lto-section-out.c (lto_write_data): New function writing
11453 raw data to the current section.
11454 (lto_write_stream): Adjust for langhook semantic change.
11455 (lto_destroy_simple_output_block): Write header directly.
11456 * lto-opts.c (lto_write_options): Write options directly.
11457 * lto-streamer-out.c (produce_asm): Write heaeder directly.
11458 (lto_output_toplevel_asms): Likewise.
11459 (copy_function_or_variable): Copy data directly.
11460 (write_global_references): Output index table directly.
11461 (lto_output_decl_state_refs): Likewise.
11462 (write_symbol): Write data directly.
11463 (produce_symtab): Adjust.
11464 (produce_asm_for_decls): Output header and refs directly.
11465
11466 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11467
11468 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11469 to speculative_targets
11470 (get_class_context): Fix handling of contextes without outer type;
11471 avoid matching non-polymorphic types in LTO.
11472 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11473 parameter to speculative_targetsp; handle speculation.
11474 (dump_possible_polymorphic_call_targets): Update dumping.
11475
11476 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11477
11478 * common.opt (Wodr): Enable by default.
11479
11480 2014-07-29 Olivier Hainque <hainque@adacore.com>
11481
11482 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11483
11484 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
11485
11486 PR bootstrap/61914
11487 * gengtype.c (strtoken): New function.
11488 (create_user_defined_type): Replace strtok with strtoken.
11489
11490 2014-07-29 Nathan Sidwell <nathan@acm.org>
11491
11492 * gcov-io.c (gcov_var): Make hidden.
11493 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11494 (gcov_do_dump): Declare.
11495 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11496
11497 2014-07-29 Martin Jambor <mjambor@suse.cz>
11498
11499 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11500 parameter to gimple.
11501 (sra_modify_assign): Likewise.
11502
11503 2014-07-29 Richard Biener <rguenther@suse.de>
11504
11505 PR middle-end/52478
11506 * expr.c (expand_expr_real_2): Revert last change.
11507
11508 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11509
11510 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11511 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11512 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11513 call.
11514 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11515 (contains_type_p): Forward declare.
11516 (polymorphic_call_target_hasher::hash): Hash speculative info.
11517 (polymorphic_call_target_hasher::equal): Compare speculative info.
11518 (get_class_context): Handle speuclation.
11519 (contains_type_p): Update.
11520 (get_polymorphic_call_info_for_decl): Update.
11521 (walk_ssa_copies): Break out from ...
11522 (get_polymorphic_call_info): ... here; set speculative context
11523 before giving up.
11524 * ipa-prop.c (ipa_write_indirect_edge_info,
11525 ipa_read_indirect_edge_info): Stream speculative context.
11526 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11527 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11528 SPECULATIVE_MAYBE_DERIVED_TYPE).
11529 (possible_polymorphic_call_targets overriders): Update.
11530 (dump_possible_polymorphic_call_targets overriders): Update.
11531 (dump_possible_polymorphic_call_target_p overriders): Update.
11532
11533 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11534
11535 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11536 ipa-devirt path; fix thinko there.
11537
11538 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11539
11540 * config/i386/i386.c (ix86_return_in_memory): Replace one
11541 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11542
11543 2014-07-28 Marek Polacek <polacek@redhat.com>
11544
11545 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
11546
11547 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
11548
11549 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11550 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11551 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11552 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11553 (USE_LD_AS_NEEDED): Likewise.
11554 (ASM_APP_ON): Likewise.
11555 (ASM_APP_OFF): Likewise.
11556 (TARGET_POSIX_IO): Likewise.
11557 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11558 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11559 (USE_LD_AS_NEEDED): Likewise.
11560 (ASM_APP_ON): Likewise.
11561 (ASM_APP_OFF): Likewise.
11562 (TARGET_POSIX_IO): Likewise.
11563
11564 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11565
11566 PR middle-end/61734
11567 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11568 operators other than the equality operators.
11569
11570 2014-07-28 Richard Biener <rguenther@suse.de>
11571
11572 PR middle-end/52478
11573 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11574 sure to register SImode ones, not only >= word_mode ones.
11575 * expr.c (expand_expr_real_2): When expanding -ftrapv
11576 binops do not use OPTAB_LIB_WIDEN.
11577
11578 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11579
11580 PR middle-end/61919
11581 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11582 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11583 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11584 inserting them in the insn stream.
11585
11586 2014-07-28 Marek Polacek <polacek@redhat.com>
11587
11588 PR middle-end/61913
11589 * common.opt (Wodr): Add Var.
11590
11591 2014-07-28 Richard Biener <rguenther@suse.de>
11592
11593 PR tree-optimization/61921
11594 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11595 if there is a varpool node before dereferencing it.
11596
11597 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11598
11599 * graphite-sese-to-poly.c:
11600 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11601 id of the pbb), which contains pointer to the pbb1.
11602
11603 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11604
11605 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11606
11607 * graphite-isl-ast-to-gimple.c:
11608 (graphite_create_new_guard): New function.
11609 (translate_isl_ast_node_if): New function.
11610 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11611
11612 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11613
11614 2014-07-27 Anthony Green <green@moxielogic.com>
11615
11616 * config.gcc: Add moxie-*-moxiebox* configuration.
11617 * config/moxie/moxiebox.h: New file.
11618
11619 2014-07-26 Andrew Pinski <apinski@cavium.com>
11620
11621 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11622 from the read only register.
11623
11624 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11625
11626 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11627 as the allocation class if it isn't likely to be spilled.
11628
11629 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11630
11631 * rtl.h (tls_referenced_p): Declare.
11632 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11633 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11634 (mips_cannot_force_const_mem): Use tls_referenced_p.
11635 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11636 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11637 instead of pa_tls_referenced_p.
11638 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11639 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11640 (pa_legitimate_constant_p): Likewise.
11641 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11642 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11643 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11644 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11645 rs6000_tls_referenced_p.
11646 (rs6000_tls_symbol_ref_1): Delete.
11647
11648 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11649
11650 PR target/44551
11651 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11652 Optimize inverse of a VEC_CONCAT.
11653
11654 2014-07-25 Xinliang David Li <davidxl@google.com>
11655
11656 * params.def: New parameter.
11657 * coverage.c (get_coverage_counts): Check new flag.
11658 (coverage_compute_profile_id): Check new flag.
11659 (coverage_begin_function): Check new flag.
11660 (coverage_end_function): Check new flag.
11661 * value-prof.c (coverage_node_map_initialized_p): New function.
11662 (init_node_map): Populate map with all functions.
11663 * doc/invoke.texi: Document new parameter.
11664
11665 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11666 Richard Biener <rguenther@suse.de>
11667
11668 * lto-streamer-out.c (struct sccs): Turn to ...
11669 (class DFS): ... this one; refactor the DFS walk so it can
11670 be re-done on per-SCC basis.
11671 (DFS::DFS): New constructor.
11672 (DFS::~DFS): New destructor.
11673 (hash_tree): Add new MAP argument holding in-SCC hash values;
11674 remove POINTER_TYPE hashing hack.
11675 (scc_entry_compare): Rename to ...
11676 (DFS::scc_entry_compare): ... this one.
11677 (hash_scc): Rename to ...
11678 (DFS::hash_scc): ... this one; pass output_block instead
11679 of streamer_cache; work harder to get unique and stable SCC
11680 hashes.
11681 (DFS_write_tree): Rename to ...
11682 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11683 (lto_output_tree): Update.
11684
11685 2014-07-25 Andi Kleen <ak@linux.intel.com>
11686
11687 * lto-streamer-out.c (hash_tree): Convert to inchash.
11688
11689 2014-07-25 Andi Kleen <ak@linux.intel.com>
11690
11691 * tree.c (build_type_attribute_qual_variant): Use inchash.
11692 (type_hash_list): Dito.
11693 (attribute_hash_list): Dito
11694 (iterative_hstate_expr): Dito.
11695 (iterative_hash_expr): Dito.
11696 (build_range_type_1): Dito.
11697 (build_array_type_1): Dito.
11698 (build_function_type): Dito.
11699 (build_method_type_directly): Dito.
11700 (build_offset_type): Dito.
11701 (build_complex_type): Dito.
11702 (make_vector_type): Dito.
11703 * tree.h (iterative_hash_expr): Add compat wrapper.
11704 (iterative_hstate_expr): Add.
11705
11706 2014-07-25 Andi Kleen <ak@linux.intel.com>
11707
11708 * Makefile.in (OBJS): Add inchash.o.
11709 (PLUGIN_HEADERS): Add inchash.h.
11710 * ipa-devirt.c: Include inchash.h.
11711 * lto-streamer-out.c: Dito.
11712 * tree-ssa-dom.c: Dito.
11713 * tree-ssa-pre.c: Dito.
11714 * tree-ssa-sccvn.c: Dito.
11715 * tree-ssa-tail-merge.c: Dito.
11716 * asan.c: Dito.
11717 * tree.c (iterative_hash_hashval_t): Move to ...
11718 (iterative_hash_host_wide_int): Move to ...
11719 * inchash.c: Here. New file.
11720 * tree.h (iterative_hash_hashval_t): Move to ...
11721 (iterative_hash_host_wide_int): Move to ...
11722 * inchash.h: Here. New file.
11723
11724 2014-07-25 Richard Biener <rguenther@suse.de>
11725
11726 PR middle-end/61762
11727 PR middle-end/61894
11728 * fold-const.c (native_encode_int): Add and handle offset
11729 parameter to do partial encodings of expr.
11730 (native_encode_fixed): Likewise.
11731 (native_encode_real): Likewise.
11732 (native_encode_complex): Likewise.
11733 (native_encode_vector): Likewise.
11734 (native_encode_string): Likewise.
11735 (native_encode_expr): Likewise.
11736 * fold-const.c (native_encode_expr): Add offset parameter
11737 defaulting to -1.
11738 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
11739 (fold_ctor_reference): Handle all reads from tcc_constant
11740 ctors.
11741
11742 2014-07-25 Richard Biener <rguenther@suse.de>
11743
11744 * tree-inline.c (estimate_move_cost): Mark speed_p argument
11745 as possibly unused.
11746
11747 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11748
11749 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
11750
11751 2014-07-24 Kyle McMartin <kyle@redhat.com>
11752
11753 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
11754
11755 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11756
11757 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
11758 Add prototype.
11759 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
11760 function.
11761 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
11762 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11763 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11764
11765 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11766
11767 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
11768 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
11769 aggregate types. Instead, *all* aggregate types, except for single-
11770 element or homogeneous float/vector aggregates, are quadword-aligned
11771 if required by their type alignment. Issue -Wpsabi note when a type
11772 is now treated differently than before.
11773
11774 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11775
11776 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
11777 does not fit fully into floating-point registers, and there is still
11778 space in the register parameter area, use GPRs to pass those parts
11779 of the argument. Issue -Wpsabi note if any parameter is now treated
11780 differently than before.
11781 (rs6000_arg_partial_bytes): Update.
11782
11783 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
11784
11785 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
11786
11787 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11788
11789 * rtl.h (target_rtl): Remove lang_dependent_initialized.
11790 * toplev.c (initialize_rtl): Don't use it. Move previously
11791 "language-dependent" calls to...
11792 (backend_init): ...here.
11793 (lang_dependent_init_target): Don't set lang_dependent_initialized.
11794 Assert that RTL initialization hasn't happend yet.
11795
11796 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11797
11798 PR rtl-optimization/61629
11799 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
11800 they have already been initialized.
11801
11802 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11803
11804 PR middle-end/61268
11805 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
11806 DECL_INCOMING_RTL and entry_parm.
11807 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
11808 * calls.c (load_register_parameters): Likewise argument values.
11809 (emit_library_call_value_1, store_one_arg): Likewise argument
11810 save areas.
11811 * config/i386/i386.c (assign_386_stack_local): Likewise the local
11812 stack slot.
11813 * explow.c (validize_mem): Modify the argument in-place.
11814
11815 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11816
11817 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
11818 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
11819
11820 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11821
11822 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
11823 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
11824
11825 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11826
11827 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
11828 (aarch64_save_callee_saves): New parameter "skip_wb".
11829 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
11830
11831 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11832
11833 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
11834 "wb_candidate2".
11835 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
11836
11837 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11838
11839 * graphite-isl-ast-to-gimple.c:
11840 (graphite_create_new_loop): Add calling of isl_id_free to properly
11841 decrement reference counts.
11842
11843 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
11844
11845 2014-07-24 Martin Liska <mliska@suse.cz>
11846 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
11847 function used.
11848 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
11849 (rs6000_code_end): Likewise.
11850
11851 2014-07-24 Martin Liska <mliska@suse.cz>
11852
11853 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
11854 symtab_node funtion used.
11855 (rs6000_xcoff_declare_object_name): Likewise.
11856
11857 2014-07-24 Martin Liska <mliska@suse.cz>
11858
11859 * cgraphunit.c (compile): Correct function used.
11860
11861 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11862
11863 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
11864 as non-indexable.
11865
11866 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11867
11868 PR lto/61802
11869 * varasm.c (bss_initializer_p): Handle offlined ctors.
11870 (align_variable, get_variable_align): Likewise.
11871 (make_decl_one_only): Likewise.
11872 (default_binds_local_p_1): Likewise.
11873 (decl_binds_to_current_def_p): Likewise.
11874 (get_variable_section): Get constructor if it is offlined.
11875 (assemble_variable_contents): Sanity check that the caller
11876 streamed in the ctor in LTO.
11877
11878 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11879
11880 * graphite-isl-ast-to-gimple.c:
11881 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
11882 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
11883 isl_ast_op_pdiv_r to the different case.
11884
11885 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
11886
11887 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11888
11889 PR middle-end/61876
11890 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
11891 when flag_errno_math is on.
11892
11893 2014-07-24 Martin Liska <mliska@suse.cz>
11894
11895 * cgraph.h (varpool_node):
11896 (availability get_availability (void)):
11897 created from cgraph_variable_initializer_availability
11898 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
11899 created from: cgraph_variable_initializer_availability
11900 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
11901 (void finalize_named_section_flags (void)):
11902 created from varpool_finalize_named_section_flags
11903 (bool assemble_decl (void)): created from varpool_assemble_decl
11904 (void analyze (void)): created from varpool_analyze_node
11905 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
11906 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
11907 (void remove_initializer (void)): created from varpool_remove_initializer
11908 (tree get_constructor (void)): created from varpool_get_constructor
11909 (bool externally_visible_p (void)): created from varpool_externally_visible_p
11910 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
11911 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
11912 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
11913 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
11914 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
11915 (static bool output_variables (void)): created from varpool_output_variables
11916 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
11917 created from varpool_extra_name_alias
11918 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
11919 (static void dump_varpool (FILE *f)): created from dump_varpool
11920 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
11921 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
11922 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
11923 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
11924 (void assemble_aliases (void)): created from assemble_aliases
11925
11926 2014-07-24 Martin Liska <mliska@suse.cz>
11927
11928 * cgraph.h (symtab_node):
11929 (void register_symbol (void)): created from symtab_register_node
11930 (void remove (void)): created from symtab_remove_node
11931 (void dump (FILE *f)): created from dump_symtab_node
11932 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
11933 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
11934 (struct ipa_ref *add_reference (symtab_node *referred_node,
11935 enum ipa_ref_use use_type)): created from add_reference
11936 (struct ipa_ref *add_reference (symtab_node *referred_node,
11937 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
11938 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
11939 gimple stmt)): created from maybe_add_reference
11940 (bool semantically_equivalent_p (symtab_node *target)): created from
11941 symtab_semantically_equivalent_p
11942 (void remove_from_same_comdat_group (void)): created from
11943 remove_from_same_comdat_group
11944 (void add_to_same_comdat_group (symtab_node *old_node)): created from
11945 symtab_add_to_same_comdat_group
11946 (void dissolve_same_comdat_group_list (void)): created from
11947 symtab_dissolve_same_comdat_group_list
11948 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
11949 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
11950 created from symtab_alias_ultimate_target
11951 (inline symtab_node *next_defined_symbol (void)): created from
11952 symtab_next_defined_symbol
11953 (bool resolve_alias (symtab_node *target)): created from
11954 symtab_resolve_alias
11955 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
11956 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
11957 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
11958 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
11959 (void set_section (const char *section)): created from set_section_1
11960 (enum availability get_availability (void)): created from symtab_node_availability
11961 (void make_decl_local (void)): created from symtab_make_decl_local
11962 (bool real_symbol_p (void)): created from symtab_read_node
11963 (can_be_discarded_p (void)): created from symtab_can_be_discarded
11964 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
11965 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
11966 symtab_in_same_comdat_p;
11967 (bool address_taken_from_non_vtable_p (void)): created from
11968 address_taken_from_non_vtable_p
11969 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
11970 (static void dump_table (FILE *)): created from dump_symtab
11971 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
11972 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
11973 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
11974 symtab_used_from_object_file_p
11975 (void dump_base (FILE *)): created from dump_symtab_base
11976 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
11977 (void unregister (void)): created from symtab_unregister_node
11978 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
11979 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
11980 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
11981 symtab_nonoverwritable_alias_1
11982 * cgraph.h (cgraph_node):
11983 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
11984 created from cgraph_remove_node_and_inline_clones
11985 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
11986 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
11987 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
11988 (cgraph_node *function_symbol (enum availability *avail = NULL)):
11989 created from cgraph_function_node
11990 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
11991 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
11992 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
11993 created from cgraph_create_clone
11994 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
11995 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
11996 created from cgraph_create_virtual_clone
11997 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
11998 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
11999 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12000 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12001 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12002 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12003 created from cgraph_function_version_info
12004 (struct cgraph_function_version_info *insert_new_function_version (void)):
12005 created from insert_new_cgraph_node_version
12006 (struct cgraph_function_version_info *function_version (void)): created from
12007 get_cgraph_node_version
12008 (void analyze (void)): created from analyze_function
12009 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12010 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12011 tree real_alias) cgraph_add_thunk
12012 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12013 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12014 created from cgraph_function_or_thunk_node
12015 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12016 created from expand_thunk
12017 (void reset (void)): created from cgraph_reset_node
12018 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12019 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12020 (void remove (void)): created from cgraph_remove_node
12021 (void dump (FILE *f)): created from dump_cgraph_node
12022 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12023 (bool get_body (void)): created from cgraph_get_body
12024 (void release_body (void)): created from cgraph_release_function_body
12025 (void unnest (void)): created from cgraph_unnest_node
12026 (void make_local (void)): created from cgraph_make_node_local
12027 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12028 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12029 gcov_type count, int freq)): created from cgraph_create_edge
12030 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12031 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12032 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12033 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12034 created from cgraph_create_edge_including_clones
12035 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12036 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12037 (void remove_callers (void)): created from cgraph_node_remove_callers
12038 (void remove_callees (void)): created from cgraph_node_remove_callees
12039 (enum availability get_availability (void)): created from cgraph_function_body_availability
12040 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12041 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12042 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12043 (void call_duplication_hooks (cgraph_node *node2)): created from
12044 cgraph_call_node_duplication_hooks
12045 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12046 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12047 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12048 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12049 (void call_function_insertion_hooks (void)):
12050 created from cgraph_call_function_insertion_hooks
12051 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12052 (bool local_p (void)): created from cgraph_local_node
12053 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12054 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12055 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12056 (inline bool only_called_directly_or_aliased_p (void)):
12057 created from cgraph_only_called_directly_or_aliased_p
12058 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12059 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12060 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12061 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12062 (bool can_remove_if_no_direct_calls_p (void)):
12063 created from cgraph_can_remove_if_no_direct_calls_p
12064 (inline bool has_gimple_body_p (void)):
12065 created from cgraph_function_with_gimple_body_p
12066 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12067 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12068 (static inline void debug_cgraph (void)): created from debug_cgraph
12069 (static void record_function_versions (tree decl1, tree decl2)):
12070 created from record_function_versions
12071 (static void delete_function_version (tree decl)):
12072 created from delete_function_version
12073 (static void add_new_function (tree fndecl, bool lowered)):
12074 created from cgraph_add_new_function
12075 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12076 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12077 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12078 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12079 (static cgraph_node *get_for_asmname (tree asmname)):
12080 created from cgraph_node_for_asm
12081 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12082 created from cgraph_same_body_alias
12083 (static bool used_from_object_file_p_worker (cgraph_node *node,
12084 void *): new function
12085 (static bool non_local_p (cgraph_node *node, void *)):
12086 created from cgraph_non_local_node_p_1
12087 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12088 created from verify_cgraph
12089 (static bool make_local (cgraph_node *node, void *)):
12090 created from cgraph_make_node_local
12091 (static cgraph_node *create_alias (tree alias, tree target)):
12092 created from cgraph_create_function_alias
12093 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12094 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12095 created from cgraph_create_edge_1
12096 * cgraph.h (varpool_node):
12097 (void remove (void)): created from varpool_remove_node
12098 (void dump (FILE *f)): created from dump_varpool_node
12099
12100 2014-07-24 Richard Biener <rguenther@suse.de>
12101
12102 PR ipa/61823
12103 * tree-ssa-structalias.c (create_variable_info_for_1):
12104 Use varpool_get_constructor.
12105 (create_variable_info_for): Likewise.
12106
12107 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12108
12109 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12110 subtract outgoing area size when restoring stack_pointer_rtx.
12111
12112 2014-07-24 Nick Clifton <nickc@redhat.com>
12113
12114 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12115 that operations are taking place in parallel.
12116 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12117
12118 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12119
12120 * omp-low.c (extract_omp_for_data): Add missing break statement.
12121
12122 2014-07-24 Richard Biener <rguenther@suse.de>
12123
12124 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12125 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12126 and adjust MOVE_RATIO query accordingly.
12127 (estimate_num_insns): Adjust callers.
12128 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12129 * ipa-cp.c (gather_context_independent_values,
12130 estimate_local_effects): Likewise.
12131 * ipa-split.c (consider_split): Likewise.
12132
12133 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12134
12135 * config/i386/driver-i386.c: Remove names of unused arguments and
12136 unnecessary unused attributes.
12137 * config/i386/host-mingw32.c: Likewise.
12138 * config/i386/i386.c: Likewise.
12139 * config/i386/winnt-stubs.c: Likewise.
12140 * config/i386/winnt.c: Likewise.
12141
12142 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12143
12144 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12145 (aarch64_gen_loadwb_pair): New helper function.
12146 (aarch64_expand_epilogue): Simplify code using new helper functions.
12147 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12148
12149 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12150
12151 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12152 (aarch64_gen_storewb_pair): New helper function.
12153 (aarch64_expand_prologue): Simplify code using new helper functions.
12154 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12155
12156 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12157
12158 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12159 Rename to aarch64_save_callee_saves, remove restore code.
12160 (aarch64_restore_callee_saves): New function.
12161
12162 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12163
12164 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12165 (aarch64_save_callee_saves): New function to handle reg save
12166 for both core and vectore regs.
12167
12168 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12169
12170 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12171 (aarch64_gen_store_pair): New helper function.
12172 (aarch64_save_or_restore_callee_save_registers)
12173 (aarch64_save_or_restore_fprs): Use new helper functions.
12174
12175 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12176
12177 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12178 (aarch64_save_or_restore_callee_save_registers)
12179 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12180
12181 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12182
12183 * config/aarch64/aarch64.c
12184 (aarch64_save_or_restore_callee_save_registers)
12185 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12186
12187 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12188
12189 * config/aarch64/aarch64.c
12190 (aarch64_save_or_restore_callee_save_registers)
12191 (aarch64_save_or_restore_fprs): Remove 'increment'.
12192
12193 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12194
12195 * config/aarch64/aarch64.c
12196 (aarch64_save_or_restore_callee_save_registers)
12197 (aarch64_save_or_restore_fprs): Use register offset in
12198 cfun->machine->frame.reg_offset.
12199
12200 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12201
12202 * config/aarch64/aarch64.c
12203 (aarch64_save_or_restore_callee_save_registers)
12204 (aarch64_save_or_restore_fprs): Remove base_rtx.
12205
12206 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12207
12208 * config/aarch64/aarch64.c
12209 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12210 to 'start_offset'. Remove local variable 'start_offset'.
12211
12212 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12213
12214 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12215 type to HOST_WIDE_INT.
12216
12217 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12218
12219 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12220 (aarch64_save_or_restore_fprs)
12221 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12222
12223 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12224
12225 * config/arm/t-rtems-eabi: Add
12226 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12227 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12228 mbig-endian/mthumb/march=armv7-r, and
12229 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12230 multilibs.
12231
12232 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12233 Chris Johns <chrisj@rtems.org>
12234 Joel Sherrill <joel.sherrill@oarcorp.com>
12235
12236 * config.gcc: Add nios2-*-rtems*.
12237 * config/nios2/rtems.h: New file.
12238 * gcc/config/nios2/t-rtems: New file.
12239
12240 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12241
12242 PR target/61396
12243 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12244 constant numbers, not general constants.
12245 (rs6000_expand_vector_init): Ditto.
12246
12247 2014-07-23 Nathan Sidwell <nathan@acm.org>
12248
12249 * gcov-tool.c (gcov_list): Declare here.
12250 (set_gcov_list): Remove.
12251 (gcov_output_files): Set gcov_list directly.
12252
12253 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12254
12255 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12256
12257 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12258
12259 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12260 callee-saved registers are available for padding purpose
12261 and r3 is not mandatory, then prefer use those callee-saved
12262 instead of r3.
12263
12264 2014-07-23 Richard Biener <rguenther@suse.de>
12265
12266 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12267 * combine.c: Include statistics.h and params.h.
12268 (combine_instructions): Guard three and four insn combines
12269 with max-combine-insns value. Record statistics for combines
12270 performed.
12271 * doc/invoke.texi (max-combine-insns): Document new param.
12272
12273 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12274
12275 * graphite-isl-ast-to-gimple.c:
12276 (translate_isl_ast_node_block): New function.
12277 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12278
12279 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12280 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12281
12282 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12283
12284 * graphite-isl-ast-to-gimple.c:
12285 (get_max_schedule_dimensions): New function.
12286 (extend_schedule): Likewise.
12287 (generate_isl_schedule): Add calling of extend_schedule and
12288 get_max_schedule_dimensions.
12289
12290 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12291
12292 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12293 (case UNSPEC): Handle UNSPEC_RBIT.
12294
12295 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12296
12297 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12298 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12299
12300 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12301
12302 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12303
12304 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12305
12306 * graphite-isl-ast-to-gimple.c:
12307 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12308 (ivs_params_clear):
12309 (build_iv_mapping): New function.
12310 (translate_isl_ast_node_user): Likewise.
12311 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12312
12313 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12314 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12315 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12316
12317 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12318
12319 PR target/55701
12320 * config/arm/arm.md (setmem): New pattern.
12321 * config/arm/arm-protos.h (struct tune_params): New fields.
12322 (arm_gen_setmem): New prototype.
12323 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12324 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12325 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12326 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12327 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12328 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12329 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12330 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12331 (arm_const_inline_cost): New function.
12332 (arm_block_set_max_insns): New function.
12333 (arm_block_set_non_vect_profit_p): New function.
12334 (arm_block_set_vect_profit_p): New function.
12335 (arm_block_set_unaligned_vect): New function.
12336 (arm_block_set_aligned_vect): New function.
12337 (arm_block_set_unaligned_non_vect): New function.
12338 (arm_block_set_aligned_non_vect): New function.
12339 (arm_block_set_vect, arm_gen_setmem): New functions.
12340
12341 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12342
12343 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12344
12345 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
12346
12347 PR target/61855
12348 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12349 out of #ifdef __OPTIMIZE__.
12350
12351 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12352
12353 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12354 different trapping status if -fnon-call-exceptions is enabled.
12355
12356 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12357
12358 * expr.c (store_field): Handle VOIDmode for calls that return values
12359 in multiple locations.
12360
12361 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12362
12363 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12364 (altivec_vsldoi_<mode>): Likewise.
12365
12366 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12367
12368 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12369 to the number of characters in the line.
12370
12371 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12372
12373 * graphite-isl-ast-to-gimple.c: Add using of
12374 build_nonstandard_integer_type instead of int128_integer_type_node.
12375
12376 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12377
12378 * toplev.c (output_stack_usage): Adjust the location of the warning.
12379
12380 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12381
12382 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12383 (*membar_storeload): Disable for LEON3.
12384
12385 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12386
12387 PR rtl-optimization/61461
12388 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12389
12390 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12391
12392 PR target/61794
12393 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12394 Fix instruction constraint.
12395 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12396
12397 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12398
12399 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12400
12401 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12402
12403 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12404 GNU coding standards.
12405 (nds32_register_move_cost): Likewise.
12406 (nds32_memory_move_cost): Likewise.
12407 (nds32_address_cost): Likewise.
12408
12409 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12410
12411 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12412
12413 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12414
12415 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12416 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12417 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12418 (HAVE_sync_compare_and_swapqi): Define.
12419 (HAVE_sync_compare_and_swaphi): Likewise.
12420 (HAVE_sync_compare_and_swapsi): Likewise.
12421
12422 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12423
12424 * config/mips/p5600.md: Add missing cpu tests.
12425
12426 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12427
12428 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12429 (vmla_f64): Likewise.
12430 (vfms_f64): Likewise.
12431 (vmls_f64): Likewise.
12432
12433 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12434
12435 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12436 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12437
12438 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12439
12440 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12441 (vmlal_high_lane_s32): Likewise.
12442 (vmlal_high_lane_u16): Likewise.
12443 (vmlal_high_lane_u32): Likewise.
12444 (vmlsl_high_lane_s16): Likewise.
12445 (vmlsl_high_lane_s32): Likewise.
12446 (vmlsl_high_lane_u16): Likewise.
12447 (vmlsl_high_lane_u32): Likewise.
12448
12449 2014-07-17 Terry Guo <terry.guo@arm.com>
12450
12451 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12452 (alus_reg): Renamed to alus_sreg.
12453 * config/arm/arm-fixed.md: Change type of non-dsp instructions
12454 from alu_reg to alu_sreg. Change type of dsp instructions from
12455 alu_reg to alu_dsp_reg.
12456 * config/arm/thumb1.md: Likewise.
12457 * config/arm/thumb2.md: Likewise.
12458 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12459 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12460 with alu_sreg and alus_sreg.
12461 * config/arm/arm1026ejs.md (alu_op): Likewise.
12462 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12463 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12464 * config/arm/fa526.md (526_alu_op): Likewise.
12465 * config/arm/fa606te.md (606te_alu_op): Likewise.
12466 * config/arm/fa626te.md (626te_alu_op): Likewise.
12467 * config/arm/fa726te.md (726te_alu_op): Likewise.
12468 * config/arm/fmp626.md (mp626_alu_op): Likewise.
12469 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12470 alu_sreg, alu_dsp_reg and alus_sreg.
12471 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12472 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12473 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12474 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12475 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12476 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12477 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12478 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12479 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12480 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12481 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12482 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12483 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12484 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12485 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12486 alus_reg to alus_sreg.
12487
12488 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
12489
12490 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12491 infinity format.
12492
12493 2014-07-17 Richard Biener <rguenther@suse.de>
12494
12495 PR rtl-optimization/61801
12496 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12497 don't set reg_pending_barrier if it appears in a debug-insn.
12498
12499 2014-07-16 DJ Delorie <dj@redhat.com>
12500
12501 * config/rx/rx.c (rx_option_override): Fix alignment values.
12502 (rx_align_for_label): Likewise.
12503
12504 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
12505
12506 PR target/61737.
12507 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12508 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12509 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12510 functions.
12511 (cris_print_index, cris_print_operand, cris_constant_index_p)
12512 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12513 (cris_address_cost): Ditto last CONSTANT_P.
12514 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12515 callers changed. Yield cris_offsettable_symbol for non-PIC
12516 constant symbolic expressions including labels. Yield cris_unspec
12517 for all unspecs.
12518 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12519 target to pic_offset_table_rtx for calls that will likely go
12520 through PLT, const0_rtx when they can't. All callers changed.
12521 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12522 symbolic expressions to be PICified. Remove second, redundant,
12523 assert on can_create_pseudo_p returning non-zero. Use
12524 replace_equiv_address_nv, not replace_equiv_address, for final
12525 operand update.
12526 * config/cris/cris.md ("movsi"): Move variable t to pattern
12527 toplevel. Adjust assert for new cris_symbol_type member. Use
12528 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12529 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12530 for lapc stricter.
12531 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12532 ("call", "call_value"): Use second incoming operand as a marker
12533 for pic-offset-table-register being used.
12534 ("*expanded_call_non_v32", "*expanded_call_v32")
12535 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12536 second incoming operand to CALL, match cris_call_type_marker.
12537 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12538 ("*expanded_call_side"): Ditto. Fix typo in comment.
12539 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12540 CONSTANT_P.
12541 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12542 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12543 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
12544 users changed. Add members cris_offsettable_symbol and cris_unspec.
12545 (cris_symbol_type): Rename from cris_pic_symbol_type.
12546 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12547 just CONSTANT_P.
12548 * config/cris/cris-protos.h (cris_symbol_type_of,
12549 cris_expand_pic_call_address): Adjust prototypes.
12550 (cris_legitimate_constant_p): New prototype.
12551
12552 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12553 an existing tmake_file. Don't add t-slibgcc and t-linux.
12554
12555 2014-07-17 Jason Merrill <jason@redhat.com>
12556
12557 PR c++/61623
12558 * symtab.c (symtab_remove_from_same_comdat_group): Also
12559 set_comdat_group to NULL_TREE.
12560 (verify_symtab): Fix diagnostic.
12561
12562 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12563
12564 PR target/61662
12565 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12566
12567 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12568
12569 Support location tracking for built-in macro tokens
12570 * input.h (is_location_from_builtin_token): New function declaration.
12571 * input.c (is_location_from_builtin_token): New function definition.
12572 * toplev.c (general_init): Tell libcpp what the pre-defined
12573 spelling location for built-in tokens is.
12574
12575 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12576
12577 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12578 on the FUNCTION_DECL.
12579
12580 2014-07-16 Richard Biener <rguenther@suse.de>
12581
12582 PR other/61782
12583 * doc/extend.texi (always_inline): Clarify.
12584
12585 2014-07-15 Eric Christopher <echristo@gmail.com>
12586
12587 * doc/invoke.texi (Link Options): Document -z option.
12588
12589 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12590
12591 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12592 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12593
12594 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12595
12596 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12597
12598 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12599
12600 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12601 varpool_assemble_decl.
12602 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12603 true.
12604
12605 2014-07-15 Michael Matz <matz@suse.de>
12606
12607 PR rtl-optimization/61772
12608 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12609
12610 2014-07-15 Richard Biener <rguenther@suse.de>
12611
12612 * opts.c (default_options_table): Disable bit-ccp at -Og.
12613
12614 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12615
12616 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12617
12618 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12619
12620 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12621 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12622 call langhook for unknown declaration.
12623 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12624 * tree.h (DECL_ARGUMENTS): Update.
12625 * print-tree.c (print_node): Update.
12626 * tree-core.h (tree_decl_non_common): Remove arguments.
12627 (tree_function_decl): Add arguments.
12628
12629 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12630
12631 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12632
12633 2014-07-14 Richard Biener <rguenther@suse.de>
12634
12635 PR tree-optimization/61779
12636 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12637 simplifying a condition.
12638
12639 2014-07-14 Richard Biener <rguenther@suse.de>
12640
12641 * builtins.c (c_strlen): Make only_value == 2 really only
12642 affect warning generation.
12643
12644 2014-07-14 Richard Biener <rguenther@suse.de>
12645
12646 PR tree-optimization/61757
12647 PR tree-optimization/61783
12648 PR tree-optimization/61787
12649 * tree-ssa-dom.c (record_equality): Revert canonicalization
12650 change and add comment.
12651 (propagate_rhs_into_lhs): Revert previous fix, removing
12652 loop depth restriction again.
12653
12654 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12655
12656 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12657 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12658 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12659 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12660 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12661 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12662 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12663
12664 2014-07-14 Richard Biener <rguenther@suse.de>
12665
12666 * cgraph.h (decl_in_symtab_p): Make inline.
12667
12668 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12669
12670 PR middle-end/61294
12671 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12672
12673 PR target/61656
12674 * config/i386/i386.c (classify_argument): Don't merge classes above
12675 number of words.
12676
12677 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12678
12679 * cgraph.h (symtab_node): Add nonzero_address.
12680 (decl_in_symtab_p): Break out from ...
12681 (symtab_get_node): ... here.
12682 * fold-const.c: Include cgraph.h
12683 (tree_single_nonzero_warnv_p): Use symtab to determine
12684 if symbol is non-zero.
12685 * symtab.c (symtab_node::nonzero_address): New method.
12686
12687 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12688
12689 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12690 forgotten in previous commit.
12691
12692 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12693
12694 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12695 on builtin types.
12696 * ipa-devirt.c: Include stor-layout.h and intl.h
12697 (odr_subtypes_equivalent_p): New function.
12698 (warn_odr): New function.
12699 (warn_type_mismatch): New function.
12700 (odr_types_equivalent_p): New function.
12701 (add_type_duplicate): Use it.
12702 * common.opt (Wodr): New flag.
12703 * doc/invoke.texi (Wodr): Document new warning.
12704
12705 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12706
12707 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12708 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12709 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12710 (varpool_get_constructor): Push CTORS_IN timevar.
12711 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12712
12713 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12714
12715 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12716 Remove VOID_FTYPE_PUSHORT.
12717 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12718 Change code to USHORT_FTYPE_VOID.
12719 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12720 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12721 (ix86_atomic_assign_expand_fenv): Update for
12722 __builtin_ia32_fnstsw changes.
12723 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
12724 (fnstsw): Change operand 0 to nonimmediate operand.
12725
12726 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12727
12728 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
12729 (varpool_get_constructor): New function.
12730 (varpool_ctor_useable_for_folding_p): Break out from ...
12731 (ctor_for_folding): ... here; use varpool_get_constructor.
12732 (varpool_assemble_decl): Likewise.
12733 * lto-streamer.h (struct output_block): Turn cgraph_node
12734 to symbol filed.
12735 (lto_input_variable_constructor): Declare.
12736 * ipa-visibility.c (function_and_variable_visibility): Use
12737 varpool_get_constructor.
12738 * cgraph.h (varpool_get_constructor): Declare.
12739 (varpool_ctor_useable_for_folding_p): New function.
12740 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
12741 parameter; return error_mark_node for non-trivial constructors.
12742 (lto_write_tree_1, DFS_write_tree): Update use of
12743 get_symbol_initial_value.
12744 (output_function): Update initialization of symbol.
12745 (output_constructor): New function.
12746 (copy_function): Rename to ..
12747 (copy_function_or_variable): ... this one; handle vars too.
12748 (lto_output): Output variable sections.
12749 * lto-streamer-in.c (input_constructor): New function.
12750 (lto_read_body): Rename from ...
12751 (lto_read_body_or_constructor): ... this one; handle vars too.
12752 (lto_input_variable_constructor): New function.
12753 * ipa-prop.c (ipa_prop_write_jump_functions,
12754 ipa_prop_write_all_agg_replacement): Update.
12755 * lto-cgraph.c (compute_ltrans_boundary): Use it.
12756 (output_cgraph_opt_summary): Set symbol to NULL.
12757
12758 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12759
12760 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
12761 non-polymorphic types.
12762 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
12763 * ipa-devirt.c (types_same_for_odr): Do not explode when one
12764 of types is not polymorphic.
12765
12766 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
12767
12768 * lra-constraints.c (remove_inheritance_pseudos): Process
12769 destination pseudo too.
12770
12771 2014-07-11 Rong Xu <xur@google.com>
12772
12773 * gcov-tool.c (gcov_output_files): Fix build error introduced in
12774 commit r212448.
12775
12776 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12777
12778 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
12779 * config/avr/avr-devices.c (AVR_MCU): Same.
12780 (avr_mcu_types): add text start value to end of device list.
12781 * config/avr/avr-mcus.def: Add text section start for all devices.
12782 (ata5782): Add new avr5 device.
12783 (ata5831): Same.
12784 * config/avr/avr-tables.opt: Regenerate.
12785 * config/avr/avr.h: Add declaration for text section start handler.
12786 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
12787 SPEC functions.
12788 (LINK_SPEC): Include text section start handler to linker spec.
12789 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
12790 pass -Ttext option to linker if the text section start for the device
12791 is not zero.
12792 * config/avr/t-multilib: Regenerate.
12793 * doc/avr-mmcu.texi: Regenerate.
12794
12795 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
12796
12797 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
12798 * config/rs6000/aix52.h (LINK_SPEC): Same.
12799 * config/rs6000/aix53.h (LINK_SPEC): Same.
12800 * config/rs6000/aix61.h (LINK_SPEC): Same.
12801 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
12802
12803 2014-07-11 Roman Gareev <gareevroman@gmail.com>
12804
12805 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
12806 (graphite_verify): New function.
12807 (ivs_params_clear): New function.
12808 (gcc_expression_from_isl_ast_expr_id): New function.
12809 (gcc_expression_from_isl_expr_int): New function.
12810 (binary_op_to_tree): New function.
12811 (ternary_op_to_tree): New function.
12812 (unary_op_to_tree): New function.
12813 (nary_op_to_tree): New function.
12814 (gcc_expression_from_isl_expr_op): New function.
12815 (gcc_expression_from_isl_expression): New function.
12816 (graphite_create_new_loop): New function.
12817 (translate_isl_ast_for_loop): New function.
12818 (get_upper_bound): New function.
12819 (graphite_create_new_loop_guard): New function.
12820 (translate_isl_ast_node_for): New function.
12821 (translate_isl_ast): New function.
12822 (add_parameters_to_ivs_params): New function.
12823 (scop_to_isl_ast): New parameter ip.
12824 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
12825
12826 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12827
12828 * config/xtensa/predicates.md (call expander): Update for
12829 DECL_SECTION_NAME being string.
12830
12831 2014-07-11 Richard Biener <rguenther@suse.de>
12832
12833 PR middle-end/61473
12834 * builtins.c (fold_builtin_memory_op): Inline memory moves that
12835 can be implemented with a single load followed by a single store.
12836 (c_strlen): Only warn when only_value is not 2.
12837
12838 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
12839
12840 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
12841
12842 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
12843
12844 PR target/61561
12845 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
12846 (*movhi_bytes): Likewise.
12847 (*arm_movqi_insn): Likewise.
12848
12849 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
12850
12851 PR target/56858
12852 * config/alpha/alpha.c: Include tree-pass.h, context.h
12853 and pass_manager.h.
12854 (pass_data_handle_trap_shadows): New pass.
12855 (pass_handle_trap_shadows::gate): New pass gate function.
12856 (make_pass_handle_trap_shadows): New function.
12857 (rest_of_handle_trap_shadows): Ditto.
12858
12859 (alpha_align_insns_1): Rename from alpha_align_insns.
12860 (pass_data_align_insns): New pass.
12861 (pass_align_insns::gate): New pass gate function.
12862 (make_pass_aling_insns): New function.
12863 (rest_of_align_insns): Ditto.
12864 (alpha_align_insns): Ditto.
12865
12866 (alpha_option_override): Declare handle_trap_shadows info
12867 and align_insns_info. Register handle_trap_shadows and align_insns
12868 passes here.
12869 (alpha_reorg): Do not call alpha_trap_shadows and
12870 alpha_align_insn from here.
12871
12872 (alpha_pad_function_end): Do not skip BARRIERs.
12873
12874 2014-07-10 Rong Xu <xur@google.com>
12875
12876 Add gcov-tool: an offline gcda profile processing tool support.
12877 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
12878 (gcov_is_error): Ditto.
12879 (gcov_read_string): Ditto.
12880 (gcov_read_sync): Ditto.
12881 * gcov-io.h: Move counter defines to gcov-counter.def.
12882 * gcov-dump.c (tag_counters): Use gcov-counter.def.
12883 * coverage.c: Ditto.
12884 * gcov-tool.c: Offline gcda profile processing tool.
12885 (unlink_gcda_file): Remove one gcda file.
12886 (unlink_profile_dir): Remove gcda files from the profile path.
12887 (gcov_output_files): Output gcda files to an output dir.
12888 (profile_merge): Merge two profiles in directory.
12889 (print_merge_usage_message): Print merge usage.
12890 (merge_usage): Print merge usage and exit.
12891 (do_merge): Driver for profile merge sub-command.
12892 (profile_rewrite): Rewrite profile.
12893 (print_rewrite_usage_message): Print rewrite usage.
12894 (rewrite_usage): Print rewrite usage and exit.
12895 (do_rewrite): Driver for profile rewrite sub-command.
12896 (print_usage): Print gcov-info usage and exit.
12897 (print_version): Print gcov-info version.
12898 (process_args): Process arguments.
12899 (main): Main routine for gcov-tool.
12900 * Makefile.in: Build and install gcov-tool.
12901 * gcov-counter.def: New file split from gcov-io.h.
12902 * doc/gcc.texi: Include gcov-tool.texi.
12903 * doc/gcov-tool.texi: Document for gcov-tool.
12904
12905 2014-07-10 Richard Biener <rguenther@suse.de>
12906
12907 PR tree-optimization/61757
12908 * tree-ssa-dom.c (loop_depth_of_name): Restore.
12909 (propagate_rhs_into_lhs): Revert part of last change.
12910
12911 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
12912
12913 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
12914 FUNCTION_DECLs.
12915
12916 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
12917
12918 PR middle-end/53590
12919 * function.c (allocate_struct_function): Revert r188667 change.
12920
12921 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
12922
12923 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
12924
12925 * doc/install.texi: Remove links to defunct package providers for
12926 Solaris.
12927
12928 2014-07-09 Tom de Vries <tom@codesourcery.com>
12929
12930 * final.c (get_call_fndecl): Declare.
12931 (self_recursive_call_p): New function.
12932 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
12933
12934 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12935
12936 * ipa-devirt.c (record_node): Walk through aliases.
12937
12938 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12939
12940 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
12941
12942 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12943
12944 Revert:
12945 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12946
12947 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12948
12949 * ipa-visibility.c (function_and_variable_visibility): Remove
12950 temporary hack disabling local aliases on AIX.
12951
12952 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12953
12954 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
12955 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
12956
12957 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12958
12959 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
12960 * rs6000/rs6000.c: Inline output of .set instruction.
12961 (declare_alias_data): New struct.
12962 (rs6000_declare_alias): New function.
12963 (rs6000_xcoff_declare_function_name): Use it.
12964 (rs6000_xcoff_declare_object_name): New function.
12965 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
12966 (ASM_OUTPUT_DEF): Turn to empty definition.
12967
12968 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12969
12970 PR bootstrap/61679
12971 * hash-table.h: use hash_table::value_type instead of
12972 Descriptor::value_type in the return types of several methods.
12973
12974 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12975
12976 * tree-pass.h (pass_data): Remove has_execute member.
12977 * passes.c (execute_one_pass): Don't check pass->has_execute.
12978 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
12979 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
12980 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
12981 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
12982 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
12983 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
12984 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
12985 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
12986 gimple-low.c, gimple-ssa-isolate-paths.c,
12987 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
12988 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
12989 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
12990 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
12991 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
12992 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
12993 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
12994 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
12995 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
12996 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
12997 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
12998 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
12999 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13000 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13001 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13002 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13003 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13004 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13005 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13006 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13007 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13008 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13009 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13010 web.c: Remove initializer for pass_data::has_execute.
13011
13012 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13013
13014 * graphite-htab.h: Use hash_map instead of hash_table.
13015 * graphite-clast-to-gimple.c: Adjust.
13016 * passes.c: Use hash_map instead of hash_table.
13017 * sese.c: Likewise.
13018 * sese.h: Remove now unused code.
13019
13020 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13021
13022 PR target/61599
13023 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13024 than zero.
13025
13026 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13027
13028 PR rtl-optimization/61673
13029 * combine.c (simplify_comparison): Test just mode's sign bit
13030 in tmode rather than the sign bit and any bits above it.
13031
13032 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13033
13034 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13035 Add __isl_give to the declaration.
13036 (generate_isl_schedule): Likewise.
13037 (scop_to_isl_ast): Likewise.
13038
13039 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13040
13041 * config/arm/arm.c (cortexa5_extra_costs): New table.
13042 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13043
13044 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13045
13046 PR tree-optimization/61725
13047 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13048 range, use range_includes_zerop_p instead of integer_zerop on
13049 vr0->min, only use log2 of max if min is not negative.
13050
13051 2014-07-08 Richard Biener <rguenther@suse.de>
13052
13053 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13054 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13055 restriction on loop depth difference.
13056 (record_equality): Likewise.
13057 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13058 (loop_depth_of_name): Remove.
13059 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13060 restriction on loop depth difference.
13061 (init_copy_prop): Likewise.
13062
13063 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13064
13065 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13066 parameter.
13067 (walk_aliased_vdefs): Likewise.
13068 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13069 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13070 (detect_type_change_from_memory_writes): Check if entry was reached.
13071
13072 2014-07-08 Richard Biener <rguenther@suse.de>
13073
13074 PR tree-optimization/61681
13075 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13076 NONLOCAL inside ESCAPED.
13077
13078 2014-07-08 Richard Biener <rguenther@suse.de>
13079
13080 PR tree-optimization/61680
13081 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13082 Handle properly all read-write dependences with group accesses.
13083
13084 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13085
13086 PR tree-optimization/61576
13087 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13088 block containing reduction statement is predecessor of phi basi block.
13089
13090 2014-07-08 Marek Polacek <polacek@redhat.com>
13091
13092 PR c/60226
13093 * fold-const.c (round_up_loc): Change the parameter type.
13094 Remove assert.
13095 * fold-const.h (round_up_loc): Adjust declaration.
13096 * stor-layout.c (finalize_record_size): Check for too large types.
13097
13098 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13099
13100 * symtab.c: Include calls.h.
13101 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13102
13103 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13104
13105 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13106 little-endian code generation.
13107 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13108 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13109 (spe_evmergehilo): Rename to...
13110 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13111 (spe_evmergelo): Rename to...
13112 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13113 (spe_evmergelohi): Rename to...
13114 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13115 (spe_evmergehi, spe_evmergehilo): New expanders.
13116 (spe_evmergelo, spe_evmergelohi): Likewise.
13117 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13118 (*frob_tf_ti): Likewise.
13119 (*frob_<mode>_di_2): Likewise.
13120 (*frob_tf_di_8_2): Likewise.
13121 (*frob_di_<mode>): Likewise.
13122 (*frob_ti_tf): Likewise.
13123 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13124 (*frob_ti_<mode>_8_2): Likewise.
13125 (*frob_ti_tf_2): Likewise.
13126 (mov_si<mode>_e500_subreg0): Rename to...
13127 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13128 endianness only.
13129 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13130 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13131 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13132 the big endianness only.
13133 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13134 (*mov_si<mode>_e500_subreg0_2): Rename to...
13135 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13136 big big endianness only.
13137 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13138 (*mov_si<mode>_e500_subreg4): Rename to...
13139 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13140 endianness only.
13141 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13142 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13143 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13144 the big endianness only.
13145 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13146 pattern.
13147 (*mov_si<mode>_e500_subreg4_2): Rename to...
13148 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13149 endianness only.
13150 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13151 (*mov_sitf_e500_subreg8): Rename to...
13152 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13153 endianness only.
13154 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13155 (*mov_sitf_e500_subreg8_2): Rename to...
13156 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13157 endianness only.
13158 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13159 (*mov_sitf_e500_subreg12): Rename to...
13160 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13161 endianness only.
13162 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13163 (*mov_sitf_e500_subreg12_2): Rename to...
13164 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13165 endianness only.
13166 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13167
13168 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13169
13170 * asan.c (instrument_strlen_call): Do not instrument first byte
13171 in strlen if already instrumented.
13172
13173 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13174
13175 * config/arm/arm.opt (mwords-little-endian): Delete.
13176 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13177 of TARGET_LITTLE_WORDS.
13178 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13179 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13180 warning.
13181 * doc/invoke.texi: Remove references to -mwords-little-endian.
13182
13183 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13184
13185 * expmed.c (struct init_expmed_rtl): Change all fields but
13186 pow2 and cint from struct rtx_def to rtx.
13187 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13188 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13189 at the end again.
13190
13191 2014-07-06 Marek Polacek <polacek@redhat.com>
13192
13193 PR c/6940
13194 * doc/invoke.texi: Document -Wsizeof-array-argument.
13195
13196 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13197
13198 * wide-int.h (wide_int_storage): Change declaration from struct
13199 to class.
13200
13201 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13202
13203 * cgraph.c (cgraph_create_indirect_edge): Update call of
13204 get_polymorphic_call_info.
13205 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13206 (possible_polymorphic_call_targets): Add parameter call.
13207 (decl_maybe_in_construction_p): New predicate.
13208 (get_polymorphic_call_info): Add parameter call;
13209 use decl_maybe_in_construction_p.
13210 * gimple-fold.c (fold_gimple_assign): Update use of
13211 possible_polymorphic_call_targets.
13212 (gimple_fold_call): Likewise.
13213 * ipa-prop.c: Inlcude calls.h
13214 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13215 (param_type_may_change_p): New predicate.
13216 (detect_type_change_from_memory_writes): Break out from ...
13217 (detect_type_change): ... this one; use param_type_may_change_p.
13218 (detect_type_change_ssa): Use param_type_may_change_p.
13219 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13220
13221 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13222
13223 PR target/49423
13224 * config/arm/arm-protos.h (arm_legitimate_address_p,
13225 arm_is_constant_pool_ref): Add prototypes.
13226 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13227 (arm_is_constant_pool_ref) New function.
13228 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13229 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13230 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13231 operand. Remove pool_range and neg_pool_range attributes.
13232 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13233 pool_range and neg_pool_range attributes.
13234 * config/arm/constraints.md (Uh): New constraint.
13235 (Uq): Don't allow constant pool references.
13236
13237 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13238
13239 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13240 (move_lo_quad_internal_be_<mode>): Likewise.
13241 (move_lo_quad_<mode>): Convert to define_expand.
13242 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13243 (aarch64_simd_move_hi_quad_be_<mode>): New.
13244 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13245 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13246 (aarch64_combinez_be<mode>): New.
13247 (aarch64_combine<mode>): Convert to define_expand.
13248 (aarch64_combine_internal<mode>): New.
13249 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13250
13251 2014-07-04 Tom de Vries <tom@codesourcery.com>
13252
13253 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13254 combination of earlyclobber and read/write modifiers.
13255
13256 2014-07-04 Tom de Vries <tom@codesourcery.com>
13257
13258 * config/aarch64/aarch64-simd.md
13259 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13260
13261 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13262
13263 PR target/61714
13264 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13265
13266 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13267
13268 PR middle-end/61654
13269 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13270
13271 PR tree-optimization/61684
13272 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13273 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13274
13275 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13276 Kito Cheng <kito@0xlab.org>
13277 Monk Chiang <sh.chiang04@gmail.com>
13278
13279 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13280 (nds32_symbol_load_store_p): Move to ...
13281 (nds32_fp_as_gp_check_available): Move to ...
13282 * config/nds32/nds32-fp-as-gp.c: ... here.
13283 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13284 extern declaration.
13285
13286 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13287 Kito Cheng <kito@0xlab.org>
13288 Monk Chiang <sh.chiang04@gmail.com>
13289
13290 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13291 (nds32_expand_store_multiple): Move to ...
13292 (nds32_expand_movmemqi): Move to ...
13293 * config/nds32/nds32-memory-manipulation.c: ... here.
13294
13295 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13296 Kito Cheng <kito@0xlab.org>
13297 Monk Chiang <sh.chiang04@gmail.com>
13298
13299 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13300 (nds32_output_casesi_pc_relative): Move to ...
13301 (nds32_output_casesi): Move to ...
13302 (nds32_mem_format): Move to ...
13303 (nds32_output_16bit_store): Move to ...
13304 (nds32_output_16bit_load): Move to ...
13305 (nds32_output_32bit_store): Move to ...
13306 (nds32_output_32bit_load): Move to ...
13307 (nds32_output_32bit_load_s): Move to ...
13308 (nds32_output_stack_push): Move to ...
13309 (nds32_output_stack_pop): Move to ...
13310 * config/nds32/nds32-md-auxiliary.c: ... here.
13311
13312 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13313 Ling-Hua Tseng <uranus@tinlans.org>
13314
13315 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13316 the purpose of this file.
13317
13318 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13319 Kito Cheng <kito@0xlab.org>
13320 Monk Chiang <sh.chiang04@gmail.com>
13321
13322 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13323 (nds32_address_cost): Move implementation to ...
13324 * config/nds32/nds32-cost.c: ... here.
13325 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13326 (nds32_address_cost_impl): Declare.
13327
13328 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13329 Kito Cheng <kito@0xlab.org>
13330 Monk Chiang <sh.chiang04@gmail.com>
13331
13332 * config/nds32/nds32.c
13333 (nds32_consecutive_registers_load_store_p): Move to ...
13334 (nds32_valid_multiple_load_store): Move to ...
13335 (nds32_valid_stack_push_pop): Move to ...
13336 (nds32_can_use_bclr_p): Move to ...
13337 (nds32_can_use_bset_p): Move to ...
13338 (nds32_can_use_btgl_p): Move to ...
13339 (nds32_can_use_bitci_p): Move to ...
13340 * config/nds32/nds32-predicates.c: ... here.
13341
13342 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13343 Kito Cheng <kito@0xlab.org>
13344 Monk Chiang <sh.chiang04@gmail.com>
13345
13346 * config/nds32/nds32.c
13347 (nds32_expand_builtin_null_ftype_reg): Move to ...
13348 (nds32_expand_builtin_reg_ftype_imm): Move to ...
13349 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13350 (nds32_init_builtins): Move implementation to ...
13351 (nds32_expand_builtin): Move implementation to ...
13352 * config/nds32/nds32-intrinsic.c: ... here.
13353 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13354 (nds32_expand_builtin_impl): Declare.
13355
13356 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13357 Kito Cheng <kito@0xlab.org>
13358 Monk Chiang <sh.chiang04@gmail.com>
13359
13360 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13361 (nds32_emit_section_tail_template): Move to ...
13362 (nds32_emit_isr_jmptbl_section): Move to ...
13363 (nds32_emit_isr_vector_section): Move to ...
13364 (nds32_emit_isr_reset_conten): Move to ...
13365 (nds32_check_isr_attrs_conflict): Move to ...
13366 (nds32_construct_isr_vectors_information): Move to ...
13367 (nds32_asm_file_start): Move implementation to ...
13368 (nds32_asm_file_end): Move implementation to ...
13369 * config/nds32/nds32-isr.c: ... here.
13370 * config/nds32/nds32-protos.h
13371 (nds32_check_isr_attrs_conflict): Declare.
13372 (nds32_construct_isr_vectors_information): Declare.
13373 (nds32_asm_file_start_for_isr): Declare.
13374 (nds32_asm_file_end_for_isr): Declare.
13375
13376 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13377 Kito Cheng <kito@0xlab.org>
13378 Monk Chiang <sh.chiang04@gmail.com>
13379
13380 * config.gcc (nds32*): Add new modules to extra_objs.
13381 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13382 (nds32be-*-*): Likewise.
13383 * config/nds32/nds32-cost.c: New file.
13384 * config/nds32/nds32-fp-as-gp.c: New file.
13385 * config/nds32/nds32-intrinsic.c: New file.
13386 * config/nds32/nds32-isr.c: New file.
13387 * config/nds32/nds32-md-auxiliary.c: New file.
13388 * config/nds32/nds32-memory-manipulation.c: New file.
13389 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13390 * config/nds32/nds32-predicates.c: New file.
13391 * config/nds32/t-nds32: New file.
13392
13393 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13394
13395 PR tree-optimization/61682
13396 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13397 using cases and when one of the operands is equal to 1.
13398
13399 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13400
13401 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13402 ashr<mode>3): Correct mode of operands[2].
13403 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13404 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13405 Correct mode of operands[2]. Fix split condition.
13406
13407 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13408
13409 * arm.md (arch): Add armv6_or_vfpv3.
13410 (arch_enabled): Add test for the above.
13411 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13412 on VFP9.
13413 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13414
13415 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13416
13417 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13418 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13419 HWI 1 and negate the unsigned value.
13420 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13421 use AND instead of shift.
13422 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13423
13424 2014-07-03 Marek Polacek <polacek@redhat.com>
13425
13426 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13427 (-fsanitize=float-divide-by-zero): Move to the table with
13428 -fsanitize=undefined suboptions.
13429 (-fsanitize=float-cast-overflow): Likewise.
13430
13431 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13432
13433 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13434 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13435 endianness.
13436
13437 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13438
13439 * loop-invariant.c (struct invariant): Add a new member: eqno;
13440 (find_identical_invariants): Update eqno;
13441 (create_new_invariant): Init eqno;
13442 (get_inv_cost): Compute comp_cost with eqno;
13443
13444 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13445
13446 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13447 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13448 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13449 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13450 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13451
13452 2014-07-02 Christian Bruel <christian.bruel@st.com>
13453
13454 PR target/29349
13455 PR target/53513
13456 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13457 (make_preds_opaque): Delete.
13458 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13459 (commit_mode_sets): New function.
13460 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13461 Process all modes at once.
13462 * basic-block.h (pre_edge_lcm_avs): Declare.
13463 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13464 Call clear_aux_for_edges. Fix comments.
13465 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13466 (pre_edge_rev_lcm): Idem.
13467 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13468 parameter.
13469 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13470 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13471 Idem.
13472 * config/i386/i386.c (x96_emit_mode_set): Idem.
13473 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13474 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
13475 (fpscr_toggle) Disallow from delay slot.
13476 * target.def (emit_mode_set): Add prev_mode parameter.
13477 * doc/tm.texi: Regenerate.
13478
13479 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13480
13481 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13482 variable i.
13483
13484 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13485
13486 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13487 vtable_pointer_value_to_vtable): Constify.
13488 (contains_polymorphic_type_p): Declare.
13489 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13490 vtable_pointer_value_to_vtable): Constify.
13491 (contains_polymorphic_type_p): New predicate.
13492 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13493 polymorphic types.
13494 (ipa_set_ancestor_jf): Likewise.
13495 (detect_type_change): Return false in easy cases.
13496 (compute_complex_assign_jump_func): Require type to contain
13497 polymorphic type.
13498 (compute_known_type_jump_func): Likewise.
13499
13500 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13501
13502 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13503 Remove.
13504 (type_in_anonymous_namespace_p): Constify argument.
13505 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13506 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13507 (main_odr_variant): New function.
13508 (hash_type_name): Make static; update assert; do not ICE on
13509 non-records.
13510 (types_same_for_odr): Bring here from tree.c; simplify and remove
13511 old structural comparing code that doesn't work for templates.
13512 (odr_hasher::equal): Update assert.
13513 (add_type_duplicate): Return true when bases should be computed;
13514 replace incomplete loader by complete; do not output duplicated
13515 warnings; do not ICE on non-records; set odr_violated flag.
13516 (get_odr_type): Be ready to replace incomplete type by complete
13517 one; work on ODR variants instead of main variants; reorder item
13518 in array so bases have still smaller indexes.
13519 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13520 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13521
13522 2014-07-01 Cary Coutant <ccoutant@google.com>
13523
13524 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13525 lookup.
13526 (resolve_addr_in_expr): When replacing the rtx in a location list
13527 entry, get a new address table entry.
13528 (dwarf2out_finish): Call index_location_lists even if there are no
13529 addr_index_table entries yet.
13530
13531 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13532
13533 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13534 change for not being obvious.
13535
13536 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13537
13538 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13539 unused argument.
13540
13541 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13542
13543 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13544 (vcagt_f64): Likewise.
13545 (vcale_f64): Likewise.
13546 (vcaled_f64): Likewise.
13547 (vcales_f32): Likewise.
13548 (vcalt_f64): Likewise.
13549 (vcaltd_f64): Likewise.
13550 (vcalts_f32): Likewise.
13551
13552 2014-07-01 Marek Polacek <polacek@redhat.com>
13553
13554 * doc/invoke.texi: Document -Wint-conversion.
13555
13556 2014-07-01 Marek Polacek <polacek@redhat.com>
13557
13558 PR c/58286
13559 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13560
13561 2014-07-01 Martin Liska <mliska@suse.cz>
13562
13563 IPA REF alias refactoring
13564 * cgraph.h (iterate_direct_aliases): New function.
13565 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13566 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13567 FOR_EACH_ALIAS added.
13568 (cgraph_for_node_and_aliases): Likewise.
13569 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13570 * ipa-inline.c (reset_edge_caches): Likewise.
13571 (update_caller_keys): Likewise.
13572 * trans-mem.c (ipa_tm_execute): Likewise.
13573 *varpool.c (varpool_analyze_node): Likewise.
13574 (varpool_for_node_and_aliases): Likewise.
13575 * ipa-ref.h (first_alias): New function.
13576 (last_alias): Likewise.
13577 (has_aliases_p): Likewise.
13578 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13579 is sensitive to IPA_REF_ALIASes.
13580 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13581 are put at the beginning of the list.
13582 (symtab_node::iterate_direct_aliases): New function.
13583
13584 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13585
13586 Revert:
13587 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13588 type is complete.
13589 (write_ts_type_common_tree_pointers): Do not stream fields not set
13590 for incomplete types; do not stream duplicated fields for variants;
13591 sanity check that variant and type match.
13592 (write_ts_type_non_common_tree_pointers): Likewise.
13593 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13594 TYPE_SIZE whether type is complete.
13595 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13596 write_ts_type_common_tree_pointers
13597 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13598
13599 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13600
13601 * var-tracking.c (add_stores): Return instead of asserting if old
13602 and new values for conditional store are the same.
13603
13604 2014-06-30 Richard Henderson <rth@redhat.com>
13605
13606 PR rtl-opt/61608
13607 PR target/39284
13608 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13609 the cfg if there were any changes.
13610 * passes.def: Revert move of peephole2 after reorder_blocks;
13611 move duplicate_computed_gotos before peephole2.
13612
13613 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13614
13615 * except.c (emit_note_eh_region_end): New helper function.
13616 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13617 emit EH_REGION_END note.
13618 * jump.c (cleanup_barriers): Do not split a call and its
13619 corresponding CALL_ARG_LOCATION note.
13620
13621 2014-06-30 Jeff Law <law@redhat.com>
13622
13623 PR tree-optimization/61607
13624 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13625 deeper into the SSA_NAME_VALUE chain.
13626
13627 2014-06-30 Marek Polacek <polacek@redhat.com>
13628
13629 * convert.c (convert_to_integer): Don't instrument conversions if the
13630 function has no_sanitize_undefined attribute.
13631 * ubsan.c: Don't run the ubsan pass if the function has
13632 no_sanitize_undefined attribute.
13633
13634 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13635
13636 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13637 -fsanitize=undefined suboptions.
13638
13639 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13640
13641 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13642 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13643 against bigendian and adjust indices.
13644
13645 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13646
13647 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13648
13649 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13650
13651 PR target/61633
13652 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13653 Add alternative; make early clobber. Adjust both split patterns
13654 to use operand 0 as the working register.
13655
13656 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13657
13658 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13659 as ira_object_id_map might be NULL, or 1.
13660
13661 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13662
13663 * loop-invariant.c (get_inv_cost): Handle register class.
13664 (gain_for_invariant): Check the register pressure of the inv
13665 and its overlapped register class, other than all.
13666
13667 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13668
13669 * doc/invoke.texi (Optimize Options): Fix descriptions of
13670 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13671
13672 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13673
13674 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13675 documentation.
13676
13677 2014-06-29 Tobias Grosser <tobias@grosser.es>
13678
13679 PR bootstrap/61650
13680 * graphite-isl-ast-to-gimple.c: Add missing guards.
13681
13682 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13683
13684 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13685 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13686 * flag-types.h: Add new enum fgraphite_generator.
13687 * graphite-isl-ast-to-gimple.c: New.
13688 * graphite-isl-ast-to-gimple.h: New.
13689 * graphite.c (graphite_transform_loops): Add choice of Graphite
13690 code generator, which depends on flag_graphite_code_gen.
13691
13692 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13693
13694 * graphite-dependences.c (subtract_commutative_associative_deps):
13695 Add NULL checking of the following variables: must_raw_no_source,
13696 may_raw_no_source, must_war_no_source, may_war_no_source,
13697 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13698 must_war, may_war, must_waw, may_waw.
13699
13700 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13701
13702 * graphite-clast-to-gimple.c: gloog is renamed to
13703 graphite_regenerate_ast_cloog. gloog_error is renamed to
13704 graphite_regenerate_error.
13705 * graphite-clast-to-gimple.h: The definition of the struct
13706 bb_pbb_def is moved to graphite-htab.h.
13707 Add inclusion of the hash-table.h.
13708 * graphite-htab.h: The declaration of the function gloog is moved
13709 to graphite-clast-to-gimple.h and renamed to
13710 graphite_regenerate_ast_cloog.
13711 * graphite.c (graphite_transform_loops): gloog is renamed
13712 to graphite_regenerate_ast_cloog.
13713
13714 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13715
13716 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13717 type is complete.
13718 (write_ts_type_common_tree_pointers): Do not stream fields not set
13719 for incomplete types; do not stream duplicated fields for variants;
13720 sanity check that variant and type match.
13721 (write_ts_type_non_common_tree_pointers): Likewise.
13722 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13723 TYPE_SIZE whether type is complete.
13724 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13725 write_ts_type_common_tree_pointers
13726 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13727
13728 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13729
13730 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
13731
13732 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13733
13734 * tree-inline.c (remap_type_1): Do not duplicate fields
13735 that are shared in between type and its main variant.
13736
13737 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13738
13739 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13740 of the type.
13741 (ipa_set_ancestor_jf) Likewise.
13742 (check_stmt_for_type_change): Check that we work on main variant.
13743 (detect_type_change): Look into main variant.
13744 (compute_known_type_jump_func): Check that main variant has BINFO.
13745
13746 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13747
13748 * ipa-devirt.c (set_type_binfo): New function.
13749 (add_type_duplicate): Use it.
13750 (get_odr_type): Sanity check that binfos points to main variants.
13751 (get_class_context): Be sure the context's outer_type is main variant.
13752 (contains_type_p): Walk main variant.
13753 (get_polymorphic_call_info_for_decl): Set outer_type to be
13754 main variant.
13755 (get_polymorphic_call_info): Likewise.
13756 (possible_polymorphic_call_targets): Sanity check that we operate
13757 on main variant.
13758
13759 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13760
13761 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13762
13763 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13764
13765 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
13766 accidental change due to wide-int branch merge.
13767
13768 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13769
13770 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
13771 compressed debug support.
13772 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
13773 * configure: Regenerate.
13774 * config.in: Regenerate.
13775 * common.opt (compressed_debug_sections): New enum.
13776 (gz, gz=): New options.
13777 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
13778 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
13779 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
13780 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
13781 LINK_COMPRESS_DEBUG_SPEC.
13782 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
13783 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
13784 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
13785 (Debugging Options): Document -gz[=type].
13786
13787 2014-06-27 Martin Jambor <mjambor@suse.cz>
13788
13789 PR ipa/61160
13790 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
13791 args_to_skip, use those from node instead. Copy args_to_skip and
13792 combined_args_to_skip from node to the new thunk.
13793 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
13794 (cgraph_create_virtual_clone): Moved computation of
13795 combined_args_to_skip...
13796 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
13797
13798 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
13799
13800 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
13801 redundant diagnostic machinary.
13802
13803 2014-06-27 Richard Biener <rguenther@suse.de>
13804
13805 * tree-ssa-math-opts.c (bswap_replace): Fix
13806 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
13807
13808 2014-06-27 Martin Liska <mliska@suse.cz>
13809
13810 * gimple.h (gimple_location_safe): New function introduced.
13811 * cgraphunit.c (walk_polymorphic_call_targets): Usage
13812 of gimple_location_safe replaces gimple_location.
13813 (gimple_fold_call): Likewise.
13814 * ipa-devirt.c (ipa_devirt): Likewise.
13815 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13816 * ipa.c (walk_polymorphic_call_targets): Likewise.
13817 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
13818
13819 2014-06-27 Jakub Jelinek <jakub@redhat.com>
13820
13821 PR tree-optimization/57233
13822 PR tree-optimization/61299
13823 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
13824 functions.
13825 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
13826 would be lowered to scalar shifts, check if corresponding
13827 shifts and vector BIT_IOR_EXPR are supported and don't lower
13828 or lower just to narrower vector type in that case.
13829 * expmed.c (expand_shift_1): Fix up handling of vector
13830 shifts and rotates.
13831
13832 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
13833
13834 PR target/61586
13835 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
13836
13837 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
13838
13839 * doc/invoke.texi (-fsemantic-interposition): Document.
13840 * common.opt (fsemantic-interposition): New flag.
13841 * varasm.c (decl_replaceable_p): Use it.
13842
13843 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13844
13845 PR target/61542
13846 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
13847 extraction other than index 3.
13848
13849 2014-06-26 Teresa Johnson <tejohnson@google.com>
13850
13851 * doc/invoke.texi: Fix typo.
13852 * dumpfile.c: Add support for documented -fdump-* options
13853 optimized/missed/note/optall.
13854
13855 2014-06-26 Martin Jambor <mjambor@suse.cz>
13856
13857 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
13858 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
13859 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
13860 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
13861 * opts.c (default_options_optimization): Set
13862 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
13863 * doc/invoke.texi (allow-load-data-races)
13864 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
13865 (allow-store-data-races): Document the new default.
13866
13867 2014-06-26 Martin Jambor <mjambor@suse.cz>
13868
13869 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
13870 renamed to ipa_impossible_devirt_target. Fix typo.
13871 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
13872 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
13873 ipa_impossible_devirt_target.
13874
13875 2014-06-26 Richard Biener <rguenther@suse.de>
13876
13877 PR tree-optimization/61607
13878 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
13879 explaining why we restrict copies on loop depth.
13880 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13881 on loop depth.
13882 (record_equivalences_from_phis): Instead add it here.
13883
13884 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
13885
13886 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
13887 (LTO_WRAPPER_OBJS): New variable.
13888 (lto-wrapper$(exeext)): Use it.
13889 * collect2.c: Include "collect-utils.h".
13890 (verbose, debug): Remove variables.
13891 (at_file_supplied): No longer static.
13892 (tool_name): New variable.
13893 (do_wait, fork_execute, maybe_unlink): Don't declare.
13894 (tool_cleanup): No longer static.
13895 (notice): Remove function.
13896 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
13897 fork_execute calls.
13898 (collect_wait, do_wait, collect_execute): Remove functions.
13899 (maybe_unlink): No longer static.
13900 * collect2.h (verbose, debug): Don't declare.
13901 (at_file_supplied): Declare.
13902 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
13903 changed.
13904 (collect_execute): Replace with implementation from collect2, plus a
13905 new arg use_atfile. All callers changed.
13906 (collect_wait): Replace with implementation from collect2.
13907 (maybe_unlink_file): Remove function.
13908 (fork_execute): Replace with implementation from collect2, plus a
13909 new arg use_atfile. All callers changed.
13910 (do_wait): Add call to utils_cleanup to the error path.
13911 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
13912 (tool_cleanup): Adjust declarations.
13913 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
13914 * tlink.c: Include "collect-utils.h".
13915 (tlink_execute): New arg use_atfile. All callers changed.
13916 (tlink_init, tlink_execute): Remove declarations.
13917
13918 * collect-utils.c (save_temps): New variable.
13919 (do_wait): Use it instead of debug. Use fatal_error.
13920 * collect-utils.h (save_temps): Declare.
13921 * collect2.c (verbose): Rename from vflag. All uses changed.
13922 (tool_cleanup): New function, copied from collect_atexit.
13923 (collect_atexit, handler): Just call it.
13924 * collect2.h (verbose): Declaration renamed from vflag.
13925 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
13926 debug.
13927
13928 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
13929 (lto-wrapper$(exeext)): Link with collect-utils.o.
13930 * collect-utils.c: New file.
13931 * collect-utils.h: New file.
13932 * lto-wrapper.c: Include "collect-utils.h".
13933 (args_name): Delete variable.
13934 (tool_name): New variable.
13935 (tool_cleanup): New function.
13936 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
13937 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
13938 (fork_execute): Remove functions.
13939
13940 2014-06-26 Nick Clifton <nickc@redhat.com>
13941
13942 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
13943
13944 * doc/extend.texi (Function Attributes): Fix typo in description
13945 of RX vector attribute.
13946
13947 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13948
13949 * config.gcc (supported_defaults): Error when passing either
13950 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
13951
13952 2014-06-26 Richard Biener <rguenther@suse.de>
13953
13954 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13955 propagating volatile pointers.
13956
13957 2014-06-26 Richard Biener <rguenther@suse.de>
13958
13959 PR tree-optimization/61607
13960 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
13961 loop if we redirected its latch edge.
13962 (thread_block_1): Do not cancel loops prematurely.
13963
13964 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
13965
13966 * toplev.c (backend_init_target): Move init_emit_regs and
13967 init_regs to...
13968 (backend_init) ... here; skip ira_init_once and backend_init_target.
13969 (target_reinit) ... and here; clear
13970 this_target_rtl->lang_dependent_initialized.
13971 (lang_dependent_init_target): Clear
13972 this_target_rtl->lang_dependent_initialized;
13973 break out rtl initialization to ...
13974 (initialize_rtl): ... here; call also backend_init_target
13975 and ira_init_once.
13976 * toplev.h (initialize_rtl): New function.
13977 * function.c: Include toplev.h
13978 (init_function_start): Call initialize_rtl.
13979 * rtl.h (target_rtl): Add target_specific_initialized,
13980 lang_dependent_initialized.
13981
13982 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
13983 Jakub Jelinek <jakub@redhat.com>
13984
13985 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
13986
13987 2014-06-25 Tom de Vries <tom@codesourcery.com>
13988
13989 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
13990
13991 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13992
13993 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
13994 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
13995 Issue a strict overflow warning if appropriate.
13996
13997 2014-06-25 Martin Liska <mliska@suse.cz>
13998
13999 IPA REF refactoring
14000 * Makefile.in: Removed header file (ipa-ref-inline.h).
14001 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14002 called.
14003 (cgraph_speculative_call_info): Likewise.
14004 (cgraph_for_node_thunks_and_aliases): Likewise.
14005 (cgraph_for_node_and_aliases): Likewise.
14006 (verify_cgraph_node): Likewise.
14007 * cgraph.h: Batch of IPA REF functions become member functions of
14008 symtab_node: add_reference, maybe_add_reference, clone_references,
14009 clone_referring, clone_reference, find_reference,
14010 remove_stmt_references, remove_all_references,
14011 remove_all_referring, dump_references, dump_referring,
14012 has_alias_p, iterate_reference, iterate_referring.
14013 * cgraphbuild.c (record_reference): New IPA REF function used.
14014 (record_type_list): Likewise.
14015 (record_eh_tables): Likewise.
14016 (mark_address): Likewise.
14017 (mark_load): Likewise.
14018 (mark_store): Likewise.
14019 (pass_build_cgraph_edges): Likewise.
14020 (rebuild_cgraph_edge): Likewise.
14021 (cgraph_rebuild_references): Likewise.
14022 (pass_remove_cgraph_callee_edges): Likewise.
14023 * cgraphclones.c (cgraph_clone_node): Likewise.
14024 (cgraph_create_virtual_clone): Likewise.
14025 (cgraph_materialize_clone): Likewise.
14026 (cgraph_materialize_all_clones): Likewise.
14027 * cgraphunit.c (cgraph_reset_node): Likewise.
14028 (cgraph_reset_node): Likewise.
14029 (analyze_function): Likewise.
14030 (assemble_thunks_and_aliases): Likewise.
14031 (expand_function): Likewise.
14032 * ipa-comdats.c (propagate_comdat_group): Likewise.
14033 (enqueue_references): Likewise.
14034 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14035 (create_specialized_node): Likewise.
14036 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14037 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14038 * ipa-inline.c (reset_edge_caches): Likewise.
14039 (update_caller_keys): Likewise.
14040 (execute): Likewise.
14041 * ipa-prop.c (remove_described_reference): Likewise.
14042 (propagate_controlled_uses): Likewise.
14043 (ipa_edge_duplication_hook): Likewise.
14044 (ipa_modify_call_arguments): Likewise.
14045 * ipa-pure-const.c (propagate_pure_const): Likewise.
14046 * ipa-ref-inline.h: Header file removed, functions moved
14047 to symtab_node class.
14048 * ipa-ref.c (remove_reference): New class member function.
14049 (cannot_lead_to_return): New class member function.
14050 (referring_ref_list): Likewise.
14051 (referred_ref_list): Likewise.
14052 Rest of functions moved to symtab_node class.
14053 * ipa-ref.h: New member functions remove_reference,
14054 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14055 to ipa_ref class.
14056 ipa_ref_list class has new member functions: first_reference,
14057 first_referring, clear, nreferences.
14058 * ipa-reference.c (analyze_function): New IPA REF function used.
14059 (write_node_summary_p): Likewise.
14060 (ipa_reference_write_optimization_summary): Likewise.
14061 * ipa-split.c (split_function): Likewise.
14062 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14063 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14064 (function_and_variable_visibility): Likewise.
14065 * ipa.c (has_addr_references_p): Likewise.
14066 (process_references): Argument type changed.
14067 (symtab_remove_unreachable_nodes): New IPA REF function used.
14068 (process_references): Likewise.
14069 (set_writeonly_bit): Likewise.
14070 * lto-cgraph.c: Implementation of new symtab_node member functions
14071 that uses new IPA REF functions.
14072 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14073 function used.
14074 * lto-streamer-out.c (output_symbol_p): Likewise.
14075 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14076 changed.
14077 * symtab.c: Implementation of new IPA REF API.
14078 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14079 (ipa_tm_create_version): Likewise.
14080 (ipa_tm_execute): Likewise.
14081 * tree-emutls.c (gen_emutls_addr): Likewise.
14082 * tree-inline.c (copy_bb): Likewise.
14083 (delete_unreachable_blocks_update_callgraph): Likewise.
14084 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14085 (varpool_for_node_and_aliases): Likewise.
14086
14087 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14088
14089 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14090
14091 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14092
14093 PR bootstrap/61598
14094 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14095 tree_node * instead of tree_node *.
14096 (fold): Adjust.
14097 (print_fold_checksum): Likewise.
14098 (fold_check_failed): Likewise.
14099 (debug_fold_checksum): Likewise.
14100 (fold_build1_stat_loc): Likewise.
14101 (fold_build2_stat_loc): Likewise.
14102 (fold_build3_stat_loc): Likewise.
14103 (fold_build_call_array_loc): Likewise.
14104
14105 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14106
14107 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14108 implementation with call to...
14109 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14110 function.
14111 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14112 Declare.
14113
14114 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14115
14116 PR tree-optimization/57742
14117 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14118 after replacing the statement.
14119
14120 2014-06-25 Nick Clifton <nickc@redhat.com>
14121
14122 * config/v850/v850.c (GHS_default_section_names): Change to const
14123 char * type.
14124 (GHS_current_section_names): Likewise.
14125 (v850_insert_attributes): Do not build strings, just assign the
14126 names directly. Change the type of 'chosen_section' to const
14127 char*.
14128 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14129 directly to the array entry.
14130 * config/v850/v850.h (GHS_default_section_names): Change to const
14131 char * type.
14132 (GHS_current_section_names): Likewise.
14133
14134 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14135
14136 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14137 (LANG_HOOKS_DECLS): Add it.
14138 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14139 has correct type.
14140 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14141 * langhooks.h (struct lang_hooks_for_decls): Add
14142 omp_clause_linear_ctor hook.
14143 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14144 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14145 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14146 combined simd loop use omp_clause_linear_ctor hook.
14147
14148 2014-06-24 Cong Hou <congh@google.com>
14149
14150 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14151 pattern recognition.
14152 (type_conversion_p): PROMOTION is true if it's a type promotion
14153 conversion, and false otherwise. Return true if the given expression
14154 is a type conversion one.
14155 * tree-vectorizer.h: Adjust the number of patterns.
14156 * tree.def: Add SAD_EXPR.
14157 * optabs.def: Add sad_optab.
14158 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14159 * expr.c (expand_expr_real_2): Likewise.
14160 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14161 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14162 * optabs.c (optab_for_tree_code): Likewise.
14163 * tree-cfg.c (estimate_operator_cost): Likewise.
14164 * tree-ssa-operands.c (get_expr_operands): Likewise.
14165 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14166 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14167 * doc/generic.texi: Add document for SAD_EXPR.
14168 * doc/md.texi: Add document for ssad and usad.
14169
14170 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14171
14172 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14173 qualification in cast.
14174
14175 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14176
14177 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14178 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14179 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14180 (tree_function_decl): ... here.
14181 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14182 streaming of vindex to ...
14183 (write_ts_function_decl_tree_pointers): ... here.
14184 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14185 Do not stream DECL_VINDEX.
14186 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14187
14188 2014-06-24 Catherine Moore <clm@codesourcery.com>
14189 Sandra Loosemore <sandra@codesourcery.com>
14190
14191 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14192 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14193 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14194
14195 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14196
14197 * doc/invoke.texi (Warning Options): Remove duplicated
14198 -Wmaybe-uninitialized.
14199
14200 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14201
14202 PR tree-optimization/57742
14203 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14204 (handle_builtin_malloc, handle_builtin_memset): New functions.
14205 (strlen_optimize_stmt): Call them.
14206 * passes.def: Move strlen after loop+dom but before vrp.
14207
14208 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14209
14210 PR target/61570
14211 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14212 model family 6 CPU with has_longmode never use a CPU without
14213 64-bit support.
14214
14215 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14216
14217 PR target/61570
14218 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14219 the last change.
14220
14221 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14222
14223 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14224 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14225 pointer_map.
14226 * hash-map.h: New file.
14227 * ipa-comdats.c: Use hash_map instead of pointer_map.
14228 * ipa.c: Likewise.
14229 * lto-section-out.c: Adjust.
14230 * lto-streamer.h: Replace pointer_map with hash_map.
14231 * symtab.c (verify_symtab): Likewise.
14232 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14233 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14234 * tree-streamer.h: Likewise.
14235 * tree-streamer.c: Adjust.
14236 * pointer-set.h: Remove pointer_map.
14237
14238 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14239
14240 * hash-table.h: Add a template arg to choose between storing values
14241 and storing pointers to values, and then provide partial
14242 specializations for both.
14243 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14244 should store, not the type values should point to.
14245 * tree-into-ssa.c (var_info_hasher): Likewise.
14246 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14247 * tree-complex.c: Adjust.
14248 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14249 table instead of int_tree_map *.
14250 * tree-parloops.c: Adjust.
14251 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14252 type is being stored.
14253 * tree-vectorizer.c: Adjust.
14254
14255 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14256
14257 * hash-table.h: Remove a layer of indirection from hash_table so that
14258 it contains the hash table's data instead of a pointer to the data.
14259 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14260 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14261 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14262 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14263 fold-const.c, gcse.c, ggc-common.c,
14264 gimple-ssa-strength-reduction.c, gimplify.c,
14265 graphite-clast-to-gimple.c, graphite-dependences.c,
14266 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14267 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14268 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14269 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14270 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14271 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14272 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14273 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14274 tree-ssa-live.c, tree-ssa-loop-im.c,
14275 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14276 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14277 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14278 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14279 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14280 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14281 vtable-verify.c, vtable-verify.h: Adjust.
14282
14283 2014-06-24 Richard Biener <rguenther@suse.de>
14284
14285 PR tree-optimization/61572
14286 * tree-ssa-sink.c (statement_sink_location): Do not sink
14287 loads from hard registers.
14288
14289 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14290
14291 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14292 not mentioned in clauses use private clause if the iterator is
14293 declared in #pragma omp for simd, and when adding lastprivate
14294 instead, add it to the outer #pragma omp for too. Diagnose
14295 if the variable is private in outer context. For simd collapse > 1
14296 loops, replace all iterators with temporaries.
14297 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14298 same even in collapse > 1 loops.
14299
14300 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14301 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14302 non-NULL.
14303 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14304 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14305 non-NULL.
14306 (gimplify_adjust_omp_clauses): Likewise.
14307 * omp-low.c (lower_rec_simd_input_clauses,
14308 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14309 safelen the same as safelen(1).
14310 * tree-nested.c (convert_nonlocal_omp_clauses,
14311 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14312 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14313 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14314 Fixup handling of GIMPLE_OMP_TARGET.
14315 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14316 GIMPLE_OMP_TARGET.
14317
14318 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14319
14320 PR tree-optimization/61554
14321 * tree-ssa-propagate.c: Include "bitmap.h".
14322 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14323 properly update constructor/destructor.
14324 (substitute_and_fold_dom_walker::before_dom_children):
14325 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14326 need_eh_cleaup instead.
14327 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14328 need_eh_cleanup.
14329
14330 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14331
14332 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14333 * tree-pass.h (make_pass_ipa_single_use): New pass.
14334 * cgraph.h (used_by_single_function): New flag.
14335 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14336 Stream it.
14337 * passes.def (pass_ipa_single_use): Scedule.
14338 * ipa.c (BOTTOM): New macro.
14339 (meet): New function
14340 (propagate_single_user): New function.
14341 (ipa_single_use): New function.
14342 (pass_data_ipa_single_use): New pass.
14343 (pass_ipa_single_use): New pass.
14344 (pass_ipa_single_use::gate): New gate.
14345 (make_pass_ipa_single_use): New function.
14346
14347 2014-06-23 Kai Tietz <ktietz@redhat.com>
14348
14349 PR target/39284
14350 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14351 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14352
14353 2014-06-23 Richard Biener <rguenther@suse.de>
14354
14355 * tree-ssa-loop.c (gate_loop): New function.
14356 (pass_tree_loop::gate): Call it.
14357 (pass_data_tree_no_loop, pass_tree_no_loop,
14358 make_pass_tree_no_loop): New.
14359 * tree-vectorizer.c: Include tree-scalar-evolution.c
14360 (pass_slp_vectorize::execute): Initialize loops and SCEV if
14361 required.
14362 (pass_slp_vectorize::clone): New method.
14363 * timevar.def (TV_TREE_NOLOOP): New.
14364 * tree-pass.h (make_pass_tree_no_loop): Declare.
14365 * passes.def (pass_tree_no_loop): New pass group with
14366 SLP vectorizer.
14367
14368 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14369
14370 PR target/61570
14371 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14372 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14373
14374 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14375
14376 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14377 "yes" where needed.
14378
14379 2014-06-23 Alan Modra <amodra@gmail.com>
14380
14381 PR bootstrap/61583
14382 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14383 to zero on debug statements.
14384
14385 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14386
14387 PR target/60825
14388 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14389 Ignore third operand if present by marking qualifier_internal.
14390
14391 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14392
14393 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14394 vector extension.
14395 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14396 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14397 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14398 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14399 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14400 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14401 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14402 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14403 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14404 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14405 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14406 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14407 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14408 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14409 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14410 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14411 logic in GCC vector extensions
14412
14413 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14414 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14415 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14416 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14417 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14418 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14419 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14420 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14421 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14422 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14423
14424 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14425
14426 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14427 extensions.
14428
14429 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14430 (vget_low_s64): Use __GET_LOW macro.
14431 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14432 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14433 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14434 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14435 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14436
14437 (vcombine_s64): Use GCC vector extensions; remove cast.
14438 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14439 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14440 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14441 Fix type signature; remove cast.
14442
14443 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14444
14445 PR target/60825
14446 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14447 V1DFmode.
14448 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14449 add V1DFmode
14450 (BUILTIN_VD1): New.
14451 (BUILTIN_VD_RE): Remove.
14452 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14453 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14454 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14455 variant but not df.
14456 (vreinterpretv1df*, vreinterpret*v1df): New.
14457 (vreinterpretdf*, vreinterpret*df): Remove.
14458 * config/aarch64/aarch64-simd.md (aarch64_create,
14459 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14460 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14461 (VD1): New.
14462 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14463 (vcreate_f64): Remove cast, use v1df builtin.
14464 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14465 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14466 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14467 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14468 vmov_n_f64, vst1_f64): Use gcc vector extensions.
14469 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14470 add range check using __builtin_aarch64_im_lane_boundsi.
14471 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14472 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14473 type signature, use gcc vector extensions.
14474 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14475 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14476 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14477 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14478 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14479 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14480 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14481 vreinterpret_u64_f64): Use v1df builtin not df.
14482
14483 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14484
14485 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14486 vector registers.
14487
14488 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14489
14490 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14491 priority directly.
14492
14493 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14494
14495 * loop-invariant.c (pre_check_invariant_p): New function.
14496 (find_invariant_insn): Call pre_check_invariant_p.
14497
14498 2014-06-22 Richard Henderson <rth@redhat.com>
14499
14500 PR target/61565
14501 * compare-elim.c (struct comparison): Add eh_note.
14502 (find_comparison_dom_walker::before_dom_children): Don't eliminate
14503 a redundant comparison in a different EH region. Purge EH edges if
14504 necessary.
14505
14506 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14507
14508 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14509 (var_shift): Use it.
14510 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14511 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14512 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14513 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14514 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14515 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14516 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14517 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14518 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14519 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14520 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14521 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14522 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14523 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14524 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14525 *rotldi3_internal15be): Use the new attribute. Merge register and
14526 integer alternatives.
14527
14528 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14529
14530 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14531 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14532 split, *ashrdi3_internal3 and split): Delete, merge into...
14533 (ashr<mode>3): New expander.
14534 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14535 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14536
14537 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14538
14539 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14540 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14541 *rotldi3_internal3 and split): Delete, merge into...
14542 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14543 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
14544 Use "rotlw" extended mnemonic.
14545
14546 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14547
14548 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14549 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14550 and split, *ashldi3_internal3 and split): Delete, merge into...
14551 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14552 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14553
14554 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14555
14556 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14557 (lshrsi3, two anonymous define_insns and define_splits,
14558 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14559 *lshrdi3_internal3 and split): Delete, merge into...
14560 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14561 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14562
14563 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14564
14565 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14566 Remove "O" alternative.
14567
14568 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14569
14570 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14571 (mips_move_from_gpr_cost): Likewise.
14572 (mips_register_move_cost): Update accordingly.
14573 (mips_secondary_reload_class): Remove name of in_p.
14574
14575 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14576
14577 PR target/61503
14578 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14579 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14580
14581 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14582
14583 * config/nios2/nios2.c: Include "builtins.h".
14584
14585 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14586
14587 * cgraph.h (tls_model_names): New variable.
14588 * print-tree.c (print_node): Simplify.
14589 * varpool.c (tls_model_names): New variable.
14590 (dump_varpool_node): Output tls model.
14591
14592 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14593
14594 * ipa-visibility.c (function_and_variable_visibility): Disable
14595 temporarily local aliases for some targets.
14596
14597 2014-06-20 Marek Polacek <polacek@redhat.com>
14598
14599 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14600 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14601 into SANITIZE_UNDEFINED.
14602 * doc/invoke.texi: Describe -fsanitize=bounds.
14603 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14604 functions created in the FEs.
14605 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14606 (expand_UBSAN_BOUNDS): New function.
14607 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14608 * internal-fn.h: Don't define internal functions here.
14609 * opts.c (common_handle_option): Add -fsanitize=bounds.
14610 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14611 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14612 * tree-core.h: Define internal functions here.
14613 (struct tree_base): Add ifn field.
14614 * tree-pretty-print.c: Include "internal-fn.h".
14615 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14616 * tree.c (get_callee_fndecl): Likewise.
14617 (build_call_expr_internal_loc): New function.
14618 * tree.def (CALL_EXPR): Update description.
14619 * tree.h (CALL_EXPR_IFN): Define.
14620 (build_call_expr_internal_loc): Declare.
14621 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14622 types.
14623 (ubsan_type_descriptor): Change bool parameter to enum
14624 ubsan_print_style. Adjust the code. Add handling of
14625 UBSAN_PRINT_ARRAY.
14626 (ubsan_expand_bounds_ifn): New function.
14627 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14628 (ubsan_build_overflow_builtin): Likewise.
14629 (instrument_bool_enum_load): Likewise.
14630 (ubsan_instrument_float_cast): Likewise.
14631 * ubsan.h (enum ubsan_print_style): New enum.
14632 (ubsan_expand_bounds_ifn): Declare.
14633 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14634
14635 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14636
14637 * config/rs6000/rs6000.md: Append `DONE' to preparation
14638 statements of `bswap' pattern splitters.
14639
14640 2014-06-20 Tom de Vries <tom@codesourcery.com>
14641
14642 * target.def (call_fusage_contains_non_callee_clobbers): Update
14643 definition.
14644 * doc/tm.texi: Regenerate.
14645
14646 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14647 Max Ostapenko <m.ostapenko@partner.samsung.com>
14648
14649 PR sanitizer/61547
14650 * asan.c (instrument_strlen_call): Fixed instrumentation of
14651 trailing byte.
14652
14653 2014-06-20 Martin Jambor <mjambor@suse.cz>
14654
14655 PR ipa/61540
14656 * ipa-prop.c (impossible_devirt_target): New function.
14657 (try_make_edge_direct_virtual_call): Use it, also instead of
14658 asserting.
14659
14660 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14661 Max Ostapenko <m.ostapenko@partner.samsung.com>
14662
14663 PR sanitizer/61530
14664 * asan.c (build_check_stmt): Add condition.
14665
14666 2014-06-20 Martin Jambor <mjambor@suse.cz>
14667
14668 PR ipa/61211
14669 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14670 expanded clones.
14671
14672 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14673
14674 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14675 Update comments.
14676 (VCONQ): Make comment more helpful.
14677 (VCON): Delete.
14678 * config/aarch64/aarch64-simd.md
14679 (aarch64_sqdmulh_lane<mode>):
14680 Use VCOND for operands 2. Update lane checking and flipping logic.
14681 (aarch64_sqrdmulh_lane<mode>): Likewise.
14682 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14683 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14684 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14685 attribute of operand 3 to VCOND.
14686 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14687 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14688 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14689 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14690 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14691 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14692 define_insn.
14693 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14694 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14695 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14696 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14697 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14698 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14699 operand to VCOND. Update lane flipping and bounds checking logic.
14700 (aarch64_sqdmlal2_lane<mode>): Likewise.
14701 (aarch64_sqdmlsl_lane<mode>): Likewise.
14702 (aarch64_sqdmull_lane<mode>): Likewise.
14703 (aarch64_sqdmull2_lane<mode>): Likewise.
14704 (aarch64_sqdmlal_laneq<mode>):
14705 Replace VCON usage with VCONQ.
14706 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14707 (aarch64_sqdmlal2_laneq<mode>): Emit
14708 aarch64_sqdmlal2_laneq<mode>_internal insn.
14709 Replace VCON with VCONQ.
14710 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14711 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14712 (aarch64_sqdmull_laneq<mode>): Emit
14713 aarch64_sqdmull_laneq<mode>_internal insn.
14714 Replace VCON with VCONQ.
14715 (aarch64_sqdmull2_laneq<mode>): Emit
14716 aarch64_sqdmull2_laneq<mode>_internal insn.
14717 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14718 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14719 of 3rd argument to int16x4_t.
14720 (vqdmlalh_lane_s16): Likewise.
14721 (vqdmlslh_lane_s16): Likewise.
14722 (vqdmull_high_lane_s16): Likewise.
14723 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
14724 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
14725 (vqdmlsl_lane_s16): Likewise.
14726 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
14727 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
14728 (vqdmlals_lane_s32): Likewise.
14729 (vqdmlsls_lane_s32): Likewise.
14730 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
14731 (vqdmulls_lane_s32): Likewise.
14732 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
14733 (vqdmlsl_lane_s32): Likewise.
14734 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
14735 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
14736 (vqrdmulhh_lane_s16): Likewise.
14737 (vqdmlsl_high_lane_s16): Likewise.
14738 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
14739 (vqdmlsl_high_lane_s32): Likewise.
14740 (vqrdmulhs_lane_s32): Likewise.
14741
14742 2014-06-20 Tom de Vries <tom@codesourcery.com>
14743
14744 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
14745 get_call_reg_set_usage.
14746
14747 2014-06-20 Tom de Vries <tom@codesourcery.com>
14748
14749 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
14750 it contains all call_used_regs.
14751
14752 2014-06-20 Tom de Vries <tom@codesourcery.com>
14753
14754 * final.c (collect_fn_hard_reg_usage): Add and use variable
14755 function_used_regs.
14756
14757 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14758
14759 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
14760 (set_init_priority, get_init_priority, set_fini_priority,
14761 get_fini_priority): New methods.
14762 * tree.c (init_priority_for_decl): Remove.
14763 (init_ttree): Do not initialize init priority.
14764 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
14765 (decl_priority_info): Remove.
14766 (decl_init_priority_insert): Rewrite.
14767 (decl_fini_priority_insert): Rewrite.
14768 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
14769 tree_priority_map_marked_p): Remove.
14770 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
14771 * lto-streamer-out.c (hash_tree): Do not hash priorities.
14772 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
14773 not output priorities.
14774 (pack_ts_function_decl_value_fields): Likewise.
14775 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14776 not input priorities.
14777 (unpack_ts_function_decl_value_fields): Likewise.
14778 * symtab.c (symbol_priority_map): Declare.
14779 (init_priority_hash): Declare.
14780 (symtab_unregister_node): Unregister from priority hash, too.
14781 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
14782 New methods.
14783 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
14784 (symbol_priority_info): New function.
14785 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
14786 New methods.
14787 * tree-core.h (tree_priority_map): Remove.
14788
14789 2014-06-20 Jakub Jelinek <jakub@redhat.com>
14790
14791 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
14792 0xff to uint64_t before shifting it up.
14793
14794 2014-06-20 Julian Brown <julian@codesourcery.com>
14795 Chung-Lin Tang <cltang@codesourcery.com>
14796
14797 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
14798 TARGET_THUMB1_ONLY. Add comments.
14799
14800 2014-06-19 Tom de Vries <tom@codesourcery.com>
14801
14802 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
14803 return type to void.
14804 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
14805
14806 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14807
14808 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
14809 as "move", from depends_on.
14810
14811 2014-06-19 Terry Guo <terry.guo@arm.com>
14812
14813 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
14814 stage.
14815
14816 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
14817
14818 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
14819 Remove cr5.
14820 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
14821
14822 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14823
14824 PR target/61550
14825 * config/sh/sh.c (prepare_move_operands): Don't process TLS
14826 addresses here if reload in progress or completed.
14827
14828 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14829
14830 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
14831 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
14832 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
14833 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
14834 (mips_register_priority): New function that implements the target
14835 hook TARGET_REGISTER_PRIORITY.
14836 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
14837 (mips_lra_p): Likewise for TARGET_LRA_P.
14838 (TARGET_REGISTER_PRIORITY): Define macro.
14839 (TARGET_SPILL_CLASS): Likewise.
14840 (TARGET_LRA_P): Likewise.
14841 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
14842 classes.
14843 (REG_CLASS_NAMES): Likewise.
14844 (REG_CLASS_CONTENTS): Likewise.
14845 (BASE_REG_CLASS): Use M16_SP_REGS.
14846 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
14847 New set attribute to enable alternatives depending on the register
14848 allocator used.
14849 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
14850 (*lea64): Disable pattern for MIPS16.
14851 * config/mips/mips.opt (mlra): New option.
14852
14853 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14854
14855 * lra-constraints.c (base_to_reg): New function.
14856 (process_address): Use new function.
14857
14858 2014-06-18 Tom de Vries <tom@codesourcery.com>
14859
14860 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
14861 * config/aarch64/aarch64.c
14862 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
14863 (aarch64_emit_call_insn): New function.
14864 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
14865 of emit_call_insn.
14866 * config/aarch64/aarch64.md (define_expand "call_internal")
14867 (define_expand "call_value_internal", define_expand "sibcall_internal")
14868 (define_expand "sibcall_value_internal"): New.
14869 (define_expand "call", define_expand "call_value")
14870 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
14871 expand variant and aarch64_emit_call_insn.
14872
14873 2014-06-18 Radovan Obradovic <robradovic@mips.com>
14874 Tom de Vries <tom@codesourcery.com>
14875
14876 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
14877 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14878 Redefine to true.
14879 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
14880 clobbers to CALL_INSN_FUNCTION_USAGE.
14881 (define_expand "sibcall_internal")
14882 (define_expand "sibcall_value_internal"): New.
14883 (define_expand "call", define_expand "call_value"): Add argument to
14884 arm_emit_call_insn.
14885 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
14886 (define_expand "sibcall_value"): Use sibcall_value_internal and
14887 arm_emit_call_insn.
14888
14889 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14890
14891 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
14892
14893 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14894
14895 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
14896 __udivmoddi4.
14897
14898 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14899
14900 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
14901 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
14902 annotations. Fix DWARF information.
14903
14904 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14905
14906 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
14907 __udivmoddi4, and fixups for negative operands.
14908
14909 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14910
14911 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
14912
14913 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14914
14915 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
14916 to __udivmoddi4.
14917
14918 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14919
14920 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
14921 manipulation.
14922
14923 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14924
14925 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
14926 describing register usage on function entry and exit.
14927
14928 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14929
14930 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
14931 (__aeabi_ldivmod): Fix whitespace.
14932
14933 2014-06-18 Andreas Schwab <schwab@suse.de>
14934
14935 * doc/md.texi (Standard Names): Use @itemx for grouped items.
14936 Remove blank line after @item.
14937
14938 2014-06-18 Richard Henderson <rth@redhat.com>
14939
14940 PR target/61545
14941 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
14942
14943 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14944
14945 * config/arm/arm.c (neon_vector_mem_operand): Allow register
14946 POST_MODIFY for neon loads and stores.
14947 (arm_print_operand): Output post-index register for neon loads and
14948 stores.
14949
14950 2014-06-18 Richard Biener <rguenther@suse.de>
14951
14952 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
14953
14954 2014-06-18 Richard Biener <rguenther@suse.de>
14955
14956 * tree-pass.h (make_pass_dce_loop): Remove.
14957 * passes.def: Replace pass_dce_loop with pass_dce.
14958 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
14959 changed free niter estimates and reset the scev cache.
14960 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
14961 make_pass_dce_loop): Remove.
14962 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
14963 (fini_copy_prop): Return whether something changed. Always
14964 let substitute_and_fold perform DCE and free niter estimates
14965 and reset the scev cache if so.
14966 (execute_copy_prop): If sth changed schedule cleanup-cfg.
14967 (pass_data_copy_prop): Do not unconditionally schedule
14968 cleanup-cfg or update-ssa.
14969
14970 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14971
14972 PR tree-optimization/61518
14973 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14974 reduction var is used in reduction stmt or phi-function only.
14975
14976 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14977
14978 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
14979
14980 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
14981
14982 PR tree-optimization/61517
14983 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
14984 whose rhs's first tree is the source expression instead of the
14985 expression itself.
14986 (find_bswap_or_nop): Likewise.
14987 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
14988 gimple stmt whose rhs's first tree is the source. In the memory source
14989 case, move the stmt to be replaced close to one of the original load to
14990 avoid the problem of a store between the load and the stmt's original
14991 location.
14992 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
14993 signature.
14994
14995 2014-06-18 Andreas Schwab <schwab@suse.de>
14996
14997 PR rtl-optimization/54555
14998 * postreload.c (move2add_use_add2_insn): Substitute
14999 STRICT_LOW_PART only if it is cheaper.
15000
15001 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15002
15003 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15004 Do not use unspec as call operand. Use memory_operand instead of
15005 memory_nox32_operand and add "m" operand constraint. Disable
15006 pattern for TARGET_X32.
15007 (*sibcall_pop_memory): Ditto.
15008 (*sibcall_value_memory): Ditto.
15009 (*sibcall_value_pop_memory): Ditto.
15010 (sibcall peepholes): Merge SImode and DImode patterns using
15011 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15012 Disable pattern for TARGET_X32. Check if eliminated register is
15013 really dead after call insn. Generate call RTX without unspec operand.
15014 (sibcall_value peepholes): Ditto.
15015 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15016 instead of memory_nox32_operand. Check if eliminated register is
15017 really dead after call insn. Generate call RTX without unspec operand.
15018 (sibcall_value_pop peepholes): Ditto.
15019 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15020
15021 2014-06-18 Terry Guo <terry.guo@arm.com>
15022
15023 PR target/61544
15024 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15025 reach the head.
15026
15027 2014-06-18 Olivier Hainque <hainque@adacore.com>
15028
15029 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15030 memorization of the end of block source location.
15031 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15032 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15033 end source location info we have on the block entry/exit code we
15034 generate.
15035
15036 2014-06-18 Richard Biener <rguenther@suse.de>
15037
15038 * common.opt (fssa-phiopt): New option.
15039 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15040 but not with -Og.
15041 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15042 * doc/invoke.texi (-fssa-phiopt): Document.
15043
15044 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15045
15046 * genattrtab.c (n_bypassed): New variable.
15047 (process_bypasses): Initialise n_bypassed.
15048 Count number of bypassed reservations.
15049 (make_automaton_attrs): Allocate space for bypassed reservations
15050 rather than number of bypasses.
15051
15052 2014-06-18 Richard Biener <rguenther@suse.de>
15053
15054 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15055 we propagated anything.
15056 (substitute_and_fold_dom_walker::before_dom_children): Something
15057 changed if we propagated into PHI arguments.
15058 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15059 we removed a stmt.
15060
15061 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15062
15063 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15064 vector case.
15065 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15066 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15067 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15068 Introduces alternative way of loads group permutaions.
15069 (vect_transform_grouped_load): Try alternative way of permutations.
15070
15071 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15072
15073 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15074 changed in ORT_TARGET region, don't jump to do_outer.
15075 (struct gimplify_adjust_omp_clauses_data): New type.
15076 (gimplify_adjust_omp_clauses_1): Adjust for data being
15077 a struct gimplify_adjust_omp_clauses_data pointer instead
15078 of tree *. Pass pre_p as a new argument to
15079 lang_hooks.decls.omp_finish_clause hook.
15080 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15081 splay_tree_foreach to pass both list_p and pre_p.
15082 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15083 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15084 gimplify_adjust_omp_clauses callers.
15085 * langhooks.c (lhd_omp_finish_clause): New function.
15086 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15087 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15088 * langhooks.h (struct lang_hooks_for_decls): Add a new
15089 gimple_seq * argument to omp_finish_clause hook.
15090 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15091 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15092 (scan_omp_parallel, lower_omp_for): When adding
15093 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15094 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15095 * tree-nested.c (convert_nonlocal_omp_clauses,
15096 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15097 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15098
15099 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15100
15101 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15102 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15103
15104 2014-06-17 Xinliang David Li <davidxl@google.com>
15105
15106 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15107 * passes.c (pass_init_dump_file): Do not set initialize
15108 flag to false unconditionally.
15109
15110 2014-06-17 Richard Biener <rguenther@suse.de>
15111
15112 * genopinit.c (main): Use vec<>::qsort method.
15113 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15114 Likewise.
15115 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15116
15117 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15118
15119 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15120 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15121 (mips_move_to_gpr_cost): Remove ST_REGS case.
15122 (mips_move_from_gpr_cost): Likewise.
15123 (mips_register_move_cost): Likewise.
15124 (mips_secondary_reload_class): Likewise.
15125
15126 2014-06-17 Richard Biener <rguenther@suse.de>
15127
15128 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15129 (pass_all_optimizations): Move 3rd copy-prop pass from after
15130 fre to before ifcombine/phiopt.
15131
15132 2014-06-17 Richard Biener <rguenther@suse.de>
15133
15134 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15135 and allow all blocks to be forwarders.
15136
15137 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15138
15139 PR target/61483
15140 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15141 variable 'size'; calculate 'size' right in the front; use
15142 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15143 pcum->aapcs_stack_words.
15144
15145 2014-06-17 Nick Clifton <nickc@redhat.com>
15146
15147 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15148 (umulhi3, mulsidi3, umulsidi3): Likewise.
15149
15150 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15151
15152 PR middle-end/61508
15153 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15154 check for section name.
15155
15156 2014-06-17 Richard Biener <rguenther@suse.de>
15157
15158 * tree-ssa-propagate.c: Include domwalk.h.
15159 (substitute_and_fold): Outline main worker into a domwalker ...
15160 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15161 Schedule stmts we can fully propagate for removal. Remove
15162 poor-mans DCE.
15163 (substitute_and_fold): Apply a dominator walk to perform
15164 substitution. Process stmts scheduled for removal here.
15165
15166 2014-06-17 Richard Biener <rguenther@suse.de>
15167
15168 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15169 of PHI node moving.
15170
15171 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15172
15173 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15174 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15175 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15176 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15177 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15178 TARGET_HARD_FLOAT.
15179 (get_fpscr) : Likewise.
15180
15181 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15182
15183 PR rtl-optimization/61325
15184 * lra-constraints.c (valid_address_p): Add forward declaration.
15185 (simplify_operand_subreg): Check address validity before and after
15186 alter_reg of memory subreg.
15187
15188 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15189
15190 * config/i386/i386.c (decide_alg): Correctly handle
15191 maximum size of stringop algorithm.
15192
15193 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15194
15195 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15196
15197 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15198
15199 PR rtl-optimization/61522
15200 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15201
15202 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15203
15204 Revert:
15205 * symtab.c (symtab_node::reset_section): New method.
15206 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15207 for localization.
15208 * cgraph.h (reset_section): Declare.
15209 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15210 do not consider comdat locals.
15211 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15212 for new symbol.
15213 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15214 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15215 reset sections of symbols dragged out of the comdats.
15216 (function_and_variable_visibility): Reset sections of
15217 localized symbols.
15218
15219 2014-06-16 Richard Biener <rguenther@suse.de>
15220
15221 PR tree-optimization/61482
15222 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15223 [-INF(OVF), +INF(OVF)] range.
15224
15225 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15226
15227 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15228 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15229 handling 32-bit multiplication.
15230
15231 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15232
15233 PR middle-end/61430
15234 * lra-lives.c (process_bb_lives): Skip creating copy during
15235 insn scan when src/dest has constrained to same regno.
15236
15237 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15238
15239 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15240 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15241
15242 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15243
15244 * asan.c (check_func): New function.
15245 (maybe_create_ssa_name): Likewise.
15246 (build_check_stmt_with_calls): Likewise.
15247 (use_calls_p): Likewise.
15248 (report_error_func): Change interface.
15249 (build_check_stmt): Allow non-integer lengths; add support
15250 for new parameter.
15251 (asan_instrument): Likewise.
15252 (instrument_mem_region_access): Moved code to build_check_stmt.
15253 (instrument_derefs): Likewise.
15254 (instrument_strlen_call): Likewise.
15255 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15256 * doc/invoke.texi: Describe new parameter.
15257 * params.def: Define new parameter.
15258 * params.h: Likewise.
15259 * sanitizer.def: Describe new builtins.
15260
15261 2014-06-16 Richard Biener <rguenther@suse.de>
15262
15263 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15264 Make all defs available at the end.
15265 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15266
15267 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15268
15269 PR plugins/45078
15270 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15271
15272 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15273
15274 PR bootstrap/61516
15275 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15276 initialization. Replace remaining use of uid.
15277
15278 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15279
15280 * c-family/c-common.c (handle_tls_model_attribute): Use
15281 set_decl_tls_model.
15282 * c-family/c-common.c (handle_tls_model_attribute): Use
15283 set_decl_tls_model.
15284 * cgraph.h (struct varpool_node): Add tls_model.
15285 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15286 * tree.h (DECL_TLS_MODEL): Update.
15287 (DECL_THREAD_LOCAL_P): Check that variable is static.
15288 (decl_tls_model): Declare.
15289 (set_decl_tls_model): Declare.
15290 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15291 set symbol prorperties.
15292 (get_emutls_init_templ_addr): Cleanup.
15293 (new_emutls_decl): Update.
15294 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15295 (lto_input_varpool_node): Likewise.
15296 * lto-streamer-out.c (hash_tree): Likewise.
15297 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15298 not stream DECL_TLS_MODEL.
15299 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15300 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15301
15302 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15303
15304 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15305
15306 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15307
15308 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15309 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15310 lists.
15311 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15312 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15313 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15314 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15315 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15316 (df_get_artificial_defs, df_get_artificial_uses)
15317 (df_single_def, df_single_use): Update accordingly.
15318 (df_refs_chain_dump): Take the first element in a linked list as
15319 parameter, rather than a pointer to an array of pointers.
15320 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15321 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15322 (df_chain_create_bb_process_use): Likewise.
15323 (df_md_bb_local_compute_process_def): Likewise.
15324 * fwprop.c (process_defs, process_uses): Likewise.
15325 (register_active_defs, update_uses): Likewise.
15326 (forward_propagate_asm): Update for new df_ref linking.
15327 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15328 (df_null_ref_rec, df_null_mw_rec): Likewise.
15329 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15330 explicitly.
15331 (df_scan_free_bb_info): Remove check for null artificial_defs.
15332 (df_install_ref_incremental): Adjust for new df_ref linking.
15333 Use a single-element insertion rather than a full sort.
15334 (df_ref_chain_delete_du_chain): Take the first element
15335 in a linked list as parameter, rather than a pointer to an array of
15336 pointers.
15337 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15338 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15339 (df_insn_info_delete): Remove check for null defs and call to
15340 df_scan_free_mws_vec.
15341 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15342 null rather than df_null_*_rec.
15343 (df_insn_rescan_debug_internal): Likewise, and update null
15344 checks in the same way. Remove check for null defs.
15345 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15346 Move a single element rather doing a full sort.
15347 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15348 linking.
15349 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
15350 Initialize df_ref and df_mw_hardreg lists to null rather than
15351 df_null_*_rec.
15352 (df_ref_compare): Take df_refs as parameter, transferring the
15353 old interface to...
15354 (df_ref_ptr_compare): ...this new function.
15355 (df_sort_and_compress_refs): Update accordingly.
15356 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15357 old interface to...
15358 (df_mw_ptr_compare): ...this new function.
15359 (df_sort_and_compress_mws): Update accordingly.
15360 (df_install_refs, df_install_mws): Return a linked list rather than
15361 an array of pointers.
15362 (df_refs_add_to_chains): Assert that old lists are empty rather
15363 than freeing them.
15364 (df_insn_refs_verify): Don't handle null defs speciailly.
15365 * web.c (union_match_dups): Update for new df_ref linking.
15366
15367 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15368
15369 * df.h (df_ref_create, df_ref_remove): Delete.
15370 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15371 (df_ref_remove): Likewise.
15372
15373 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15374
15375 * df.h (df_single_def, df_single_use): New functions.
15376 * ira.c (find_moveable_pseudos): Use them.
15377
15378 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15379
15380 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15381 * df-problems.c (df_note_bb_compute): Use it.
15382 * regstat.c (regstat_bb_compute_ri): Likewise.
15383
15384 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15385
15386 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15387 * cse.c (cse_extended_basic_block): Use them.
15388 * dce.c (mark_artificial_use): Likewise.
15389 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15390 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15391 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15392 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15393 (df_simulate_initialize_backwards): Likewise.
15394 (df_simulate_finalize_backwards): Likewise.
15395 (df_simulate_initialize_forwards): Likewise.
15396 (df_md_simulate_artificial_defs_at_top): Likewise.
15397 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15398 * regrename.c (init_rename_info): Likewise.
15399 * regstat.c (regstat_bb_compute_ri): Likewise.
15400 (regstat_bb_compute_calls_crossed): Likewise.
15401
15402 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15403
15404 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15405 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15406 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15407 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15408 * combine.c (create_log_links): Likewise.
15409 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15410 (try_eliminate_compare): Likewise.
15411 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15412 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15413 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15414 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15415 (word_dce_process_block, dce_process_block): Likewise.
15416 * ddg.c (def_has_ccmode_p): Likewise.
15417 * df-core.c (df_bb_regno_first_def_find): Likewise.
15418 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15419 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15420 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15421 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15422 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15423 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15424 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15425 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15426 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15427 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15428 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15429 * fwprop.c (local_ref_killed_between_p): Likewise.
15430 (all_uses_available_at, free_load_extend): Likewise.
15431 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15432 * hw-doloop.c (scan_loop): Likewise.
15433 * ifcvt.c (dead_or_predicable): Likewise.
15434 * init-regs.c (initialize_uninitialized_regs): Likewise.
15435 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15436 (process_bb_node_lives): Likewise.
15437 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15438 (find_moveable_pseudos): Likewise.
15439 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15440 * recog.c (peep2_find_free_register): Likewise.
15441 * ree.c (get_defs): Likewise.
15442 * regstat.c (regstat_bb_compute_ri): Likewise.
15443 (regstat_bb_compute_calls_crossed): Likewise.
15444 * sched-deps.c (find_inc, find_mem): Likewise.
15445 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15446 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15447 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15448 (prepare_shrink_wrap): Likewise.
15449 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15450 * web.c (union_defs, pass_web::execute): Likewise.
15451 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15452 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15453
15454 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
15455
15456 * lra-assign.c (assign_by_spills): Add code to assign vector regs
15457 to inheritance pseudos.
15458 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15459
15460 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
15461
15462 PR target/61415
15463 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15464 (BU_MISC_2): Rename to ...
15465 (BU_LDBL128_2): ... this.
15466 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15467 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15468 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15469 RS6000_BTM_LDBL128.
15470 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15471 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15472 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15473 (unpacktf_1): Likewise.
15474 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15475 (__builtin_longdouble_dw1): Likewise.
15476 * doc/sourcebuild.texi (longdouble128): Document.
15477
15478 2014-06-13 Jeff Law <law@redhat.com>
15479
15480 PR rtl-optimization/61094
15481 PR rtl-optimization/61446
15482 * ree.c (combine_reaching_defs): Get the mode for the copy from
15483 the extension insn rather than the defining insn.
15484
15485 2014-06-13 Dehao Chen <dehao@google.com>
15486
15487 * dwarf2out.c (add_linkage_name): Emit more linkage name.
15488
15489 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
15490
15491 * doc/install.texi (--enable-linker-plugin-configure-flags)
15492 (--enable-linker-plugin-flags): Document new flags.
15493
15494 2014-06-13 Martin Jambor <mjambor@suse.cz>
15495
15496 PR ipa/61186
15497 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15498 cache_token if returning early.
15499
15500 2014-06-13 Nick Clifton <nickc@redhat.com>
15501
15502 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15503 requested alignment is active.
15504 (LABEL_ALIGN): Likewise.
15505 (LOOP_ALIGN): Likewise.
15506
15507 2014-06-13 Richard Biener <rguenther@suse.de>
15508
15509 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15510 Rewrite to propagate the VN result into all uses where
15511 possible and to remove stmts becoming dead because of that.
15512 (eliminate): Generalize stmt removal handling, remove in
15513 reverse dominator order to support proper debug stmt
15514 generation. Update stmts before removing stmts.
15515 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15516
15517 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15518
15519 PR tree-optimization/61375
15520 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15521 symbolic number cannot be represented in an uint64_t.
15522 (find_bswap_or_nop_1): Likewise.
15523
15524 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15525
15526 * symtab.c (symtab_node::reset_section): New method.
15527 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15528 for localization.
15529 * cgraph.h (reset_section): Declare.
15530 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15531 do not consider comdat locals.
15532 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15533 for new symbol.
15534 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15535 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15536 reset sections of symbols dragged out of the comdats.
15537 (function_and_variable_visibility): Reset sections of
15538 localized symbols.
15539
15540 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15541
15542 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15543 to use symtab and decl_binds_to_current_def_p
15544 * tree-vectorizer.c (increase_alignment): Increase alignment
15545 of alias target, too.
15546
15547 2014-06-12 Jakub Jelinek <jakub@redhat.com>
15548
15549 PR middle-end/61486
15550 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15551 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15552 if outer combined construct is distribute.
15553 (gimplify_omp_for): For OMP_DISTRIBUTE set
15554 gimplify_omp_ctxp->distribute.
15555 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15556 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15557 mapping into decl map.
15558
15559 2014-06-12 Jason Merrill <jason@redhat.com>
15560
15561 * common.opt (fabi-version): Change default to 0.
15562
15563 2014-06-12 Jason Merrill <jason@redhat.com>
15564
15565 * toplev.c (process_options): Reject -fabi-version=1.
15566
15567 2014-06-12 Jeff Law <law@redhat.com>
15568
15569 PR tree-optimization/61009
15570 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15571 value when we stop processing a block due to problematic PHIs.
15572
15573 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15574
15575 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15576 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15577 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15578 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15579 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15580 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15581 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15582 are not in the spec.
15583
15584 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15585
15586 PR target/59843
15587 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15588 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15589 Support V1DFmode.
15590
15591 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15592
15593 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15594
15595 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15596
15597 PR target/61443
15598 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15599 loading from address spaces.
15600
15601 2014-06-12 Martin Liska <mliska@suse.cz>
15602
15603 PR ipa/61462
15604 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15605 statement is reachable.
15606
15607 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15608
15609 * symtab.c (section_hash): New hash.
15610 (symtab_unregister_node): Clear section before freeing.
15611 (hash_section_hash_entry): New haser.
15612 (eq_sections): New function.
15613 (symtab_node::set_section_for_node): New method.
15614 (set_section_1): Update.
15615 (symtab_node::set_section): Take string instead of tree as parameter.
15616 (symtab_resolve_alias): Update.
15617 * cgraph.h (section_hash_entry_d): New structure.
15618 (section_hash_entry): New typedef.
15619 (cgraph_node): Change comdat_group_ to x_comdat_group,
15620 change section_ to x_section and turn into section_hash_entry;
15621 update accestors; put set_section_for_node offline.
15622 * tree.c (decl_section_name): Turn into string.
15623 (set_decl_section_name): Change parameter to be string.
15624 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15625 * sdbout.c (sdbout_one_type): Update.
15626 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15627 * varasm.c (IN_NAMED_SECTION, get_named_section,
15628 resolve_unique_section, hot_function_section, get_named_text_section,
15629 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15630 make_decl_rtl, default_unique_section): Update.
15631 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15632 (c6x_elf_unique_section): Update.
15633 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15634 * config/pa/pa.c (pa_function_section): Update.
15635 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15636 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15637 * config/arc/arc.c (arc_in_small_data_p): Update.
15638 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15639 * config/mcore/mcore.c (mcore_unique_section): Update.
15640 * config/mips/mips.c (mips16_build_function_stub): Update.
15641 (mips16_build_call_stub): Update.
15642 (mips_function_rodata_section): Update.
15643 (mips_in_small_data_p): Update.
15644 * config/score/score.c (score_in_small_data_p): Update.
15645 * config/rx/rx.c (rx_in_small_data): Update.
15646 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15647 (rs6000_xcoff_asm_named_section): Update.
15648 (rs6000_xcoff_unique_section): Update.
15649 * config/frv/frv.c (frv_string_begins_with): Update.
15650 (frv_in_small_data_p): Update.
15651 * config/v850/v850.c (v850_encode_data_area): Update.
15652 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15653 (bfin_handle_l1_data_attribute): Update.
15654 (bfin_handle_l2_attribute): Update.
15655 * config/mep/mep.c (mep_unique_section): Update.
15656 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15657 Update.
15658 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15659 (h8300_handle_tiny_data_attribute): Update.
15660 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15661 (m32r_in_small_data_p): Update.
15662 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15663 * config/i386/i386.c (ix86_in_large_data_p): Update.
15664 * config/i386/winnt.c (i386_pe_unique_section): Update.
15665 * config/darwin.c (darwin_function_section): Update.
15666 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15667 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15668 (new_emutls_decl): Update.
15669 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15670 input_varpool_node): Update.
15671 (ead_string_cst): Turn to ...
15672 (read_string): ... this one.
15673 * dwarf2out.c (secname_for_decl): Update.
15674 * asan.c (asan_protect_global): Update.
15675
15676 2014-06-11 DJ Delorie <dj@redhat.com>
15677
15678 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15679 cache lines.
15680 * config/rx/rx.c (rx_option_override): Likewise.
15681 (rx_align_for_label): Likewise.
15682
15683 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15684
15685 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15686
15687 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15688 prototype.
15689
15690 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15691
15692 * common.md: New file.
15693 * doc/md.texi: Update description of generic, machine-independent
15694 constraints.
15695 * config/s390/constraints.md (e): Delete.
15696 * Makefile.in (md_file): Include common.md.
15697 * config/m32c/t-m32c (md_file): Likewise.
15698 * genpreds.c (general_mem): New array.
15699 (generic_constraint_letters): Remove constraints now defined by
15700 common.md.
15701 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15702 Allow the first character to be '<' or '>' as well.
15703 * genoutput.c (general_mem): New array.
15704 (indep_constraints): Remove constraints now defined by common.md.
15705 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15706 Remove special handling of 'm'.
15707 * ira-costs.c (record_reg_classes): Remove special handling of
15708 constraints now defined by common.md.
15709 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15710 * ira-lives.c (single_reg_class): Likewise.
15711 (ira_implicitly_set_insn_hard_regs): Likewise.
15712 * lra-constraints.c (reg_class_from_constraints): Likewise.
15713 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15714 * postreload.c (reload_cse_simplify_operands): Likewise.
15715 * reload.c (push_secondary_reload, scratch_reload_class)
15716 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15717 * reload1.c (maybe_fix_stack_asms): Likewise.
15718 * targhooks.c (default_secondary_reload): Likewise.
15719 * stmt.c (parse_output_constraint): Likewise.
15720 * recog.c (preprocess_constraints): Likewise.
15721 (constrain_operands, peep2_find_free_register): Likewise.
15722 (asm_operand_ok): Likewise, but add a comment saying why 'o'
15723 must be handled specially.
15724
15725 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15726
15727 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
15728 * genpreds.c (have_const_dbl_constraints): Delete.
15729 (add_constraint): Don't set it.
15730 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
15731 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
15732 constraints using the lookup_constraint logic.
15733 * ira-lives.c (single_reg_class): Likewise.
15734 * ira.c (ira_setup_alts): Likewise.
15735 * lra-constraints.c (process_alt_operands): Likewise.
15736 * recog.c (asm_operand_ok, constrain_operands): Likewise.
15737 * reload.c (find_reloads): Likewise.
15738
15739 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15740
15741 * genpreds.c (const_int_start, const_int_end): New variables.
15742 (choose_enum_order): Output CONST_INT constraints before memory
15743 constraints.
15744 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
15745 Add CT_CONST_INT.
15746 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
15747 * ira.c (ira_setup_alts): Likewise.
15748 * lra-constraints.c (process_alt_operands): Likewise.
15749 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15750 * reload.c (find_reloads): Likewise.
15751
15752 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15753
15754 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
15755 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
15756 * recog.c (preprocess_constraints): Update accordingly.
15757
15758 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15759
15760 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
15761 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
15762 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
15763 * genpreds.c (print_type_tree): New function.
15764 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
15765 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
15766 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
15767 Write out enum constraint_type and get_constraint_type.
15768 * lra-constraints.c (satisfies_memory_constraint_p): Take a
15769 constraint_num rather than a constraint string.
15770 (satisfies_address_constraint_p): Likewise.
15771 (reg_class_from_constraints): Avoid old constraint macros.
15772 (process_alt_operands, process_address_1): Likewise.
15773 (curr_insn_transform): Likewise.
15774 * ira-costs.c (record_reg_classes): Likewise.
15775 (record_operand_costs): Likewise.
15776 * ira-lives.c (single_reg_class): Likewise.
15777 (ira_implicitly_set_insn_hard_regs): Likewise.
15778 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15779 * postreload.c (reload_cse_simplify_operands): Likewise.
15780 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15781 (constrain_operands, peep2_find_free_register): Likewise.
15782 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
15783 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15784 * reload1.c (maybe_fix_stack_asms): Likewise.
15785 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15786 * targhooks.c (default_secondary_reload): Likewise.
15787 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
15788 to EXTRA_CONSTRAINT_STR.
15789 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
15790
15791 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15792
15793 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
15794 (write_constraint_satisfied_p_array): ...this new function.
15795 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
15796 an array.
15797 (write_insn_preds_c): Update accordingly.
15798
15799 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15800
15801 * genpreds.c (write_lookup_constraint): Rename to...
15802 (write_lookup_constraint_1): ...this.
15803 (write_lookup_constraint_array): New function.
15804 (write_tm_preds_h): Define lookup_constraint as an inline function
15805 that uses write_lookup_constraint_array where possible.
15806 (write_insn_preds_c): Update for the changes above.
15807
15808 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15809
15810 * doc/md.texi (regclass_for_constraint): Rename to...
15811 (reg_class_for_constraint): ...this.
15812 * genpreds.c (num_constraints, enum_order, register_start)
15813 (register_end, satisfied_start, memory_start, memory_end)
15814 (address_start, address_end): New variables.
15815 (add_constraint): Count the number of constraints.
15816 (choose_enum_order): New function.
15817 (write_enum_constraint_num): Iterate over enum_order.
15818 (write_regclass_for_constraint): Rename to...
15819 (write_reg_class_for_constraint_1): ...this and update output
15820 accordingly.
15821 (write_constraint_satisfied_p): Rename to...
15822 (write_constraint_satisfied_p_1): ...this and update output
15823 accordingly. Do nothing if all extra constraints are register
15824 constraints.
15825 (write_insn_extra_memory_constraint): Delete.
15826 (write_insn_extra_address_constraint): Delete.
15827 (write_range_function): New function.
15828 (write_tm_preds_h): Define constraint_satisfied_p and
15829 reg_class_for_constraint as inline functions that do a range check
15830 before calling the out-of-line function. Use write_range_function
15831 to implement insn_extra_{register,memory,address}_constraint,
15832 the first of which is new.
15833 (write_insn_preds_c): Update after above changes to write_* functions.
15834 (main): Call choose_enum_order.
15835
15836 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
15837
15838 PR tree-optimization/61306
15839 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
15840 expression instead of its size.
15841 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
15842 false to prevent optimization when the result is unpredictable due to
15843 arithmetic right shift of signed type with highest byte is set.
15844 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
15845 (init_symbolic_number): Likewise.
15846 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
15847 when the result is unpredictable due to sign extension.
15848
15849 2014-06-11 Terry Guo <terry.guo@arm.com>
15850
15851 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
15852 (*thumb1_addsi3): Ditto.
15853 (*thumb_subdi3): Ditto.
15854 (thumb1_subsi3_insn): Ditto.
15855 (*thumb_mulsi3): Ditto.
15856 (*thumb_mulsi3_v6): Ditto.
15857 (*thumb1_andsi3_insn): Ditto.
15858 (thumb1_bicsi3): Ditto.
15859 (*thumb1_iorsi3_insn): Ditto.
15860 (*thumb1_xorsi3_insn): Ditto.
15861 (*thumb1_ashlsi3): Ditto.
15862 (*thumb1_ashrsi3): Ditto.
15863 (*thumb1_lshrsi3): Ditto.
15864 (*thumb1_rotrsi3): Ditto.
15865 (*thumb1_negdi2): Ditto.
15866 (*thumb1_negsi2): Ditto.
15867 (*thumb1_abssi2): Ditto.
15868 (*thumb1_neg_abssi2): Ditto.
15869 (*thumb1_one_cmplsi2): Ditto.
15870 (*thumb1_zero_extendhisi2): Ditto.
15871 (*thumb1_zero_extendqisi2): Ditto.
15872 (*thumb1_zero_extendqisi2_v6): Ditto.
15873 (thumb1_extendhisi2): Ditto.
15874 (thumb1_extendqisi2): Ditto.
15875 (*thumb1_movdi_insn): Ditto.
15876 (*thumb1_movsi_insn): Ditto.
15877 (*thumb1_movhi_insn): Ditto.
15878 (thumb_movhi_clobber): Ditto.
15879 (*thumb1_movqi_insn): Ditto.
15880 (*thumb1_movhf): Ditto.
15881 (*thumb1_movsf_insn): Ditto.
15882 (*thumb_movdf_insn): Ditto.
15883 (movmem12b): Ditto.
15884 (movmem8b): Ditto.
15885 (cbranchqi4): Ditto.
15886 (cbranchsi4_insn): Ditto.
15887 (cbranchsi4_scratch): Ditto.
15888 (*negated_cbranchsi4): Ditto.
15889 (*tbit_cbranch): Ditto.
15890 (*tlobits_cbranch): Ditto.
15891 (*tstsi3_cbranch): Ditto.
15892 (*cbranchne_decr1): Ditto.
15893 (*addsi3_cbranch): Ditto.
15894 (*addsi3_cbranch_scratch): Ditto.
15895 (*thumb_cmpdi_zero): Ditto.
15896 (cstoresi_eq0_thumb1): Ditto.
15897 (cstoresi_ne0_thumb1): Ditto.
15898 (*cstoresi_eq0_thumb1_insn): Ditto.
15899 (*cstoresi_ne0_thumb1_insn): Ditto.
15900 (cstoresi_nltu_thumb1): Ditto.
15901 (cstoresi_ltu_thumb1): Ditto.
15902 (thumb1_addsi3_addgeu): Ditto.
15903 (*thumb_jump): Ditto.
15904 (*call_reg_thumb1_v5): Ditto.
15905 (*call_reg_thumb1): Ditto.
15906 (*call_value_reg_thumb1_v5): Ditto.
15907 (*call_value_reg_thumb1): Ditto.
15908 (*call_insn): Ditto.
15909 (*call_value_insn): Ditto.
15910 (thumb1_casesi_internal_pic): Ditto.
15911 (thumb1_casesi_dispatch): Ditto.
15912 (*thumb1_indirect_jump): Ditto.
15913 (prologue_thumb1_interwork): Ditto.
15914 (*epilogue_insns): Ditto.
15915 (consttable_1): Ditto.
15916 (consttable_2): Ditto.
15917 (tablejump): Ditto.
15918 (*thumb1_tablejump): Ditto.
15919 (thumb_eh_return): Ditto.
15920 (define_peephole2): Two of them are thumb1 only and got moved into
15921 new file thumb1.md.
15922 (define_split): Six of them are thumb1 only and got moved into new
15923 file thumb1.md.
15924 * config/arm/thumb1.md: New file comprised of above thumb1 only
15925 patterns.
15926
15927 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15928
15929 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
15930 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
15931 dependencies.
15932 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
15933 (aarch64_crc_builtin_datum): New struct.
15934 (aarch64_crc_builtin_data): New.
15935 (aarch64_init_crc32_builtins): New function.
15936 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
15937 (aarch64_crc32_expand_builtin): New.
15938 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
15939 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15940 __ARM_FEATURE_CRC32 when appropriate.
15941 (TARGET_CRC32): Define.
15942 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
15943 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
15944 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
15945 (aarch64_<crc_variant>): New pattern.
15946 * config/aarch64/arm_acle.h: New file.
15947 * config/aarch64/iterators.md (CRC): New int iterator.
15948 (crc_variant, crc_mode): New int attributes.
15949 * doc/aarch64-acle-intrinsics.texi: New file.
15950 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
15951 Include aarch64-acle-intrinsics.texi.
15952
15953 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
15954
15955 * tree-vect-data-refs.c (vect_grouped_store_supported): New
15956 check for stores group of length 3.
15957 (vect_permute_store_chain): New permutations for stores group of
15958 length 3.
15959 * tree-vect-stmts.c (vect_model_store_cost): Change cost
15960 of vec_perm_shuffle for the new permutations.
15961
15962 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15963
15964 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
15965 table rewriting temporarily on targets not supporting ONE_ONLY.
15966
15967 2014-06-11 Richard Biener <rguenther@suse.de>
15968
15969 PR middle-end/61437
15970 Revert
15971 2014-06-04 Richard Biener <rguenther@suse.de>
15972
15973 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15974 TREE_PUBLIC and DECL_EXTERNAL decls.
15975
15976 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15977
15978 * varasm.c (set_implicit_section): New function.
15979 (resolve_unique_section): Use it to set implicit section
15980 for aliases, too.
15981 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
15982 (default_function_section): Likewise.
15983 (decl_binds_to_current_def_p): Constify argument.
15984 * varasm.h (decl_binds_to_current_def_p): Update prototype.
15985 * asan.c (asan_protect_global): Use
15986 symtab_get_node (decl)->implicit_section.
15987 * symtab.c (dump_symtab_base): Dump implicit sections.
15988 (verify_symtab_base): Verify sanity of sectoins and comdats.
15989 (symtab_resolve_alias): Alias share the section of its target.
15990 (set_section_1): New function.
15991 (symtab_node::set_section): Move here, recurse to aliases.
15992 (verify_symtab): Check for duplicated symtab lists.
15993 * tree-core.h (implicit_section_name_p): Remove.
15994 * tree-vect-data-refs.c: Include varasm.h.
15995 (vect_can_force_dr_alignment_p): Fix conditional on when
15996 decl bints to current definition; use
15997 symtab_get_node (decl)->implicit_section.
15998 * cgraph.c (cgraph_make_node_local_1): Fix section set.
15999 * cgraph.h (struct symtab_node): Add implicit_section.
16000 (set_section): Rename to ...
16001 (set_section_for_node): ... this one.
16002 (set_section): Declare.
16003 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16004 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16005 input_overwrite_node, input_varpool_node): Stream implicit_section.
16006 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16007 removal; it will fail in LTO.
16008
16009 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16010
16011 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16012 Change second alternative type to f_mcr.
16013 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16014 and 12th alternatives' types to f_mcr and f_mrc.
16015 (*movdi_aarch64): Same for 12th and 13th alternatives.
16016 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16017 (aarch64_movtilow_tilow): Change type to fmov.
16018
16019 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16020
16021 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16022 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16023
16024 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16025
16026 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16027 New expander.
16028 (aarch64_sqrdmulh_lane<mode>): Likewise.
16029 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16030 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16031 (aarch64_sqdmulh_laneq<mode>): New expander.
16032 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16033 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16034 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16035 (aarch64_sqdmulh_lane<mode>): New expander.
16036 (aarch64_sqrdmulh_lane<mode>): Likewise.
16037 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16038 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16039 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16040 (aarch64_sqdmlal_laneq<mode>): Likewise.
16041 (aarch64_sqdmlsl_lane<mode>): Likewise.
16042 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16043 (aarch64_sqdmlal2_lane<mode>): Likewise.
16044 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16045 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16046 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16047 (aarch64_sqdmull_lane<mode>): Likewise.
16048 (aarch64_sqdmull_laneq<mode>): Likewise.
16049 (aarch64_sqdmull2_lane<mode>): Likewise.
16050 (aarch64_sqdmull2_laneq<mode>): Likewise.
16051
16052 2014-06-10 Richard Biener <rguenther@suse.de>
16053
16054 PR tree-optimization/61438
16055 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16056 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16057 insertion of IVs if running PRE.
16058 (eliminate): Adjust.
16059 (pass_pre::execute): Likewise.
16060 (pass_fre::execute): Likewise.
16061
16062 2014-06-10 Richard Biener <rguenther@suse.de>
16063
16064 PR middle-end/61456
16065 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16066 Do not use the main variant for the type comparison.
16067 (ncr_compar): Likewise.
16068 (nonoverlapping_component_refs_p): Likewise.
16069
16070 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16071
16072 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16073 REG_CFA_RESTORE mode.
16074
16075 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16076
16077 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16078 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16079 expand_vec_perm_pblendv.
16080
16081 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16082
16083 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16084 available.
16085 Simplify description of __crc32d and __crc32cd intrinsics.
16086 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16087 availability.
16088
16089 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16090
16091 PR lto/61334
16092 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16093 * config.in: Regenerate.
16094 * configure: Likewise.
16095
16096 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16097
16098 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16099 and public vars.
16100 (intersect_static_var_sets): Remove.
16101 (propagate): Do not prune local statics.
16102
16103 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16104
16105 PR fortran/60928
16106 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16107 Set lastprivate_firstprivate even if omp_private_outer_ref
16108 langhook returns true.
16109 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16110 langhook, call unshare_expr on new_var and call
16111 build_outer_var_ref to get the last argument.
16112
16113 2014-06-10 Marek Polacek <polacek@redhat.com>
16114
16115 PR c/60988
16116 * doc/extend.texi: Add cindex for transparent_union.
16117
16118 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16119
16120 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16121 init_symbolic_number ().
16122
16123 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16124
16125 PR middle-end/61141
16126 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16127 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16128 (verify_rtl_sharing): Likewise.
16129
16130 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16131
16132 PR c++/54442
16133 * tree.c (build_qualified_type): Use a canonical type for
16134 TYPE_CANONICAL.
16135
16136 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16137
16138 * config/arm/arm-modes.def: Remove XFmode.
16139
16140 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16141
16142 PR target/61062
16143 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16144 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16145 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16146 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16147 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16148 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16149 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16150 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16151 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16152
16153 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16154
16155 * tree-core.h (tree_decl_with_vis): Remove section_name.
16156
16157 2014-06-09 Kito Cheng <kito@0xlab.org>
16158
16159 * ira.c (ira): Don't call init_caller_save if LRA enabled
16160 since LRA use its own infrastructure to handle that.
16161
16162 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16163
16164 * symtab.c (dump_symtab_base): Update dumping.
16165 (symtab_make_decl_local): Clear only DECL_COMDAT.
16166 * tree-vect-data-refs.c (Check that variable is static before
16167 tampering with sections.
16168 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16169 (cgraph_create_virtual_clone): Likewise.
16170 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16171 (decl_section_name, set_decl_section_name): New accessors.
16172 (find_decls_types_r): Do not walk section name
16173 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16174 (decl_comdat_group, decl_comdat_group_id): Constify.
16175 (decl_section_name, set_decl_section_name): Update.
16176 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16177 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16178 (cgraph_make_node_local_1): Clear section and comdat group.
16179 * cgraph.h (set_comdat_group): Sanity check.
16180 (get_section, set_section): New.
16181 * ipa-comdats.c (ipa_comdats): Use get_section.
16182 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16183 * lto-streamer-out.c: Do not follow section names.
16184 * c-family/c-common.c (handle_section_attribute): Update.
16185 * lto-cgraph.c (lto_output_node): Output section.
16186 (lto_output_varpool_node): Likewise.
16187 (read_comdat_group): Rename to ...
16188 (read_identifier): ... this one.
16189 (read_string_cst): New function.
16190 (input_node, input_varpool_node): Input section names.
16191 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16192 (new_emutls_decl): Update.
16193 (secname_for_decl): Check section names only of static vars.
16194 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16195 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16196 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16197 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16198 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16199 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16200 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16201 * config/v850/v850.c (v850_insert_attributes): Likewise.
16202 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16203 Likewise.
16204 (h8300_handle_tiny_data_attribute): Likewise.
16205 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16206 (bfin_handle_l2_attribute): Likewise.
16207
16208 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16209
16210 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16211 remove static initializer.
16212
16213 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16214
16215 * varasm.c (use_blocks_for_decl_p): Check symbol table
16216 instead of alias attribute.
16217 (place_block_symbol): Recurse on aliases.
16218
16219 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16220
16221 * ipa-visibility.c: Include varasm.h
16222 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16223
16224 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16225
16226 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16227 outputting aliases.
16228
16229 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16230
16231 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16232 from test_insn into GGC space escape via SET_SRC.
16233
16234 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16235
16236 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16237 call statement, if any.
16238 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16239 statements, if any. Tidy up.
16240
16241 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16242
16243 PR target/61431
16244 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16245 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16246 handles swapping the two 64-bit double words on little endian
16247 systems. Include V1TImode and optionally TImode in VSX_LE so that
16248 these types are properly swapped. Change all of the insns and
16249 splits that do the 64-bit swaps to use VSX_LE.
16250 (vsx_le_perm_load_<mode>): Likewise.
16251 (vsx_le_perm_store_<mode>): Likewise.
16252 (splitters for little endian memory operations): Likewise.
16253 (vsx_xxpermdi2_le_<mode>): Likewise.
16254 (vsx_lxvd2x2_le_<mode>): Likewise.
16255 (vsx_stxvd2x2_le_<mode>): Likewise.
16256
16257 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16258
16259 PR target/61423
16260 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16261 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16262 and corresponding splitters. Zero extend general register
16263 or memory input operand to XMM temporary. Enable for
16264 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16265 (floatunssi<mode>2): Update expander predicate.
16266
16267 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16268
16269 PR rtl-optimization/61325
16270 * lra-constraints.c (process_address_1): Check scale equal to one
16271 to prevent transformation: base + scale * index => base + new_reg.
16272
16273 2014-06-06 Richard Biener <rguenther@suse.de>
16274
16275 PR tree-optimization/59299
16276 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16277 a def operand.
16278 (nearest_common_dominator_of_uses): Likewise.
16279 (statement_sink_location): Adjust. Support sinking loads.
16280
16281 2014-06-06 Martin Jambor <mjambor@suse.cz>
16282
16283 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16284 (build_agg_jump_func_from_list): Likewise.
16285 (determine_known_aggregate_parts): Renamed to
16286 determine_locally_known_aggregate_parts. Moved some functionality
16287 to the two functions above, removed bound checks.
16288
16289 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16290
16291 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16292 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16293 (aarch64_progress_pointer): Likewise.
16294 (aarch64_copy_one_part_and_move_pointers): Likewise.
16295 (aarch64_expand_movmen): Likewise.
16296 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16297 * config/aarch64/aarch64.md (movmem<mode>): New.
16298
16299 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16300
16301 * targhooks.c (default_add_stmt_cost): Call target specific
16302 hook instead of default one.
16303
16304 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16305
16306 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16307 endianness instead of host endianness.
16308 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16309 comments.
16310
16311 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16312
16313 PR debug/53927
16314 * function.c (instantiate_decls): Process the saved static chain.
16315 (expand_function_start): If not optimizing, save the static chain
16316 onto the stack.
16317 * tree-nested.c (convert_all_function_calls): Always create the static
16318 chain for nested functions if not optimizing.
16319
16320 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16321
16322 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16323
16324 2014-06-06 Richard Biener <rguenther@suse.de>
16325
16326 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16327 (construct_init_block): Likewise.
16328 (construct_exit_block): Likewise.
16329 (pass_expand::execute): Likewise.
16330 * graphite.c (graphite_transforms): Replace check for current_loops
16331 with a check for > 1 loops.
16332 (pass_graphite_transforms::execute): Adjust.
16333 * ipa-split.c (split_function): Remove check for current_loops.
16334 * omp-low.c (expand_parallel_call): Likewise.
16335 (expand_omp_for_init_counts): Likewise.
16336 (extract_omp_for_update_vars): Likewise.
16337 (expand_omp_for_generic): Likewise.
16338 (expand_omp_sections): Likewise.
16339 (expand_omp_target): Likewise.
16340 * tracer.c (tail_duplicate): Likewise.
16341 (pass_tracer::execute): Likewise.
16342 * trans-mem.c (expand_transaction): Likewise.
16343 * tree-complex.c (expand_complex_div_wide): Likewise.
16344 * tree-eh.c (lower_resx): Likewise.
16345 (cleanup_empty_eh_merge_phis): Likewise.
16346 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16347 current_loops with a check for > 1 loops.
16348 (pass_predcom::execute): Adjust.
16349 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16350 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16351 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16352 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16353 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16354 * tree-switch-conversion.c (process_switch): Likewise.
16355 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16356 * tree-vrp.c (vrp_visit_phi_node): Likewise.
16357 (execute_vrp): Likewise.
16358 * ubsan.c (ubsan_expand_null_ifn): Likewise.
16359
16360 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16361
16362 * rtl.h (insn_location): Declare.
16363 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16364 with UNKNOWN_LOCATION.
16365 * emit-rtl.c (insn_location): New function.
16366 * final.c (notice_source_line): Check that the instruction has a
16367 location before retrieving it and use insn_location.
16368 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16369 * print-rtl.c (print_rtx): Likewise.
16370
16371 2014-06-06 Richard Biener <rguenther@suse.de>
16372
16373 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16374
16375 2014-06-06 Christian Bruel <christian.bruel@st.com>
16376
16377 PR tree-optimization/43934
16378 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16379 cost.
16380
16381 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16382
16383 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16384 return NO_REGS for extra address and memory constraints. Handle
16385 operands that match (or are equivalent to something that matches)
16386 extra constant constraints. Ignore other non-register operands.
16387
16388 2014-06-06 Alan Modra <amodra@gmail.com>
16389
16390 PR target/61300
16391 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16392 * doc/tm.texi: Regenerate.
16393 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16394 Use throughout in place of REG_PARM_STACK_SPACE.
16395 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16396 "incoming" param. Pass to rs6000_function_parms_need_stack.
16397 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16398 prototype_p when incoming. Use function decl when incoming
16399 to handle K&R style functions.
16400 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16401 (INCOMING_REG_PARM_STACK_SPACE): Define.
16402
16403 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16404
16405 PR target/52472
16406 * cfgexpand.c (expand_debug_expr): Use address space of nested
16407 TREE_TYPE for ADDR_EXPR and MEM_REF.
16408
16409 2014-06-05 Jeff Law <law@redhat.com>
16410
16411 PR tree-optimization/61289
16412 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16413 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16414 looking for those which match LHS. All callers changed.
16415 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16416 parameters and code which manipulated them. All callers changed.
16417 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16418 and DST_MAP parameters. Simplify invalidation code by just calling
16419 invalidate_equivalences. All callers changed.
16420 (thread_across_edge): Simplify now that we don't need to maintain
16421 the map of equivalences to invalidate.
16422
16423 2014-06-05 Kai Tietz <ktietz@redhat.com>
16424 Richard Henderson <rth@redhat.com>
16425
16426 PR target/46219
16427 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16428 checking for !TARGET_X32.
16429 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16430 (sibcall_intern): New define_insn, plus required peepholes.
16431 (sibcall_pop_intern): Likewise.
16432 (sibcall_value_intern): Likewise.
16433 (sibcall_value_pop_intern): Likewise.
16434
16435 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16436
16437 * tree-inline.c (tree_function_versioning): Check DF info existence
16438 before accessing it.
16439
16440 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16441
16442 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16443 frame_size.
16444 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16445 aarch64_frame hard_fp_offset and frame_size.
16446 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16447 frame_size; remove original_frame_size.
16448 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16449 (aarch64_initial_elimination_offset): Remove frame_size and
16450 offset. Use aarch64_frame frame_size.
16451
16452 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16453 Jiong Wang <jiong.wang@arm.com>
16454 Renlin <renlin.li@arm.com>
16455
16456 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16457 initialization of R30 offset. Update offset. Iterate core
16458 regisers upto X30. Remove X29, X30 specific code.
16459
16460 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16461 Jiong Wang <jiong.wang@arm.com>
16462
16463 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16464 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16465 (aarch64_register_saved_on_entry): Adjust test.
16466
16467 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16468
16469 * config/aarch64/aarch64.h (machine_function): Move
16470 saved_varargs_size from here...
16471 (aarch64_frame): ... to here.
16472
16473 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16474 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16475 (aarch64_initial_elimination_offset)
16476 (aarch64_setup_incoming_varargs): Adjust location of
16477 saved_varargs_size.
16478
16479 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16480
16481 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16482 layout comment.
16483
16484 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
16485 Prachi Godbole <Prachi.Godbole@imgtec.com>
16486
16487 * config/mips/mips-cpus.def: Add definition for p5600. Updated
16488 mips32r5 entry to use PROCESSOR_P5600.
16489 * config/mips/mips-tables.opt: Regenerate.
16490 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16491 * config/mips/mips.c (mips_fmadd_bypass): New function.
16492 (mips_rtx_cost_data): Add costs for p5600.
16493 (mips_issue_rate): Add support for p5600.
16494 (mips_multipass_dfa_lookahead): Likewise.
16495 * config/mips/mips.h (TUNE_P5600): New define.
16496 (TUNE_MACC_CHAINS): Add TUNE_P5600.
16497 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16498 * config/mips/mips.md: Include p5600.md.
16499 (processor): Add p5600.
16500 * config/mips/p5600.md: New file.
16501
16502 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
16503
16504 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16505 * config/i386/predicates.md (palignr_operand): New.
16506 Indicates if permutation is suitable for palignr instruction.
16507
16508 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16509
16510 PR tree-optimization/61319
16511 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16512 stmt belongs to loop.
16513
16514 2014-06-05 Richard Biener <rguenther@suse.de>
16515
16516 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16517 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16518 (lookup_tmp_var): Adjust.
16519 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16520
16521 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16522
16523 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16524
16525 2014-06-05 Marek Polacek <polacek@redhat.com>
16526
16527 PR c/49706
16528 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16529
16530 2014-06-04 Tom de Vries <tom@codesourcery.com>
16531
16532 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16533 CONST_INT.
16534
16535 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16536
16537 PR tree-optimization/61385
16538 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16539
16540 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16541
16542 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
16543 changed to use fatal_error.
16544 (main): Ensure lto_wrapper_cleanup is run atexit.
16545
16546 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16547
16548 * lra-constraints.c (valid_address_p): Move earlier in file.
16549 (address_eliminator): New structure.
16550 (satisfies_memory_constraint_p): New function.
16551 (satisfies_address_constraint_p): Likewise.
16552 (process_alt_operands, process_address, curr_insn_transform): Use them.
16553
16554 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16555
16556 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16557 const pointer.
16558 (target_lra_int, default_target_lra_int, this_target_lra_int)
16559 (op_alt_data): Delete.
16560 * lra.h (lra_init): Delete.
16561 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16562 (init_insn_code_data_once): Remove op_alt_data handling.
16563 (finish_insn_code_data_once): Likewise.
16564 (init_op_alt_data): Delete.
16565 (get_static_insn_data): Initialize operand_alternative to null.
16566 (free_insn_recog_data): Cast operand_alternative before freeing it.
16567 (setup_operand_alternative): Take the operand_alternative as
16568 parameter and assume it isn't already cached in the static
16569 insn data.
16570 (lra_set_insn_recog_data): Update accordingly.
16571 (lra_init): Delete.
16572 * ira.c (ira_init): Don't call lra_init.
16573 * target-globals.h (this_target_lra_int): Declare.
16574 (target_globals): Remove lra_int.
16575 (restore_target_globals): Update accordingly.
16576 * target-globals.c: Don't include lra-int.h.
16577 (default_target_globals, save_target_globals): Remove lra_int.
16578
16579 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16580
16581 * recog.h (operand_alternative): Convert reg_class, reject,
16582 matched and matches into bitfields.
16583 (preprocess_constraints): New overload.
16584 (preprocess_insn_constraints): New function.
16585 (preprocess_constraints): Take the insn as parameter.
16586 (recog_op_alt): Change into a pointer.
16587 (target_recog): Add x_op_alt.
16588 * recog.c (asm_op_alt): New variable.
16589 (recog_op_alt): Change into a pointer.
16590 (preprocess_constraints): New overload, replacing the old function
16591 definition with one that doesn't use global state.
16592 (preprocess_insn_constraints): New function.
16593 (preprocess_constraints): Use them. Take the insn as parameter.
16594 Use asm_op_alt for asms.
16595 (recog_init): Free existing x_op_alt entries.
16596 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16597 pointer const.
16598 (make_early_clobber_and_input_conflicts): Likewise.
16599 (process_bb_node_lives): Pass the insn to process_constraints.
16600 * reg-stack.c (check_asm_stack_operands): Likewise.
16601 (subst_asm_stack_regs): Likewise.
16602 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16603 * regrename.c (build_def_use): Likewise.
16604 * sched-deps.c (sched_analyze_insn): Likewise.
16605 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16606 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16607 (note_invalid_constants): Likewise.
16608 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16609 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16610 const.
16611
16612 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16613
16614 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16615 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16616 alternatives.
16617 (make_early_clobber_and_input_conflicts): Likewise.
16618 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16619
16620 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16621
16622 * recog.h (alternative_class): New function.
16623 (which_op_alt): Return a const recog_op_alt.
16624 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16625 (subst_asm_stack_regs): Likewise.
16626 * config/arm/arm.c (note_invalid_constants): Likewise.
16627 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16628 the operand_alternative; use alternative class instead.
16629 * sel-sched.c (get_reg_class): Likewise.
16630 * regrename.c (build_def_use): Likewise.
16631 (hide_operands, restore_operands, record_out_operands): Update type
16632 accordingly.
16633
16634 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16635
16636 * recog.h (recog_op_alt): Convert to a flat array.
16637 (which_op_alt): New function.
16638 * recog.c (recog_op_alt): Convert to a flat array.
16639 (preprocess_constraints): Update accordingly, grouping all
16640 operands of the same alternative together, rather than the
16641 other way around.
16642 * ira-lives.c (check_and_make_def_conflict): Likewise.
16643 (make_early_clobber_and_input_conflicts): Likewise.
16644 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16645 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16646 (subst_asm_stack_regs): Likewise.
16647 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16648 * regrename.c (hide_operands, record_out_operands): Likewise.
16649 (build_def_use): Likewise.
16650 * sel-sched.c (get_reg_class): Likewise.
16651 * config/arm/arm.c (note_invalid_constants): Likewise.
16652
16653 2014-06-04 Jason Merrill <jason@redhat.com>
16654
16655 PR c++/51253
16656 PR c++/61382
16657 * gimplify.c (gimplify_arg): Non-static.
16658 * gimplify.h: Declare it.
16659
16660 2014-06-04 Richard Biener <rguenther@suse.de>
16661
16662 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16663 TREE_PUBLIC and DECL_EXTERNAL decls.
16664
16665 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16666
16667 * regcprop.c (copyprop_hardreg_forward_1): Account for
16668 HARD_REGNO_CALL_PART_CLOBBERED.
16669
16670 2014-06-04 Richard Biener <rguenther@suse.de>
16671
16672 * configure.ac: Check whether the underlying type of int64_t
16673 is long or long long.
16674 * configure: Regenerate.
16675 * config.in: Likewise.
16676 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16677 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16678
16679 2014-06-04 Richard Biener <rguenther@suse.de>
16680
16681 PR tree-optimization/60098
16682 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16683 we hit a kill.
16684 (dse_optimize_stmt): Simplify, now that we found a kill
16685 earlier.
16686
16687 2014-06-04 Richard Biener <rguenther@suse.de>
16688
16689 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16690 of accesses with non-invariant address.
16691
16692 2014-06-04 Martin Liska <mliska@suse.cz>
16693
16694 * cgraph.h (cgraph_make_wrapper): New function introduced.
16695 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16696 * ipa-inline.h (inline_analyze_function): The function is global.
16697 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16698
16699 2014-06-04 Martin Liska <mliska@suse.cz>
16700
16701 * tree.h (private_lookup_attribute_starting): New function.
16702 (lookup_attribute_starting): Likewise.
16703 * tree.c (private_lookup_attribute_starting): Likewise.
16704
16705 2014-06-04 Martin Liska <mliska@suse.cz>
16706
16707 * cgraph.h (expand_thunk): New argument added.
16708 (address_taken_from_non_vtable_p): New global function.
16709 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16710 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16711 * cgraphunit.c (analyze_function): Likewise.
16712 (assemble_thunks_and_aliases): Argument added to call.
16713 (expand_thunk): New argument forces to produce GIMPLE thunk.
16714
16715 2014-06-04 Martin Liska <mliska@suse.cz>
16716
16717 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16718 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16719 * profile.c (branch_prob): Likewise.
16720
16721 2014-06-04 Martin Jambor <mjambor@suse.cz>
16722
16723 PR ipa/61340
16724 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
16725 handler for switch on an ipa_ref_use enum.
16726 * ipa-reference.c (analyze_function): Likewise.
16727
16728 2014-06-04 Kai Tietz <ktietz@redhat.com>
16729
16730 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
16731 from old call-instruction.
16732
16733 2014-06-04 Bin Cheng <bin.cheng@arm.com>
16734
16735 * config/aarch64/aarch64.c (aarch64_classify_address)
16736 (aarch64_legitimize_reload_address): Support full addressing modes
16737 for vector modes.
16738 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
16739 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
16740
16741 2014-06-03 Andrew Pinski <apinski@cavium.com>
16742
16743 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
16744 for OP0.
16745
16746 2014-06-03 Andrew Pinski <apinski@cavium.com>
16747
16748 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
16749 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
16750
16751 2014-06-03 Kai Tietz <ktietz@redhat.com>
16752
16753 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
16754 for 64-bit ms-abi.
16755
16756 2014-06-03 Dehao Chen <dehao@google.com>
16757
16758 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
16759 the same loop.
16760
16761 2014-06-03 Marek Polacek <polacek@redhat.com>
16762
16763 PR c/60439
16764 * doc/invoke.texi: Document -Wswitch-bool.
16765 * function.c (stack_protect_epilogue): Cast controlling expression of
16766 the switch to int.
16767 * gengtype.c (walk_type): Generate switch expression with its
16768 controlling expression cast to int.
16769
16770 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
16771
16772 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
16773 and attiny841.
16774 * config/avr/avr-tables.opt: Regenerate.
16775 * config/avr/t-multilib: Regenerate.
16776 * doc/avr-mmcu.texi: Regenerate.
16777
16778 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
16779 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16780
16781 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
16782 (ata6617c, ata664251): Add new avr35 devices.
16783 (ata6612c): Add new avr4 device.
16784 (ata6613c, ata6614q): Add new avr5 devices.
16785 * config/avr/avr-tables.opt: Regenerate.
16786 * config/avr/t-multilib: Regenerate.
16787 * doc/avr-mmcu.texi: Regenerate.
16788
16789 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16790
16791 * gcc/config/aarch64/aarch64-builtins.c
16792 (aarch64_types_binop_ssu_qualifiers): New static data.
16793 (TYPES_BINOP_SSU): Define.
16794 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
16795 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
16796 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
16797 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
16798 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
16799 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
16800 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
16801 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
16802 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
16803 suffix to builtin function name, remove cast.
16804 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
16805 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
16806 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
16807
16808 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16809
16810 * gcc/config/aarch64/aarch64-builtins.c
16811 (aarch64_types_binop_uus_qualifiers,
16812 aarch64_types_shift_to_unsigned_qualifiers,
16813 aarch64_types_unsigned_shiftacc_qualifiers): Define.
16814 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
16815 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
16816 sqshlu_n, uqshl_n): Update qualifiers.
16817 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
16818 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
16819 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
16820 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
16821 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
16822 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
16823 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
16824 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
16825 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
16826 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
16827 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
16828 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
16829 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
16830 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
16831 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
16832 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
16833 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
16834 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
16835 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
16836 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
16837 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
16838 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
16839 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
16840 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
16841 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
16842 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
16843 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
16844
16845 2014-06-03 Teresa Johnson <tejohnson@google.com>
16846
16847 * tree-sra.c (modify_function): Record caller nodes after rebuild.
16848
16849 2014-06-02 Jason Merrill <jason@redhat.com>
16850
16851 PR c++/61020
16852 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
16853
16854 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16855
16856 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
16857 location == 0.
16858
16859 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16860
16861 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
16862 New pattern.
16863 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
16864 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
16865 * config/aarch64/iterators.md (REVERSE): New iterator.
16866 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
16867 (rev_op): New int_attribute.
16868 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
16869 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
16870 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
16871 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
16872 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
16873 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
16874 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
16875 Replace temporary __asm__ with __builtin_shuffle.
16876
16877 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16878
16879 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
16880 mips64r5.
16881 * config/mips/mips-tables.opt: Regenerate.
16882 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
16883 to use mips_isa_rev rather than ISA_MIPS32R2.
16884 * config/mips/mips.h (ISA_MIPS32R3): New define.
16885 (ISA_MIPS32R5): New define.
16886 (ISA_MIPS64R3): New define.
16887 (ISA_MIPS64R5): New define.
16888 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
16889 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
16890 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
16891 and mips64r5.
16892 (MIPS_ISA_SYNCI_SPEC): Likewise.
16893 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
16894 (LINK_SPEC): Added mips32r3 and mips32r5.
16895 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
16896 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
16897 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
16898 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
16899 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
16900 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
16901 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
16902
16903 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16904
16905 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
16906 options.
16907 * config/mips/mips.opt (mxpa): New option.
16908 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
16909 assembler.
16910
16911 2014-06-03 Martin Jambor <mjambor@suse.cz>
16912
16913 PR ipa/61160
16914 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
16915 thunks.
16916
16917 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
16918
16919 PR tree-optimization/61328
16920 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
16921 initialization from find_bswap_or_nop_1.
16922 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
16923 in source_expr2 before using the size value the function sets. Also
16924 make use of init_symbolic_number () in both the old place and
16925 find_bswap_or_nop_load () to avoid reading uninitialized memory when
16926 doing recursion in the GIMPLE_BINARY_RHS case.
16927
16928 2014-06-03 Richard Biener <rguenther@suse.de>
16929
16930 PR tree-optimization/61383
16931 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
16932 stmts can't trap.
16933
16934 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
16935
16936 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
16937 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
16938 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
16939 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
16940 in this file.
16941 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
16942 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
16943 * system.h: ...here and make it unconditional.
16944 * target.def (conditional_register_usage): Mention
16945 define_register_constraint instead of old-style constraint macros.
16946 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
16947 * doc/tm.texi: Regenerate.
16948 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
16949 protected by !USE_MD_CONSTRAINTS.
16950 * config/frv/frv.md: Remove quote from old version of documentation.
16951 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
16952 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
16953 CONST_DOUBLE_OK_FOR_LETTER.
16954 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
16955
16956 2014-06-02 Andrew Pinski <apinski@cavium.com>
16957
16958 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
16959 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
16960 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
16961 file whose name depends on -mabi= and -mbig-endian.
16962 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
16963 Handle LP64 better and handle ilp32 too.
16964 (MULTILIB_OPTIONS): Delete.
16965 (MULTILIB_DIRNAMES): Delete.
16966
16967 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
16968
16969 * expr.h: Remove prototypes of functions defined in builtins.c.
16970 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
16971 Remove prototypes of functions defined in builtins.c.
16972 * builtins.h: Update prototype list to include all exported functions.
16973 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
16974 no_c99_libc_has_function): Move to targhooks.c
16975 (build_string_literal, build_call_expr_loc_array,
16976 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
16977 to tree.c.
16978 (expand_builtin_object_size, fold_builtin_object_size): Make static.
16979 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
16980 no_c99_libc_has_function): Relocate from builtins.c.
16981 * tree.c: Include builtins.h.
16982 (build_call_expr_loc_array, build_call_expr_loc_vec,
16983 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
16984 from builtins.c.
16985 * fold-const.h (fold_fma): Move prototype to builtins.h.
16986 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
16987 * asan.c: Include builtins.h.
16988 * cfgexpand.c: Likewise.
16989 * convert.c: Likewise.
16990 * emit-rtl.c: Likewise.
16991 * except.c: Likewise.
16992 * expr.c: Likewise.
16993 * fold-const.c: Likewise.
16994 * gimple-fold.c: Likewise.
16995 * gimple-ssa-strength-reduction.c: Likewise.
16996 * gimplify.c: Likewise.
16997 * ipa-inline.c: Likewise.
16998 * ipa-prop.c: Likewise.
16999 * lto-streamer-out.c: Likewise.
17000 * stmt.c: Likewise.
17001 * tree-inline.c: Likewise.
17002 * tree-object-size.c: Likewise.
17003 * tree-sra.c: Likewise.
17004 * tree-ssa-ccp.c: Likewise.
17005 * tree-ssa-forwprop.c: Likewise.
17006 * tree-ssa-loop-ivcanon.c: Likewise.
17007 * tree-ssa-loop-ivopts.c: Likewise.
17008 * tree-ssa-math-opts.c: Likewise.
17009 * tree-ssa-reassoc.c: Likewise.
17010 * tree-ssa-threadedge.c: Likewise.
17011 * tree-streamer-in.c: Likewise.
17012 * tree-vect-data-refs.c: Likewise.
17013 * tree-vect-patterns.c: Likewise.
17014 * tree-vect-stmts.c: Likewise.
17015 * config/aarch64/aarch64.c: Likewise.
17016 * config/alpha/alpha.c: Likewise.
17017 * config/arc/arc.c: Likewise.
17018 * config/arm/arm.c: Likewise.
17019 * config/avr/avr.c: Likewise.
17020 * config/bfin/bfin.c: Likewise.
17021 * config/c6x/c6x.c: Likewise.
17022 * config/cr16/cr16.c: Likewise.
17023 * config/cris/cris.c: Likewise.
17024 * config/epiphany/epiphany.c: Likewise.
17025 * config/fr30/fr30.c: Likewise.
17026 * config/frv/frv.c: Likewise.
17027 * config/h8300/h8300.c: Likewise.
17028 * config/i386/i386.c: Likewise.
17029 * config/i386/winnt.c: Likewise.
17030 * config/ia64/ia64.c: Likewise.
17031 * config/iq2000/iq2000.c: Likewise.
17032 * config/lm32/lm32.c: Likewise.
17033 * config/m32c/m32c.c: Likewise.
17034 * config/m32r/m32r.c: Likewise.
17035 * config/m68k/m68k.c: Likewise.
17036 * config/mcore/mcore.c: Likewise.
17037 * config/mep/mep.c: Likewise.
17038 * config/microblaze/microblaze.c: Likewise.
17039 * config/mips/mips.c: Likewise.
17040 * config/mmix/mmix.c: Likewise.
17041 * config/mn10300/mn10300.c: Likewise.
17042 * config/moxie/moxie.c: Likewise.
17043 * config/msp430/msp430.c: Likewise.
17044 * config/nds32/nds32.c: Likewise.
17045 * config/pa/pa.c: Likewise.
17046 * config/pdp11/pdp11.c: Likewise.
17047 * config/picochip/picochip.c: Likewise.
17048 * config/rl78/rl78.c: Likewise.
17049 * config/rs6000/rs6000.c: Likewise.
17050 * config/rx/rx.c: Likewise.
17051 * config/s390/s390.c: Likewise.
17052 * config/score/score.c: Likewise.
17053 * config/sh/sh.c: Likewise.
17054 * config/sparc/sparc.c: Likewise.
17055 * config/spu/spu.c: Likewise.
17056 * config/stormy16/stormy16.c: Likewise.
17057 * config/tilegx/tilegx.c: Likewise.
17058 * config/tilepro/tilepro.c: Likewise.
17059 * config/v850/v850.c: Likewise.
17060 * config/vax/vax.c: Likewise.
17061 * config/xtensa/xtensa.c: Likewise.
17062
17063 2014-06-02 Jeff Law <law@redhat.com>
17064
17065 PR rtl-optimization/61094
17066 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17067 was marked as do_no_reextend. If a copy is needed to eliminate
17068 an extension, then mark it as do_not_reextend.
17069
17070 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17071
17072 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17073
17074 2014-06-02 Richard Henderson <rth@redhat.com>
17075
17076 PR target/61336
17077 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17078 addresses inside asms. Use output_operand_lossage instead of
17079 gcc_unreachable.
17080
17081 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17082
17083 PR target/61239
17084 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17085 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17086
17087 2014-06-02 Tom de Vries <tom@codesourcery.com>
17088
17089 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17090 case that x has VOIDmode.
17091
17092 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17093
17094 * varasm.c (copy_constant): Delete function.
17095 (build_constant_desc): Don't call it.
17096
17097 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17098
17099 PR target/61154
17100 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17101 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17102 with immediate_operand.
17103
17104 2014-06-02 Andreas Schwab <schwab@suse.de>
17105
17106 * config/ia64/ia64.c
17107 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17108 pending_data_specs first.
17109
17110 2014-06-02 Richard Biener <rguenther@suse.de>
17111
17112 PR tree-optimization/61378
17113 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17114 valueized_anything.
17115
17116 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17117
17118 * config/i386/constraints.md (Bw): Rename from 'w'.
17119 (Bz): Rename from 'z'.
17120 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17121
17122 2014-06-01 Kai Tietz <ktietz@redhat.com>
17123
17124 PR target/61377
17125 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17126 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17127 instead of m constraint.
17128
17129 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17130
17131 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17132 a separate alternative where the scratch operand 2 is marked as
17133 early clobber.
17134
17135 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17136
17137 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17138 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17139 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17140 and __builtins_arm_get_fpscr.
17141 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17142 __builtins_arm_get_fpscr.
17143 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17144 __builtins_arm_ldfpscr.
17145 (arm_atomic_assign_expand_fenv): New function.
17146 * config/arm/vfp.md (set_fpscr): New pattern.
17147 (get_fpscr) : Likewise.
17148 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17149 VUNSPEC_SET_FPSCR.
17150 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17151 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17152
17153 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17154
17155 * asan.c (report_error_func): Add SLOW_P argument, use
17156 BUILT_IN_ASAN_*_N if set.
17157 (build_check_stmt): Likewise.
17158 (instrument_derefs): If T has insufficient alignment,
17159 force same handling as for odd sizes.
17160
17161 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17162 BUILT_IN_ASAN_REPORT_STORE_N): New.
17163 * asan.c (struct asan_mem_ref): Change access_size type to
17164 HOST_WIDE_INT.
17165 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17166 update_mem_ref_hash_table): Likewise.
17167 (asan_mem_ref_hasher::hash): Hash in a HWI.
17168 (report_error_func): Change size_in_bytes argument to HWI.
17169 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17170 two.
17171 (build_shadow_mem_access): New function.
17172 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17173 Handle size_in_bytes not power of two or larger than 16.
17174 (instrument_derefs): Don't give up if size_in_bytes is not
17175 power of two or is larger than 16.
17176
17177 2014-05-30 Kai Tietz <ktietz@redhat.com>
17178
17179 PR target/60104
17180 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17181 for sibling-tail-calls.
17182 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17183 to its use.
17184 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17185 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17186
17187 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17188
17189 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17190 * config/avr/avr-tables.opt: Regenerate.
17191 * config/avr/t-multilib: Regenerate.
17192 * doc/avr-mmcu.texi: Regenerate.
17193
17194 2014-05-30 Ian Lance Taylor <iant@google.com>
17195
17196 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17197 target("sse").
17198
17199 2014-05-30 Tom de Vries <tom@codesourcery.com>
17200
17201 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17202 Redefine as true.
17203
17204 2014-05-30 Tom de Vries <tom@codesourcery.com>
17205
17206 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17207 * lra.c (initialize_lra_reg_info_element): Add init of
17208 actual_call_used_reg_set field.
17209 (lra): Call lra_create_live_ranges before lra_inheritance for
17210 -fuse-caller-save.
17211 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17212 -fuse-caller-save.
17213 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17214 instead of call_used_reg_set for -fuse-caller-save.
17215 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17216
17217 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17218
17219 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17220 to mov_imm.
17221 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17222
17223 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17224
17225 * ira.c (ira_get_dup_out_num): Check for output operands at
17226 the start of the loop. Handle cases where an included alternative
17227 follows an excluded one.
17228
17229 2014-05-29 Mike Stump <mikestump@comcast.net>
17230
17231 PR debug/61352
17232 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17233 post ld passes when lto is used.
17234
17235 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17236
17237 PR rtl-optimization/61325
17238 * lra-constraints.c (process_address): Rename to process_address_1.
17239 (process_address): New function.
17240
17241 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17242
17243 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17244 TYPES_BINOPV): New static data.
17245 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17246 New builtin.
17247 * config/aarch64/aarch64-simd.md (aarch64_ext,
17248 aarch64_im_lane_boundsi): New patterns.
17249 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17250 patterns for EXT.
17251 (aarch64_evpc_ext): New function.
17252
17253 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17254
17255 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17256 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17257 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17258 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17259 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17260
17261 2014-05-29 Tom de Vries <tom@codesourcery.com>
17262
17263 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17264
17265 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17266 Richard Sandiford <rdsandiford@googlemail.com>
17267
17268 * arm/iterators.md (shiftable_ops): New code iterator.
17269 (t2_binop0, arith_shift_insn): New code attributes.
17270 * arm/predicates.md (shift_nomul_operator): New predicate.
17271 * arm/arm.md (insn_enabled): Delete.
17272 (enabled): Remove insn_enabled test.
17273 (*arith_shiftsi): Delete. Replace with ...
17274 (*<arith_shift_insn>_multsi): ... new pattern.
17275 (*<arith_shift_insn>_shiftsi): ... new pattern.
17276 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17277
17278 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17279 Tom de Vries <tom@codesourcery.com>
17280
17281 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17282 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17283 clobber.
17284 (mips_split_call): Use POST_CALL_TMP_REG.
17285 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17286
17287 2014-05-29 Tom de Vries <tom@codesourcery.com>
17288
17289 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17290 with #ifdef STACK_REGS.
17291
17292 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17293
17294 * varasm.c (get_variable_section): Walk aliases.
17295 (place_block_symbol): Walk aliases.
17296
17297 2014-05-28 Tom de Vries <tom@codesourcery.com>
17298
17299 Revert:
17300 2014-05-28 Tom de Vries <tom@codesourcery.com>
17301
17302 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17303 * lra.c (initialize_lra_reg_info_element): Add init of
17304 actual_call_used_reg_set field.
17305 (lra): Call lra_create_live_ranges before lra_inheritance for
17306 -fuse-caller-save.
17307 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17308 -fuse-caller-save.
17309 * lra-constraints.c (need_for_call_save_p): Use
17310 actual_call_used_reg_set instead of call_used_reg_set for
17311 -fuse-caller-save.
17312 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17313
17314 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17315
17316 * doc/md.texi: Document that the % constraint character must
17317 be at the beginning of the string.
17318 * genoutput.c (validate_insn_alternatives): Check that '=',
17319 '+' and '%' only appear at the beginning of a constraint.
17320 * ira.c (commutative_constraint_p): Delete.
17321 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17322 at the start of the string.
17323 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17324 duplicate '='s.
17325 * config/arm/neon.md (bicdi3_neon): Likewise.
17326 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17327 (slt_si, sltu_si): Likewise.
17328 * config/vax/vax.md (sbcdi3): Likewise.
17329 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17330 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17331 (mul64): Move '%' to beginning of constraint.
17332 * config/arm/arm.md (*xordi3_insn): Likewise.
17333 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17334 (xorsi3): Likewise.
17335
17336 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17337
17338 * doc/md.texi: Document the restrictions on the "enabled" attribute.
17339
17340 2014-05-28 Jason Merrill <jason@redhat.com>
17341
17342 PR c++/47202
17343 * cgraph.h (symtab_node::get_comdat_group_id): New.
17344 * cgraphunit.c (analyze_functions): Call it.
17345 * symtab.c (dump_symtab_node): Likewise.
17346 * tree.c (decl_comdat_group_id): New.
17347 * tree.h: Declare it.
17348 * lto-streamer-out.c (write_symbol): Use it.
17349 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17350
17351 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17352
17353 PR bootstrap/PR61146
17354 * wide-int.cc: Do not include longlong.h when compiling with clang.
17355
17356 2014-05-28 Richard Biener <rguenther@suse.de>
17357
17358 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17359 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17360 (vrp_visit_assignment_or_call): Print less vertical space.
17361 (vrp_visit_stmt): Likewise.
17362 (vrp_visit_phi_node): Likewise. For a PHI argument with
17363 VR_VARYING range consider recording it as copy.
17364
17365 2014-05-28 Richard Biener <rguenther@suse.de>
17366
17367 Revert
17368 2014-05-28 Richard Biener <rguenther@suse.de>
17369
17370 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17371
17372 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17373
17374 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17375 sufficiently aligned and an offset is used at the same time.
17376 (expand_expr_real_1): Likewise.
17377
17378 2014-05-28 Richard Biener <rguenther@suse.de>
17379
17380 PR middle-end/61045
17381 * fold-const.c (fold_comparison): When folding
17382 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17383 the sign of the remaining constant operand stays the same.
17384
17385 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17386
17387 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17388 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17389 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17390 to the assembler.
17391 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17392 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17393 (m32bit-doubles) Likewise.
17394 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17395 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17396 option for RL78.
17397
17398 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17399
17400 * configure.ac ($gcc_cv_ld_clearcap): New test.
17401 * configure: Regenerate.
17402 * config.in: Regenerate.
17403 * config/sol2.opt (mclear-hwcap): New option.
17404 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17405 * config/sol2-clearcap.map: Moved here from
17406 testsuite/gcc.target/i386/clearcap.map.
17407 * config/sol2-clearcapv2.map: Move here from
17408 gcc.target/i386/clearcapv2.map.
17409 * config/t-sol2 (install): Depend on install-clearcap-map.
17410 (install-clearcap-map): New target.
17411 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17412 -mclear-hwcap.
17413
17414 2014-05-28 Richard Biener <rguenther@suse.de>
17415
17416 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17417 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17418 ... here and remove the rest.
17419 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17420
17421 2014-05-28 Richard Biener <rguenther@suse.de>
17422
17423 PR tree-optimization/61335
17424 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17425 new range fails, drop to varying.
17426
17427 2014-05-28 Olivier Hainque <hainque@adacore.com>
17428
17429 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17430 (CPP_SPEC): Add entry for -mcpu=8548.
17431 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17432 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17433
17434 2014-05-28 Tom de Vries <tom@codesourcery.com>
17435
17436 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17437 * lra.c (initialize_lra_reg_info_element): Add init of
17438 actual_call_used_reg_set field.
17439 (lra): Call lra_create_live_ranges before lra_inheritance for
17440 -fuse-caller-save.
17441 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17442 -fuse-caller-save.
17443 * lra-constraints.c (need_for_call_save_p): Use
17444 actual_call_used_reg_set instead of call_used_reg_set for
17445 -fuse-caller-save.
17446 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17447
17448 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17449 Tom de Vries <tom@codesourcery.com>
17450
17451 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17452 to gccoptlist.
17453 (@item -fuse-caller-save): New item.
17454
17455 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17456 Tom de Vries <tom@codesourcery.com>
17457
17458 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17459 OPT_fuse_caller_save.
17460
17461 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17462 Tom de Vries <tom@codesourcery.com>
17463
17464 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17465 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17466 get_call_reg_set_usage.
17467 * resource.c (mark_set_resources, mark_target_live_regs): Use
17468 get_call_reg_set_usage.
17469 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17470 field.
17471 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17472 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17473 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17474 * ira-build.c (ira_create_allocno): Init
17475 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17476 (create_cap_allocno, propagate_allocno_info)
17477 (propagate_some_info_from_allocno)
17478 (copy_info_to_removed_store_destinations): Handle
17479 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17480 * ira-costs.c (ira_tune_allocno_costs): Use
17481 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17482
17483 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17484 Tom de Vries <tom@codesourcery.com>
17485
17486 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17487 and function_used_regs_valid fields.
17488 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17489 find_all_hard_reg_sets.
17490 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17491 (get_call_reg_set_usage): New function.
17492 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17493 * regs.h (get_call_reg_set_usage): Declare.
17494
17495 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17496
17497 PR libgcc/61152
17498 * config/dbx.h (License): Add Runtime Library Exception.
17499 * config/newlib-stdint.h (License): Same.
17500 * config/rtems.h (License): Same
17501 * config/initfini-array.h (License): Same
17502 * config/v850/v850.h (License): Same.
17503 * config/v850/v850-opts.h (License): Same
17504 * config/v850/rtems.h (License): Same.
17505
17506 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17507
17508 PR target/61044
17509 * doc/extend.texi (Local Labels): Note that label differences are
17510 not supported for AVR.
17511
17512 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17513 Olivier Hainque <hainque@adacore.com>
17514
17515 * rtl.h (set_for_reg_notes): Declare.
17516 * emit-rtl.c (set_for_reg_notes): New function.
17517 (set_unique_reg_note): Use it.
17518 * optabs.c (add_equal_note): Likewise
17519
17520 2014-05-27 Andrew Pinski <apinski@cavium.com>
17521
17522 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17523 Use <w> for the register in assembly template.
17524 (stack_protect_test): Use the mode of operands[0] for the result.
17525 (stack_protect_test_<mode>): Use <w> for the register
17526 in assembly template.
17527
17528 2014-05-27 DJ Delorie <dj@redhat.com>
17529
17530 * config/rx/rx.c (add_vector_labels): New.
17531 (rx_output_function_prologue): Call it.
17532 (rx_handle_func_attribute): Don't require empty arguments.
17533 (rx_handle_vector_attribute): New.
17534 (rx_attribute_table): Add "vector" attribute.
17535 * doc/extend.texi (interrupt, vector): Document new/changed
17536 RX-specific attributes.
17537
17538 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17539
17540 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17541
17542 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17543 predicate to detect a negative quotient.
17544
17545 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17546
17547 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17548 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17549 Add X - Y CMP 0 to X CMP Y transformation.
17550 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17551
17552 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17553
17554 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17555 before printing.
17556
17557 2014-05-27 Steve Ellcey <sellcey@mips.com>
17558
17559 * config/mips/mips.c: Add include of cgraph.h.
17560
17561 2014-05-27 Richard Biener <rguenther@suse.de>
17562
17563 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17564
17565 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17566
17567 PR libgcc/61152
17568 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17569 * config/arm/arm-cores.def (License): Same.
17570 * config/arm/arm-opts.h (License): Same.
17571 * config/arm/aout.h (License): Same.
17572 * config/arm/bpabi.h (License): Same.
17573 * config/arm/elf.h (License): Same.
17574 * config/arm/linux-elf.h (License): Same.
17575 * config/arm/linux-gas.h (License): Same.
17576 * config/arm/netbsd-elf.h (License): Same.
17577 * config/arm/uclinux-eabi.h (License): Same.
17578 * config/arm/uclinux-elf.h (License): Same.
17579 * config/arm/vxworks.h (License): Same.
17580
17581 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17582
17583 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17584 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17585 (arm_init_neon_builtins): Handle NEON_BSWAP.
17586 Define required type nodes.
17587 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17588 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17589 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17590 * config/arm/iterators.md (VDQHSD): New mode iterator.
17591
17592 2014-05-27 Richard Biener <rguenther@suse.de>
17593
17594 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17595 Try using literal operands when comparing value-ranges failed.
17596
17597 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17598
17599 * ira.c (commutative_operand): Adjust for change to recog_data.
17600 [Missing from previous commit.]
17601
17602 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17603
17604 * system.h (TEST_BIT): New macro.
17605 * recog.h (alternative_mask): New type.
17606 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17607 (recog_data_d): Replace alternative_enabled_p array with
17608 enabled_alternatives.
17609 (target_recog): New structure.
17610 (default_target_recog, this_target_recog): Declare.
17611 (get_enabled_alternatives, recog_init): Likewise.
17612 * recog.c (default_target_recog, this_target_recog): New variables.
17613 (get_enabled_alternatives): New function.
17614 (extract_insn): Use it.
17615 (recog_init): New function.
17616 (preprocess_constraints, constrain_operands): Adjust for change to
17617 recog_data.
17618 * postreload.c (reload_cse_simplify_operands): Likewise.
17619 * reload.c (find_reloads): Likewise.
17620 * ira-costs.c (record_reg_classes): Likewise.
17621 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17622 all alternatives after a disabled one would be skipped.
17623 (ira_implicitly_set_insn_hard_regs): Likewise.
17624 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17625 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17626 with enabled_alternatives.
17627 * lra.c (free_insn_recog_data): Update accordingly.
17628 (lra_update_insn_recog_data): Likewise.
17629 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17630 * lra-constraints.c (process_alt_operands): Likewise. Handle
17631 only_alternative as part of the enabled mask.
17632 * target-globals.h (this_target_recog): Declare.
17633 (target_globals): Add a recog field.
17634 (restore_target_globals): Restore this_target_recog.
17635 * target-globals.c: Include recog.h.
17636 (default_target_globals): Initialize recog field.
17637 (save_target_globals): Likewise.
17638 * reginfo.c (reinit_regs): Call recog_init.
17639 * toplev.c (backend_init_target): Likewise.
17640
17641 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17642
17643 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17644 rather than any named insn's code.
17645
17646 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17647
17648 PR libgcc/61152
17649 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17650 * config/arm/arm-cores.def (License): Same.
17651
17652 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17653
17654 * tree.h (decl_comdat_group): Declare.
17655 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17656 * tree.c (decl_comdat_group): Here.
17657
17658 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17659
17660 PR rtl-optimization/61222
17661 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17662 the shift, truncate the PLUS operand to the result mode.
17663
17664 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17665
17666 PR target/61271
17667 * config/i386/i386.c (ix86_rtx_costs)
17668 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17669 Fix condition.
17670
17671 2014-05-26 Martin Jambor <mjambor@suse.cz>
17672
17673 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17674 subreg uses.
17675
17676 2014-05-26 Richard Biener <rguenther@suse.de>
17677
17678 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17679 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17680 Provide specializations.
17681 (wi::int_traits <HOST_WIDE_INT>,
17682 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17683
17684 2014-05-26 Alan Modra <amodra@gmail.com>
17685
17686 PR target/61098
17687 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17688 params and return a bool. Remove dead code. Update comment.
17689 Assert we have a const_int source. Remove bogus code from
17690 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17691 handling of constants > 2G and reg_equal note, from..
17692 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17693 return value. Update comment. If we can, use a new pseudo
17694 for intermediate calculations.
17695 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17696 prototype.
17697 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17698 call to rs6000_emit_set_const in splitter.
17699 (movdi_internal64+2, +3): Likewise.
17700
17701 2014-05-26 Richard Biener <rguenther@suse.de>
17702
17703 * system.h: Define __STDC_FORMAT_MACROS before
17704 including inttypes.h.
17705 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17706 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17707 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17708 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17709 HOST_WIDEST_INT_C): Remove.
17710 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17711 if C99 inttypes.h is not available.
17712 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17713 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17714 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17715 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17716 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17717 (struct output_info): Likewise.
17718 (print_statistics): Adjust.
17719 (dump_bitmap_statistics): Likewise.
17720 * bt-load.c (migrate_btr_defs): Print with PRId64.
17721 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
17722 (MAX_SAFE_MULTIPLIER): Adjust.
17723 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
17724 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
17725 dump_cgraph_node): Likewise.
17726 * final.c (dump_basic_block_info): Likewise.
17727 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
17728 * gcov.c (format_gcov): Likewise.
17729 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
17730 for calculation.
17731 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
17732 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
17733 (inline_small_functions, dump_overall_stats, dump_inline_stats):
17734 Use PRId64 for dumping.
17735 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
17736 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
17737 (add_allocno_hard_regs): Adjust.
17738 * loop-doloop.c (doloop_modify): Print using PRId64.
17739 * loop-iv.c (inverse): Compute in uint64_t.
17740 (determine_max_iter, iv_number_of_iterations): Likewise.
17741 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
17742 Print using PRId64.
17743 * lto-streamer-out.c (write_symbol): Use uint64_t.
17744 * mcf.c (CAP_INFINITY): Use int64_t maximum.
17745 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
17746 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
17747 * modulo-sched.c (const_iteration_count): Use int64_t.
17748 (sms_schedule): Dump using PRId64.
17749 * predict.c (dump_prediction): Likewise.
17750 * pretty-print.h (pp_widest_integer): Remove.
17751 * profile.c (get_working_sets, is_edge_inconsistent,
17752 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
17753 * tree-pretty-print.c (pp_double_int): Remove case handling
17754 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
17755 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
17756 and adjust users.
17757 (pass_optimize_bswap::execute): Remove restriction on hosts.
17758 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
17759 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
17760 * tree.c (widest_int_cst_value): Remove.
17761 * tree.h (widest_int_cst_value): Likewise.
17762 * value-prof.c (dump_histogram_value): Print using PRId64.
17763 * gengtype.c (main): Also inject int64_t.
17764 * ggc-page.c (struct max_alignment): Use int64_t.
17765 * alloc-pool.c (struct allocation_object_def): Likewise.
17766 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
17767 for computation.
17768 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
17769 * doc/tm.texi: Regenerated.
17770 * gengtype-lex.l (IWORD): Handle [u]int64_t.
17771 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
17772 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
17773 mmix_output_register_setting): Use [u]int64_t in prototypes.
17774 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
17775 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
17776 mmix_output_octa, mmix_output_shifted_value): Adjust.
17777 (mmix_intval): Adjust. Remove unreachable case.
17778 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
17779
17780 2014-05-26 Richard Biener <rguenther@suse.de>
17781
17782 * configure.ac: Drop __int64 type check. Insist that we
17783 found uint64_t and int64_t.
17784 * hwint.h (HOST_BITS_PER___INT64): Remove.
17785 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
17786 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
17787 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
17788 (HOST_WIDEST_FAST_INT): Remove __int64 case.
17789 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
17790 for dst_q_src_df_rms_cdt.
17791 * configure: Regenerate.
17792 * config.in: Likewise.
17793
17794 2014-05-26 Michael Tautschnig <mt@debian.org>
17795
17796 PR target/61249
17797 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
17798 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
17799
17800 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17801
17802 PR rtl-optimization/61278
17803 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
17804
17805 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17806
17807 PR rtl-optimization/61220
17808 Part of PR rtl-optimization/61225
17809 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
17810 insn; skip split_edge for a block with only one successor.
17811
17812 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17813
17814 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
17815 for variables.
17816
17817 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17818
17819 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
17820 (update_vtable_references): New function.
17821 (function_and_variable_visibility): Rewrite also vtable initializers.
17822 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
17823
17824 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17825
17826 * ggc.h (ggc_grow): New function.
17827 * ggc-none.c (ggc_grow): New function.
17828 * ggc-page.c (ggc_grow): Likewise.
17829
17830 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17831
17832 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
17833 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
17834 comdat_can_be_unshared_p, cgraph_externally_visible_p,
17835 varpool_externally_visible_p, can_replace_by_local_alias,
17836 update_visibility_by_resolution_info, function_and_variable_visibility,
17837 pass_data_ipa_function_and_variable_visibility,
17838 make_pass_ipa_function_and_variable_visibility,
17839 whole_program_function_and_variable_visibility,
17840 pass_data_ipa_whole_program_visibility,
17841 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
17842 * cgraph.h (cgraph_local_node_p): Declare.
17843 * ipa-visibility.c: New file.
17844 * Makefile.in (OBJS): Add ipa-visiblity.o
17845
17846 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17847
17848 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
17849 that var decl is available.
17850
17851 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17852
17853 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
17854 symtab_node pointer.
17855 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
17856 (find_decls_types_r): Do not walk COMDAT_GROUP.
17857 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
17858 * varasm.c (make_decl_one_only): Use set_comdat_group;
17859 create node if needed.
17860 * ipa-inline-transform.c (save_inline_function_body): Update
17861 way we decl->symtab mapping.
17862 * symtab.c (symtab_hash, hash_node, eq_node
17863 symtab_insert_node_to_hashtable): Remove.
17864 (symtab_register_node): Update.
17865 (symtab_unregister_node): Update.
17866 (symtab_get_node): Reimplement as inline function.
17867 (symtab_add_to_same_comdat_group): Update.
17868 (symtab_dissolve_same_comdat_group_list): Update.
17869 (dump_symtab_base): Update.
17870 (verify_symtab_base): Update.
17871 (symtab_make_decl_local): Update.
17872 (fixup_same_cpp_alias_visibility): Update.
17873 (symtab_nonoverwritable_alias): Update.
17874 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
17875 * ipa.c (update_visibility_by_resolution_info): UPdate.
17876 * bb-reorder.c: Include cgraph.h
17877 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
17878 with comdat groups.
17879 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
17880 * cgraph.c (cgraph_get_create_node): Update.
17881 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
17882 and comdat_group_.
17883 (symtab_get_node): Make inline.
17884 (symtab_insert_node_to_hashtable): Remove.
17885 (symtab_can_be_discarded): Update.
17886 (decl_comdat_group): New function.
17887 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
17888 Update.
17889 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
17890 comdat group name.
17891 (read_comdat_group): New function.
17892 (input_node, input_varpool_node): Use it.
17893 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
17894 comdat groups.
17895 * mips.c (mips_start_unique_function): Likewise.
17896 (ix86_code_end): Likewise.
17897 (rs6000_code_end): Likweise.
17898 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
17899
17900 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17901
17902 * gengtype-state.c (fatal_reading_state): Bring offline.
17903 * optabs.c (widening_optab_handler): Bring offline.
17904 * optabs.h (widening_optab_handler): Likewise.
17905 * final.c (get_attr_length_1): Likewise.
17906
17907 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17908
17909 * sched-int.h (sd_iterator_cond): Manually tail recurse.
17910
17911 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17912
17913 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
17914 (ppc440-compare): Include shift with dot.
17915 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
17916 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
17917 without dot.
17918 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
17919 without dot.
17920 (e6500_sfx2): Include it.
17921 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
17922 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
17923 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
17924 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
17925 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
17926 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
17927 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
17928 *lshiftrt_internal1le, *lshiftrt_internal1be,
17929 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
17930 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
17931 *rotldi3_internal10le, *rotldi3_internal10be,
17932 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
17933 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
17934 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
17935 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
17936 define_insns): Use type "shift" in the appropriate alternatives.
17937
17938 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17939
17940 * config/rs6000/rs6000.md (type): Add "logical". Delete
17941 "fast_compare".
17942 (dot): Adjust comment.
17943 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
17944 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
17945 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
17946 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
17947 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
17948 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
17949 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
17950 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17951
17952 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17953 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17954 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17955 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17956 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17957 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17958 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17959 * config/rs6000/8540.md (ppc8540_su): Adjust.
17960 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17961 cell-cmp-microcoded): Adjust.
17962 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17963 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17964 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17965 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17966 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17967 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17968 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17969 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17970 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17971 Adjust.
17972 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17973 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
17974 Adjust. Adjust comment.
17975 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17976 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17977
17978 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17979
17980 * config/rs6000/rs6000.md (type): Add "add".
17981 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
17982 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
17983 define_insns): Use it.
17984 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17985
17986 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17987 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17988 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17989 * config/rs6000/601.md (ppc601-integer): Adjust.
17990 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17991 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17992 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17993 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17994 * config/rs6000/8540.md (ppc8540_su): Adjust.
17995 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17996 cell-cmp-microcoded): Adjust.
17997 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17998 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17999 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18000 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18001 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18002 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18003 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18004 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18005 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18006 Adjust.
18007 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18008 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18009 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18010 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18011
18012 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18013
18014 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18015 "delayed_compare", "var_delayed_compare".
18016 (var_shift): New attribute.
18017 (cell_micro): Adjust.
18018 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18019 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18020 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18021 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18022 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18023 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18024 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18025 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18026 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18027 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18028 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18029 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18030 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18031 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18032 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18033 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18034 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18035 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18036 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18037 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18038 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18039 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18040 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18041 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18042 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18043
18044 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18045 * config/rs6000/440.md (ppc440-integer): Adjust.
18046 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18047 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18048 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18049 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18050 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18051 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18052 * config/rs6000/8540.md (ppc8540_su): Adjust.
18053 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18054 cell-cmp-microcoded): Adjust.
18055 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18056 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18057 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18058 e500mc64_delayed): Adjust.
18059 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18060 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18061 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18062 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18063 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18064 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18065 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18066 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18067 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18068 Adjust comment.
18069 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18070 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18071
18072 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18073
18074 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18075 (bits): New mode_attr.
18076 (idiv_ldiv): Delete mode_attr.
18077 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18078 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18079 rs6000_adjust_priority, is_nonpipeline_insn,
18080 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18081
18082 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18083 * config/rs6000/440.md (ppc440-idiv): Adjust.
18084 * config/rs6000/476.md (ppc476-idiv): Adjust.
18085 * config/rs6000/601.md (ppc601-idiv): Adjust.
18086 * config/rs6000/603.md (ppc603-idiv): Adjust.
18087 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18088 ppc620-ldiv): Adjust.
18089 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18090 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18091 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18092 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18093 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18094 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18095 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18096 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18097 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18098 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18099 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18100 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18101 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18102 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18103 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18104 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18105 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18106 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18107
18108 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18109
18110 * config/rs6000/rs6000.md (type): Delete "insert_word",
18111 "insert_dword". Add "insert".
18112 (size): Update comment.
18113 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18114 insn_must_be_first_in_group): Adjust.
18115 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18116 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18117 *insvsi_internal6, insvdi_internal): Adjust.
18118
18119 * config/rs6000/40x.md (ppc403-integer): Adjust.
18120 * config/rs6000/440.md (ppc440-integer): Adjust.
18121 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18122 * config/rs6000/601.md (ppc601-integer): Adjust.
18123 * config/rs6000/603.md (ppc603-integer): Adjust.
18124 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18125 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18126 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18127 * config/rs6000/8540.md (ppc8540_su): Adjust.
18128 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18129 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18130 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18131 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18132 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18133 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18134 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18135 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18136 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18137 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18138 * config/rs6000/power7.md (power7-integer): Adjust.
18139 * config/rs6000/power8.md (power8-1cyc): Adjust.
18140 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18141 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18142
18143 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18144
18145 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18146 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18147 (size): New attribute.
18148 (dot): New attribute.
18149 (cell_micro): Adjust.
18150 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18151 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18152 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18153 umuldi3_highpart): Adjust.
18154 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18155 rs6000_adjust_priority, is_nonpipeline_insn,
18156 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18157
18158 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18159 ppc405-imul3): Adjust.
18160 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18161 * config/rs6000/476.md (ppc476-imul): Adjust.
18162 * config/rs6000/601.md (ppc601-imul): Adjust.
18163 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18164 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18165 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18166 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18167 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18168 Adjust.
18169 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18170 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18171 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18172 cell-imul): Adjust.
18173 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18174 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18175 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18176 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18177 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18178 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18179 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18180 power4-lmul, power4-imul, power4-imul3): Adjust.
18181 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18182 power5-lmul, power5-imul, power5-imul3): Adjust.
18183 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18184 power6-lmul, power6-imul, power6-imul3): Adjust.
18185 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18186 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18187
18188 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18189 rs64a-lmul): Adjust.
18190 * config/rs6000/titan.md (titan_imul): Adjust.
18191
18192 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18193
18194 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18195 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18196 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18197 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18198 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18199 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18200 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18201 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18202 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18203 * config/rs6000/titan.md: Delete nonsensical comment.
18204 (titan_imul): Add type imul3.
18205 (titan_mulhw): Remove type imul3; add type halfmul.
18206
18207 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18208
18209 * config/rs6000/rs6000.md (type): Reorder, reformat.
18210
18211 2014-05-23 Martin Jambor <mjambor@suse.cz>
18212
18213 PR tree-optimization/53787
18214 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18215 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18216 analysis_done, update all uses.
18217 * ipa-prop.c: Include domwalk.h
18218 (param_analysis_info): Removed.
18219 (param_aa_status): New type.
18220 (ipa_bb_info): Likewise.
18221 (func_body_info): Likewise.
18222 (ipa_get_bb_info): New function.
18223 (aa_overwalked): Likewise.
18224 (find_dominating_aa_status): Likewise.
18225 (parm_bb_aa_status_for_bb): Likewise.
18226 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18227 (load_from_unmodified_param): Accept func_body_info as a parameter
18228 instead of parms_ainfo.
18229 (parm_ref_data_preserved_p): Changed to use new param AA info.
18230 (parm_ref_data_pass_through_p): Likewise.
18231 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18232 (compute_complex_assign_jump_func): Changed to use new param AA info.
18233 (compute_complex_ancestor_jump_func): Likewise.
18234 (ipa_compute_jump_functions_for_edge): Likewise.
18235 (ipa_compute_jump_functions): Removed.
18236 (ipa_compute_jump_functions_for_bb): New function.
18237 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18238 declarations down.
18239 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18240 and info, moved variable declarations down.
18241 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18242 node and info.
18243 (ipa_analyze_stmt_uses): Likewise.
18244 (ipa_analyze_params_uses): Removed.
18245 (ipa_analyze_params_uses_in_bb): New function.
18246 (ipa_analyze_controlled_uses): Likewise.
18247 (free_ipa_bb_info): Likewise.
18248 (analysis_dom_walker): New class.
18249 (ipa_analyze_node): Handle node-specific forbidden analysis,
18250 initialize and free func_body_info, use dominator walker.
18251 (ipcp_modif_dom_walker): New class.
18252 (ipcp_transform_function): Create and free func_body_info, use
18253 ipcp_modif_dom_walker, moved a lot of functionality there.
18254
18255 2014-05-23 Marek Polacek <polacek@redhat.com>
18256 Jakub Jelinek <jakub@redhat.com>
18257
18258 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18259 * gcc.c (sanitize_spec_function): Likewise.
18260 * convert.c (convert_to_integer): Include "ubsan.h". Add
18261 floating-point to integer instrumentation.
18262 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18263 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18264 SANITIZE_NONDEFAULT.
18265 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18266 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18267 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18268 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18269 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18270 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18271 float/double/long double.
18272 (ubsan_instrument_float_cast): New function.
18273 * ubsan.h (ubsan_instrument_float_cast): Declare.
18274
18275 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18276
18277 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18278 predicate.
18279 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18280 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18281 Adjust for tailcalling through registers.
18282 * config/aarch64/aarch64.h (enum reg_class): New caller save
18283 register class.
18284 (REG_CLASS_NAMES): Likewise.
18285 (REG_CLASS_CONTENTS): Likewise.
18286 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18287 Allow tailcalling without decls.
18288
18289 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18290
18291 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18292 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18293
18294 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18295 gsi, and variables v_* to v*.
18296
18297 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18298
18299 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18300
18301 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18302
18303 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18304 * omp-low.c: Update accordingly.
18305
18306 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18307 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18308 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18309 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18310 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18311 GF_OMP_TARGET_KIND_UPDATE.
18312
18313 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18314 Explicitly enumerate the expected region types.
18315
18316 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18317
18318 PR other/56955
18319 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18320 documentation; the old documentation didn't clearly state the
18321 constraints on the contents of the pointed-to storage.
18322
18323 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18324
18325 Fix bootstrap error on ia64
18326 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18327 Return default value.
18328
18329 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18330
18331 PR tree-optimization/54733
18332 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18333 (CMPNOP): Define.
18334 (find_bswap_or_nop_load): New.
18335 (find_bswap_1): Renamed to ...
18336 (find_bswap_or_nop_1): This. Also add support for memory source.
18337 (find_bswap): Renamed to ...
18338 (find_bswap_or_nop): This. Also add support for memory source and
18339 detection of bitwise operations equivalent to load in target
18340 endianness.
18341 (execute_optimize_bswap): Likewise. Also move its leading comment back
18342 in place and split statement transformation into ...
18343 (bswap_replace): This.
18344
18345 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18346
18347 PR rtl-optimization/61215
18348 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18349 simplify_gen_subreg until final substitution.
18350
18351 2014-05-23 Alan Modra <amodra@gmail.com>
18352
18353 PR target/61231
18354 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18355 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18356 Use "Y" constraint rather than "m".
18357
18358 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18359
18360 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18361 define.
18362 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18363 New function declaration.
18364 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18365 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18366 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18367 (aarch64_init_builtins) : Initialize builtins
18368 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18369 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18370 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18371 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18372 and __builtins_aarch64_set_fpsr.
18373 (aarch64_atomic_assign_expand_fenv): New function.
18374 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18375 (get_fpcr) : Likewise.
18376 (set_fpsr) : Likewise.
18377 (get_fpsr) : Likewise.
18378 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18379 and UNSPECV_SET_FPSR.
18380 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18381 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18382 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18383
18384 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18385
18386 PR rtl-optimization/60969
18387 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18388 constraints. Set up mem cost for NO_REGS case.
18389
18390 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18391
18392 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18393
18394 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18395
18396 * config/darwin.c: Include "lto-section-names.h".
18397 (LTO_SEGMENT_NAME): Don't define.
18398 * config/i386/winnt.c: Include "lto-section-names.h".
18399 * lto-streamer.c: Include "lto-section-names.h".
18400 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18401 * lto-wrapper.c: Include "lto-section-names.h".
18402 (LTO_SECTION_NAME_PREFIX): Don't define.
18403 * lto-section-names.h: New file.
18404 * cgraphunit.c: Include "lto-section-names.h".
18405
18406 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18407
18408 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18409
18410 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18411
18412 PR target/61208
18413 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18414
18415 2014-05-22 Nick Clifton <nickc@redhat.com>
18416
18417 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18418
18419 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18420
18421 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18422 -> (T)A transformation to integer types.
18423
18424 2014-05-22 Teresa Johnson <tejohnson@google.com>
18425
18426 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18427 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18428 (gcov_rewrite): Use gcov_nonruntime_assert.
18429 (gcov_open): Ditto.
18430 (gcov_write_words): Ditto.
18431 (gcov_write_length): Ditto.
18432 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18433 gcc_assert from IN_LIBGCOV code.
18434 (gcov_read_summary): Use gcov_error to flag profile corruption.
18435 (gcov_sync): Use gcov_nonruntime_assert.
18436 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18437 (gcov_histo_index): Use gcov_nonruntime_assert.
18438 (static void gcov_histogram_merge): Ditto.
18439 (compute_working_sets): Ditto.
18440 * gcov-io.h (gcov_nonruntime_assert): Define.
18441 (gcov_error): Define for !IN_LIBGCOV
18442
18443 2014-05-22 Richard Biener <rguenther@suse.de>
18444
18445 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18446 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18447 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18448 and deallocation site.
18449 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18450 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18451 passing through the incoming points-to set.
18452 (handle_lhs_call): Use flags argument instead of recomputing it.
18453 (find_func_aliases_for_call): Call handle_lhs_call with proper
18454 call return flags.
18455
18456 2014-05-22 Jakub Jelinek <jakub@redhat.com>
18457
18458 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18459 all padding bits in REAL_VALUE_TYPE are cleared.
18460
18461 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18462
18463 Cleanup and improve multipass_dfa_lookahead_guard
18464 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18465 (core2i7_first_cycle_multipass_begin,)
18466 (core2i7_first_cycle_multipass_issue,)
18467 (core2i7_first_cycle_multipass_backtrack): Update signature.
18468 * config/ia64/ia64.c
18469 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18470 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18471 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18472 hook definition.
18473 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18474 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
18475 values.
18476 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18477 return values.
18478 * doc/tm.texi: Regenerate.
18479 * doc/tm.texi.in
18480 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18481 * haifa-sched.c (ready_try): Make signed to allow negative values.
18482 (rebug_ready_list_1): Update.
18483 (choose_ready): Simplify.
18484 (sched_extend_ready_list): Update.
18485
18486 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18487
18488 Remove IA64 speculation tweaking flags
18489 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18490 speculation tuning flags.
18491 (msched-prefer-non-data-spec-insns,)
18492 (msched-prefer-non-control-spec-insns): Obsolete options.
18493 * haifa-sched.c (choose_ready): Remove handling of
18494 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18495 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18496 and PREFER_NON_DATA_SPEC.
18497 * sel-sched.c (process_spec_exprs): Remove handling of
18498 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18499
18500 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18501
18502 Improve scheduling debug output
18503 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18504 (advance_one_cycle): Update.
18505 (schedule_insn, queue_to_ready): Add debug printouts.
18506 (debug_ready_list_1): New static function.
18507 (debug_ready_list): Update.
18508 (max_issue): Add debug printouts.
18509 (dump_insn_stream): New static function.
18510 (schedule_block): Use it. Also better indent printouts.
18511
18512 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18513
18514 Fix sched_insn debug counter
18515 * haifa-sched.c (schedule_insn): Update.
18516 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18517 (save_backtrack_point, restore_backtrack_point): Update.
18518 (first_nonscheduled_insn): New static function.
18519 (queue_to_ready, choose_ready): Use it.
18520 (schedule_block): Init nonscheduled_insns_begin.
18521 (sched_emit_insn): Update.
18522
18523
18524 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18525
18526 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18527 to GENERAL_REGS.
18528 (aarch64_secondary_reload) : LikeWise.
18529 (aarch64_class_max_nregs) : Remove CORE_REGS.
18530 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18531 (REG_CLASS_NAMES) : Likewise.
18532 (REG_CLASS_CONTENTS) : LikeWise.
18533 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18534
18535 2014-05-21 Guozhi Wei <carrot@google.com>
18536
18537 PR target/61202
18538 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18539 constraint.
18540 (vqdmulhq_n_s16): Likewise.
18541
18542 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18543
18544 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18545
18546 2014-05-21 Marek Polacek <polacek@redhat.com>
18547
18548 PR sanitizer/61272
18549 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18550
18551 2014-05-21 Martin Jambor <mjambor@suse.cz>
18552
18553 * doc/invoke.texi (Optimize Options): Document parameters
18554 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18555 ipa-cp-array-index-hint-bonus.
18556
18557 2014-05-21 Mark Wielaard <mjw@redhat.com>
18558
18559 PR debug/16063
18560 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18561 version >= 3 or not strict DWARF.
18562 * langhooks.h (struct lang_hooks_for_types): Add
18563 enum_underlying_base_type.
18564 * langhooks.c (lhd_enum_underlying_base_type): New function.
18565 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18566 enum_underlying_base_type.
18567 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18568 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18569 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18570
18571 2014-05-21 Richard Biener <rguenther@suse.de>
18572
18573 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18574
18575 2014-05-21 John Marino <gnugcc@marino.st>
18576
18577 * config.gcc (*-*-dragonfly*): New target.
18578 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18579 * configure: Regenerate.
18580 * config/dragonfly-stdint.h: New.
18581 * config/dragonfly.h: New.
18582 * config/dragonfly.opt: New.
18583 * config/i386/dragonfly.h: New.
18584 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18585
18586 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18587
18588 * tree.def (VOID_CST): New.
18589 * tree-core.h (TI_VOID): New.
18590 * tree.h (void_node): New.
18591 * tree.c (tree_node_structure_for_code, tree_code_size)
18592 (iterative_hash_expr): Handle VOID_CST.
18593 (build_common_tree_nodes): Initialize void_node.
18594
18595 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18596
18597 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18598 functions.
18599 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18600
18601 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18602 more places.
18603
18604 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18605 flag_reorder_blocks_and_partition.
18606 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18607
18608 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18609
18610 PR target/54236
18611 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18612 constraints.
18613 (*addc_r_t): Add new insn_and_split.
18614
18615 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18616
18617 PR middle-end/61252
18618 * omp-low.c (handle_simd_reference): New function.
18619 (lower_rec_input_clauses): Use it. Defer adding reference
18620 initialization even for reduction without placeholder if in simd,
18621 handle it properly later on.
18622
18623 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18624
18625 PR tree-optimization/60899
18626 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18627 assume all static symbols will have definition wile parsing and
18628 check the do have definition later in compilation; check that
18629 variable referring symbol will be output before concluding that
18630 reference is safe; be conservative for referring local statics;
18631 be more precise about when comdat is output in other partition.
18632
18633 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18634
18635 PR bootstrap/60984
18636 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18637 parameter.
18638 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18639 (ipa_inline): Loop inline_to_all_callers until no more aliases
18640 are removed.
18641
18642 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18643
18644 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18645 set writeonly flag only for vars actually written to.
18646
18647 2014-05-20 Dehao Chen <dehao@google.com>
18648
18649 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18650 and callee count to get clone count.
18651 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18652 count in copy_body.
18653
18654 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18655
18656 PR rtl-optimization/61243
18657 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18658
18659 2014-05-20 Xinliang David Li <davidxl@google.com>
18660
18661 * cgraphunit.c (walk_polymorphic_call_targets): Add
18662 dbgcnt and fopt-info support.
18663 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18664 * ipa-devirt.c (ipa_devirt): Ditto.
18665 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18666 * ipa.c (walk_polymorphic_call_targets): Ditto.
18667 * gimple-fold.c (fold_gimple_assign): Ditto.
18668 (gimple_fold_call): Ditto.
18669 * dbgcnt.def: New counter.
18670
18671 2014-05-20 DJ Delorie <dj@redhat.com>
18672
18673 * config/msp430/msp430.md (split): Don't allow subregs when
18674 splitting SImode adds.
18675 (andneghi): Fix subtraction logic.
18676 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18677
18678 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18679
18680 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18681 symbols.
18682 * except.c (switch_to_exception_section, resolve_unique_section,
18683 get_named_text_section, default_function_rodata_section,
18684 align_variable, get_block_for_decl, default_section_type_flags):
18685 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18686 * symtab.c (symtab_add_to_same_comdat_group,
18687 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18688 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18689 Likewise.
18690 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18691 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18692 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18693 (c6x_function_in_section_p): Likewise.
18694 * config/darwin.c (machopic_select_section): Likewise.
18695 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18696 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18697 * config/mep/mep.c (mep_select_section): LIkewise.
18698 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18699
18700 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18701
18702 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18703 EH region of calls to pure functions that can throw an exception.
18704 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18705 (copy_reference_ops_from_call): Also copy the EH region of the call if
18706 it can throw an exception.
18707
18708 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18709
18710 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18711 nested VEC_SELECTs that are inverses of each other.
18712
18713 2014-05-20 Richard Biener <rguenther@suse.de>
18714
18715 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18716 (extract_and_process_scc_for_name): not here.
18717 (cond_dom_walker::before_dom_children): Only process
18718 stmts that end the BB in interesting ways.
18719 (run_scc_vn): Mark param uses as visited.
18720
18721 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18722
18723 * config/arm/arm.md (arith_shiftsi): Do not predicate for
18724 arm_restrict_it.
18725
18726 2014-05-20 Nick Clifton <nickc@redhat.com>
18727
18728 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18729 (msp430_gimplify_va_arg_expr): New function.
18730 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
18731
18732 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
18733 operand 0 in order to prevent confusion about the number of
18734 registers involved.
18735
18736 2014-05-20 Richard Biener <rguenther@suse.de>
18737
18738 PR tree-optimization/61221
18739 * tree-ssa-pre.c (el_to_update): Remove.
18740 (eliminate_dom_walker::before_dom_children): Handle released
18741 VDEFs by value-numbering them to the associated VUSE. Update
18742 stmt immediately for substituted call address.
18743 (eliminate): Remove delayed stmt updating code.
18744 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
18745 possibly late re-numbered vuses.
18746 (vn_reference_lookup_2): Adjust.
18747 (vn_reference_lookup_pieces): Likewise.
18748 (vn_reference_lookup): Likewise.
18749
18750 2014-05-20 Richard Biener <rguenther@suse.de>
18751
18752 * config.gcc: Remove need_64bit_hwint.
18753 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
18754 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
18755 it to be true.
18756 * config.in: Regenerate.
18757 * configure: Likewise.
18758
18759 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
18760
18761 * doc/extend.texi: Create Label Attributes section,
18762 move all label attributes into it and reference it.
18763
18764 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
18765
18766 * arm.c (thumb1_reorg): When scanning backwards skip anything
18767 that's not a proper insn.
18768
18769 2014-05-19 Richard Biener <rguenther@suse.de>
18770
18771 PR tree-optimization/61221
18772 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18773 Do nothing for unreachable blocks.
18774 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
18775 Improve unreachability detection.
18776
18777 2014-05-19 Richard Biener <rguenther@suse.de>
18778
18779 PR tree-optimization/61209
18780 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
18781
18782 2014-05-19 Nick Clifton <nickc@redhat.com>
18783
18784 * except.c (init_eh): Fix computation of builtin setjmp buffer
18785 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
18786
18787 2014-05-19 Richard Biener <rguenther@suse.de>
18788
18789 PR tree-optimization/61184
18790 * tree-vrp.c (is_negative_overflow_infinity): Use
18791 TREE_OVERFLOW_P and do that check first.
18792 (is_positive_overflow_infinity): Likewise.
18793 (is_overflow_infinity): Likewise.
18794 (vrp_operand_equal_p): Properly treat operands with
18795 differing overflow as not equal.
18796
18797 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
18798
18799 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
18800 shift simplification where it was intended.
18801
18802 2014-05-19 Christian Bruel <christian.bruel@st.com>
18803
18804 PR target/61195
18805 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
18806
18807 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
18808
18809 PR target/61084
18810 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
18811 than wide_int.
18812
18813 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18814
18815 * reg-notes.def (CROSSING_JUMP): Likewise.
18816 * rtl.h (rtx_def): Update comment for jump flag.
18817 (CROSSING_JUMP_P): Define.
18818 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
18819 of a REG_CROSSING_JUMP note.
18820 * cfghooks.c (tidy_fallthru_edges): Likewise.
18821 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
18822 * emit-rtl.c (try_split): Likewise.
18823 * haifa-sched.c (sched_create_recovery_edges): Likewise.
18824 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
18825 * jump.c (redirect_jump_2): Likewise.
18826 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
18827 (relax_delay_slots): Likewise.
18828 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
18829 (bbit_di): Likewise.
18830 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
18831 * config/sh/sh.md (jump_compact): Likewise.
18832 * bb-reorder.c (rotate_loop): Likewise.
18833 (pass_duplicate_computed_gotos::execute): Likewise.
18834 (add_reg_crossing_jump_notes): Rename to...
18835 (update_crossing_jump_flags): ...this.
18836 (pass_partition_blocks::execute): Update accordingly.
18837
18838 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18839
18840 * tree.h: Remove extraneous template <>.
18841
18842 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18843
18844 * ipa.c (symtab_remove_unreachable_nodes): Remove
18845 symbol from comdat group if its body was eliminated.
18846 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
18847 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
18848 (symtab_unregister_node): ... this one.
18849 (verify_symtab_base): More strict checking of comdats.
18850 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
18851
18852 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18853
18854 * tree-pass.h (make_pass_ipa_comdats): New pass.
18855 * timevar.def (TV_IPA_COMDATS): New timevar.
18856 * passes.def (pass_ipa_comdats): Add.
18857 * Makefile.in (OBJS): Add ipa-comdats.o
18858 * ipa-comdats.c: New file.
18859
18860 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18861
18862 * ipa.c (update_visibility_by_resolution_info): New function.
18863 (function_and_variable_visibility): Use it.
18864
18865 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18866
18867 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
18868 New functions.
18869 (FOR_EACH_DEFINED_SYMBOL): New macro.
18870 (varpool_first_static_initializer, varpool_next_static_initializer,
18871 varpool_first_defined_variable, varpool_next_defined_variable):
18872 Fix comments.
18873 (symtab_in_same_comdat_p): Correctly deal with inline functions.
18874
18875 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18876
18877 * ggc-page.c (ggc_handle_finalizers): Add comment.
18878
18879 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18880
18881 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
18882 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
18883 (ggc_internal_cleared_alloc): Likewise.
18884 * ggc-page.c (finalizer): New class.
18885 (vec_finalizer): Likewise.
18886 (globals::finalizers): New member.
18887 (globals::vec_finalizers): Likewise.
18888 (ggc_internal_alloc): Record the finalizer if any for the block being
18889 allocated.
18890 (ggc_handle_finalizers): New function.
18891 (ggc_collect): Call ggc_handle_finalizers.
18892 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
18893 finalizer.
18894 (ggc_internal_cleared_alloc): Likewise.
18895 (finalize): New function.
18896 (need_finalization_p): Likewise.
18897 (ggc_alloc): Install the type's destructor as the finalizer if it
18898 might do something.
18899 (ggc_cleared_alloc): Likewise.
18900 (ggc_vec_alloc): Likewise.
18901 (ggc_cleared_vec_alloc): Likewise.
18902
18903 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18904
18905 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
18906
18907 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18908
18909 * alias.c (record_alias_subset): Adjust.
18910 * bitmap.c (bitmap_element_allocate): Likewise.
18911 (bitmap_gc_alloc_stat): Likewise.
18912 * cfg.c (init_flow): Likewise.
18913 (alloc_block): Likewise.
18914 (unchecked_make_edge): Likewise.
18915 * cfgloop.c (alloc_loop): Likewise.
18916 (flow_loops_find): Likewise.
18917 (rescan_loop_exit): Likewise.
18918 * cfgrtl.c (init_rtl_bb_info): Likewise.
18919 * cgraph.c (insert_new_cgraph_node_version): Likewise.
18920 (cgraph_allocate_node): Likewise.
18921 (cgraph_create_edge_1): Likewise.
18922 (cgraph_allocate_init_indirect_info): Likewise.
18923 * cgraphclones.c (cgraph_clone_edge): Likewise.
18924 * cgraphunit.c (add_asm_node): Likewise.
18925 (init_lowered_empty_function): Likewise.
18926 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
18927 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
18928 (alpha_use_linkage): Likewise.
18929 * config/arc/arc.c (arc_init_machine_status): Likewise.
18930 * config/arm/arm.c (arm_init_machine_status): Likewise.
18931 * config/avr/avr.c (avr_init_machine_status): Likewise.
18932 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
18933 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
18934 * config/cris/cris.c (cris_init_machine_status): Likewise.
18935 * config/darwin.c (machopic_indirection_name): Likewise.
18936 (darwin_build_constant_cfstring): Likewise.
18937 (darwin_enter_string_into_cfstring_table): Likewise.
18938 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
18939 * config/frv/frv.c (frv_init_machine_status): Likewise.
18940 * config/i386/i386.c (get_dllimport_decl): Likewise.
18941 (ix86_init_machine_status): Likewise.
18942 (assign_386_stack_local): Likewise.
18943 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18944 (i386_pe_maybe_record_exported_symbol): Likewise.
18945 (i386_pe_record_stub): Likewise.
18946 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
18947 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
18948 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
18949 (m32c_note_pragma_address): Likewise.
18950 * config/mep/mep.c (mep_init_machine_status): Likewise.
18951 (mep_note_pragma_flag): Likewise.
18952 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
18953 (mips16_local_alias): Likewise.
18954 (mips_init_machine_status): Likewise.
18955 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
18956 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
18957 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
18958 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
18959 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
18960 * config/pa/pa.c (pa_init_machine_status): Likewise.
18961 (pa_get_deferred_plabel): Likewise.
18962 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
18963 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
18964 (rs6000_init_machine_status): Likewise.
18965 (output_toc): Likewise.
18966 * config/s390/s390.c (s390_init_machine_status): Likewise.
18967 * config/score/score.c (score_output_external): Likewise.
18968 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
18969 * config/spu/spu.c (spu_init_machine_status): Likewise.
18970 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
18971 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
18972 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
18973 * coverage.c (coverage_end_function): Likewise.
18974 * dbxout.c (dbxout_init): Likewise.
18975 * doc/gty.texi: Don't mention variable_size attribute.
18976 * dwarf2cfi.c (new_cfi): Adjust.
18977 (new_cfi_row): Likewise.
18978 (copy_cfi_row): Likewise.
18979 (create_cie_data): Likewise.
18980 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
18981 (new_loc_descr): Likewise.
18982 (find_AT_string_in_table): Likewise.
18983 (add_addr_table_entry): Likewise.
18984 (new_die): Likewise.
18985 (add_var_loc_to_decl): Likewise.
18986 (clone_die): Likewise.
18987 (clone_as_declaration): Likewise.
18988 (break_out_comdat_types): Likewise.
18989 (new_loc_list): Likewise.
18990 (add_loc_descr_to_each): Likewise.
18991 (add_location_or_const_value_attribute): Likewise.
18992 (add_linkage_name): Likewise.
18993 (lookup_filename): Likewise.
18994 (dwarf2out_var_location): Likewise.
18995 (new_line_info_table): Likewise.
18996 (dwarf2out_init): Likewise.
18997 (mem_loc_descriptor): Likewise.
18998 (loc_descriptor): Likewise.
18999 (add_const_value_attribute): Likewise.
19000 (tree_add_const_value_attribute): Likewise.
19001 (comp_dir_string): Likewise.
19002 (dwarf2out_vms_debug_main_pointer): Likewise.
19003 (string_cst_pool_decl): Likewise.
19004 * emit-rtl.c (set_mem_attrs): Likewise.
19005 (get_reg_attrs): Likewise.
19006 (start_sequence): Likewise.
19007 (init_emit): Likewise.
19008 (init_emit_regs): Likewise.
19009 * except.c (init_eh_for_function): Likewise.
19010 (gen_eh_region): Likewise.
19011 (gen_eh_region_catch): Likewise.
19012 (gen_eh_landing_pad): Likewise.
19013 (add_call_site): Likewise.
19014 * function.c (add_frame_space): Likewise.
19015 (insert_temp_slot_address): Likewise.
19016 (assign_stack_temp_for_type): Likewise.
19017 (get_hard_reg_initial_val): Likewise.
19018 (allocate_struct_function): Likewise.
19019 (prepare_function_start): Likewise.
19020 (types_used_by_var_decl_insert): Likewise.
19021 * gengtype.c (variable_size_p): Remove function.
19022 (enum alloc_quantity): Remove enum.
19023 (write_typed_alloc_def): Remove function.
19024 (write_typed_struct_alloc_def): Likewise.
19025 (write_typed_typedef_alloc_def): Likewise.
19026 (write_typed_alloc_defns): Likewise.
19027 (main): Adjust.
19028 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19029 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19030 * ggc.h (ggc_alloc): new function.
19031 (ggc_cleared_alloc): Likewise.
19032 (ggc_vec_alloc): Template on type of vector element, and remove
19033 element size argument.
19034 (ggc_cleared_vec_alloc): Likewise.
19035 * gimple.c (gimple_build_omp_for): Adjust.
19036 (gimple_copy): Likewise.
19037 * ipa-cp.c (get_replacement_map): Likewise.
19038 (find_aggregate_values_for_callers_subset): Likewise.
19039 (known_aggs_to_agg_replacement_list): Likewise.
19040 * ipa-devirt.c (get_odr_type): Likewise.
19041 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19042 (read_agg_replacement_chain): Likewise.
19043 * loop-iv.c (get_simple_loop_desc): Likewise.
19044 * lto-cgraph.c (input_node_opt_summary): Likewise.
19045 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19046 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19047 (input_eh_region): Likewise.
19048 (input_eh_lp): Likewise.
19049 (input_cfg): Likewise.
19050 * optabs.c (set_optab_libfunc): Likewise.
19051 (init_tree_optimization_optabs): Likewise.
19052 (set_conv_libfunc): Likewise.
19053 * passes.c (do_per_function_toporder): Likewise.
19054 * rtl.h: Don't use variable_size gty attribute.
19055 * sese.c (if_region_set_false_region): Adjust.
19056 * stringpool.c (gt_pch_save_stringpool): Likewise.
19057 * target-globals.c (save_target_globals): Likewise.
19058 * toplev.c (general_init): Likewise.
19059 * trans-mem.c (record_tm_replacement): Likewise.
19060 (split_bb_make_tm_edge): Likewise.
19061 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19062 * tree-data-ref.h (lambda_vector_new): Likewise.
19063 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19064 * tree-iterator.c (tsi_link_before): Likewise.
19065 (tsi_link_after): Likewise.
19066 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19067 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19068 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19069 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19070 * tree-ssa.c (init_tree_ssa): Adjust.
19071 * tree-ssanames.c (set_range_info): Likewise.
19072 (get_ptr_info): Likewise.
19073 (duplicate_ssa_name_ptr_info): Likewise.
19074 (duplicate_ssa_name_range_info): Likewise.
19075 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19076 (unpack_ts_fixed_cst_value_fields): Likewise.
19077 * tree.c (build_fixed): Likewise.
19078 (build_real): Likewise.
19079 (build_string): Likewise.
19080 (decl_priority_info): Likewise.
19081 (decl_debug_expr_insert): Likewise.
19082 (decl_value_expr_insert): Likewise.
19083 (decl_debug_args_insert): Likewise.
19084 (type_hash_add): Likewise.
19085 (build_omp_clause): Likewise.
19086 * ubsan.c (decl_for_type_insert): Likewise.
19087 * varasm.c (get_unnamed_section): Likewise.
19088 (get_noswitch_section): Likewise.
19089 (get_section): Likewise.
19090 (get_block_for_section): Likewise.
19091 (create_block_symbol): Likewise.
19092 (build_constant_desc): Likewise.
19093 (create_constant_pool): Likewise.
19094 (force_const_mem): Likewise.
19095 (record_tm_clone_pair): Likewise.
19096 * varpool.c (varpool_create_empty_node): Likewise.
19097
19098 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19099
19100 * dwarf2out.c (tree_add_const_value_attribute): Call
19101 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19102 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19103 instead of ggc_internal_<x>alloc_stat.
19104 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19105 (ggc_realloc): Likewise.
19106 * ggc-none.c (ggc_internal_alloc): Likewise.
19107 (ggc_internal_cleared_alloc): Likewise.
19108 * ggc-page.c: Likewise.
19109 * ggc.h (ggc_internal_alloc_stat): Likewise.
19110 (ggc_internal_alloc): Remove macro.
19111 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19112 (ggc_internal_cleared_alloc): Remove macro.
19113 (GGC_RESIZEVEC): Adjust.
19114 (ggc_resizevar): Remove macro.
19115 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19116 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19117 (ggc_internal_vec_cleared_alloc): Remove macro.
19118 (ggc_alloc_atomic_stat): Drop _stat suffix.
19119 (ggc_alloc_atomic): Remove macro.
19120 (ggc_alloc_cleared_atomic): Remove macro.
19121 (ggc_alloc_string_stat): Drop _stat suffix.
19122 (ggc_alloc_string): Remove macro.
19123 (ggc_alloc_rtx_def_stat): Adjust.
19124 (ggc_alloc_tree_node_stat): Likewise.
19125 (ggc_alloc_cleared_tree_node_stat): Likewise.
19126 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19127 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19128 * gimple.c (gimple_build_omp_for): Likewise.
19129 (gimple_copy): Likewise.
19130 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19131 * toplev.c (realloc_for_line_map): Adjust.
19132 * tree-data-ref.h (lambda_vector_new): Likewise.
19133 * tree-phinodes.c (allocate_phi_node): Likewise.
19134 * tree.c (grow_tree_vec_stat): Likewise.
19135 * vec.h (va_gc::reserve): Adjust.
19136
19137 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19138
19139 * config/microblaze/microblaze.c (break_handler): New Declaration.
19140 (microblaze_break_function_p,microblaze_is_break_handler): New.
19141 (compute_frame_size): Use microblaze_break_function_p.
19142 Add the test of break_handler.
19143 (microblaze_function_prologue) : Add the test of variable
19144 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19145 (microblaze_function_epilogue) : Add the test of break_handler.
19146 (microblaze_globalize_label) : Add the test of break_handler.
19147 Check the name by BREAK_HANDLER_NAME.
19148
19149 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19150
19151 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19152 microblaze_is_break_handler test.
19153 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19154 Use SYMBOL_REF_DECL.
19155
19156 * config/microblaze/microblaze-protos.h
19157 (microblaze_break_function_p,microblaze_is_break_handler):
19158 New Declaration.
19159
19160 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19161 new MicroBlaze break_handler functions.
19162
19163 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19164
19165 * doc/extend.texi (Size of an asm): Move node text according
19166 to its @menu entry position.
19167
19168 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19169
19170 PR tree-optimization/61140
19171 PR tree-optimization/61150
19172 PR tree-optimization/61197
19173 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19174
19175 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19176
19177 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19178
19179 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19180
19181 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19182 __SIZEOF_INT128__ is defined.
19183
19184 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19185
19186 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19187 (rs6000_delegitimize_address): Use it.
19188
19189 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19190
19191 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19192 inplace argument. Store the new address in the original MEM when true.
19193 * emit-rtl.c (change_address_1): Likewise.
19194 (adjust_address_1, adjust_automodify_address_1, offset_address):
19195 Update accordingly.
19196 * rtl.h (plus_constant): Add an inplace argument.
19197 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19198 when true. Avoid generating (plus X (const_int 0)).
19199 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19200 in-place. Pass true to plus_constant.
19201 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19202
19203 2014-05-16 Dehao Chen <dehao@google.com>
19204
19205 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19206
19207 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19208
19209 PR target/54089
19210 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19211 patterns.
19212 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19213
19214 2014-05-16 Dehao Chen <dehao@google.com>
19215
19216 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19217 optimize_function_for_size_p.
19218 * regs.h (REG_FREQ_FROM_BB): Likewise.
19219
19220 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19221
19222 PR target/51244
19223 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19224 negt_reg_operand cases.
19225 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19226 predicate.
19227 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19228
19229 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19230
19231 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19232 target variants.
19233
19234 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19235
19236 Revert:
19237 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19238
19239 * tree-cfg.c (dump_function_to_file): Dump the return type of
19240 functions, in a line to itself before the function body, mimicking
19241 the layout of a C function.
19242
19243 2014-05-16 Dehao Chen <dehao@google.com>
19244
19245 * cfghooks.c (make_forwarder_block): Use direct computation to
19246 get fall-through edge's count and frequency.
19247
19248 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19249
19250 * config/arc/arc.c (arc_init): Fix typo in error message.
19251 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19252 (split_stack_prologue_scratch_regno): Likewise.
19253 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19254 word from error message.
19255
19256 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19257
19258 * ira-costs.c: Fix typo in comment.
19259
19260 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19261
19262 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19263
19264 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19265
19266 * varpool.c (dump_varpool_node): Dump write-only flag.
19267 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19268 write-only flag.
19269 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19270 write-only variables.
19271 * ipa.c (process_references): New function.
19272 (set_readonly_bit): New function.
19273 (set_writeonly_bit): New function.
19274 (clear_addressable_bit): New function.
19275 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19276 fix handling of aliases.
19277 * cgraph.h (struct varpool_node): Add writeonly flag.
19278
19279 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19280
19281 PR rtl-optimization/60969
19282 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19283 Calculate costs for this case.
19284
19285 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19286
19287 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19288 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19289
19290 2014-05-16 Richard Biener <rguenther@suse.de>
19291
19292 PR tree-optimization/61194
19293 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19294 bool patterns ending in a COND_EXPR.
19295
19296 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19297
19298 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19299
19300 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19301
19302 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19303 where we were unable to cost an RTX.
19304
19305 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19306
19307 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19308 HIGH, LO_SUM.
19309
19310 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19311 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19312
19313 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19314
19315 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19316 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19317
19318 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19319 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19320
19321 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19322 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19323
19324 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19325 operators.
19326
19327 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19328 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19329
19330 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19331 DIV/MOD.
19332
19333 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19334 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19335
19336 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19337 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19338
19339 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19340 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19341
19342 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19343 rotates and shifts.
19344
19345 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19346 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19347
19348 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19349 ZERO_EXTEND and SIGN_EXTEND better.
19350
19351 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19352 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19353
19354 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19355 logical operations.
19356
19357 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19358 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19359
19360 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19361 costs when costing loads and stores to memory.
19362
19363 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19364 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19365
19366 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19367 for SET RTX.
19368
19369 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19370
19371 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19372
19373 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19374 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19375
19376 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19377 to...
19378 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19379 well formed.
19380 (aarch64_rtx_mult_cost): New.
19381 (aarch64_rtx_costs): Use it, refactor as appropriate.
19382
19383 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19384 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19385
19386 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19387 emit instructions, return number of instructions which would
19388 be emitted.
19389 (aarch64_add_constant): Update call to aarch64_build_constant.
19390 (aarch64_output_mi_thunk): Likewise.
19391 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19392 a CONST_DOUBLE.
19393
19394 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19395
19396 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19397 (TARGET_RTX_COSTS): Call it.
19398
19399 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19400
19401 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19402 (cortexa57_vector_cost): Likewise.
19403 (cortexa57_tunings): Use them.
19404
19405 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19406
19407 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19408 (cpu_addrcost_table): Use it.
19409 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19410 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19411 move it.
19412
19413 2014-05-16 Richard Biener <rguenther@suse.de>
19414
19415 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19416 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19417 (visit_phi): Ignore edges marked as not executable.
19418 (class cond_dom_walker): New.
19419 (cond_dom_walker::before_dom_children): Value-number
19420 control statements and mark successor edges as not
19421 executable if possible.
19422 (run_scc_vn): First walk all control statements in
19423 dominator order, marking edges as not executable.
19424 * tree-inline.c (copy_edges_for_bb): Be not confused
19425 about random edge flags.
19426
19427 2014-05-16 Richard Biener <rguenther@suse.de>
19428
19429 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19430
19431 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19432
19433 PR target/61193
19434 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19435 (__TM_simple_begin): Use it.
19436 (__TM_begin): Likewise.
19437
19438 2014-05-15 Martin Jambor <mjambor@suse.cz>
19439
19440 PR ipa/61085
19441 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19442 type_preserved flag when the indirect edge is polymorphic.
19443
19444 2014-05-15 Martin Jambor <mjambor@suse.cz>
19445
19446 PR tree-optimization/61090
19447 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19448 build_ref_for_model.
19449
19450 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19451
19452 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19453 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19454
19455 2014-05-15 Jakub Jelinek <jakub@redhat.com>
19456
19457 PR tree-optimization/61158
19458 * fold-const.c (fold_binary_loc): If X is zero-extended and
19459 shiftc >= prec, make sure zerobits is all ones instead of
19460 invoking undefined behavior.
19461
19462 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19463
19464 * regcprop.h: New file.
19465 * regcprop.c (skip_debug_insn_p): New decl.
19466 (replace_oldest_value_reg): Check skip_debug_insn_p.
19467 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19468 * shrink-wrap.c: Include regcprop.h.
19469 (prepare_shrink_wrap): Call
19470 copyprop_hardreg_forward_bb_without_debug_insn.
19471
19472 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19473
19474 * shrink-wrap.h: Update comment.
19475 * shrink-wrap.c: Update comment.
19476 (next_block_for_reg): Rename to live_edge_for_reg.
19477 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19478 (move_insn_for_shrink_wrap): Split live_edge.
19479 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19480
19481 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19482
19483 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19484 Delete.
19485 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19486 * config/sparc/sparc.md (fptype_ut699): New attribute.
19487 (in_branch_delay): Return false if -mfix-ut699 is specified and
19488 fptype_ut699 is set to single.
19489 (truncdfsf2): Add fptype_ut699 attribute.
19490 (fix_truncdfsi2): Likewise.
19491 (floatsisf2): Change fptype attribute.
19492 (fix_truncsfsi2): Likewise.
19493 (negtf2_notv9): Delete.
19494 (negtf2_v9): Likewise.
19495 (negtf2_hq): New instruction.
19496 (negtf2): New instruction and splitter.
19497 (negdf2_notv9): Rewrite.
19498 (abstf2_notv9): Delete.
19499 (abstf2_hq_v9): Likewise.
19500 (abstf2_v9): Likewise.
19501 (abstf2_hq): New instruction.
19502 (abstf2): New instruction and splitter.
19503 (absdf2_notv9): Rewrite.
19504
19505 2014-05-14 Cary Coutant <ccoutant@google.com>
19506
19507 PR debug/61013
19508 * opts.c (common_handle_option): Don't special-case "-g".
19509 (set_debug_level): Default to at least level 2 with "-g".
19510
19511 2014-05-14 DJ Delorie <dj@redhat.com>
19512
19513 * config/msp430/msp430.c (msp430_builtin): Add
19514 MSP430_BUILTIN_DELAY_CYCLES.
19515 (msp430_init_builtins): Register void __delay_cycles(long long).
19516 (msp430_builtin_decl): Add it.
19517 (cg_magic_constant): New.
19518 (msp430_expand_delay_cycles): New.
19519 (msp430_expand_builtin): Call it.
19520 (msp430_print_operand_raw): Change integer printing from "int" to
19521 HOST_WIDE_INT.
19522 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19523 (delay_cycles_start): New.
19524 (delay_cycles_end): New.
19525 (delay_cycles_32): New.
19526 (delay_cycles_32x): New.
19527 (delay_cycles_16): New.
19528 (delay_cycles_16x): New.
19529 (delay_cycles_2): New.
19530 (delay_cycles_1): New.
19531 * doc/extend.texi: Document __delay_cycles().
19532
19533 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19534
19535 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19536 length attribute computation.
19537
19538 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19539
19540 PR debug/61188
19541 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19542
19543 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
19544
19545 PR target/61084
19546 * config/sparc/sparc.md: Fix types of low and high in DI constant
19547 splitter. Use gen_int_mode in some other splitters.
19548
19549 2014-05-14 Martin Jambor <mjambor@suse.cz>
19550
19551 PR ipa/60897
19552 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19553
19554 2014-05-14 James Norris <jnorris@codesourcery.com>
19555
19556 * omp-low.c (expand_parallel_call): Remove shadow variable.
19557 (expand_omp_taskreg): Likewise.
19558
19559 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19560
19561 * common/config/i386/i386-common.c
19562 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19563 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19564 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19565 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19566 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19567 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19568 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19569 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19570 xsavecintrin.h, xsavesintrin.h.
19571 (x86_64-*-*): Ditto.
19572 * config/i386/clflushoptintrin.h: New.
19573 * config/i386/xsavecintrin.h: Ditto.
19574 * config/i386/xsavesintrin.h: Ditto.
19575 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19576 (bit_XSAVES): Ditto.
19577 (bit_XSAVES): Ditto.
19578 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19579 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19580 -mno-clflushopt.
19581 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19582 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19583 OPTION_MASK_ISA_XSAVES.
19584 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19585 -mxsavec, -mxsaves.
19586 (PTA_CLFLUSHOPT) Define.
19587 (PTA_XSAVEC): Ditto.
19588 (PTA_XSAVES): Ditto.
19589 (ix86_option_override_internal): Handle new options.
19590 (ix86_valid_target_attribute_inner_p): Ditto.
19591 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19592 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19593 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19594 (bdesc_special_args): Add __builtin_ia32_xsaves,
19595 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19596 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19597 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19598 (ix86_expand_builtin): Handle new builtins.
19599 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19600 (TARGET_CLFLUSHOPT_P): Ditto.
19601 (TARGET_XSAVEC): Ditto.
19602 (TARGET_XSAVEC_P): Ditto.
19603 (TARGET_XSAVES): Ditto.
19604 (TARGET_XSAVES_P): Ditto.
19605 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19606 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19607 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19608 (ANY_XRSTOR): New.
19609 (ANY_XRSTOR64): Ditto.
19610 (xrstor): Ditto.
19611 (xrstor): Change into <xrstor>.
19612 (xrstor_rex64): Change into <xrstor>_rex64.
19613 (xrstor64): Change into <xrstor>64
19614 (clflushopt): New.
19615 * config/i386/i386.opt (mclflushopt): New.
19616 (mxsavec): Ditto.
19617 (mxsaves): Ditto.
19618 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19619 xsavecintrin.h.
19620 * doc/invoke.texi: Document new options.
19621
19622 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19623
19624 PR rtl-optimization/60866
19625 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19626 Default it to -1. Pass it down to init_simplejump_data.
19627 (init_simplejump_data): New parameter old_seqno. Pass it down
19628 to get_seqno_for_a_jump.
19629 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19630 initializing new jump seqno as a last resort. Add comment.
19631 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19632 jump and pass it down to sel_init_new_insn.
19633 (sel_redirect_edge_and_branch_force): Likewise.
19634
19635 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19636
19637 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19638 shifted values to avoid build warning.
19639
19640 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19641
19642 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19643 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19644 (cfg_layout_merge_blocks): Likewise.
19645 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19646
19647 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19648
19649 PR rtl-optimization/60901
19650 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19651 bb predecessor belongs to the same scheduling region. Adjust comment.
19652
19653 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19654
19655 * doc/sourcebuild.texi: (dfp_hw): Document.
19656 (p8vector_hw): Likewise.
19657 (powerpc_eabi_ok): Likewise.
19658 (powerpc_elfv2): Likewise.
19659 (powerpc_htm_ok): Likewise.
19660 (ppc_recip_hw): Likewise.
19661 (vsx_hw): Likewise.
19662
19663 2014-05-13 Cary Coutant <ccoutant@google.com>
19664
19665 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19666
19667 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19668
19669 * gengtype-parse.c (require3): Eliminate in favor of...
19670 (require4): New.
19671 (require_template_declaration): Update to support optional single *
19672 on a type.
19673
19674 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19675 (create_user_defined_type): Handle a single level of explicit
19676 pointerness within template arguments.
19677 (struct write_types_data): Add field "kind".
19678 (filter_type_name): Handle "*" character.
19679 (write_user_func_for_structure_ptr): Require a write_types_data
19680 rather than just a prefix string, so that we can look up the kind
19681 of the wtd and use it as an index into wrote_user_func_for_ptr,
19682 ensuring that such functions are written at most once. Support
19683 subclasses by invoking the marking function of the ultimate base class.
19684 (write_user_func_for_structure_body): Require a write_types_data
19685 rather than just a prefix string, so that we can pass this to
19686 write_user_func_for_structure_ptr.
19687 (write_func_for_structure): Likewise.
19688 (ggc_wtd): Add initializer of new "kind" field.
19689 (pch_wtd): Likewise.
19690
19691 * gengtype.h (enum write_types_kinds): New.
19692 (struct type): Add field wrote_user_func_for_ptr to the "s"
19693 union member.
19694
19695 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19696
19697 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19698 instead of const_binop.
19699 (fold_binary_loc): Likewise.
19700
19701 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19702
19703 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19704 calculation to match get_ref_base_and_extent.
19705
19706 2014-05-13 Catherine Moore <clm@codesourcery.com>
19707 Sandra Loosemore <sandra@codesourcery.com>
19708
19709 * configure.ac: Fix assembly for explicit JALR relocation check.
19710 * configure: Regenerate.
19711
19712 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19713
19714 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19715 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19716 Remove associated type declarations and initialisations.
19717 (arm_expand_neon_builtin): Likewise.
19718 (neon_emit_pair_result_insn): Delete.
19719 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19720 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19721 (neon_vzip<mode>): Likewise.
19722 (neon_vuzp<mode>): Likewise.
19723
19724 2014-05-13 Richard Biener <rguenther@suse.de>
19725
19726 PR ipa/60973
19727 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
19728 it needs revisiting whether the call still may be tail-called.
19729
19730 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19731
19732 * rtl.def (SYMBOL_REF): Remove middle "0" field.
19733 * rtl.h (block_symbol): Reduce number of fields to 2.
19734 (rtx_def): Add u2.symbol_ref_flags.
19735 (SYMBOL_REF_FLAGS): Use it.
19736 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
19737 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
19738 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
19739 Lower index of SYMBOL_REF_DATA.
19740 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
19741 Print SYMBOL_REF_FLAGS at the same time.
19742 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
19743
19744 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19745
19746 * rtl.def (VAR_LOCATION): Remove "i" field.
19747 * rtl.h (rtx_def): Add u2.var_location_status.
19748 (PAT_VAR_LOCATION_STATUS): Use it.
19749 (gen_rtx_VAR_LOCATION): Declare.
19750 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
19751 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
19752 * var-tracking.c (emit_note_insn_var_location): Remove casts.
19753
19754 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19755
19756 * rtl.def (scratch): Fix outdated comment and remove "0" field.
19757 * gengtype.c (adjust_field_rtx_def): Update accordingly.
19758
19759 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19760
19761 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
19762 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
19763 * rtl.h (rtx_def): Add insn_uid to u2 field.
19764 (RTX_FLAG_CHECK8): Delete in favor of...
19765 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
19766 (INSN_DELETED_P): Update accordingly.
19767 (INSN_UID): Use u2.insn_uid.
19768 (INSN_CHAIN_CODE_P): Define.
19769 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
19770 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
19771 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
19772 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
19773 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
19774 indices accordingly.
19775 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
19776 Update indices for insn-chain rtxes.
19777 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
19778 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
19779 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
19780 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
19781 * combine.c (try_combine): Likewise.
19782 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19783
19784 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19785
19786 * rtl.def (REG): Remove middle field.
19787 * rtl.h (rtx_def): Add orignal_regno to u2.
19788 (ORIGINAL_REGNO): Use it instead of field 1.
19789 (REG_ATTRS): Lower field index accordingly.
19790 * gengtype.c (adjust_field_rtx_def): Remove handling of
19791 ORIGINAL_REGNO. Move REG_ATTRS index down.
19792 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
19793 code that prints the REGNO.
19794
19795 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19796
19797 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
19798 GENERATOR_FILE.
19799
19800 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19801
19802 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
19803
19804 2014-05-13 Bin Cheng <bin.cheng@arm.com>
19805
19806 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
19807 (alloc_iv): Lower base expressions containing ADDR_EXPR.
19808
19809 2014-05-13 Ian Bolton <ian.bolton@arm.com>
19810
19811 * config/aarch64/aarch64-protos.h
19812 (aarch64_hard_regno_caller_save_mode): New prototype.
19813 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
19814 New function.
19815 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
19816
19817 2014-05-13 Christian Bruel <christian.bruel@st.com>
19818
19819 * target.def (mode_switching): New hook vector.
19820 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
19821 (mode_exit, modepriority_to_mode): Likewise.
19822 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
19823 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19824 * target.h: Include tm.h and hard-reg-set.h.
19825 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
19826 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
19827 * doc/tm.texi Regenerate.
19828 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19829 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19830 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
19831 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
19832 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19833 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19834 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
19835 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
19836 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
19837 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
19838 (ix86_emit_mode_set): Hookify.
19839 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
19840 Delete.
19841 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19842 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
19843 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
19844 (epiphany_mode_priority_to_mode): Remove declaration.
19845 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
19846 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
19847 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
19848 Likewise.
19849 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
19850 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
19851 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
19852
19853 2014-05-13 Jakub Jelinek <jakub@redhat.com>
19854
19855 PR target/61060
19856 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
19857 is const0_rtx, return immediately. Don't test count == 0 when
19858 it is always true.
19859
19860 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19861
19862 * Makefile.in: add shrink-wrap.o.
19863 * config/i386/i386.c: include "shrink-wrap.h"
19864 * function.c: Likewise.
19865 (requires_stack_frame_p, next_block_for_reg,
19866 move_insn_for_shrink_wrap, prepare_shrink_wrap,
19867 dup_block_and_redirect): Move to shrink-wrap.c
19868 (thread_prologue_and_epilogue_insns): Extract three code segments
19869 as functions in shrink-wrap.c
19870 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
19871 shrink-wrap.h
19872 * shrink-wrap.c: New file.
19873 * shrink-wrap.h: New file.
19874
19875 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19876
19877 * doc/extend.texi: Reflect current numbers of pragmas. Remove
19878 reference to Solaris.
19879
19880 2014-05-12 Mike Stump <mikestump@comcast.net>
19881
19882 PR other/31778
19883 * genattrtab.c (filename): Add.
19884 (convert_set_attr_alternative): Improve error message.
19885 (check_defs): Restore read_md_filename for error messages.
19886 (gen_insn): Save filename.
19887
19888 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
19889
19890 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
19891 -fno-local-ivars and -fivar-visibility.
19892 * c-family/c.opt: Make -Wshadow also implicitly enable
19893 -Wshadow-ivar.
19894
19895 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19896
19897 * doc/tm.texi: Remove reference to deleted macro.
19898 * doc/tm.texi.in: Likewise.
19899
19900 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19901
19902 PR target/60991
19903 * config/avr/avr.c (avr_out_store_psi): Use correct constant
19904 to restore Y.
19905
19906 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
19907
19908 PR libgcc/61152
19909 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
19910 * config/arm/aout.h (License): Same.
19911 * config/arm/bpabi.h (License): Same.
19912 * config/arm/elf.h (License): Same.
19913 * config/arm/linux-elf.h (License): Same.
19914 * config/arm/linux-gas.h (License): Same.
19915 * config/arm/netbsd-elf.h (License): Same.
19916 * config/arm/uclinux-eabi.h (License): Same.
19917 * config/arm/uclinux-elf.h (License): Same.
19918 * config/arm/vxworks.h (License): Same.
19919
19920 2014-05-11 Jakub Jelinek <jakub@redhat.com>
19921
19922 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
19923 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
19924 number of operands to 3.
19925 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
19926 * tree-nested.c (convert_nonlocal_omp_clauses,
19927 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
19928 * gimplify.c (gimplify_scan_omp_clauses): Handle
19929 OMP_CLAUSE_LINEAR_STMT.
19930 * omp-low.c (lower_rec_input_clauses): Fix typo.
19931 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
19932 cast between Fortran boolean_type_node and C _Bool if
19933 needed.
19934
19935 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
19936
19937 PR tree-optimization/61136
19938 * wide-int.h (multiple_of_p): Define a version that doesn't return
19939 the quotient.
19940 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
19941 integer_zerop/const_binop pair.
19942 (multiple_of_p): Likewise, converting both operands to widest_int
19943 precision.
19944
19945 2014-05-09 Teresa Johnson <tejohnson@google.com>
19946
19947 * cgraphunit.c (analyze_functions): Use correct dump file.
19948
19949 2014-05-09 Florian Weimer <fweimer@redhat.com>
19950
19951 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
19952 expand_used_vars.
19953 (stack_protect_return_slot_p): New function.
19954 (expand_used_vars): Call stack_protect_decl_p and
19955 stack_protect_return_slot_p for -fstack-protector-strong.
19956
19957 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
19958 Andrew Haley <aph@redhat.com>
19959 Richard Sandiford <rdsandiford@googlemail.com>
19960
19961 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
19962 pages.
19963
19964 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
19965
19966 PR middle-end/61111
19967 * fold-const.c (fold_binary_loc): Changed width of mask.
19968
19969 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19970
19971 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
19972 unsigned int initializers for regno_in, regno_out.
19973
19974 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19975
19976 PR target/61055
19977 * config/avr/avr.md (cc): Add new attribute set_vzn.
19978 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
19979 Set cc insn attribute to set_vzn instead of set_zn for alternatives
19980 with INC, DEC or NEG.
19981 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
19982 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
19983 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
19984
19985 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19986
19987 Revert:
19988 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19989
19990 * wide-int.cc (UTItype): Define.
19991 (UDWtype): Define for appropriate W_TYPE_SIZE.
19992
19993 2014-05-09 Richard Biener <rguenther@suse.de>
19994
19995 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
19996 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
19997 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
19998 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
19999 ssa_propagate): Adjust.
20000
20001 2014-05-08 Jeff Law <law@redhat.com>
20002
20003 PR tree-optimization/61009
20004 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20005 tri-state rather than a boolean. When a block is too big to
20006 thread through, inform caller via negative return value.
20007 (thread_across_edge): If a block was too big for normal threading,
20008 then it's too big for a joiner too, so remove temporary equivalences
20009 and return immediately.
20010
20011 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20012 Matthias Klose <doko@ubuntu.com>
20013
20014 PR driver/61106
20015 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20016
20017 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20018
20019 PR target/59952
20020 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20021
20022 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20023
20024 PR target/61092
20025 * config/alpha/alpha.c: Include gimple-iterator.h.
20026 (alpha_gimple_fold_builtin): New function. Move
20027 ALPHA_BUILTIN_UMULH folding from ...
20028 (alpha_fold_builtin): ... here.
20029 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20030
20031 2014-05-08 Wei Mi <wmi@google.com>
20032
20033 PR target/58066
20034 * config/i386/i386.c (ix86_compute_frame_layout): Update
20035 preferred_stack_boundary for call, expanded from tls descriptor.
20036 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20037 to depend on SP register.
20038 (*tls_local_dynamic_base_32_gnu): Ditto.
20039 (*tls_local_dynamic_32_once): Ditto.
20040 (tls_global_dynamic_64_<mode>): Set
20041 ix86_tls_descriptor_calls_expanded_in_cfun.
20042 (tls_local_dynamic_base_64_<mode>): Ditto.
20043 (tls_global_dynamic_32): Set
20044 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20045 to depend on SP register.
20046 (tls_local_dynamic_base_32): Ditto.
20047
20048 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20049
20050 * config/arm/arm_neon.h: Update comment.
20051 * config/arm/neon-docgen.ml: Delete.
20052 * config/arm/neon-gen.ml: Delete.
20053 * doc/arm-neon-intrinsics.texi: Update comment.
20054
20055 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20056
20057 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20058 and v4sf versions.
20059 (vand, vorr, veor, vorn, vbic): Remove.
20060 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20061 iterator.
20062 (neon_vsub_unspec): Likewise.
20063 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20064
20065 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20066
20067 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20068 (vadd_s16): Likewise.
20069 (vadd_s32): Likewise.
20070 (vadd_f32): Likewise.
20071 (vadd_u8): Likewise.
20072 (vadd_u16): Likewise.
20073 (vadd_u32): Likewise.
20074 (vadd_s64): Likewise.
20075 (vadd_u64): Likewise.
20076 (vaddq_s8): Likewise.
20077 (vaddq_s16): Likewise.
20078 (vaddq_s32): Likewise.
20079 (vaddq_s64): Likewise.
20080 (vaddq_f32): Likewise.
20081 (vaddq_u8): Likewise.
20082 (vaddq_u16): Likewise.
20083 (vaddq_u32): Likewise.
20084 (vaddq_u64): Likewise.
20085 (vmul_s8): Likewise.
20086 (vmul_s16): Likewise.
20087 (vmul_s32): Likewise.
20088 (vmul_f32): Likewise.
20089 (vmul_u8): Likewise.
20090 (vmul_u16): Likewise.
20091 (vmul_u32): Likewise.
20092 (vmul_p8): Likewise.
20093 (vmulq_s8): Likewise.
20094 (vmulq_s16): Likewise.
20095 (vmulq_s32): Likewise.
20096 (vmulq_f32): Likewise.
20097 (vmulq_u8): Likewise.
20098 (vmulq_u16): Likewise.
20099 (vmulq_u32): Likewise.
20100 (vsub_s8): Likewise.
20101 (vsub_s16): Likewise.
20102 (vsub_s32): Likewise.
20103 (vsub_f32): Likewise.
20104 (vsub_u8): Likewise.
20105 (vsub_u16): Likewise.
20106 (vsub_u32): Likewise.
20107 (vsub_s64): Likewise.
20108 (vsub_u64): Likewise.
20109 (vsubq_s8): Likewise.
20110 (vsubq_s16): Likewise.
20111 (vsubq_s32): Likewise.
20112 (vsubq_s64): Likewise.
20113 (vsubq_f32): Likewise.
20114 (vsubq_u8): Likewise.
20115 (vsubq_u16): Likewise.
20116 (vsubq_u32): Likewise.
20117 (vsubq_u64): Likewise.
20118 (vand_s8): Likewise.
20119 (vand_s16): Likewise.
20120 (vand_s32): Likewise.
20121 (vand_u8): Likewise.
20122 (vand_u16): Likewise.
20123 (vand_u32): Likewise.
20124 (vand_s64): Likewise.
20125 (vand_u64): Likewise.
20126 (vandq_s8): Likewise.
20127 (vandq_s16): Likewise.
20128 (vandq_s32): Likewise.
20129 (vandq_s64): Likewise.
20130 (vandq_u8): Likewise.
20131 (vandq_u16): Likewise.
20132 (vandq_u32): Likewise.
20133 (vandq_u64): Likewise.
20134 (vorr_s8): Likewise.
20135 (vorr_s16): Likewise.
20136 (vorr_s32): Likewise.
20137 (vorr_u8): Likewise.
20138 (vorr_u16): Likewise.
20139 (vorr_u32): Likewise.
20140 (vorr_s64): Likewise.
20141 (vorr_u64): Likewise.
20142 (vorrq_s8): Likewise.
20143 (vorrq_s16): Likewise.
20144 (vorrq_s32): Likewise.
20145 (vorrq_s64): Likewise.
20146 (vorrq_u8): Likewise.
20147 (vorrq_u16): Likewise.
20148 (vorrq_u32): Likewise.
20149 (vorrq_u64): Likewise.
20150 (veor_s8): Likewise.
20151 (veor_s16): Likewise.
20152 (veor_s32): Likewise.
20153 (veor_u8): Likewise.
20154 (veor_u16): Likewise.
20155 (veor_u32): Likewise.
20156 (veor_s64): Likewise.
20157 (veor_u64): Likewise.
20158 (veorq_s8): Likewise.
20159 (veorq_s16): Likewise.
20160 (veorq_s32): Likewise.
20161 (veorq_s64): Likewise.
20162 (veorq_u8): Likewise.
20163 (veorq_u16): Likewise.
20164 (veorq_u32): Likewise.
20165 (veorq_u64): Likewise.
20166 (vbic_s8): Likewise.
20167 (vbic_s16): Likewise.
20168 (vbic_s32): Likewise.
20169 (vbic_u8): Likewise.
20170 (vbic_u16): Likewise.
20171 (vbic_u32): Likewise.
20172 (vbic_s64): Likewise.
20173 (vbic_u64): Likewise.
20174 (vbicq_s8): Likewise.
20175 (vbicq_s16): Likewise.
20176 (vbicq_s32): Likewise.
20177 (vbicq_s64): Likewise.
20178 (vbicq_u8): Likewise.
20179 (vbicq_u16): Likewise.
20180 (vbicq_u32): Likewise.
20181 (vbicq_u64): Likewise.
20182 (vorn_s8): Likewise.
20183 (vorn_s16): Likewise.
20184 (vorn_s32): Likewise.
20185 (vorn_u8): Likewise.
20186 (vorn_u16): Likewise.
20187 (vorn_u32): Likewise.
20188 (vorn_s64): Likewise.
20189 (vorn_u64): Likewise.
20190 (vornq_s8): Likewise.
20191 (vornq_s16): Likewise.
20192 (vornq_s32): Likewise.
20193 (vornq_s64): Likewise.
20194 (vornq_u8): Likewise.
20195 (vornq_u16): Likewise.
20196 (vornq_u32): Likewise.
20197 (vornq_u64): Likewise.
20198
20199 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20200
20201 * wide-int.cc (UTItype): Define.
20202 (UDWtype): Define for appropriate W_TYPE_SIZE.
20203
20204 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20205
20206 PR tree-optimization/59100
20207 * tree-ssa-phiopt.c: Include tree-inline.h.
20208 (neutral_element_p, absorbing_element_p): New functions.
20209 (value_replacement): Handle conditional binary operations with a
20210 neutral or absorbing element.
20211
20212 2014-05-08 Richard Biener <rguenther@suse.de>
20213
20214 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20215 folding the expression.
20216 (valueize_expr): Remove.
20217 (visit_reference_op_load): Do not valueize the result of
20218 vn_get_expr_for.
20219 (simplify_binary_expression): Likewise.
20220 (simplify_unary_expression): Likewise.
20221
20222 2014-05-08 Richard Biener <rguenther@suse.de>
20223
20224 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20225 looking at TYPE_ARG_TYPES.
20226
20227 2014-05-08 Richard Biener <rguenther@suse.de>
20228
20229 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20230 pointer propagation special-case.
20231
20232 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20233
20234 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20235 core part of address expressions.
20236
20237 2014-05-08 Alan Modra <amodra@gmail.com>
20238
20239 PR target/60737
20240 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20241 loads and stores when -mno-strict-align at any alignment.
20242 (expand_block_clear): Similarly. Also correct calculation of
20243 instruction count.
20244
20245 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20246
20247 PR middle-end/39246
20248 * tree-complex.c (expand_complex_move): Keep line info when expanding
20249 complex move.
20250 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20251 of complex expression. Use new argument to display correct location
20252 for values coming from phi statement.
20253 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20254 (warn_uninitialized_phi): Pass location of phi argument to
20255 warn_uninit.
20256 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20257 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20258
20259 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20260
20261 * config/rs6000/predicates.md (indexed_address_mem): New.
20262 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20263 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20264 fpstore_ux, fpstore_u.
20265 (sign_extend, indexed, update): New.
20266 (cell_micro): Adjust.
20267 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20268 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20269 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20270 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20271 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20272 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20273 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20274 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20275 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20276 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20277 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20278 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20279 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20280 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20281 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20282
20283 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20284 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20285 *vsx_extract_<mode>_store): Adjust.
20286 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20287 is_cracked_insn, insn_must_be_first_in_group,
20288 insn_must_be_last_in_group): Adjust.
20289
20290 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20291 Adjust.
20292 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20293 ppc440-fpstore): Adjust.
20294 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20295 ppc476-fpstore): Adjust.
20296 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20297 ppc601-fpstore): Adjust.
20298 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20299 Adjust.
20300 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20301 Adjust.
20302 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20303 ppc7450-fpstore): Adjust.
20304 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20305 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20306 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20307 Adjust.
20308 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20309 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20310 cell-fpstore, cell-fpstore-update): Adjust.
20311 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20312 ppce300c3_store, ppce300c3_fpstore): Adjust.
20313 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20314 e500mc_fpstore): Adjust.
20315 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20316 e500mc64_store, e500mc64_fpstore): Adjust.
20317 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20318 e5500_fpstore): Adjust.
20319 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20320 e6500_fpstore): Adjust.
20321 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20322 Adjust.
20323 * config/rs6000/power4.md (power4-load, power4-load-ext,
20324 power4-load-ext-update, power4-load-ext-update-indexed,
20325 power4-load-update-indexed, power4-load-update, power4-fpload,
20326 power4-fpload-update, power4-store, power4-store-update,
20327 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20328 Adjust.
20329 * config/rs6000/power5.md (power5-load, power5-load-ext,
20330 power5-load-ext-update, power5-load-ext-update-indexed,
20331 power5-load-update-indexed, power5-load-update, power5-fpload,
20332 power5-fpload-update, power5-store, power5-store-update,
20333 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20334 Adjust.
20335 * config/rs6000/power6.md (power6-load, power6-load-ext,
20336 power6-load-update, power6-load-update-indexed,
20337 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20338 power6-fpload-update, power6-store, power6-store-update,
20339 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20340 Adjust.
20341 * config/rs6000/power7.md (power7-load, power7-load-ext,
20342 power7-load-update, power7-load-update-indexed,
20343 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20344 power7-fpload-update, power7-store, power7-store-update,
20345 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20346 Adjust.
20347 * config/rs6000/power8.md (power8-load, power8-load-update,
20348 power8-load-ext, power8-load-ext-update, power8-fpload,
20349 power8-fpload-update, power8-store, power8-store-update-indexed,
20350 power8-fpstore, power8-fpstore-update): Adjust.
20351 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20352 Adjust.
20353 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20354 titan_lsu_store, titan_lsu_fpstore): Adjust.
20355 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20356
20357 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20358
20359 PR target/60884
20360 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20361 unrolled byte insns. Emit address increments after move insns.
20362
20363 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20364
20365 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20366 const_gimple, rather than a gimple.
20367 (gimple_call_builtin_p): Likewise, for the three variants.
20368
20369 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20370 (gimple_call_builtin_p): Likewise, for the three variants.
20371
20372 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20373
20374 PR tree-optimization/61095
20375 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20376
20377 2014-05-07 Richard Biener <rguenther@suse.de>
20378
20379 PR tree-optimization/61034
20380 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20381 (maybe_skip_until): Use translate to take into account
20382 lattices when trying to do disambiguations.
20383 (get_continuation_for_phi_1): Likewise.
20384 (get_continuation_for_phi): Adjust for added translate arguments.
20385 (walk_non_aliased_vuses): Likewise.
20386 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20387 (walk_non_aliased_vuses): Likewise.
20388 (call_may_clobber_ref_p_1): Declare.
20389 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20390 calls. Stop early if we are only supposed to disambiguate.
20391 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20392
20393 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20394
20395 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20396 Emit an error when the function has arguments.
20397
20398 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20399
20400 * cfgloop.h (unswitch_loops): Remove.
20401 * doc/passes.texi: Remove references to loop-unswitch.c
20402 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20403
20404 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20405
20406 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20407 check for loads group of length 3.
20408 (vect_permute_load_chain): New permutations for loads group of
20409 length 3.
20410 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20411 of vec_perm_shuffle for the new permutations.
20412
20413 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20414
20415 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20416 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20417 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20418 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20419 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20420 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20421 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20422 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20423
20424 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20425
20426 * loop-unswitch.c: Delete.
20427
20428 2014-05-07 Richard Biener <rguenther@suse.de>
20429
20430 * config.gcc: Always set need_64bit_hwint to yes.
20431
20432 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20433
20434 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20435 of using optimize_size.
20436
20437 2014-05-06 Mike Stump <mikestump@comcast.net>
20438
20439 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20440
20441 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20442
20443 * config/i386/sse.md (*mov<mode>_internal)
20444 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20445 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20446 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20447 (*<code><mode>3, *andnot<mode>3<mask_name>)
20448 (<mask_codefor><code><mode>3<mask_name>): Only consider
20449 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20450
20451 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20452
20453 Revert:
20454 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20455
20456 * lra-constraints.c (valid_address_p): Move earlier in file.
20457 Add a constraint argument to the address_info version.
20458 (satisfies_memory_constraint_p): New function.
20459 (satisfies_address_constraint_p): Likewise.
20460 (process_alt_operands, curr_insn_transform): Use them.
20461 (process_address): Pass the constraint to valid_address_p when
20462 checking address operands.
20463
20464 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
20465
20466 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20467 to their respective blocks. Fix inadvertent use of "node".
20468
20469 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20470
20471 * emit-rtl.c (init_derived_machine_modes): New functionm, split
20472 out from...
20473 (init_emit_once): ...here.
20474 * rtl.h (init_derived_machine_modes): Declare.
20475 * toplev.c (do_compile): Call it even if no_backend.
20476
20477 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
20478 Mike Stump <mikestump@comcast.net>
20479 Richard Sandiford <rdsandiford@googlemail.com>
20480 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20481
20482 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20483 (rtx_equal_for_memref_p): Update comment.
20484 (adjust_offset_for_component_ref): Use wide-int interfaces.
20485 * builtins.c (get_object_alignment_2): Likewise.
20486 (c_readstr): Likewise.
20487 (target_char_cast): Add comment.
20488 (determine_block_size): Use wide-int interfaces.
20489 (expand_builtin_signbit): Likewise.
20490 (fold_builtin_int_roundingfn): Likewise.
20491 (fold_builtin_bitop): Likewise.
20492 (fold_builtin_bswap): Likewise.
20493 (fold_builtin_logarithm): Use signop.
20494 (fold_builtin_pow): Likewise.
20495 (fold_builtin_memory_op): Use wide-int interfaces.
20496 (fold_builtin_object_size): Likewise.
20497 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20498 nb_iterations_estimate.
20499 (record_niter_bound): Use wide-int interfaces.
20500 (get_estimated_loop_iterations_int): Likewise.
20501 (get_estimated_loop_iterations): Likewise.
20502 (get_max_loop_iterations): Likewise.
20503 * cfgloop.h: Include wide-int.h.
20504 (struct nb_iter_bound): Change bound to widest_int.
20505 (struct loop): Change nb_iterations_upper_bound and
20506 nb_iterations_estimate to widest_int.
20507 (record_niter_bound): Switch to use widest_int.
20508 (get_estimated_loop_iterations): Likewise.
20509 (get_max_loop_iterations): Likewise.
20510 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20511 update for wide-int.
20512 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20513 * combine.c (try_combine): Likewise.
20514 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20515 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20516 interfaces.
20517 (aarch64_float_const_representable_p): Likewise.
20518 * config/arc/arc.c: Include wide-int.h.
20519 (arc_can_use_doloop_p): Use wide-int interfaces.
20520 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20521 (vfp3_const_double_index): Likewise.
20522 * config/avr/avr.c (avr_out_round): Likewise.
20523 (avr_fold_builtin): Likewise.
20524 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20525 (bfin_can_use_doloop_p): Likewise.
20526 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20527 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20528 * config/i386/i386.c: Include wide-int.h.
20529 (ix86_data_alignment): Use wide-int interfaces.
20530 (ix86_local_alignment): Likewise.
20531 (ix86_emit_swsqrtsf): Update real_from_integer.
20532 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20533 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20534 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20535 (zero_constant): Likewise.
20536 (input_operand): Likewise.
20537 (splat_input_operand): Likewise.
20538 (non_logical_cint_operand): Change const_double to const_wide_int.
20539 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20540 (easy_altivec_constant): Remove comment.
20541 (paired_expand_vector_init): Use CONSTANT_P.
20542 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20543 (rs6000_emit_move): Update checks.
20544 (rs6000_aggregate_candidate): Use wide-int interfaces.
20545 (rs6000_expand_ternop_builtin): Likewise.
20546 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20547 (rs6000_assemble_integer): Likewise.
20548 (rs6000_hash_constant): Likewise.
20549 (output_toc): Likewise.
20550 (rs6000_rtx_costs): Likewise.
20551 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20552 * config/rs6000/rs6000-c.c: Include wide-int.h.
20553 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20554 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20555 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20556 Handle CONST_WIDE_INT.
20557 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20558 Use tree_fits_uhwi_p.
20559 * config/sparc/sparc.c: Include wide-int.h.
20560 (sparc_fold_builtin): Use wide-int interfaces.
20561 * config/vax/vax.c: Include wide-int.h.
20562 (vax_float_literal): Use real_from_integer.
20563 * coretypes.h (struct hwivec_def): New.
20564 (hwivec): New.
20565 (const_hwivec): New.
20566 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20567 (equiv_constant): Handle CONST_WIDE_INT.
20568 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20569 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20570 * dbxout.c (stabstr_U): Use wide-int interfaces.
20571 (dbxout_type): Update to use cst_fits_shwi_p.
20572 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20573 (TARGET_SUPPORTS_WIDE_INT): Add default.
20574 * dfp.c: Include wide-int.h.
20575 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20576 decimal_real_to_integer.
20577 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20578 decimal_real_to_integer.
20579 * doc/generic.texi (Constant expressions): Update for wide_int.
20580 * doc/rtl.texi (const_double): Likewise.
20581 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20582 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20583 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20584 (REAL_VALUE_FROM_INT): Remove.
20585 (TARGET_SUPPORTS_WIDE_INT): New.
20586 * doc/tm.texi: Regenerate.
20587 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20588 * double-int.h: Include wide-int.h.
20589 (struct wi::int_traits): New.
20590 * dwarf2out.c (get_full_len): New.
20591 (dw_val_equal_p): Add case dw_val_class_wide_int.
20592 (size_of_loc_descr): Likewise.
20593 (output_loc_operands): Likewise.
20594 (insert_double): Remove.
20595 (insert_wide_int): New.
20596 (add_AT_wide): New.
20597 (print_die): Add case dw_val_class_wide_int.
20598 (attr_checksum): Likewise.
20599 (attr_checksum_ordered): Likewise.
20600 (same_dw_val_p): Likewise.
20601 (size_of_die): Likewise.
20602 (value_format): Likewise.
20603 (output_die): Likewise.
20604 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20605 Use wide-int.
20606 (clz_loc_descriptor): Use wide-int interfaces.
20607 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20608 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20609 (round_up_to_align): Use wide-int interfaces.
20610 (field_byte_offset): Likewise.
20611 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20612 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20613 CONST_DOUBLE handling. Use wide-int interfaces.
20614 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20615 (gen_enumeration_type_die): Use add_AT_wide.
20616 (hash_loc_operands): Add case dw_val_class_wide_int.
20617 (compare_loc_operands): Likewise.
20618 * dwarf2out.h: Include wide-int.h.
20619 (wide_int_ptr): New.
20620 (enum dw_val_class): Add dw_val_class_wide_int.
20621 (struct dw_val_struct): Add val_wide.
20622 * emit-rtl.c (const_wide_int_htab): New.
20623 (const_wide_int_htab_hash): New.
20624 (const_wide_int_htab_eq): New.
20625 (lookup_const_wide_int): New.
20626 (const_double_htab_hash): Use wide-int interfaces.
20627 (const_double_htab_eq): Likewise.
20628 (rtx_to_double_int): Conditionally compile for wide-int.
20629 (immed_double_int_const): Rename to immed_wide_int_const and
20630 update for wide-int.
20631 (immed_double_const): Conditionally compile for wide-int.
20632 (init_emit_once): Use wide-int interfaces.
20633 * explow.c (plus_constant): Likewise.
20634 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20635 (lshift_value): Use wide-int interfaces.
20636 (expand_mult): Likewise.
20637 (choose_multiplier): Likewise.
20638 (expand_smod_pow2): Likewise.
20639 (make_tree): Likewise.
20640 * expr.c (convert_modes): Consolidate handling of constants.
20641 Use wide-int interfaces.
20642 (emit_group_load_1): Add note.
20643 (store_expr): Update comment.
20644 (get_inner_reference): Use wide-int interfaces.
20645 (expand_constructor): Update comment.
20646 (expand_expr_real_2): Use wide-int interfaces.
20647 (expand_expr_real_1): Likewise.
20648 (reduce_to_bit_field_precision): Likewise.
20649 (const_vector_from_tree): Likewise.
20650 * final.c: Include wide-int-print.h.
20651 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20652 * fixed-value.c: Include wide-int.h.
20653 (fixed_from_string): Use wide-int interfaces.
20654 (fixed_to_decimal): Likewise.
20655 (fixed_convert_from_real): Likewise.
20656 (real_convert_from_fixed): Likewise.
20657 * fold-const.h (mem_ref_offset): Return an offset_int.
20658 (div_if_zero_remainder): Remove code parameter.
20659 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20660 Use wide-int interfaces.
20661 (may_negate_without_overflow_p): Use wide-int interfaces.
20662 (negate_expr_p): Likewise.
20663 (fold_negate_expr): Likewise.
20664 (int_const_binop_1): Likewise.
20665 (const_binop): Likewise.
20666 (fold_convert_const_int_from_int): Likewise.
20667 (fold_convert_const_int_from_real): Likewise.
20668 (fold_convert_const_int_from_fixed): Likewise.
20669 (fold_convert_const_fixed_from_int): Likewise.
20670 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20671 (sign_bit_p): Use wide-int interfaces.
20672 (make_range_step): Likewise.
20673 (build_range_check): Likewise. Pass an integer of the correct type
20674 instead of using integer_one_node.
20675 (range_predecessor): Pass an integer of the correct type instead
20676 of using integer_one_node.
20677 (range_successor): Likewise.
20678 (merge_ranges): Likewise.
20679 (unextend): Use wide-int interfaces.
20680 (extract_muldiv_1): Likewise.
20681 (fold_div_compare): Likewise.
20682 (fold_single_bit_test): Likewise.
20683 (fold_sign_changed_comparison): Likewise.
20684 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20685 (fold_plusminus_mult_expr): Use wide-int interfaces.
20686 (native_encode_int): Likewise.
20687 (native_interpret_int): Likewise.
20688 (fold_unary_loc): Likewise.
20689 (pointer_may_wrap_p): Likewise.
20690 (size_low_cst): Likewise.
20691 (mask_with_tz): Likewise.
20692 (fold_binary_loc): Likewise.
20693 (fold_ternary_loc): Likewise.
20694 (multiple_of_p): Likewise.
20695 (tree_call_nonnegative_warnv_p): Update calls to
20696 tree_int_cst_min_precision and real_from_integer.
20697 (fold_negate_const): Use wide-int interfaces.
20698 (fold_abs_const): Likewise.
20699 (fold_relational_const): Use tree_int_cst_lt.
20700 (round_up_loc): Use wide-int interfaces.
20701 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20702 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20703 * gengtype.c: Remove include of double-int.h.
20704 (do_typedef): Use wide-int interfaces.
20705 (open_base_files): Add wide-int.h.
20706 (main): Add offset_int and widest_int typedefs.
20707 * gengtype-lex.l: Handle "^".
20708 (CXX_KEYWORD): Add "static".
20709 * gengtype-parse.c (require3): New.
20710 (require_template_declaration): Handle constant template arguments
20711 and nested templates.
20712 * gengtype-state.c: Don't include "double-int.h".
20713 * genpreds.c (write_one_predicate_function): Update comment.
20714 (write_tm_constrs_h): Add check for hval and lval use in
20715 CONST_WIDE_INT.
20716 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20717 (add_to_sequence): Likewise.
20718 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20719 and const_double_operand.
20720 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20721 interfaces.
20722 * gimple-fold.c (get_base_constructor): Likewise.
20723 (fold_array_ctor_reference): Likewise.
20724 (fold_nonarray_ctor_reference): Likewise.
20725 (fold_const_aggregate_ref_1): Likewise.
20726 (gimple_val_nonnegative_real_p): Likewise.
20727 (gimple_fold_indirect_ref): Likewise.
20728 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
20729 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
20730 (struct slsr_cand_d): Change index to be widest_int.
20731 (struct incr_info_d): Change incr to be widest_int.
20732 (alloc_cand_and_find_basis): Use wide-int interfaces.
20733 (slsr_process_phi): Likewise.
20734 (backtrace_base_for_ref): Likewise. Return a widest_int.
20735 (restructure_reference): Take a widest_int instead of a double_int.
20736 (slsr_process_ref): Use wide-int interfaces.
20737 (create_mul_ssa_cand): Likewise.
20738 (create_mul_imm_cand): Likewise.
20739 (create_add_ssa_cand): Likewise.
20740 (create_add_imm_cand): Take a widest_int instead of a double_int.
20741 (slsr_process_add): Use wide-int interfaces.
20742 (slsr_process_cast): Likewise.
20743 (slsr_process_copy): Likewise.
20744 (dump_candidate): Likewise.
20745 (dump_incr_vec): Likewise.
20746 (replace_ref): Likewise.
20747 (cand_increment): Likewise. Return a widest_int.
20748 (cand_abs_increment): Likewise.
20749 (replace_mult_candidate): Take a widest_int instead of a double_int.
20750 (replace_unconditional_candidate): Use wide-int interfaces.
20751 (incr_vec_index): Take a widest_int instead of a double_int.
20752 (create_add_on_incoming_edge): Likewise.
20753 (create_phi_basis): Use wide-int interfaces.
20754 (replace_conditional_candidate): Likewise.
20755 (record_increment): Take a widest_int instead of a double_int.
20756 (record_phi_increments): Use wide-int interfaces.
20757 (phi_incr_cost): Take a widest_int instead of a double_int.
20758 (lowest_cost_path): Likewise.
20759 (total_savings): Likewise.
20760 (analyze_increments): Use wide-int interfaces.
20761 (ncd_with_phi): Take a widest_int instead of a double_int.
20762 (ncd_of_cand_and_phis): Likewise.
20763 (nearest_common_dominator_for_cands): Likewise.
20764 (insert_initializers): Use wide-int interfaces.
20765 (all_phi_incrs_profitable): Likewise.
20766 (replace_one_candidate): Likewise.
20767 (replace_profitable_candidates): Likewise.
20768 * godump.c: Include wide-int-print.h.
20769 (go_output_typedef): Use wide-int interfaces.
20770 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
20771 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
20772 (build_loop_iteration_domains): Likewise.
20773 * hooks.h: Include wide-int.h rather than double-int.h.
20774 (hook_bool_dint_dint_uint_bool_true): Delete.
20775 (hook_bool_wint_wint_uint_bool_true): Declare.
20776 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
20777 (hook_bool_wint_wint_uint_bool_true): New.
20778 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
20779 interfaces.
20780 (ubsan_expand_si_overflow_mul_check): Likewise.
20781 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
20782 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
20783 (get_ancestor_addr_info): Likewise.
20784 (ipa_modify_call_arguments): Likewise.
20785 * loop-doloop.c (doloop_modify): Likewise.
20786 (doloop_optimize): Likewise.
20787 * loop-iv.c (iv_number_of_iterations): Likewise.
20788 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
20789 (unroll_loop_constant_iterations): Likewise.
20790 (decide_unroll_runtime_iterations): Likewise.
20791 (unroll_loop_runtime_iterations): Likewise.
20792 (decide_peel_simple): Likewise.
20793 (decide_unroll_stupid): Likewise.
20794 * lto-streamer-in.c (streamer_read_wi): Add.
20795 (input_cfg): Use wide-int interfaces.
20796 (lto_input_tree_1): Likewise.
20797 * lto-streamer-out.c (streamer_write_wi): Add.
20798 (hash_tree): Use wide-int interfaces.
20799 (output_cfg): Likewise.
20800 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
20801 (GTFILES): Add wide-int.h and signop.h.
20802 (TAGS): Look for .cc files too.
20803 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
20804 * optabs.c (expand_subword_shift): Likewise.
20805 (expand_doubleword_shift): Likewise.
20806 (expand_absneg_bit): Likewise.
20807 (expand_copysign_absneg): Likewise.
20808 (expand_copysign_bit): Likewise.
20809 * postreload.c (reload_cse_simplify_set): Likewise.
20810 * predict.c (predict_iv_comparison): Likewise.
20811 * pretty-print.h: Include wide-int-print.h.
20812 (pp_wide_int) New.
20813 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
20814 * print-tree.c: Include wide-int-print.h.
20815 (print_node_brief): Use wide-int interfaces.
20816 (print_node): Likewise.
20817 * read-rtl.c (validate_const_wide_int): New.
20818 (read_rtx_code): Add CONST_WIDE_INT case.
20819 * real.c: Include wide-int.h.
20820 (real_to_integer2): Delete.
20821 (real_to_integer): New function, returning a wide_int.
20822 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20823 (ten_to_ptwo): Update call to real_from_integer.
20824 (real_digit): Likewise.
20825 * real.h: Include signop.h, wide-int.h and insn-modes.h.
20826 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
20827 (REAL_VALUE_TO_INT): Delete.
20828 (real_to_integer): Declare a wide-int form.
20829 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20830 * recog.c (const_int_operand): Improve comment.
20831 (const_scalar_int_operand): New.
20832 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
20833 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
20834 (split_double): Likewise.
20835 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
20836 (rtx_size): Likewise.
20837 (rtx_alloc_stat_v): New.
20838 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
20839 (cwi_output_hex): New.
20840 (iterative_hash_rtx): Handle CONST_WIDE_INT.
20841 (cwi_check_failed_bounds): New.
20842 * rtl.def (CONST_WIDE_INT): New.
20843 * rtl.h: Include <utility> and wide-int.h.
20844 (struct hwivec_def): New.
20845 (CWI_GET_NUM_ELEM): New.
20846 (CWI_PUT_NUM_ELEM): New.
20847 (struct rtx_def): Add num_elem and hwiv.
20848 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
20849 (CASE_CONST_UNIQUE): Likewise.
20850 (CASE_CONST_ANY): Likewise.
20851 (CONST_SCALAR_INT_P): Likewise.
20852 (CONST_WIDE_INT_P): New.
20853 (CWI_ELT): New.
20854 (HWIVEC_CHECK): New.
20855 (cwi_check_failed_bounds): New.
20856 (CWI_ELT): New.
20857 (HWIVEC_CHECK): New.
20858 (CONST_WIDE_INT_VEC) New.
20859 (CONST_WIDE_INT_NUNITS) New.
20860 (CONST_WIDE_INT_ELT) New.
20861 (rtx_mode_t): New type.
20862 (wi::int_traits <rtx_mode_t>): New.
20863 (wi::shwi): New.
20864 (wi::min_value): New.
20865 (wi::max_value): New.
20866 (rtx_alloc_v) New.
20867 (const_wide_int_alloc): New.
20868 (immed_wide_int_const): New.
20869 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
20870 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
20871 * signop.h: New file.
20872 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
20873 (simplify_const_unary_operation): Use wide-int interfaces.
20874 (simplify_binary_operation_1): Likewise.
20875 (simplify_const_binary_operation): Likewise.
20876 (simplify_const_relational_operation): Likewise.
20877 (simplify_immed_subreg): Likewise.
20878 * stmt.c (expand_case): Likewise.
20879 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
20880 signop rather than a bool.
20881 * stor-layout.c (layout_type): Use wide-int interfaces.
20882 (initialize_sizetypes): Update calls to
20883 set_min_and_max_values_for_integral_type.
20884 (set_min_and_max_values_for_integral_type): Take a signop rather
20885 than a bool. Use wide-int interfaces.
20886 (fixup_signed_type): Update accordingly. Remove
20887 HOST_BITS_PER_DOUBLE_INT limit.
20888 (fixup_unsigned_type): Likewise.
20889 * system.h (STATIC_CONSTANT_P): New.
20890 (STATIC_ASSERT): New.
20891 * target.def (can_use_doloop_p): Take widest_ints rather than
20892 double_ints.
20893 * target.h: Include wide-int.h rather than double-int.h.
20894 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
20895 than double_ints.
20896 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
20897 rather than INT_CST_LT_UNSIGNED.
20898 (can_use_doloop_if_innermost): Take widest_ints rather than
20899 double_ints.
20900 * tree-affine.c: Include wide-int-print.h.
20901 (double_int_ext_for_comb): Delete.
20902 (wide_int_ext_for_comb): New.
20903 (aff_combination_zero): Use wide-int interfaces.
20904 (aff_combination_const): Take a widest_int instead of a double_int.
20905 (aff_combination_elt): Use wide-int interfaces.
20906 (aff_combination_scale): Take a widest_int instead of a double_int.
20907 (aff_combination_add_elt): Likewise.
20908 (aff_combination_add_cst): Likewise.
20909 (aff_combination_add): Use wide-int interfaces.
20910 (aff_combination_convert): Likewise.
20911 (tree_to_aff_combination): Likewise.
20912 (add_elt_to_tree): Take a widest_int instead of a double_int.
20913 (aff_combination_to_tree): Use wide-int interfaces.
20914 (aff_combination_remove_elt): Likewise.
20915 (aff_combination_add_product): Take a widest_int instead of
20916 a double_int.
20917 (aff_combination_mult): Use wide-int interfaces.
20918 (aff_combination_expand): Likewise.
20919 (double_int_constant_multiple_p): Delete.
20920 (wide_int_constant_multiple_p): New.
20921 (aff_combination_constant_multiple_p): Take a widest_int pointer
20922 instead of a double_int pointer.
20923 (print_aff): Use wide-int interfaces.
20924 (get_inner_reference_aff): Take a widest_int pointer
20925 instead of a double_int pointer.
20926 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
20927 * tree-affine.h: Include wide-int.h.
20928 (struct aff_comb_elt): Change type of coef to widest_int.
20929 (struct affine_tree_combination): Change type of offset to widest_int.
20930 (double_int_ext_for_comb): Delete.
20931 (wide_int_ext_for_comb): New.
20932 (aff_combination_const): Use widest_int instead of double_int.
20933 (aff_combination_scale): Likewise.
20934 (aff_combination_add_elt): Likewise.
20935 (aff_combination_constant_multiple_p): Likewise.
20936 (get_inner_reference_aff): Likewise.
20937 (aff_comb_cannot_overlap_p): Likewise.
20938 (aff_combination_zero_p): Use wide-int interfaces.
20939 * tree.c: Include tree.h.
20940 (init_ttree): Use make_int_cst.
20941 (tree_code_size): Removed code for INTEGER_CST case.
20942 (tree_size): Add INTEGER_CST case.
20943 (make_node_stat): Update comment.
20944 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
20945 (build_int_cst_type): Use wide-int interfaces.
20946 (double_int_to_tree): Likewise.
20947 (double_int_fits_to_tree_p): Delete.
20948 (force_fit_type_double): Delete.
20949 (force_fit_type): New.
20950 (int_cst_hash_hash): Use wide-int interfaces.
20951 (int_cst_hash_eq): Likewise.
20952 (build_int_cst_wide): Delete.
20953 (wide_int_to_tree): New.
20954 (cache_integer_cst): Use wide-int interfaces.
20955 (build_low_bits_mask): Likewise.
20956 (cst_and_fits_in_hwi): Likewise.
20957 (real_value_from_int_cst): Likewise.
20958 (make_int_cst_stat): New.
20959 (integer_zerop): Use wide_int interfaces.
20960 (integer_onep): Likewise.
20961 (integer_all_onesp): Likewise.
20962 (integer_pow2p): Likewise.
20963 (integer_nonzerop): Likewise.
20964 (tree_log2): Likewise.
20965 (tree_floor_log2): Likewise.
20966 (tree_ctz): Likewise.
20967 (int_size_in_bytes): Likewise.
20968 (mem_ref_offset): Return an offset_int rather than a double_int.
20969 (build_type_attribute_qual_variant): Use wide_int interfaces.
20970 (type_hash_eq): Likewise
20971 (tree_int_cst_equal): Likewise.
20972 (tree_int_cst_lt): Delete.
20973 (tree_int_cst_compare): Likewise.
20974 (tree_fits_shwi_p): Use wide_int interfaces.
20975 (tree_fits_uhwi_p): Likewise.
20976 (tree_int_cst_sign_bit): Likewise.
20977 (tree_int_cst_sgn): Likewise.
20978 (tree_int_cst_min_precision): Take a signop rather than a bool.
20979 (simple_cst_equal): Use wide_int interfaces.
20980 (compare_tree_int): Likewise.
20981 (iterative_hash_expr): Likewise.
20982 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
20983 INT_CST_LT.
20984 (get_type_static_bounds): Use wide_int interfaces.
20985 (tree_int_cst_elt_check_failed): New.
20986 (build_common_tree_nodes): Reordered to set prec before filling in
20987 value.
20988 (int_cst_value): Check cst_and_fits_in_hwi.
20989 (widest_int_cst_value): Use wide_int interfaces.
20990 (upper_bound_in_type): Likewise.
20991 (lower_bound_in_type): Likewise.
20992 (num_ending_zeros): Likewise.
20993 (drop_tree_overflow): Likewise.
20994 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
20995 (gen_conditions_for_pow_cst_base): Likewise.
20996 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
20997 (group_case_labels_stmt): Use wide-int interfaces.
20998 (verify_gimple_assign_binary): Likewise.
20999 (print_loop): Likewise.
21000 * tree-chrec.c (tree_fold_binomial): Likewise.
21001 * tree-core.h (struct tree_base): Add int_length.
21002 (struct tree_int_cst): Change rep of value.
21003 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21004 (dr_may_alias_p): Likewise.
21005 (max_stmt_executions_tree): Likewise.
21006 * tree.def (INTEGER_CST): Update comment.
21007 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21008 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21009 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21010 (dequeue_and_dump): Use wide-int interfaces.
21011 * tree.h: Include wide-int.h.
21012 (NULL_TREE): Moved to earlier loc in file.
21013 (TREE_INT_CST_ELT_CHECK): New.
21014 (tree_int_cst_elt_check_failed): New.
21015 (TYPE_SIGN): New.
21016 (TREE_INT_CST): Delete.
21017 (TREE_INT_CST_LOW): Use wide-int interfaces.
21018 (TREE_INT_CST_HIGH): Delete.
21019 (TREE_INT_CST_NUNITS): New.
21020 (TREE_INT_CST_EXT_NUNITS): Likewise.
21021 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21022 (TREE_INT_CST_ELT): Likewise.
21023 (INT_CST_LT): Delete.
21024 (tree_int_cst_elt_check): New (two forms).
21025 (type_code_size): Update comment.
21026 (make_int_cst_stat, make_int_cst): New.
21027 (tree_to_double_int): Delete.
21028 (double_int_fits_to_tree_p): Delete.
21029 (force_fit_type_double): Delete.
21030 (build_int_cstu): Replace with out-of-line function.
21031 (build_int_cst_wide): Delete.
21032 (tree_int_cst_lt): Define inline.
21033 (tree_int_cst_le): New.
21034 (tree_int_cst_compare): Define inline.
21035 (tree_int_cst_min_precision): Take a signop rather than a bool.
21036 (wi::int_traits <const_tree>): New.
21037 (wi::int_traits <tree>): New.
21038 (wi::extended_tree): New.
21039 (wi::int_traits <wi::extended_tree>): New.
21040 (wi::to_widest): New.
21041 (wi::to_offset): New.
21042 (wi::fits_to_tree_p): New.
21043 (wi::min_value): New.
21044 (wi::max_value): New.
21045 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21046 (copy_tree_body_r): Likewise.
21047 * tree-object-size.c (compute_object_offset): Likewise.
21048 (addr_object_size): Likewise.
21049 * tree-predcom.c: Include wide-int-print.h.
21050 (struct dref_d): Change type of offset to widest_int.
21051 (dump_dref): Call wide-int printer.
21052 (aff_combination_dr_offset): Use wide-int interfaces.
21053 (determine_offset): Take a widest_int pointer rather than a
21054 double_int pointer.
21055 (split_data_refs_to_components): Use wide-int interfaces.
21056 (suitable_component_p): Likewise.
21057 (order_drefs): Likewise.
21058 (add_ref_to_chain): Likewise.
21059 (valid_initializer_p): Likewise.
21060 (determine_roots_comp): Likewise.
21061 * tree-pretty-print.c: Include wide-int-print.h.
21062 (dump_generic_node): Use wide-int interfaces.
21063 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21064 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21065 (move_fixed_address_to_symbol): Likewise.
21066 (move_hint_to_base): Likewise.
21067 (move_pointer_to_base): Likewise.
21068 (move_variant_to_index): Likewise.
21069 (most_expensive_mult_to_index): Likewise.
21070 (addr_to_parts): Likewise.
21071 (copy_ref_info): Likewise.
21072 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21073 (indirect_refs_may_alias_p): Likewise.
21074 (stmt_kills_ref_p_1): Likewise.
21075 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21076 * tree-ssa-ccp.c: Update comment at top of file. Include
21077 wide-int-print.h.
21078 (struct prop_value_d): Change type of mask to widest_int.
21079 (extend_mask): New function.
21080 (dump_lattice_value): Use wide-int interfaces.
21081 (get_default_value): Likewise.
21082 (set_constant_value): Likewise.
21083 (set_value_varying): Likewise.
21084 (valid_lattice_transition): Likewise.
21085 (set_lattice_value): Likewise.
21086 (value_to_double_int): Delete.
21087 (value_to_wide_int): New.
21088 (get_value_from_alignment): Use wide-int interfaces.
21089 (get_value_for_expr): Likewise.
21090 (do_dbg_cnt): Likewise.
21091 (ccp_finalize): Likewise.
21092 (ccp_lattice_meet): Likewise.
21093 (bit_value_unop_1): Use widest_ints rather than double_ints.
21094 (bit_value_binop_1): Likewise.
21095 (bit_value_unop): Use wide-int interfaces.
21096 (bit_value_binop): Likewise.
21097 (bit_value_assume_aligned): Likewise.
21098 (evaluate_stmt): Likewise.
21099 (ccp_fold_stmt): Likewise.
21100 (visit_cond_stmt): Likewise.
21101 (ccp_visit_stmt): Likewise.
21102 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21103 (constant_pointer_difference): Likewise.
21104 (associate_pointerplus): Likewise.
21105 (combine_conversions): Likewise.
21106 * tree-ssa-loop.h: Include wide-int.h.
21107 (struct tree_niter_desc): Change type of max to widest_int.
21108 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21109 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21110 (remove_redundant_iv_tests): Likewise.
21111 (canonicalize_loop_induction_variables): Likewise.
21112 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21113 (constant_multiple_of): Take a widest_int pointer instead of
21114 a double_int pointer.
21115 (get_computation_aff): Use wide-int interfaces.
21116 (ptr_difference_cost): Likewise.
21117 (difference_cost): Likewise.
21118 (get_loop_invariant_expr_id): Likewise.
21119 (get_computation_cost_at): Likewise.
21120 (iv_elimination_compare_lt): Likewise.
21121 (may_eliminate_iv): Likewise.
21122 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21123 instead of double_int.
21124 (max_loop_iterations): Likewise.
21125 (max_stmt_executions): Likewise.
21126 (estimated_stmt_executions): Likewise.
21127 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21128 (split_to_var_and_offset): Use wide-int interfaces.
21129 (determine_value_range): Likewise.
21130 (bound_difference_of_offsetted_base): Likewise.
21131 (bounds_add): Take a widest_int instead of a double_int.
21132 (number_of_iterations_ne_max): Use wide-int interfaces.
21133 (number_of_iterations_ne): Likewise.
21134 (number_of_iterations_lt_to_ne): Likewise.
21135 (assert_loop_rolls_lt): Likewise.
21136 (number_of_iterations_lt): Likewise.
21137 (number_of_iterations_le): Likewise.
21138 (number_of_iterations_cond): Likewise.
21139 (number_of_iterations_exit): Likewise.
21140 (finite_loop_p): Likewise.
21141 (derive_constant_upper_bound_assign): Likewise.
21142 (derive_constant_upper_bound): Return a widest_int.
21143 (derive_constant_upper_bound_ops): Likewise.
21144 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21145 (record_estimate): Take a widest_int rather than a double_int.
21146 (record_nonwrapping_iv): Use wide-int interfaces.
21147 (double_int_cmp): Delete.
21148 (wide_int_cmp): New.
21149 (bound_index): Take a widest_int rather than a double_int.
21150 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21151 (maybe_lower_iteration_bound): Likewise.
21152 (estimate_numbers_of_iterations_loop): Likewise.
21153 (estimated_loop_iterations): Take a widest_int pointer than than
21154 a double_int pointer.
21155 (estimated_loop_iterations_int): Use wide-int interfaces.
21156 (max_loop_iterations): Take a widest_int pointer than than
21157 a double_int pointer.
21158 (max_loop_iterations_int): Use wide-int interfaces.
21159 (max_stmt_executions): Take a widest_int pointer than than
21160 a double_int pointer.
21161 (estimated_stmt_executions): Likewise.
21162 (n_of_executions_at_most): Use wide-int interfaces.
21163 (scev_probably_wraps_p): Likewise.
21164 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21165 to real_to_integer.
21166 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21167 interfaces.
21168 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21169 double_ints. Adjust for trailing_wide_ints <3> representation.
21170 (set_nonzero_bits): Likewise.
21171 (get_range_info): Return wide_ints rather than double_ints.
21172 Adjust for trailing_wide_ints <3> representation.
21173 (get_nonzero_bits): Likewise.
21174 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21175 representation.
21176 * tree-ssanames.h (struct range_info_def): Replace min, max and
21177 nonzero_bits with a trailing_wide_ints <3>.
21178 (set_range_info): Use wide_int_refs rather than double_ints.
21179 (set_nonzero_bits): Likewise.
21180 (get_range_info): Return wide_ints rather than double_ints.
21181 (get_nonzero_bits): Likewise.
21182 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21183 * tree-ssa-pre.c (phi_translate_1): Likewise.
21184 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21185 (acceptable_pow_call): Likewise.
21186 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21187 interfaces.
21188 (vn_reference_fold_indirect): Likewise.
21189 (vn_reference_maybe_forwprop_address): Likewise.
21190 (valueize_refs_1): Likewise.
21191 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21192 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21193 tree_int_cst_lt and tree_int_cst_le.
21194 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21195 interfaces.
21196 (streamer_alloc_tree): Likewise.
21197 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21198 (streamer_write_tree_header): Likewise.
21199 (streamer_write_integer_cst): Likewise.
21200 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21201 (build_constructors): Likewise.
21202 (array_value_type): Likewise.
21203 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21204 (vect_check_gather): Likewise.
21205 * tree-vect-generic.c (build_replicated_const): Likewise.
21206 (expand_vector_divmod): Likewise.
21207 * tree-vect-loop.c (vect_transform_loop): Likewise.
21208 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21209 (vect_do_peeling_for_alignment): Likewise.
21210 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21211 * tree-vrp.c: Include wide-int.h.
21212 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21213 (extract_range_from_assert): Use wide-int interfaces.
21214 (vrp_int_const_binop): Likewise.
21215 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21216 double_int pointers.
21217 (ranges_from_anti_range): Use wide-int interfaces.
21218 (quad_int_cmp): Delete.
21219 (quad_int_pair_sort): Likewise.
21220 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21221 (extract_range_from_unary_expr_1): Likewise.
21222 (adjust_range_with_scev): Likewise.
21223 (masked_increment): Take and return wide_ints rather than double_ints.
21224 (register_edge_assert_for_2): Use wide-int interfaces.
21225 (check_array_ref): Likewise.
21226 (search_for_addr_array): Likewise.
21227 (maybe_set_nonzero_bits): Likewise.
21228 (union_ranges): Pass an integer of the correct type instead of
21229 using integer_one_node.
21230 (intersect_ranges): Likewise.
21231 (simplify_truth_ops_using_ranges): Likewise.
21232 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21233 (range_fits_type_p): Likewise.
21234 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21235 a bool.
21236 (simplify_conversion_using_ranges): Use wide-int interfaces.
21237 (simplify_float_conversion_using_ranges): Likewise.
21238 (vrp_finalize): Likewise.
21239 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21240 (gimple_stringops_transform): Likewise.
21241 * varasm.c (decode_addr_const): Likewise.
21242 (const_hash_1): Likewise.
21243 (const_rtx_hash_1): Likewise
21244 (output_constant): Likewise.
21245 (array_size_for_constructor): Likewise.
21246 (output_constructor_regular_field): Likewise.
21247 (output_constructor_bitfield): Likewise.
21248 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21249 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21250 GENERATOR_FILEs.
21251 * gencheck.c: Define BITS_PER_UNIT.
21252 * wide-int.cc: New.
21253 * wide-int.h: New.
21254 * wide-int-print.cc: New.
21255 * wide-int-print.h: New.
21256
21257 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21258
21259 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21260
21261 2014-05-06 Richard Biener <rguenther@suse.de>
21262
21263 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21264 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21265 (TODO_verify_all): Adjust.
21266 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21267 TODO_verify_stmts and TODO_verify_rtl_sharing.
21268 * bb-reorder.c: Likewise.
21269 * cfgexpand.c: Likewise.
21270 * cprop.c: Likewise.
21271 * cse.c: Likewise.
21272 * function.c: Likewise.
21273 * fwprop.c: Likewise.
21274 * gcse.c: Likewise.
21275 * gimple-ssa-isolate-paths.c: Likewise.
21276 * gimple-ssa-strength-reduction.c: Likewise.
21277 * ipa-split.c: Likewise.
21278 * loop-init.c: Likewise.
21279 * loop-unroll.c: Likewise.
21280 * lower-subreg.c: Likewise.
21281 * modulo-sched.c: Likewise.
21282 * postreload-gcse.c: Likewise.
21283 * predict.c: Likewise.
21284 * recog.c: Likewise.
21285 * sched-rgn.c: Likewise.
21286 * store-motion.c: Likewise.
21287 * tracer.c: Likewise.
21288 * trans-mem.c: Likewise.
21289 * tree-call-cdce.c: Likewise.
21290 * tree-cfg.c: Likewise.
21291 * tree-cfgcleanup.c: Likewise.
21292 * tree-complex.c: Likewise.
21293 * tree-eh.c: Likewise.
21294 * tree-emutls.c: Likewise.
21295 * tree-if-conv.c: Likewise.
21296 * tree-into-ssa.c: Likewise.
21297 * tree-loop-distribution.c: Likewise.
21298 * tree-object-size.c: Likewise.
21299 * tree-parloops.c: Likewise.
21300 * tree-pass.h: Likewise.
21301 * tree-sra.c: Likewise.
21302 * tree-ssa-ccp.c: Likewise.
21303 * tree-ssa-copy.c: Likewise.
21304 * tree-ssa-copyrename.c: Likewise.
21305 * tree-ssa-dce.c: Likewise.
21306 * tree-ssa-dom.c: Likewise.
21307 * tree-ssa-dse.c: Likewise.
21308 * tree-ssa-forwprop.c: Likewise.
21309 * tree-ssa-ifcombine.c: Likewise.
21310 * tree-ssa-loop-ch.c: Likewise.
21311 * tree-ssa-loop-ivcanon.c: Likewise.
21312 * tree-ssa-loop.c: Likewise.
21313 * tree-ssa-math-opts.c: Likewise.
21314 * tree-ssa-phiopt.c: Likewise.
21315 * tree-ssa-phiprop.c: Likewise.
21316 * tree-ssa-pre.c: Likewise.
21317 * tree-ssa-reassoc.c: Likewise.
21318 * tree-ssa-sink.c: Likewise.
21319 * tree-ssa-strlen.c: Likewise.
21320 * tree-ssa-tail-merge.c: Likewise.
21321 * tree-ssa-uncprop.c: Likewise.
21322 * tree-switch-conversion.c: Likewise.
21323 * tree-tailcall.c: Likewise.
21324 * tree-vect-generic.c: Likewise.
21325 * tree-vectorizer.c: Likewise.
21326 * tree-vrp.c: Likewise.
21327 * tsan.c: Likewise.
21328 * var-tracking.c: Likewise.
21329 * bt-load.c: Likewise.
21330 * cfgcleanup.c: Likewise.
21331 * combine-stack-adj.c: Likewise.
21332 * combine.c: Likewise.
21333 * compare-elim.c: Likewise.
21334 * config/epiphany/resolve-sw-modes.c: Likewise.
21335 * config/i386/i386.c: Likewise.
21336 * config/mips/mips.c: Likewise.
21337 * config/s390/s390.c: Likewise.
21338 * config/sh/sh_treg_combine.cc: Likewise.
21339 * config/sparc/sparc.c: Likewise.
21340 * dce.c: Likewise.
21341 * dse.c: Likewise.
21342 * final.c: Likewise.
21343 * ifcvt.c: Likewise.
21344 * mode-switching.c: Likewise.
21345 * passes.c: Likewise.
21346 * postreload.c: Likewise.
21347 * ree.c: Likewise.
21348 * reg-stack.c: Likewise.
21349 * regcprop.c: Likewise.
21350 * regrename.c: Likewise.
21351 * web.c: Likewise.
21352
21353 2014-05-06 Richard Biener <rguenther@suse.de>
21354
21355 PR middle-end/61070
21356 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21357 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21358
21359 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
21360
21361 PR ipa/60965
21362 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21363
21364 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21365 Tom de Vries <tom@codesourcery.com>
21366
21367 * target.def (call_fusage_contains_non_callee_clobbers): New
21368 DEFHOOKPOD.
21369 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21370 Hooks to @menu.
21371 (@node Miscellaneous Register Hooks): New node.
21372 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21373 * doc/tm.texi: Regenerate.
21374
21375 2014-05-05 Marek Polacek <polacek@redhat.com>
21376
21377 PR driver/61065
21378 * opts.c (common_handle_option): Call error_at instead of warning_at.
21379
21380 2014-05-05 Richard Biener <rguenther@suse.de>
21381
21382 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21383 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21384 under the TODO_verify_il umbrella.
21385
21386 2014-05-05 Richard Biener <rguenther@suse.de>
21387
21388 * passes.c (execute_function_todo): Move TODO_verify_flow under
21389 the TODO_verify_ul umbrella.
21390
21391 2014-05-05 Richard Biener <rguenther@suse.de>
21392
21393 PR middle-end/61010
21394 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21395 X & CST away from a CST that is the mask of a mode.
21396
21397 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21398
21399 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21400 int argument to enum machine_mode.
21401 (picochip_class_max_nregs): Ditto.
21402 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21403 (picochip_class_max_nregs): Ditto.
21404
21405 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21406
21407 * target.def: Add new target hook.
21408 * doc/tm.texi: Regenerate.
21409 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21410 * targhooks.c (default_keep_leaf_when_profiled): New function.
21411
21412 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21413 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21414
21415 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21416
21417 PR tree-optimization/60363
21418 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21419 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21420 (update_destination_phis): New parameter.
21421 (create_edge_and_update_destination_phis): Ditto.
21422 (ssa_fix_duplicate_block_edges): Pass new arguments.
21423 (thread_single_edge): Ditto.
21424
21425 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21426
21427 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21428 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21429 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21430 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21431 Use RS6000_BTM_HARD_FLOAT.
21432 (BU_MISC_2): Likewise.
21433 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21434 RS6000_BTM_HARD_FLOAT.
21435 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21436 is explicitly used.
21437 (rs6000_invalid_builtin): Add hard floating builtin support.
21438 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21439 hard float builtins.
21440 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21441
21442 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21443
21444 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21445 Add missing function* argument.
21446
21447 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21448
21449 * lra-constraints.c (valid_address_p): Move earlier in file.
21450 Add a constraint argument to the address_info version.
21451 (satisfies_memory_constraint_p): New function.
21452 (satisfies_address_constraint_p): Likewise.
21453 (process_alt_operands, curr_insn_transform): Use them.
21454 (process_address): Pass the constraint to valid_address_p when
21455 checking address operands.
21456
21457 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21458
21459 * config/mips/mips.c (mips_isa_rev): New variable.
21460 (mips_set_architecture): Set it.
21461 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21462 from mips_isa_rev.
21463 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21464 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21465 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21466 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21467 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21468 conditions in terms of mips_isa_rev.
21469 (mips_isa_rev): Declare.
21470
21471 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21472
21473 * config/sh/sh-mem.cc: Use tabs instead of spaces.
21474 (prob_unlikely, prob_likely): Make variables const.
21475
21476 2014-05-03 Denis Chertykov <chertykov@gmail.com>
21477
21478 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21479
21480 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21481
21482 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21483
21484 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21485
21486 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21487 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21488 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21489 functions.
21490 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21491 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21492 sh_pass_in_reg_p.
21493 Replace usage of ROUND_REG with sh_round_reg.
21494 Use CEIL instead of ROUND_ADVANCE.
21495
21496 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21497
21498 PR target/61026
21499 * config/sh/sh.c: Include stdlib headers before everything else.
21500
21501 2014-05-02 Jakub Jelinek <jakub@redhat.com>
21502
21503 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21504 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21505 (gimplify_adjust_omp_clauses): Simd region is never
21506 directly nested in combined parallel. Instead, for linear
21507 with copyin/copyout, if in combined for simd loop, make decl
21508 firstprivate/lastprivate on OMP_FOR.
21509 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21510 expand_omp_for_static_chunk): When setting endvar, also set
21511 fd->loop.v to the same value.
21512
21513 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21514
21515 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21516
21517 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21518
21519 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21520 expression.
21521
21522 2014-05-02 Marek Polacek <polacek@redhat.com>
21523
21524 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21525
21526 2014-05-02 Kito Cheng <kito@0xlab.org>
21527
21528 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21529 to a C expression marco.
21530 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21531 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21532 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21533 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21534 HONOR_REG_ALLOC_ORDER.
21535 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21536
21537 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21538
21539 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21540
21541 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21542
21543 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21544
21545 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21546
21547 * tree-if-conv.c (is_cond_scalar_reduction): New function.
21548 (convert_scalar_cond_reduction): Likewise.
21549 (predicate_scalar_phi): Add recognition and transformation
21550 of simple conditioanl reduction to be vectorizable.
21551
21552 2014-05-01 Marek Polacek <polacek@redhat.com>
21553
21554 PR c/43245
21555 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21556
21557 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21558
21559 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21560 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21561 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21562 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21563 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21564 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21565 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21566 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21567
21568 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21569
21570 * config/arc/arc.opt (mlra): Move comment above option name
21571 to avoid mis-parsing as language options.
21572
21573 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21574
21575 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21576 * config/sol2.h: ... here.
21577 * config/sol2-10.h: Remove.
21578
21579 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21580 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21581 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21582 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21583 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21584 * config/sol2.h: ... here.
21585 (SECTION_NAME_FORMAT): Don't redefine.
21586 (STARTFILE_ARCH32_SPEC): Rename to ...
21587 (STARTFILE_ARCH_SPEC): ... this.
21588 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21589 * config/sparc/sol2.h: ... here.
21590 (SECTION_NAME_FORMAT): Don't undef.
21591 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21592 (SUBTARGET_EXTRA_SPECS): Remove.
21593 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21594
21595 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21596 (MD_STARTFILE_PREFIX): Remove.
21597 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21598 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21599 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21600 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21601 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21602 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21603 * config/i386/sol2.h: ... here.
21604 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21605 * config/i386/sol2-bi.h: Remove.
21606 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21607 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21608
21609 * config/i386/t-sol2-64: Rename to ...
21610 * config/i386/t-sol2: ... this.
21611 * config/sparc/t-sol2-64: Rename to ...
21612 * config/sparc/t-sol2: ... this.
21613
21614 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21615 sol2_tm_file_head, sol2_tm_file_tail.
21616 Include ${cpu_type}/sol2.h before sol2.h.
21617 Remove sol2-10.h.
21618 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21619 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21620 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21621 Reflect i386/t-sol2-64 renaming.
21622 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21623 Reflect sparc/t-sol2-64 renaming.
21624
21625 2014-04-30 Richard Biener <rguenther@suse.de>
21626
21627 * passes.c (execute_function_todo): Move TODO_verify_stmts
21628 and TODO_verify_ssa under the TODO_verify_il umbrella.
21629 * tree-ssa.h (verify_ssa): Adjust prototype.
21630 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21631 we should verify SSA operands.
21632 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21633 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21634 whether we should verify whether not throwing stmts have EH info.
21635 * graphite-scop-detection.c (create_sese_edges): Adjust.
21636 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21637 * tree-eh.c (lower_try_finally_switch): Do not add the
21638 default case label twice.
21639
21640 2014-04-30 Marek Polacek <polacek@redhat.com>
21641
21642 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21643 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21644 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21645 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21646
21647 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21648
21649 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21650 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21651 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21652 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21653 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21654 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21655 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21656 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21657
21658 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21659
21660 * tree-cfg.c (dump_function_to_file): Dump the return type of
21661 functions, in a line to itself before the function body, mimicking
21662 the layout of a C function.
21663
21664 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21665
21666 PR tree-optimization/60971
21667 * tree-tailcall.c (process_assignment): Reject conversions which
21668 reduce precision.
21669
21670 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21671
21672 * calls.c (initialize_argument_information): Always treat
21673 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21674 (expand_call): Likewise.
21675 (emit_library_call_calue_1): Likewise.
21676 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21677 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21678 code accordingly.
21679
21680 2014-04-29 Nick Clifton <nickc@redhat.com>
21681
21682 * config/msp430/msp430.md (umulsidi): Fix typo.
21683 (mulhisi3): Enable even inside interrupt handlers.
21684 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21685 bigger return address pushed in large mode.
21686
21687 2014-04-29 Nick Clifton <nickc@redhat.com>
21688
21689 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21690 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21691 available modes.
21692 * config/m32r/m32r.c (init_reg_tables): Likewise.
21693 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21694 enum to hold the modes.
21695
21696 2014-04-29 Richard Biener <rguenther@suse.de>
21697
21698 * dominance.c (free_dominance_info): Add overload with
21699 function parameter.
21700 (dom_info_state): Likewise.
21701 (dom_info_available_p): Likewise.
21702 * basic-block.h (free_dominance_info, dom_info_state,
21703 dom_info_available_p): Declare overloads.
21704 * passes.c (execute_function_todo): Verify that verifiers
21705 don't change dominator info state. Drop dominator info
21706 for IPA pass invocations.
21707 * cgraph.c (release_function_body): Restore asserts that
21708 dominator information is released.
21709
21710 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21711
21712 * doc/invoke.texi: Fix typo.
21713 * tree-vrp.c: Fix typos.
21714 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21715
21716 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21717
21718 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21719
21720 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21721
21722 * config/aarch64/aarch64-builtins.c
21723 (aarch64_types_storestruct_lane_qualifiers): New.
21724 (TYPES_STORESTRUCT_LANE): Likewise.
21725 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
21726 (st3_lane): Likewise.
21727 (st4_lane): Likewise.
21728 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
21729 (vec_store_lanesci_lane<mode>): Likewise.
21730 (vec_store_lanesxi_lane<mode>): Likewise.
21731 (aarch64_st2_lane<VQ:mode>): Likewise.
21732 (aarch64_st3_lane<VQ:mode>): Likewise.
21733 (aarch64_st4_lane<VQ:mode>): Likewise.
21734 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
21735 * config/aarch64/arm_neon.h
21736 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
21737 use new macro arguments.
21738 (__ST3_LANE_FUNC): Likewise.
21739 (__ST4_LANE_FUNC): Likewise.
21740 * config/aarch64/iterators.md (V_TWO_ELEM): New.
21741 (V_THREE_ELEM): Likewise.
21742 (V_FOUR_ELEM): Likewise.
21743
21744 2014-04-28 David Malcolm <dmalcolm@redhat.com>
21745
21746 * doc/gimple.texi: Replace the description of the now-defunct
21747 union gimple_statement_d with a diagram showing the
21748 gimple_statement_base class hierarchy and its relationships to
21749 the GSS_ and GIMPLE_ enums.
21750
21751 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21752
21753 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
21754 * config/aarch64/aarch64.c
21755 (aarch64_cannot_change_mode_class): Weaken conditions.
21756 (aarch64_modes_tieable_p): New.
21757 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
21758
21759 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
21760
21761 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21762 (loadsync_<mode>): Change mode.
21763 (load_quadpti, store_quadpti): New.
21764 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21765 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21766
21767 2014-04-28 Martin Jambor <mjambor@suse.cz>
21768
21769 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
21770 same alias type as the original statement.
21771 (subreplacement_assignment_data): New type.
21772 (handle_unscalarized_data_in_subtree): New type of parameter,
21773 generate new memory accesses with same alias type as the original
21774 statement.
21775 (load_assign_lhs_subreplacements): Likewise.
21776 (sra_modify_constructor_assign): Generate new memory accesses with
21777 same alias type as the original statement.
21778
21779 2014-04-28 Richard Biener <rguenther@suse.de>
21780
21781 * tree-pass.h (TODO_verify_il): Define.
21782 (TODO_verify_all): Complete properly.
21783 * passes.c (execute_function_todo): Move existing loop-closed
21784 SSA verification under TODO_verify_il.
21785 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
21786 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
21787 Fix tree sharing issue.
21788
21789 2014-04-28 Richard Biener <rguenther@suse.de>
21790
21791 PR middle-end/60092
21792 * builtins.def (DEF_C11_BUILTIN): Add.
21793 (BUILT_IN_ALIGNED_ALLOC): Likewise.
21794 * coretypes.h (enum function_class): Add function_c11_misc.
21795 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21796 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
21797 (call_may_clobber_ref_p_1): Likewise.
21798 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21799 (mark_all_reaching_defs_necessary_1): Likewise.
21800 (propagate_necessity): Likewise.
21801 (eliminate_unnecessary_stmts): Likewise.
21802 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
21803
21804 2014-04-28 Richard Biener <rguenther@suse.de>
21805
21806 * tree-vrp.c (vrp_var_may_overflow): Remove.
21807 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
21808 with overflow immediately bump to one before that value and
21809 let iteration figure out overflow status.
21810
21811 2014-04-28 Richard Biener <rguenther@suse.de>
21812
21813 * configure.ac: Do valgrind header checks unconditionally.
21814 Add --enable-valgrind-annotations.
21815 * system.h: Guard valgrind header inclusion with
21816 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
21817 * alloc-pool.c (pool_alloc, pool_free): Use
21818 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
21819 to guard possibly dead code.
21820 * config.in: Regenerated.
21821 * configure: Likewise.
21822
21823 2014-04-28 Jeff Law <law@redhat.com>
21824
21825 PR tree-optimization/60902
21826 * tree-ssa-threadedge.c
21827 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
21828 over real defs when invalidating outputs from statements that do not
21829 produce useful outputs for threading.
21830
21831 2014-04-28 Richard Biener <rguenther@suse.de>
21832
21833 PR tree-optimization/60979
21834 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
21835 SCOPs that end in a block with a successor with abnormal
21836 predecessors.
21837
21838 2014-04-28 Richard Biener <rguenther@suse.de>
21839
21840 * tree-pass.h (execute_pass_list): Adjust prototype.
21841 * passes.c (pass_manager::execute_early_local_passes): Adjust.
21842 (do_per_function): Change callback signature, push all actual
21843 work to the callbals.
21844 (do_per_function_toporder): Likewise.
21845 (execute_function_dump): Adjust.
21846 (execute_function_todo): Likewise.
21847 (clear_last_verified): Likewise.
21848 (verify_curr_properties): Likewise.
21849 (update_properties_after_pass): Likewise.
21850 (execute_pass_list_1): Split out from ...
21851 (execute_pass_list): ... here. Adjust.
21852 (execute_ipa_pass_list): Likewise.
21853 * cgraphunit.c (cgraph_add_new_function): Adjust.
21854 (analyze_function): Likewise.
21855 (expand_function): Likewise.
21856 * cgraph.c (release_function_body): Free dominance info
21857 here instead of asserting it was magically freed elsewhere.
21858
21859 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
21860
21861 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
21862 * configure: Regenerate.
21863 * config/sparc/sparc.opt (muser-mode): New option.
21864 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
21865 for LEON3.
21866 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
21867 * doc/invoke.texi (SPARC options): Document -muser-mode.
21868
21869 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
21870
21871 * cselib.c (find_slot_memmode): Delete.
21872 (cselib_hasher): Change compare_type to a struct.
21873 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
21874 constants.
21875 (preserve_constants_and_equivs): Adjust for new compare_type.
21876 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
21877 (wrap_constant): Delete.
21878 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
21879
21880 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
21881
21882 * doc/install.texi (Building with profile feedback): Remove
21883 outdated sentence.
21884
21885 2014-04-26 Tom de Vries <tom@codesourcery.com>
21886
21887 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
21888 array accesses.
21889
21890 2014-04-25 Cary Coutant <ccoutant@google.com>
21891
21892 PR debug/60929
21893 * dwarf2out.c (should_move_die_to_comdat): A type definition
21894 can contain a subprogram definition, but don't move it to a
21895 comdat unit.
21896 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
21897 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
21898 from original DIE.
21899 (clone_tree_hash): Rename to...
21900 (clone_tree_partial): ...this; change callers. Copy
21901 DW_TAG_subprogram DIEs as declarations.
21902 (copy_decls_walk): Don't copy children of a declaration into a
21903 type unit.
21904
21905 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
21906
21907 PR target/60969
21908 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
21909 alternative 12.
21910
21911 2014-04-25 Jiong Wang <jiong.wang@arm.com>
21912
21913 * config/arm/predicates.md (call_insn_operand): Add long_call check.
21914 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
21915 reg for long_call.
21916 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
21917 restriction.
21918
21919 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21920
21921 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
21922
21923 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21924
21925 PR tree-optimization/60930
21926 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
21927 creating a multiply candidate by folding two constant
21928 multiplicands when the result overflows.
21929
21930 2014-04-25 Jakub Jelinek <jakub@redhat.com>
21931
21932 PR tree-optimization/60960
21933 * tree-vect-generic.c (expand_vector_operation): Only call
21934 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
21935
21936 2014-04-25 Tom de Vries <tom@codesourcery.com>
21937
21938 * expr.c (clobber_reg_mode): New function.
21939 * expr.h (clobber_reg): New function.
21940
21941 2014-04-25 Tom de Vries <tom@codesourcery.com>
21942
21943 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
21944 clobbers.
21945
21946 2014-04-25 Radovan Obradovic <robradovic@mips.com>
21947 Tom de Vries <tom@codesourcery.com>
21948
21949 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
21950 handle.
21951 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
21952 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
21953 new argument to find_all_hard_reg_sets call.
21954
21955 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21956
21957 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
21958 Use HOST_WIDE_INT_C for mask literal.
21959 (aarch_rev16_shleft_mask_imm_p): Likewise.
21960
21961 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
21962
21963 PR target/60941
21964 * config/sparc/sparc.md (ashlsi3_extend): Delete.
21965
21966 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
21967
21968 PR preprocessor/56540
21969 * config/i386/i386-c.c (ix86_target_macros): Define
21970 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
21971
21972 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21973
21974 * configure.ac (tga_func): Remove.
21975 (LIB_TLS_SPEC): Remove.
21976 * configure: Regenerate.
21977 * config.in: Regenerate.
21978 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
21979
21980 2014-04-25 Richard Biener <rguenther@suse.de>
21981
21982 PR ipa/60912
21983 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
21984 call stmt use/clobber sets during stmt walk instead of
21985 walking the possibly incomplete set of caller edges.
21986
21987 2014-04-25 Richard Biener <rguenther@suse.de>
21988
21989 PR ipa/60911
21990 * passes.c (apply_ipa_transforms): Inline into only caller ...
21991 (execute_one_pass): ... here. Properly bring in function
21992 bodies for nodes we want to apply IPA transforms to.
21993
21994 2014-04-24 Cong Hou <congh@google.com>
21995
21996 PR tree-optimization/60896
21997 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
21998 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
21999 (vect_mark_pattern_stmts): Set the def type of all statements in
22000 PATTERN_DEF_SEQ as vect_internal_def.
22001
22002 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22003
22004 * doc/extend.texi (PowerPC Built-in Functions): Document new
22005 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22006 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22007
22008 * config/rs6000/predicates.md (const_0_to_3_operand): New
22009 predicate to match 0..3 integer constants.
22010
22011 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22012 to support adding miscellaneous builtin functions.
22013 (BU_DFP_MISC_2): Likewise.
22014 (BU_P7_MISC_1): Likewise.
22015 (BU_P7_MISC_2): Likewise.
22016 (BU_P8V_MISC_3): Likewise.
22017 (BU_MISC_1): Likewise.
22018 (BU_MISC_2): Likewise.
22019 (DIVWE): Add extended divide builtin functions.
22020 (DIVWEO): Likewise.
22021 (DIVWEU): Likewise.
22022 (DIVWEUO): Likewise.
22023 (DIVDE): Likewise.
22024 (DIVDEO): Likewise.
22025 (DIVDEU): Likewise.
22026 (DIVDEUO): Likewise.
22027 (DXEX): Add decimal floating-point builtin functions.
22028 (DXEXQ): Likewise.
22029 (DDEDPD): Likewise.
22030 (DDEDPDQ): Likewise.
22031 (DENBCD): Likewise.
22032 (DENBCDQ): Likewise.
22033 (DIEX): Likewise.
22034 (DIEXQ): Likewise.
22035 (DSCLI): Likewise.
22036 (DSCLIQ): Likewise.
22037 (DSCRI): Likewise.
22038 (DSCRIQ): Likewise.
22039 (CDTBCD): Add new BCD builtin functions.
22040 (CBCDTD): Likewise.
22041 (ADDG6S): Likewise.
22042 (BCDADD): Likewise.
22043 (BCDADD_LT): Likewise.
22044 (BCDADD_EQ): Likewise.
22045 (BCDADD_GT): Likewise.
22046 (BCDADD_OV): Likewise.
22047 (BCDSUB): Likewise.
22048 (BCDSUB_LT): Likewise.
22049 (BCDSUB_EQ): Likewise.
22050 (BCDSUB_GT): Likewise.
22051 (BCDSUB_OV): Likewise.
22052 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22053 (UNPACK_TD): Likewise.
22054 (PACK_TF): Likewise.
22055 (UNPACK_TF): Likewise.
22056 (UNPACK_TF_0): Likewise.
22057 (UNPACK_TF_1): Likewise.
22058 (PACK_V1TI): Likewise.
22059 (UNPACK_V1TI): Likewise.
22060
22061 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22062 support for decimal floating point builtin functions.
22063 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22064 functions that take constant arguments.
22065 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22066 (rs6000_init_builtins): Setup long double, _Decimal64, and
22067 _Decimal128 types for new builtin functions.
22068 (builtin_function_type): Set the unsigned flags appropriately for
22069 the new builtin functions.
22070 (rs6000_opt_masks): Add support for decimal floating point builtin
22071 functions.
22072
22073 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22074 floating point builtin functions.
22075 (RS6000_BTM_COMMON): Likewise.
22076 (RS6000_BTI_long_double): Likewise.
22077 (RS6000_BTI_dfloat64): Likewise.
22078 (RS6000_BTI_dfloat128): Likewise.
22079 (long_double_type_internal_node): Likewise.
22080 (dfloat64_type_internal_node): Likewise.
22081 (dfloat128_type_internal_node): Likewise.
22082
22083 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22084 2.07 bcd arithmetic instructions.
22085 (UNSPEC_BCDSUB): Likewise.
22086 (UNSPEC_BCD_OVERFLOW): Likewise.
22087 (UNSPEC_BCD_ADD_SUB): Likewise.
22088 (bcd_add_sub): Likewise.
22089 (BCD_TEST): Likewise.
22090 (bcd<bcd_add_sub>): Likewise.
22091 (bcd<bcd_add_sub>_test): Likewise.
22092 (bcd<bcd_add_sub>_test2): Likewise.
22093 (bcd<bcd_add_sub>_<code>): Likewise.
22094 (peephole2 for combined bcd ops): Likewise.
22095
22096 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22097 decimal floating point builtin functions.
22098 (UNSPEC_DENBCD): Likewise.
22099 (UNSPEC_DXEX): Likewise.
22100 (UNSPEC_DIEX): Likewise.
22101 (UNSPEC_DSCLI): Likewise.
22102 (UNSPEC_DSCRI): Likewise.
22103 (D64_D128): Likewise.
22104 (dfp_suffix): Likewise.
22105 (dfp_ddedpd_<mode>): Likewise.
22106 (dfp_denbcd_<mode>): Likewise.
22107 (dfp_dxex_<mode>): Likewise.
22108 (dfp_diex_<mode>): Likewise.
22109 (dfp_dscli_<mode>): Likewise.
22110 (dfp_dscri_<mode>): Likewise.
22111
22112 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22113 builtin functions.
22114 (UNSPEC_CDTBCD): Likewise.
22115 (UNSPEC_CBCDTD): Likewise.
22116 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22117 (UNSPEC_DIVEO): Likewise.
22118 (UNSPEC_DIVEU): Likewise.
22119 (UNSPEC_DIVEUO): Likewise.
22120 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22121 pack/unpack 128-bit types.
22122 (UNSPEC_PACK_128BIT): Likewise.
22123 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22124 (udiv<mode>3): Use idiv_ldiv mode attribute.
22125 (div<mode>3): Likewise.
22126 (addg6s): Add new BCD builtin functions.
22127 (cdtbcd): Likewise.
22128 (cbcdtd): Likewise.
22129 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22130 (div_extend): Likewise.
22131 (div<div_extend>_<mode>"): Likewise.
22132 (FP128_64): Add support for new builtin functions to pack/unpack
22133 128-bit types.
22134 (unpack<mode>): Likewise.
22135 (unpacktf_0): Likewise.
22136 (unpacktf_1): Likewise.
22137 (unpack<mode>_dm): Likewise.
22138 (unpack<mode>_nodm): Likewise.
22139 (pack<mode>): Likewise.
22140 (unpackv1ti): Likewise.
22141 (packv1ti): Likewise.
22142
22143 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22144
22145 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22146 is disabled.
22147
22148 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22149
22150 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22151 * gimplify.c (omp_is_private): Change last argument's type to int.
22152 Only diagnose lastprivate if the simd argument is 1, only diagnose
22153 linear if the simd argument is 2.
22154 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22155 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22156 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22157 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22158 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22159 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22160 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22161 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22162 * tree-nested.c (convert_nonlocal_omp_clauses,
22163 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22164
22165 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22166
22167 PR target/60822
22168 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22169 operand 1.
22170
22171 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22172
22173 * flag-types.h (enum ivar_visibility): Add.
22174
22175 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22176
22177 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22178 function * argument.
22179
22180 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22181
22182 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22183
22184 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22185 Tom de Vries <tom@codesourcery.com>
22186
22187 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22188 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22189 reg-note.
22190 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22191 * emit-rtl.c (try_split): Same.
22192
22193 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22194 Tom de Vries <tom@codesourcery.com>
22195
22196 * common.opt (fuse-caller-save): New option.
22197
22198 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22199
22200 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22201 elements for big-endian.
22202
22203 2014-04-24 Richard Biener <rguenther@suse.de>
22204
22205 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22206 during TER and instead use the sepops interface for expanding
22207 non-GIMPLE_SINGLE_RHS.
22208
22209 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22210
22211 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22212 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22213
22214 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22215
22216 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22217 assembler 64-bit option.
22218 * configure: Regenerate.
22219
22220 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22221
22222 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22223 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22224 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22225 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22226 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22227
22228 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22229
22230 * config/aarch64/aarch64-builtins.c
22231 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22232 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22233 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22234 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22235 builtins.
22236 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22237 (Vrevsuff): New mode attribute.
22238
22239 2014-04-24 Terry Guo <terry.guo@arm.com>
22240
22241 * config/arm/arm.h (machine_function): Define variable
22242 after_arm_reorg here.
22243 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22244 (arm_split_constant): Update the way to access variable
22245 after_arm_reorg.
22246 (arm_reorg): Ditto.
22247 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22248
22249 2014-04-23 Tom de Vries <tom@codesourcery.com>
22250
22251 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22252
22253 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22254
22255 * is-a.h: Update comments to reflect the following changes to the
22256 "pointerness" of the API, making the template parameter match the
22257 return type, allowing use of is-a.h with typedefs of pointers.
22258 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22259 that the return type matches the parameter to the is_a_helper.
22260 (as_a): Likewise.
22261 (dyn_cast): Likewise.
22262
22263 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22264 pointer from the is-a.h API.
22265
22266 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22267 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22268 is-a.h API.
22269 (is_a_helper <varpool_node>::test): Likewise, convert to...
22270 (is_a_helper <varpool_node *>::test): ...this.
22271
22272 (varpool_first_variable): Update for removal of implicit pointer
22273 from the is-a.h API.
22274 (varpool_next_variable): Likewise.
22275 (varpool_first_static_initializer): Likewise.
22276 (varpool_next_static_initializer): Likewise.
22277 (varpool_first_defined_variable): Likewise.
22278 (varpool_next_defined_variable): Likewise.
22279 (cgraph_first_defined_function): Likewise.
22280 (cgraph_next_defined_function): Likewise.
22281 (cgraph_first_function): Likewise.
22282 (cgraph_next_function): Likewise.
22283 (cgraph_first_function_with_gimple_body): Likewise.
22284 (cgraph_next_function_with_gimple_body): Likewise.
22285 (cgraph_alias_target): Likewise.
22286 (varpool_alias_target): Likewise.
22287 (cgraph_function_or_thunk_node): Likewise.
22288 (varpool_variable_node): Likewise.
22289 (symtab_real_symbol_p): Likewise.
22290 * cgraphunit.c (referred_to_p): Likewise.
22291 (analyze_functions): Likewise.
22292 (handle_alias_pairs): Likewise.
22293 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22294 * gimple-ssa.h (gimple_vuse_op): Likewise.
22295 (gimple_vdef_op): Likewise.
22296 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22297 * gimple.c (gimple_build_asm_1): Likewise.
22298 (gimple_build_try): Likewise.
22299 (gimple_build_resx): Likewise.
22300 (gimple_build_eh_dispatch): Likewise.
22301 (gimple_build_omp_for): Likewise.
22302 (gimple_omp_for_set_clauses): Likewise.
22303
22304 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22305 (is_a_helper <gimple_statement_asm *>::test): ...this.
22306 (is_a_helper <gimple_statement_bind>::test): Convert to...
22307 (is_a_helper <gimple_statement_bind *>::test): ...this.
22308 (is_a_helper <gimple_statement_call>::test): Convert to...
22309 (is_a_helper <gimple_statement_call *>::test): ...this.
22310 (is_a_helper <gimple_statement_catch>::test): Convert to...
22311 (is_a_helper <gimple_statement_catch *>::test): ...this.
22312 (is_a_helper <gimple_statement_resx>::test): Convert to...
22313 (is_a_helper <gimple_statement_resx *>::test): ...this.
22314 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22315 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22316 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22317 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22318 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22319 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22320 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22321 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22322 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22323 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22324 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22325 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22326 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22327 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22328 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22329 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22330 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22331 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22332 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22333 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22334 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22335 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22336 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22337 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22338 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22339 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22340 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22341 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22342 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22343 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22344 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22345 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22346 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22347 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22348 (is_a_helper <gimple_statement_phi>::test): Convert to...
22349 (is_a_helper <gimple_statement_phi *>::test): ...this.
22350 (is_a_helper <gimple_statement_transaction>::test): Convert to...
22351 (is_a_helper <gimple_statement_transaction *>::test): ...this.
22352 (is_a_helper <gimple_statement_try>::test): Convert to...
22353 (is_a_helper <gimple_statement_try *>::test): ...this.
22354 (is_a_helper <gimple_statement_wce>::test): Convert to...
22355 (is_a_helper <gimple_statement_wce *>::test): ...this.
22356 (is_a_helper <const gimple_statement_asm>::test): Convert to...
22357 (is_a_helper <const gimple_statement_asm *>::test): ...this.
22358 (is_a_helper <const gimple_statement_bind>::test): Convert to...
22359 (is_a_helper <const gimple_statement_bind *>::test): ...this.
22360 (is_a_helper <const gimple_statement_call>::test): Convert to...
22361 (is_a_helper <const gimple_statement_call *>::test): ...this.
22362 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22363 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22364 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22365 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22366 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22367 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22368 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22369 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22370 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22371 Convert to...
22372 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22373 ...this.
22374 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22375 Convert to...
22376 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22377 ...this.
22378 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22379 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22380 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22381 to...
22382 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22383 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22384 to...
22385 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22386 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22387 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22388 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22389 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22390 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22391 to...
22392 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22393 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22394 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22395 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22396 to...
22397 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22398 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22399 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22400 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22401 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22402 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22403 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22404 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22405 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22406 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22407 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22408 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22409 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22410 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22411 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22412 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22413 to...
22414 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22415 ...this.
22416 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22417 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22418
22419 (gimple_use_ops): Update for removal of implicit pointer from the
22420 is-a.h API.
22421 (gimple_set_use_ops): Likewise.
22422 (gimple_vuse): Likewise.
22423 (gimple_vdef): Likewise.
22424 (gimple_vuse_ptr): Likewise.
22425 (gimple_vdef_ptr): Likewise.
22426 (gimple_set_vuse): Likewise.
22427 (gimple_set_vdef): Likewise.
22428 (gimple_omp_return_set_lhs): Likewise.
22429 (gimple_omp_return_lhs): Likewise.
22430 (gimple_omp_return_lhs_ptr): Likewise.
22431 (gimple_call_fntype): Likewise.
22432 (gimple_call_set_fntype): Likewise.
22433 (gimple_call_set_internal_fn): Likewise.
22434 (gimple_call_use_set): Likewise.
22435 (gimple_call_clobber_set): Likewise.
22436 (gimple_bind_vars): Likewise.
22437 (gimple_bind_set_vars): Likewise.
22438 (gimple_bind_body_ptr): Likewise.
22439 (gimple_bind_set_body): Likewise.
22440 (gimple_bind_add_stmt): Likewise.
22441 (gimple_bind_block): Likewise.
22442 (gimple_bind_set_block): Likewise.
22443 (gimple_asm_ninputs): Likewise.
22444 (gimple_asm_noutputs): Likewise.
22445 (gimple_asm_nclobbers): Likewise.
22446 (gimple_asm_nlabels): Likewise.
22447 (gimple_asm_input_op): Likewise.
22448 (gimple_asm_input_op_ptr): Likewise.
22449 (gimple_asm_output_op): Likewise.
22450 (gimple_asm_output_op_ptr): Likewise.
22451 (gimple_asm_set_output_op): Likewise.
22452 (gimple_asm_clobber_op): Likewise.
22453 (gimple_asm_set_clobber_op): Likewise.
22454 (gimple_asm_label_op): Likewise.
22455 (gimple_asm_set_label_op): Likewise.
22456 (gimple_asm_string): Likewise.
22457 (gimple_catch_types): Likewise.
22458 (gimple_catch_types_ptr): Likewise.
22459 (gimple_catch_handler_ptr): Likewise.
22460 (gimple_catch_set_types): Likewise.
22461 (gimple_catch_set_handler): Likewise.
22462 (gimple_eh_filter_types): Likewise.
22463 (gimple_eh_filter_types_ptr): Likewise.
22464 (gimple_eh_filter_failure_ptr): Likewise.
22465 (gimple_eh_filter_set_types): Likewise.
22466 (gimple_eh_filter_set_failure): Likewise.
22467 (gimple_eh_must_not_throw_fndecl): Likewise.
22468 (gimple_eh_must_not_throw_set_fndecl): Likewise.
22469 (gimple_eh_else_n_body_ptr): Likewise.
22470 (gimple_eh_else_e_body_ptr): Likewise.
22471 (gimple_eh_else_set_n_body): Likewise.
22472 (gimple_eh_else_set_e_body): Likewise.
22473 (gimple_try_eval_ptr): Likewise.
22474 (gimple_try_cleanup_ptr): Likewise.
22475 (gimple_try_set_eval): Likewise.
22476 (gimple_try_set_cleanup): Likewise.
22477 (gimple_wce_cleanup_ptr): Likewise.
22478 (gimple_wce_set_cleanup): Likewise.
22479 (gimple_phi_capacity): Likewise.
22480 (gimple_phi_num_args): Likewise.
22481 (gimple_phi_result): Likewise.
22482 (gimple_phi_result_ptr): Likewise.
22483 (gimple_phi_set_result): Likewise.
22484 (gimple_phi_arg): Likewise.
22485 (gimple_phi_set_arg): Likewise.
22486 (gimple_resx_region): Likewise.
22487 (gimple_resx_set_region): Likewise.
22488 (gimple_eh_dispatch_region): Likewise.
22489 (gimple_eh_dispatch_set_region): Likewise.
22490 (gimple_omp_critical_name): Likewise.
22491 (gimple_omp_critical_name_ptr): Likewise.
22492 (gimple_omp_critical_set_name): Likewise.
22493 (gimple_omp_for_clauses): Likewise.
22494 (gimple_omp_for_clauses_ptr): Likewise.
22495 (gimple_omp_for_set_clauses): Likewise.
22496 (gimple_omp_for_collapse): Likewise.
22497 (gimple_omp_for_index): Likewise.
22498 (gimple_omp_for_index_ptr): Likewise.
22499 (gimple_omp_for_set_index): Likewise.
22500 (gimple_omp_for_initial): Likewise.
22501 (gimple_omp_for_initial_ptr): Likewise.
22502 (gimple_omp_for_set_initial): Likewise.
22503 (gimple_omp_for_final): Likewise.
22504 (gimple_omp_for_final_ptr): Likewise.
22505 (gimple_omp_for_set_final): Likewise.
22506 (gimple_omp_for_incr): Likewise.
22507 (gimple_omp_for_incr_ptr): Likewise.
22508 (gimple_omp_for_set_incr): Likewise.
22509 (gimple_omp_for_pre_body_ptr): Likewise.
22510 (gimple_omp_for_set_pre_body): Likewise.
22511 (gimple_omp_parallel_clauses): Likewise.
22512 (gimple_omp_parallel_clauses_ptr): Likewise.
22513 (gimple_omp_parallel_set_clauses): Likewise.
22514 (gimple_omp_parallel_child_fn): Likewise.
22515 (gimple_omp_parallel_child_fn_ptr): Likewise.
22516 (gimple_omp_parallel_set_child_fn): Likewise.
22517 (gimple_omp_parallel_data_arg): Likewise.
22518 (gimple_omp_parallel_data_arg_ptr): Likewise.
22519 (gimple_omp_parallel_set_data_arg): Likewise.
22520 (gimple_omp_task_clauses): Likewise.
22521 (gimple_omp_task_clauses_ptr): Likewise.
22522 (gimple_omp_task_set_clauses): Likewise.
22523 (gimple_omp_task_child_fn): Likewise.
22524 (gimple_omp_task_child_fn_ptr): Likewise.
22525 (gimple_omp_task_set_child_fn): Likewise.
22526 (gimple_omp_task_data_arg): Likewise.
22527 (gimple_omp_task_data_arg_ptr): Likewise.
22528 (gimple_omp_task_set_data_arg): Likewise.
22529 (gimple_omp_taskreg_clauses): Likewise.
22530 (gimple_omp_taskreg_clauses_ptr): Likewise.
22531 (gimple_omp_taskreg_set_clauses): Likewise.
22532 (gimple_omp_taskreg_child_fn): Likewise.
22533 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22534 (gimple_omp_taskreg_set_child_fn): Likewise.
22535 (gimple_omp_taskreg_data_arg): Likewise.
22536 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22537 (gimple_omp_taskreg_set_data_arg): Likewise.
22538 (gimple_omp_task_copy_fn): Likewise.
22539 (gimple_omp_task_copy_fn_ptr): Likewise.
22540 (gimple_omp_task_set_copy_fn): Likewise.
22541 (gimple_omp_task_arg_size): Likewise.
22542 (gimple_omp_task_arg_size_ptr): Likewise.
22543 (gimple_omp_task_set_arg_size): Likewise.
22544 (gimple_omp_task_arg_align): Likewise.
22545 (gimple_omp_task_arg_align_ptr): Likewise.
22546 (gimple_omp_task_set_arg_align): Likewise.
22547 (gimple_omp_single_clauses): Likewise.
22548 (gimple_omp_single_clauses_ptr): Likewise.
22549 (gimple_omp_single_set_clauses): Likewise.
22550 (gimple_omp_target_clauses): Likewise.
22551 (gimple_omp_target_clauses_ptr): Likewise.
22552 (gimple_omp_target_set_clauses): Likewise.
22553 (gimple_omp_target_child_fn): Likewise.
22554 (gimple_omp_target_child_fn_ptr): Likewise.
22555 (gimple_omp_target_set_child_fn): Likewise.
22556 (gimple_omp_target_data_arg): Likewise.
22557 (gimple_omp_target_data_arg_ptr): Likewise.
22558 (gimple_omp_target_set_data_arg): Likewise.
22559 (gimple_omp_teams_clauses): Likewise.
22560 (gimple_omp_teams_clauses_ptr): Likewise.
22561 (gimple_omp_teams_set_clauses): Likewise.
22562 (gimple_omp_sections_clauses): Likewise.
22563 (gimple_omp_sections_clauses_ptr): Likewise.
22564 (gimple_omp_sections_set_clauses): Likewise.
22565 (gimple_omp_sections_control): Likewise.
22566 (gimple_omp_sections_control_ptr): Likewise.
22567 (gimple_omp_sections_set_control): Likewise.
22568 (gimple_omp_for_set_cond): Likewise.
22569 (gimple_omp_for_cond): Likewise.
22570 (gimple_omp_atomic_store_set_val): Likewise.
22571 (gimple_omp_atomic_store_val): Likewise.
22572 (gimple_omp_atomic_store_val_ptr): Likewise.
22573 (gimple_omp_atomic_load_set_lhs): Likewise.
22574 (gimple_omp_atomic_load_lhs): Likewise.
22575 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22576 (gimple_omp_atomic_load_set_rhs): Likewise.
22577 (gimple_omp_atomic_load_rhs): Likewise.
22578 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22579 (gimple_omp_continue_control_def): Likewise.
22580 (gimple_omp_continue_control_def_ptr): Likewise.
22581 (gimple_omp_continue_set_control_def): Likewise.
22582 (gimple_omp_continue_control_use): Likewise.
22583 (gimple_omp_continue_control_use_ptr): Likewise.
22584 (gimple_omp_continue_set_control_use): Likewise.
22585 (gimple_transaction_body_ptr): Likewise.
22586 (gimple_transaction_label): Likewise.
22587 (gimple_transaction_label_ptr): Likewise.
22588 (gimple_transaction_set_body): Likewise.
22589 (gimple_transaction_set_label): Likewise.
22590
22591 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22592 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22593 * ipa-ref.c (ipa_record_reference): Likewise.
22594 * ipa-reference.c (analyze_function): Likewise.
22595 (ipa_reference_write_optimization_summary): Likewise.
22596 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22597 (address_taken_from_non_vtable_p): Likewise.
22598 (comdat_can_be_unshared_p_1): Likewise.
22599 * lto-cgraph.c (lto_output_ref): Likewise.
22600 (add_references): Likewise.
22601 (compute_ltrans_boundary): Likewise.
22602 (output_symtab): Likewise.
22603 (input_ref): Likewise.
22604 (input_cgraph_1): Likewise.
22605 (output_cgraph_opt_summary): Likewise.
22606 * lto-streamer-out.c (lto_output): Likewise.
22607 (output_symbol_p): Likewise.
22608 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22609 (lsei_start_function_in_partition): Likewise.
22610 (lsei_next_variable_in_partition): Likewise.
22611 (lsei_start_variable_in_partition): Likewise.
22612 * symtab.c (insert_to_assembler_name_hash): Likewise.
22613 (unlink_from_assembler_name_hash): Likewise.
22614 (symtab_unregister_node): Likewise.
22615 (symtab_remove_node): Likewise.
22616 (dump_symtab_node): Likewise.
22617 (verify_symtab_base): Likewise.
22618 (verify_symtab_node): Likewise.
22619 (symtab_make_decl_local): Likewise.
22620 (symtab_alias_ultimate_target): Likewise.
22621 (symtab_resolve_alias): Likewise.
22622 (symtab_get_symbol_partitioning_class): Likewise.
22623 * tree-phinodes.c (allocate_phi_node): Likewise.
22624 (reserve_phi_args_for_new_edge): Likewise.
22625 (remove_phi_args): Likewise.
22626 * varpool.c (varpool_node_for_asm): Likewise.
22627 (varpool_remove_unreferenced_decls): Likewise.
22628
22629 2014-04-23 Jeff Law <law@redhat.com>
22630
22631 PR tree-optimization/60902
22632 * tree-ssa-threadedge.c
22633 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22634 invalidate outputs from statements that do not produce useful
22635 outputs for threading.
22636
22637 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22638
22639 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22640 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22641 machine descriptions for Stack Smashing Protector.
22642
22643 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22644
22645 * aarch64.md (<optab>_rol<mode>3): New pattern.
22646 (<optab>_rolsi3_uxtw): Likewise.
22647 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22648
22649 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22650
22651 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22652 (arm_cortex_a12_tune): Likewise.
22653
22654 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22655
22656 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22657
22658 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22659
22660 * config/arm/arm.md (arm_rev16si2): New pattern.
22661 (arm_rev16si2_alt): Likewise.
22662 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22663
22664 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22665
22666 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22667 (rev16<mode>2_alt): Likewise.
22668 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22669 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22670 (aarch_rev16_shleft_mask_imm_p): Likewise.
22671 (aarch_rev16_p_1): Likewise.
22672 (aarch_rev16_p): Likewise.
22673 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22674 (aarch_rev16_shright_mask_imm_p): Likewise.
22675 (aarch_rev16_shleft_mask_imm_p): Likewise.
22676
22677 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22678
22679 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22680 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22681 rev cost.
22682 (cortex_a53_extra_costs): Likewise.
22683 (cortex_a57_extra_costs): Likewise.
22684 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22685 (cortexa7_extra_costs): Likewise.
22686 (cortexa8_extra_costs): Likewise.
22687 (cortexa12_extra_costs): Likewise.
22688 (cortexa15_extra_costs): Likewise.
22689 (v7m_extra_costs): Likewise.
22690 (arm_new_rtx_costs): Handle BSWAP.
22691
22692 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22693
22694 * config/arm/arm.c (cortexa8_extra_costs): New table.
22695 (arm_cortex_a8_tune): New tuning struct.
22696 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22697
22698 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22699
22700 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22701
22702 2014-04-23 Richard Biener <rguenther@suse.de>
22703
22704 * Makefile.in (OBJS): Remove loop-unswitch.o.
22705 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22706 * passes.def (pass_rtl_unswitch): Likewise.
22707 * loop-init.c (gate_rtl_unswitch): Likewise.
22708 (rtl_unswitch): Likewise.
22709 (pass_data_rtl_unswitch): Likewise.
22710 (pass_rtl_unswitch): Likewise.
22711 (make_pass_rtl_unswitch): Likewise.
22712 * rtl.h (reversed_condition): Likewise.
22713 (compare_and_jump_seq): Likewise.
22714 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22715 and make static.
22716 * loop-unroll.c (compare_and_jump_seq): Likewise.
22717
22718 2014-04-23 Richard Biener <rguenther@suse.de>
22719
22720 PR tree-optimization/60903
22721 * tree-ssa-loop-im.c (analyze_memory_references): Remove
22722 commented code block.
22723 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
22724 loop flags to newly created BBs and edges.
22725
22726 2014-04-23 Nick Clifton <nickc@redhat.com>
22727
22728 * config/msp430/msp430.c (msp430_handle_option): Move function
22729 to msp430-common.c
22730 (msp430_option_override): Simplify mcu and mcpu option handling.
22731 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
22732 support for -mhwmult command line option.
22733 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
22734 -mhwmult command line option.
22735 (msp430_hwmult_enabled): Delete.
22736 (msp43o_output_labelref): Add support for -mhwmult command line option.
22737 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
22738 (umulsidi3): Likewise.
22739 * config/msp430/msp430.opt (mmcu): Add Report attribute.
22740 (mcpu, mlarge, msmall): Likewise.
22741 (mhwmult): New option.
22742 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
22743 prototype.
22744 (msp430_is_f5_mcu): Remove prototype.
22745 (msp430_use_f5_series_hwmult): Add prototype.
22746 * config/msp430/msp430-opts.h: New file.
22747 * common/config/msp430: New directory.
22748 * common/config/msp430/msp430-common.c: New file.
22749 * config.gcc (msp430): Remove target_has_targetm_common.
22750 * doc/invoke.texi: Document -mhwmult command line option.
22751
22752 2014-04-23 Nick Clifton <nickc@redhat.com>
22753
22754 * config/i386/cygwin.h (ENDFILE_SPEC): Include
22755 default-manifest.o if it can be found in the search path.
22756 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22757
22758 2014-04-23 Terry Guo <terry.guo@arm.com>
22759
22760 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
22761
22762 2014-04-23 Richard Biener <rguenther@suse.de>
22763
22764 PR middle-end/60895
22765 * tree-inline.c (declare_return_variable): Use mark_addressable.
22766
22767 2014-04-23 Richard Biener <rguenther@suse.de>
22768
22769 PR middle-end/60891
22770 * loop-init.c (loop_optimizer_init): Make sure to apply
22771 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
22772
22773 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22774
22775 PR sanitizer/60275
22776 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
22777 New options.
22778 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
22779 if flag_sanitize_undefined_trap_on_error.
22780 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
22781 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
22782 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
22783 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
22784 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
22785 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
22786 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
22787 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
22788 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
22789 * ubsan.c (ubsan_instrument_unreachable): Return
22790 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
22791 (ubsan_expand_null_ifn): Emit __builtin_trap ()
22792 if flag_sanitize_undefined_trap_on_error and
22793 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
22794 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
22795 instrument_bool_enum_load): Emit __builtin_trap () if
22796 flag_sanitize_undefined_trap_on_error and
22797 __builtin_handle_*_abort () if !flag_sanitize_recover.
22798 * doc/invoke.texi (-fsanitize-recover,
22799 -fsanitize-undefined-trap-on-error): Document.
22800
22801 2014-04-22 Christian Bruel <christian.bruel@st.com>
22802
22803 * config/sh/sh.md (mov<mode>): Replace movQIHI.
22804 Force immediates to SImode.
22805
22806 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
22807
22808 * config/nios2/nios2.md (UNSPEC_ROUND): New.
22809 (lroundsfsi2): New.
22810 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
22811 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
22812 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
22813 (nios2_fpu_insn): Add entry for round.
22814 (N2FPU_NO_ERRNO_P): Define.
22815 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
22816 flag_errno_math.
22817 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
22818
22819 2014-04-22 Richard Henderson <rth@redhat.com>
22820
22821 * config/aarch64/aarch64 (addti3, subti3): New expanders.
22822 (add<GPI>3_compare0): Remove leading * from name.
22823 (add<GPI>3_carryin): Likewise.
22824 (sub<GPI>3_compare0): Likewise.
22825 (sub<GPI>3_carryin): Likewise.
22826 (<su_optab>mulditi3): New expander.
22827 (multi3): New expander.
22828 (madd<GPI>): Remove leading * from name.
22829
22830 2014-04-22 Martin Jambor <mjambor@suse.cz>
22831
22832 * cgraphclones.c (cgraph_function_versioning): Copy
22833 ipa_transforms_to_apply instead of asserting it is empty.
22834
22835 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
22836
22837 PR target/60868
22838 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
22839 on count_exp to get mode.
22840
22841 2014-04-22 Andrew Pinski <apinski@cavium.com>
22842
22843 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22844 Handle TLS for ILP32.
22845 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
22846 (tlsie_small_<mode>): this and handle PTR.
22847 (tlsie_small_sidi): New pattern.
22848 (tlsle_small): Change to an expand to handle ILP32.
22849 (tlsle_small_<mode>): New pattern.
22850 (tlsdesc_small): Rename to ...
22851 (tlsdesc_small_<mode>): this and handle PTR.
22852
22853 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22854
22855 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
22856
22857 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22858
22859 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22860 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
22861 (aarch64_types_signed_poly_qualifiers): Likewise.
22862 (aarch64_types_unsigned_signed_qualifiers): Likewise.
22863 (aarch64_types_poly_signed_qualifiers): Likewise.
22864 (TYPES_REINTERP_SS): Type macro added.
22865 (TYPES_REINTERP_SU): Likewise.
22866 (TYPES_REINTERP_SP): Likewise.
22867 (TYPES_REINTERP_US): Likewise.
22868 (TYPES_REINTERP_PS): Likewise.
22869 (aarch64_fold_builtin): New expression folding added.
22870 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
22871 Declarations removed.
22872 (REINTERP_SS): Declarations added.
22873 (REINTERP_US): Likewise.
22874 (REINTERP_PS): Likewise.
22875 (REINTERP_SU): Likewise.
22876 (REINTERP_SP): Likewise.
22877 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
22878 (vreinterpretq_p8_f64): Likewise.
22879 (vreinterpret_p16_f64): Likewise.
22880 (vreinterpretq_p16_f64): Likewise.
22881 (vreinterpret_f32_f64): Likewise.
22882 (vreinterpretq_f32_f64): Likewise.
22883 (vreinterpret_f64_f32): Likewise.
22884 (vreinterpret_f64_p8): Likewise.
22885 (vreinterpret_f64_p16): Likewise.
22886 (vreinterpret_f64_s8): Likewise.
22887 (vreinterpret_f64_s16): Likewise.
22888 (vreinterpret_f64_s32): Likewise.
22889 (vreinterpret_f64_s64): Likewise.
22890 (vreinterpret_f64_u8): Likewise.
22891 (vreinterpret_f64_u16): Likewise.
22892 (vreinterpret_f64_u32): Likewise.
22893 (vreinterpret_f64_u64): Likewise.
22894 (vreinterpretq_f64_f32): Likewise.
22895 (vreinterpretq_f64_p8): Likewise.
22896 (vreinterpretq_f64_p16): Likewise.
22897 (vreinterpretq_f64_s8): Likewise.
22898 (vreinterpretq_f64_s16): Likewise.
22899 (vreinterpretq_f64_s32): Likewise.
22900 (vreinterpretq_f64_s64): Likewise.
22901 (vreinterpretq_f64_u8): Likewise.
22902 (vreinterpretq_f64_u16): Likewise.
22903 (vreinterpretq_f64_u32): Likewise.
22904 (vreinterpretq_f64_u64): Likewise.
22905 (vreinterpret_s64_f64): Likewise.
22906 (vreinterpretq_s64_f64): Likewise.
22907 (vreinterpret_u64_f64): Likewise.
22908 (vreinterpretq_u64_f64): Likewise.
22909 (vreinterpret_s8_f64): Likewise.
22910 (vreinterpretq_s8_f64): Likewise.
22911 (vreinterpret_s16_f64): Likewise.
22912 (vreinterpretq_s16_f64): Likewise.
22913 (vreinterpret_s32_f64): Likewise.
22914 (vreinterpretq_s32_f64): Likewise.
22915 (vreinterpret_u8_f64): Likewise.
22916 (vreinterpretq_u8_f64): Likewise.
22917 (vreinterpret_u16_f64): Likewise.
22918 (vreinterpretq_u16_f64): Likewise.
22919 (vreinterpret_u32_f64): Likewise.
22920 (vreinterpretq_u32_f64): Likewise.
22921
22922 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22923
22924 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22925 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
22926 (vreinterpret_p8_s8): Likewise.
22927 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
22928 (vreinterpret_p8_s16): Likewise.
22929 (vreinterpret_p8_s32): Likewise.
22930 (vreinterpret_p8_s64): Likewise.
22931 (vreinterpret_p8_f32): Likewise.
22932 (vreinterpret_p8_u8): Likewise.
22933 (vreinterpret_p8_u16): Likewise.
22934 (vreinterpret_p8_u32): Likewise.
22935 (vreinterpret_p8_u64): Likewise.
22936 (vreinterpret_p8_p16): Likewise.
22937 (vreinterpretq_p8_s8): Likewise.
22938 (vreinterpretq_p8_s16): Likewise.
22939 (vreinterpretq_p8_s32): Likewise.
22940 (vreinterpretq_p8_s64): Likewise.
22941 (vreinterpretq_p8_f32): Likewise.
22942 (vreinterpretq_p8_u8): Likewise.
22943 (vreinterpretq_p8_u16): Likewise.
22944 (vreinterpretq_p8_u32): Likewise.
22945 (vreinterpretq_p8_u64): Likewise.
22946 (vreinterpretq_p8_p16): Likewise.
22947 (vreinterpret_p16_s8): Likewise.
22948 (vreinterpret_p16_s16): Likewise.
22949 (vreinterpret_p16_s32): Likewise.
22950 (vreinterpret_p16_s64): Likewise.
22951 (vreinterpret_p16_f32): Likewise.
22952 (vreinterpret_p16_u8): Likewise.
22953 (vreinterpret_p16_u16): Likewise.
22954 (vreinterpret_p16_u32): Likewise.
22955 (vreinterpret_p16_u64): Likewise.
22956 (vreinterpret_p16_p8): Likewise.
22957 (vreinterpretq_p16_s8): Likewise.
22958 (vreinterpretq_p16_s16): Likewise.
22959 (vreinterpretq_p16_s32): Likewise.
22960 (vreinterpretq_p16_s64): Likewise.
22961 (vreinterpretq_p16_f32): Likewise.
22962 (vreinterpretq_p16_u8): Likewise.
22963 (vreinterpretq_p16_u16): Likewise.
22964 (vreinterpretq_p16_u32): Likewise.
22965 (vreinterpretq_p16_u64): Likewise.
22966 (vreinterpretq_p16_p8): Likewise.
22967 (vreinterpret_f32_s8): Likewise.
22968 (vreinterpret_f32_s16): Likewise.
22969 (vreinterpret_f32_s32): Likewise.
22970 (vreinterpret_f32_s64): Likewise.
22971 (vreinterpret_f32_u8): Likewise.
22972 (vreinterpret_f32_u16): Likewise.
22973 (vreinterpret_f32_u32): Likewise.
22974 (vreinterpret_f32_u64): Likewise.
22975 (vreinterpret_f32_p8): Likewise.
22976 (vreinterpret_f32_p16): Likewise.
22977 (vreinterpretq_f32_s8): Likewise.
22978 (vreinterpretq_f32_s16): Likewise.
22979 (vreinterpretq_f32_s32): Likewise.
22980 (vreinterpretq_f32_s64): Likewise.
22981 (vreinterpretq_f32_u8): Likewise.
22982 (vreinterpretq_f32_u16): Likewise.
22983 (vreinterpretq_f32_u32): Likewise.
22984 (vreinterpretq_f32_u64): Likewise.
22985 (vreinterpretq_f32_p8): Likewise.
22986 (vreinterpretq_f32_p16): Likewise.
22987 (vreinterpret_s64_s8): Likewise.
22988 (vreinterpret_s64_s16): Likewise.
22989 (vreinterpret_s64_s32): Likewise.
22990 (vreinterpret_s64_f32): Likewise.
22991 (vreinterpret_s64_u8): Likewise.
22992 (vreinterpret_s64_u16): Likewise.
22993 (vreinterpret_s64_u32): Likewise.
22994 (vreinterpret_s64_u64): Likewise.
22995 (vreinterpret_s64_p8): Likewise.
22996 (vreinterpret_s64_p16): Likewise.
22997 (vreinterpretq_s64_s8): Likewise.
22998 (vreinterpretq_s64_s16): Likewise.
22999 (vreinterpretq_s64_s32): Likewise.
23000 (vreinterpretq_s64_f32): Likewise.
23001 (vreinterpretq_s64_u8): Likewise.
23002 (vreinterpretq_s64_u16): Likewise.
23003 (vreinterpretq_s64_u32): Likewise.
23004 (vreinterpretq_s64_u64): Likewise.
23005 (vreinterpretq_s64_p8): Likewise.
23006 (vreinterpretq_s64_p16): Likewise.
23007 (vreinterpret_u64_s8): Likewise.
23008 (vreinterpret_u64_s16): Likewise.
23009 (vreinterpret_u64_s32): Likewise.
23010 (vreinterpret_u64_s64): Likewise.
23011 (vreinterpret_u64_f32): Likewise.
23012 (vreinterpret_u64_u8): Likewise.
23013 (vreinterpret_u64_u16): Likewise.
23014 (vreinterpret_u64_u32): Likewise.
23015 (vreinterpret_u64_p8): Likewise.
23016 (vreinterpret_u64_p16): Likewise.
23017 (vreinterpretq_u64_s8): Likewise.
23018 (vreinterpretq_u64_s16): Likewise.
23019 (vreinterpretq_u64_s32): Likewise.
23020 (vreinterpretq_u64_s64): Likewise.
23021 (vreinterpretq_u64_f32): Likewise.
23022 (vreinterpretq_u64_u8): Likewise.
23023 (vreinterpretq_u64_u16): Likewise.
23024 (vreinterpretq_u64_u32): Likewise.
23025 (vreinterpretq_u64_p8): Likewise.
23026 (vreinterpretq_u64_p16): Likewise.
23027 (vreinterpret_s8_s16): Likewise.
23028 (vreinterpret_s8_s32): Likewise.
23029 (vreinterpret_s8_s64): Likewise.
23030 (vreinterpret_s8_f32): Likewise.
23031 (vreinterpret_s8_u8): Likewise.
23032 (vreinterpret_s8_u16): Likewise.
23033 (vreinterpret_s8_u32): Likewise.
23034 (vreinterpret_s8_u64): Likewise.
23035 (vreinterpret_s8_p8): Likewise.
23036 (vreinterpret_s8_p16): Likewise.
23037 (vreinterpretq_s8_s16): Likewise.
23038 (vreinterpretq_s8_s32): Likewise.
23039 (vreinterpretq_s8_s64): Likewise.
23040 (vreinterpretq_s8_f32): Likewise.
23041 (vreinterpretq_s8_u8): Likewise.
23042 (vreinterpretq_s8_u16): Likewise.
23043 (vreinterpretq_s8_u32): Likewise.
23044 (vreinterpretq_s8_u64): Likewise.
23045 (vreinterpretq_s8_p8): Likewise.
23046 (vreinterpretq_s8_p16): Likewise.
23047 (vreinterpret_s16_s8): Likewise.
23048 (vreinterpret_s16_s32): Likewise.
23049 (vreinterpret_s16_s64): Likewise.
23050 (vreinterpret_s16_f32): Likewise.
23051 (vreinterpret_s16_u8): Likewise.
23052 (vreinterpret_s16_u16): Likewise.
23053 (vreinterpret_s16_u32): Likewise.
23054 (vreinterpret_s16_u64): Likewise.
23055 (vreinterpret_s16_p8): Likewise.
23056 (vreinterpret_s16_p16): Likewise.
23057 (vreinterpretq_s16_s8): Likewise.
23058 (vreinterpretq_s16_s32): Likewise.
23059 (vreinterpretq_s16_s64): Likewise.
23060 (vreinterpretq_s16_f32): Likewise.
23061 (vreinterpretq_s16_u8): Likewise.
23062 (vreinterpretq_s16_u16): Likewise.
23063 (vreinterpretq_s16_u32): Likewise.
23064 (vreinterpretq_s16_u64): Likewise.
23065 (vreinterpretq_s16_p8): Likewise.
23066 (vreinterpretq_s16_p16): Likewise.
23067 (vreinterpret_s32_s8): Likewise.
23068 (vreinterpret_s32_s16): Likewise.
23069 (vreinterpret_s32_s64): Likewise.
23070 (vreinterpret_s32_f32): Likewise.
23071 (vreinterpret_s32_u8): Likewise.
23072 (vreinterpret_s32_u16): Likewise.
23073 (vreinterpret_s32_u32): Likewise.
23074 (vreinterpret_s32_u64): Likewise.
23075 (vreinterpret_s32_p8): Likewise.
23076 (vreinterpret_s32_p16): Likewise.
23077 (vreinterpretq_s32_s8): Likewise.
23078 (vreinterpretq_s32_s16): Likewise.
23079 (vreinterpretq_s32_s64): Likewise.
23080 (vreinterpretq_s32_f32): Likewise.
23081 (vreinterpretq_s32_u8): Likewise.
23082 (vreinterpretq_s32_u16): Likewise.
23083 (vreinterpretq_s32_u32): Likewise.
23084 (vreinterpretq_s32_u64): Likewise.
23085 (vreinterpretq_s32_p8): Likewise.
23086 (vreinterpretq_s32_p16): Likewise.
23087 (vreinterpret_u8_s8): Likewise.
23088 (vreinterpret_u8_s16): Likewise.
23089 (vreinterpret_u8_s32): Likewise.
23090 (vreinterpret_u8_s64): Likewise.
23091 (vreinterpret_u8_f32): Likewise.
23092 (vreinterpret_u8_u16): Likewise.
23093 (vreinterpret_u8_u32): Likewise.
23094 (vreinterpret_u8_u64): Likewise.
23095 (vreinterpret_u8_p8): Likewise.
23096 (vreinterpret_u8_p16): Likewise.
23097 (vreinterpretq_u8_s8): Likewise.
23098 (vreinterpretq_u8_s16): Likewise.
23099 (vreinterpretq_u8_s32): Likewise.
23100 (vreinterpretq_u8_s64): Likewise.
23101 (vreinterpretq_u8_f32): Likewise.
23102 (vreinterpretq_u8_u16): Likewise.
23103 (vreinterpretq_u8_u32): Likewise.
23104 (vreinterpretq_u8_u64): Likewise.
23105 (vreinterpretq_u8_p8): Likewise.
23106 (vreinterpretq_u8_p16): Likewise.
23107 (vreinterpret_u16_s8): Likewise.
23108 (vreinterpret_u16_s16): Likewise.
23109 (vreinterpret_u16_s32): Likewise.
23110 (vreinterpret_u16_s64): Likewise.
23111 (vreinterpret_u16_f32): Likewise.
23112 (vreinterpret_u16_u8): Likewise.
23113 (vreinterpret_u16_u32): Likewise.
23114 (vreinterpret_u16_u64): Likewise.
23115 (vreinterpret_u16_p8): Likewise.
23116 (vreinterpret_u16_p16): Likewise.
23117 (vreinterpretq_u16_s8): Likewise.
23118 (vreinterpretq_u16_s16): Likewise.
23119 (vreinterpretq_u16_s32): Likewise.
23120 (vreinterpretq_u16_s64): Likewise.
23121 (vreinterpretq_u16_f32): Likewise.
23122 (vreinterpretq_u16_u8): Likewise.
23123 (vreinterpretq_u16_u32): Likewise.
23124 (vreinterpretq_u16_u64): Likewise.
23125 (vreinterpretq_u16_p8): Likewise.
23126 (vreinterpretq_u16_p16): Likewise.
23127 (vreinterpret_u32_s8): Likewise.
23128 (vreinterpret_u32_s16): Likewise.
23129 (vreinterpret_u32_s32): Likewise.
23130 (vreinterpret_u32_s64): Likewise.
23131 (vreinterpret_u32_f32): Likewise.
23132 (vreinterpret_u32_u8): Likewise.
23133 (vreinterpret_u32_u16): Likewise.
23134 (vreinterpret_u32_u64): Likewise.
23135 (vreinterpret_u32_p8): Likewise.
23136 (vreinterpret_u32_p16): Likewise.
23137 (vreinterpretq_u32_s8): Likewise.
23138 (vreinterpretq_u32_s16): Likewise.
23139 (vreinterpretq_u32_s32): Likewise.
23140 (vreinterpretq_u32_s64): Likewise.
23141 (vreinterpretq_u32_f32): Likewise.
23142 (vreinterpretq_u32_u8): Likewise.
23143 (vreinterpretq_u32_u16): Likewise.
23144 (vreinterpretq_u32_u64): Likewise.
23145 (vreinterpretq_u32_p8): Likewise.
23146 (vreinterpretq_u32_p16): Likewise.
23147
23148 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23149
23150 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23151 Pattern extended.
23152 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23153 (sqabs): Likewise.
23154 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23155 (vqnegd_s64): Likewise.
23156 (vqabs_s64): Likewise.
23157 (vqabsd_s64): Likewise.
23158
23159 2014-04-22 Richard Henderson <rth@redhat.com>
23160
23161 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23162 computation to the top of the loop.
23163
23164 2014-04-22 Renlin <renlin.li@arm.com>
23165 Jiong Wang <jiong.wang@arm.com>
23166
23167 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23168 * config/aarch64/aarch64.c (aarch64_layout_frame)
23169 (aarch64_initial_elimination_offset): Likewise.
23170
23171 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23172
23173 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23174 Fix indentation.
23175
23176 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23177
23178 * machmode.h (bitwise_mode_for_mode): Declare.
23179 * stor-layout.h (bitwise_type_for_mode): Likewise.
23180 * stor-layout.c (bitwise_mode_for_mode): New function.
23181 (bitwise_type_for_mode): Likewise.
23182 * builtins.c (fold_builtin_memory_op): Use it instead of
23183 int_mode_for_mode and build_nonstandard_integer_type.
23184
23185 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23186
23187 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23188 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23189 (*-*-solaris2*): Simplify.
23190 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23191 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23192 *-*-solaris2.9* handling.
23193
23194 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23195 as bug.
23196 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23197 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23198 handling, simplify.
23199 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23200 * configure: Regenerate.
23201
23202 * config/i386/sol2-9.h: Remove.
23203
23204 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23205 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23206 Remove Solaris 9 references.
23207
23208 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23209
23210 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23211 (floatuns<GPI:mode><GPF:mode>2): Remove.
23212 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23213 and floatuns conversions.
23214 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23215 and floatuns conversions.
23216 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23217 (w1,w2): New mode attributes for inequal width conversions.
23218
23219 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23220
23221 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23222 the output asm format.
23223
23224 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23225
23226 * config/aarch64/aarch64-simd.md
23227 (aarch64_cm<optab>di): Always split.
23228 (*aarch64_cm<optab>di): New.
23229 (aarch64_cmtstdi): Always split.
23230 (*aarch64_cmtstdi): New.
23231
23232 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23233
23234 PR tree-optimization/60823
23235 * omp-low.c (ipa_simd_modify_function_body): Go through
23236 all SSA_NAMEs and for those refering to vector arguments
23237 which are going to be replaced adjust SSA_NAME_VAR and,
23238 if it is a default definition, change it into a non-default
23239 definition assigned at the beginning of function from new_decl.
23240 (ipa_simd_modify_stmt_ops): Rewritten.
23241 * tree-dfa.c (set_ssa_default_def): When removing default def,
23242 check for NULL loc instead of NULL *loc.
23243
23244 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23245
23246 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23247 restrictions on core registers for DImode values in Thumb2.
23248
23249 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23250
23251 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23252 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23253
23254 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23255
23256 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23257 (*iordi_notzesidi_di): Likewise.
23258 (*iordi_notsesidi_di): Likewise.
23259
23260 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23261
23262 * config/arm/arm-protos.h (tune_params): New struct members.
23263 * config/arm/arm.c: Initialise tune_params per processor.
23264 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23265 for speed, based on new tune_params.
23266
23267 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23268
23269 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23270 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23271 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23272 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23273 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23274 (vrnda_f64): Likewise.
23275 (vrndi_f64): Likewise.
23276 (vrndm_f64): Likewise.
23277 (vrndn_f64): Likewise.
23278 (vrndp_f64): Likewise.
23279 (vrndx_f64): Likewise.
23280
23281 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23282
23283 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23284 GET_MODE_SIZE argument is enum machine_mode.
23285
23286 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23287
23288 PR target/60910
23289 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23290 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23291
23292 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23293
23294 PR middle-end/60281
23295 * asan.c (asan_emit_stack_protection): Force the base to align to
23296 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23297 appropriate bits if STRICT_ALIGNMENT.
23298 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23299 when asan is on.
23300 (expand_used_vars): Leave a space in the stack frame for alignment
23301 if STRICT_ALIGNMENT.
23302
23303 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23304
23305 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23306 than a gimple.
23307 (gimple_store_p): Likewise.
23308 (gimple_assign_load_p): Likewise.
23309 (gimple_assign_cast_p): Likewise.
23310 (gimple_clobber_p): Likewise.
23311
23312 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23313 rather than a gimple.
23314 (gimple_assign_cast_p): Likewise.
23315
23316 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23317
23318 PR target/60735
23319 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23320 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23321
23322 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23323 more debug information for E500 if -mdebug=reg.
23324
23325 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23326
23327 PR target/60909
23328 * config/i386/i386.c (ix86_expand_builtin)
23329 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23330 register for target RTX.
23331 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23332
23333 2014-04-18 Cong Hou <congh@google.com>
23334
23335 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23336 the widen-mult pattern by handling two operands with different sizes,
23337 and operands whose size is smaller than half of the result type.
23338
23339 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23340
23341 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23342 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23343 (do_estimate_edge_time): Compute it.
23344 * ipa-inline.c (want_inline_small_function_p): Bypass
23345 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23346
23347 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23348
23349 * ipa-inline.c (spec_rem): New static variable.
23350 (dump_overall_stats): New function.
23351 (dump_inline_stats): New function.
23352
23353 2014-04-18 Richard Henderson <rth@redhat.com>
23354
23355 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23356 to GET_MODE_SIZE, not a reg_class_t.
23357
23358 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23359
23360 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23361 (vsx_xxmrglw_<mode>): Likewise.
23362
23363 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23364
23365 PR target/60876
23366 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23367 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23368 (rs6000_init_hard_regno_mode_ok): Likewise.
23369
23370 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23371
23372 * ipa-inline.c (inline_small_functions): Account only non-cold
23373 functions.
23374 * doc/invoke.texi (inline-unit-growth): Update documentation.
23375
23376 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23377
23378 * config/rs6000/rs6000.md (addti3, subti3): New.
23379
23380 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23381
23382 PR target/60863
23383 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23384 comment. Check optimize_insn_for_size_p instead of
23385 optimize_insn_for_speed_p.
23386
23387 2014-04-17 Martin Jambor <mjambor@suse.cz>
23388
23389 * gimple-iterator.c (gsi_start_edge): New function.
23390 * gimple-iterator.h (gsi_start_edge): Declare.
23391 * tree-sra.c (single_non_eh_succ): New function.
23392 (disqualify_ops_if_throwing_stmt): Renamed to
23393 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23394 having one non-EH successor BB.
23395 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23396 generate loads into replacements.
23397 (sra_modify_assign): Likewise and and also use the simple path for
23398 such statements.
23399 (sra_modify_function_body): Commit statements on edges.
23400
23401 2014-04-17 Richard Biener <rguenther@suse.de>
23402
23403 PR middle-end/60849
23404 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23405 comparison results and add clarifying comment.
23406
23407 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23408
23409 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23410 (blank_mode): Initialize it.
23411 (emit_mode_size_inline, emit_mode_nunits_inline,
23412 emit_mode_inner_inline): New functions.
23413 (emit_insn_modes_h): Call them and surround their output with
23414 #if GCC_VERSION >= 4001 ... #endif.
23415 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23416 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23417 mode_* arrays if the argument is __builtin_constant_p.
23418 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23419 is enum machine_mode.
23420
23421 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23422
23423 * passes.c (opt_pass::execute): Adjust.
23424 (pass_manager::execute_pass_mode_switching): Likewise.
23425 (early_local_passes::execute): Likewise.
23426 (execute_one_pass): Pass cfun to the pass's execute method.
23427 * tree-pass.h (opt_pass::execute): Add function * argument.
23428 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23429 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23430 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23431 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23432 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23433 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23434 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23435 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23436 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23437 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23438 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23439 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23440 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23441 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23442 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23443 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23444 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23445 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23446 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23447 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23448 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23449 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23450 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23451 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23452 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23453 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23454 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23455 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23456 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23457 Adjust.
23458
23459 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23460
23461 * passes.c (opt_pass::gate): Take function * argument.
23462 (gate_all_early_local_passes): Merge into
23463 (early_local_passes::gate): this.
23464 (gate_all_early_optimizations): Merge into
23465 (all_early_optimizations::gate): this.
23466 (gate_all_optimizations): Mege into
23467 (all_optimizations::gate): this.
23468 (gate_all_optimizations_g): Merge into
23469 (all_optimizations_g::gate): this.
23470 (gate_rest_of_compilation): Mege into
23471 (rest_of_compilation::gate): this.
23472 (gate_postreload): Merge into
23473 (postreload::gate): this.
23474 (dump_one_pass): Pass cfun to the pass's gate method.
23475 (execute_ipa_summary_passes): Likewise.
23476 (execute_one_pass): Likewise.
23477 (ipa_write_summaries_2): Likewise.
23478 (ipa_write_optimization_summaries_1): Likewise.
23479 (ipa_read_summaries_1): Likewise.
23480 (ipa_read_optimization_summaries_1): Likewise.
23481 (execute_ipa_stmt_fixups): Likewise.
23482 * tree-pass.h (opt_pass::gate): Add function * argument.
23483 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23484 combine-stack-adj.c, combine.c, compare-elim.c,
23485 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23486 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23487 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23488 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
23489 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23490 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23491 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23492 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23493 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23494 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23495 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23496 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23497 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23498 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23499 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23500 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23501 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23502 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23503 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23504 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23505 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23506 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23507 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23508 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23509 var-tracking.c, vtable-verify.c, web.c: Adjust.
23510
23511 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23512
23513 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23514 * configure: Regenerate.
23515
23516 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23517
23518 * passes.c (dump_one_pass): don't check pass->has_gate.
23519 (execute_ipa_summary_passes): Likewise.
23520 (execute_one_pass): Likewise.
23521 (ipa_write_summaries_2): Likewise.
23522 (ipa_write_optimization_summaries_1): Likewise.
23523 (ipa_read_optimization_summaries_1): Likewise.
23524 (execute_ipa_stmt_fixups): Likewise.
23525 * tree-pass.h (pass_data::has_gate): Remove.
23526 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23527 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23528 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23529 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23530 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23531 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23532 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23533 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23534 gimple-low.c, gimple-ssa-isolate-paths.c,
23535 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23536 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23537 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23538 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23539 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23540 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23541 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23542 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23543 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23544 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23545 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23546 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23547 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23548 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23549 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23550 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23551 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23552 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23553 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23554 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23555 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23556 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23557 Adjust.
23558
23559 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23560
23561 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23562 declaration.
23563 * passes.c (pass_manager::register_dump_files_1): Merge into
23564 (pass_manager::register_dump_files): this, and remove its handling of
23565 properties since the pass always has the properties anyway.
23566 (pass_manager::pass_manager): Adjust.
23567
23568 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23569
23570 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23571 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23572 dealing with properties.
23573 (pass_manager::register_dump_files): Adjust.
23574
23575 2014-03-20 Mark Wielaard <mjw@redhat.com>
23576
23577 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23578 then represent the bound as normal constant value.
23579
23580 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23581
23582 PR target/60847
23583 Forward port from 4.8 branch
23584 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23585
23586 * config/i386/bmiintrin.h (_blsi_u32): New.
23587 (_blsi_u64): Ditto.
23588 (_blsr_u32): Ditto.
23589 (_blsr_u64): Ditto.
23590 (_blsmsk_u32): Ditto.
23591 (_blsmsk_u64): Ditto.
23592 (_tzcnt_u32): Ditto.
23593 (_tzcnt_u64): Ditto.
23594
23595 2014-04-17 Kito Cheng <kito@0xlab.org>
23596
23597 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23598
23599 2014-04-17 Richard Biener <rguenther@suse.de>
23600
23601 PR middle-end/60849
23602 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23603 boolean results for comparisons.
23604
23605 2014-04-17 Richard Biener <rguenther@suse.de>
23606
23607 PR tree-optimization/60836
23608 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23609 initial PHI args to be gimple values.
23610
23611 2014-04-17 Richard Biener <rguenther@suse.de>
23612
23613 PR tree-optimization/60841
23614 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23615 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23616 of stmts to SLP build.
23617 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23618 (vect_analyze_slp): Likewise.
23619 (vect_analyze_slp_instance): Likewise.
23620 (vect_build_slp_tree): Limit overall SLP tree growth.
23621 * tree-vectorizer.h (vect_analyze_data_refs,
23622 vect_analyze_slp): Adjust prototypes.
23623
23624 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23625
23626 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23627 Silvermont.
23628
23629 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23630
23631 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23632 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23633 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23634 for TARGET_SLOW_PSHUFB
23635
23636 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23637
23638 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23639 * config/i386/i386.c (intel_cost): Ditto.
23640
23641 2014-04-17 Joey Ye <joey.ye@arm.com>
23642
23643 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23644
23645 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23646
23647 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23648 with -fuse-profile.
23649
23650 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23651
23652 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23653 (type_all_derivations_known_p): New predicate.
23654 (type_all_ctors_visible_p): New predicate.
23655 (type_possibly_instantiated_p): New predicate.
23656 (get_odr_type): Compute all_derivations_known.
23657 (dump_odr_type): Dump the flag.
23658 (maybe_record_type): Cleanup.
23659 (record_target_from_binfo): Add bases_to_consider array;
23660 record bases for types w/o instances and skip CXX destructor.
23661 (possible_polymorphic_call_targets_1): Add bases_to_consider
23662 and consider_construction parameters; check if type may have instance.
23663 (get_polymorphic_call_info): Set maybe_in_construction to true
23664 when we know nothing.
23665 (record_targets_from_bases): Skip CXX destructors; they are
23666 never called for types in construction.
23667 (possible_polymorphic_call_targets): Do not record target when
23668 type may not have instance.
23669
23670 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23671
23672 PR ipa/60854
23673 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23674 external aliases alive, too.
23675
23676 2014-04-16 Andrew Pinski <apinski@cavium.com>
23677
23678 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23679 definition.
23680
23681 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23682
23683 * final.c (compute_alignments): Do not apply loop alignment to a block
23684 falling through to the exit.
23685
23686 2014-04-16 Catherine Moore <clm@codesourcery.com>
23687
23688 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23689 Adjust constraints for microMIPS store patterns.
23690
23691 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23692
23693 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23694
23695 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23696
23697 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23698 (append_use): Run at -O0.
23699 (append_vdef): Likewise.
23700 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23701 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23702
23703 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23704
23705 PR tree-optimization/60844
23706 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23707 (propagate_op_to_single_use, remove_visited_stmt_chain,
23708 linearize_expr, repropagate_negates, reassociate_bb): Use it
23709 instead of gsi_remove.
23710
23711 2014-04-16 Martin Jambor <mjambor@suse.cz>
23712
23713 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23714 ipa_transforms_to_apply.
23715 (cgraph_function_versioning): Assert that old_node has empty
23716 ipa_transforms_to_apply.
23717 * trans-mem.c (ipa_tm_create_version): Likewise.
23718 * tree-inline.c (tree_function_versioning): Do not duplicate
23719 ipa_transforms_to_apply.
23720
23721 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23722
23723 PR target/60817
23724 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
23725 x86_64-*-* cases.
23726 Pass necessary as flags on 64-bit Solaris/x86.
23727 Use lowercase relocs for x86_64-*-*.
23728 * configure: Regenerate.
23729
23730 2014-04-15 Jan Hubicka <jh@suse.cz>
23731
23732 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
23733 (maybe_record_node, likely_target_p): Use it.
23734
23735 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23736
23737 PR target/60839
23738 Revert following patch
23739
23740 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23741
23742 PR target/60735
23743 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23744 software floating point or no floating point registers, do not
23745 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23746 in GPRs that occurs after we tested for GPRs that would never be
23747 true.
23748
23749 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23750 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23751 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23752 specifically allow DDmode, since that does not use the SPE SIMD
23753 instructions.
23754
23755 2014-03-21 Mark Wielaard <mjw@redhat.com>
23756
23757 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
23758 as unsigned or int depending on type and value used.
23759
23760 2014-04-15 Richard Biener <rguenther@suse.de>
23761
23762 PR rtl-optimization/56965
23763 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
23764 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
23765 ... here.
23766 * alias.c (true_dependence_1): Do not call
23767 nonoverlapping_component_refs_p.
23768 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
23769 nonoverlapping_component_refs_p.
23770 (indirect_refs_may_alias_p): Likewise.
23771
23772 2014-04-15 Teresa Johnson <tejohnson@google.com>
23773
23774 * cfg.c (dump_bb_info): Fix flags check.
23775 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
23776
23777 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23778
23779 PR rtl-optimization/60663
23780 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
23781 avoid 0 cost.
23782
23783 2014-04-15 Richard Biener <rguenther@suse.de>
23784
23785 * lto-streamer.h (LTO_major_version): Bump to 4.
23786
23787 2014-04-15 Richard Biener <rguenther@suse.de>
23788
23789 * common.opt (lto_partition_model): New enum.
23790 (flto-partition=): Merge separate options with a single with argument,
23791 add -flto-partition=one support.
23792 * flag-types.h (enum lto_partition_model): Declare.
23793 * opts.c (finish_options): Remove duplicate -flto-partition=
23794 option check.
23795 * lto-wrapper.c (run_gcc): Adjust.
23796
23797 2014-04-15 Richard Biener <rguenther@suse.de>
23798
23799 * alias.c (ncr_compar): New function.
23800 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
23801
23802 2014-04-15 Richard Biener <rguenther@suse.de>
23803
23804 * alias.c (record_component_aliases): Do not walk BINFOs.
23805
23806 2014-04-15 Richard Biener <rguenther@suse.de>
23807
23808 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23809 Add struct function argument and adjust.
23810 (find_func_aliases_for_call): Likewise.
23811 (find_func_aliases): Likewise.
23812 (find_func_clobbers): Likewise.
23813 (intra_create_variable_infos): Likewise.
23814 (compute_points_to_sets): Likewise.
23815 (ipa_pta_execute): Adjust. Do not push/pop cfun.
23816
23817 2014-04-15 Richard Biener <rguenther@suse.de>
23818
23819 * tree.c (iterative_hash_expr): Use enum tree_code_class
23820 to store TREE_CODE_CLASS.
23821 (tree_block): Likewise.
23822 (tree_set_block): Likewise.
23823 * tree.h (fold_build_pointer_plus_loc): Use
23824 convert_to_ptrofftype_loc.
23825
23826 2014-04-15 Jakub Jelinek <jakub@redhat.com>
23827
23828 PR plugins/59335
23829 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
23830 added in 4.9.
23831
23832 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
23833
23834 * cfgloop.h (struct loop): Move force_vectorize down.
23835 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
23836 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
23837 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
23838 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
23839 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
23840 * tree-core.h (enum annot_expr_kind): Add new kind values.
23841 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
23842 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
23843 kinds.
23844 * tree.def (ANNOTATE_EXPR): Tweak comment.
23845
23846 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23847
23848 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
23849 cxa_pure_virtual).
23850
23851 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
23852
23853 * tree.h (TYPE_IDENTIFIER): Declare.
23854 * tree.c (subrange_type_for_debug_p): Use it.
23855 * godump.c (go_format_type): Likewise.
23856 * dwarf2out.c (is_cxx_auto, modified_type_die,
23857 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
23858 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
23859
23860 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23861
23862 PR lto/60820
23863 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
23864
23865 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
23866
23867 * config/i386/i386.c (examine_argument): Return bool. Return true if
23868 parameter should be passed in memory.
23869 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
23870 (construct_container): Update calls to examine_argument.
23871 (function_arg_advance_64): Ditto.
23872 (return_in_memory_32): Merge with ix86_return_in_memory.
23873 (return_in_memory_64): Ditto.
23874 (return_in_memory_ms_64): Ditto.
23875
23876 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23877
23878 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
23879 * coverage.c (coverage_compute_profile_id): Handle externally visible
23880 symbols.
23881
23882 2014-04-14 Martin Jambor <mjambor@suse.cz>
23883
23884 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
23885 DECL_DISREGARD_INLINE_LIMITS functions.
23886
23887 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23888
23889 PR target/60827
23890 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
23891
23892 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23893
23894 PR target/60827
23895 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
23896 optimize_insn_for_speed_p instead of
23897 optimize_function_for_speed_p.
23898
23899 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
23900
23901 * doc/invoke.texi (free): Document AArch64.
23902
23903 2014-04-14 Richard Biener <rguenther@suse.de>
23904
23905 PR tree-optimization/60042
23906 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
23907 (insert_into_preds_of_block): Do not prevent PHI insertion
23908 for REFERENCE exprs here ...
23909 (eliminate_dom_walker::before_dom_children): ... but prevent
23910 their use here under similar conditions when applied to the
23911 IL after PRE optimizations.
23912
23913 2014-04-14 Richard Biener <rguenther@suse.de>
23914
23915 * passes.def: Move early points-to after early SRA.
23916
23917 2014-04-14 Richard Biener <rguenther@suse.de>
23918
23919 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
23920 check for which sign-changes we allow when forwarding
23921 a converted value into a switch.
23922
23923 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23924
23925 * stor-layout.c (place_field): Finalize non-constant offset for the
23926 field, if any.
23927
23928 2014-04-14 Richard Biener <rguenther@suse.de>
23929
23930 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
23931 as argument.
23932 (expand_switch_using_bit_tests_p): Likewise.
23933 (process_switch): Compute and pass on speed_p based on the
23934 switch stmt.
23935 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
23936 optimize_bb_for_speed_p.
23937
23938 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23939
23940 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
23941 * function.h (struct function): Rename has_force_vect_loops into
23942 has_force_vectorize_loops.
23943 * lto-streamer-in.c (input_cfg): Adjust for renaming.
23944 (input_struct_function_base): Likewise.
23945 * lto-streamer-out.c (output_cfg): Likewise.
23946 (output_struct_function_base): Likewise.
23947 * omp-low.c (expand_omp_simd): Likewise.
23948 * tree-cfg.c (move_sese_region_to_fn): Likewise.
23949 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
23950 (version_loop_for_if_conversion): Likewise.
23951 (tree_if_conversion): Likewise.
23952 (main_tree_if_conversion): Likewise.
23953 (gate_tree_if_conversion): Likewise.
23954 * tree-inline.c (copy_loops): Likewise.
23955 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
23956 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
23957 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23958 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
23959 * tree-vectorizer.c (vectorize_loops): Likewise.
23960 * tree-vectorizer.h (unlimited_cost_model): Likewise.
23961
23962 2014-04-14 Richard Biener <rguenther@suse.de>
23963
23964 PR lto/60720
23965 * lto-streamer-out.c (wrap_refs): New function.
23966 (lto_output): Wrap symbol references in global initializes in
23967 type-preserving MEM_REFs.
23968
23969 2014-04-14 Christian Bruel <christian.bruel@st.com>
23970
23971 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
23972
23973 2014-04-14 Christian Bruel <christian.bruel@st.com>
23974
23975 * config/sh/sh.md (setmemqi): New expand pattern.
23976 * config/sh/sh.h (CLEAR_RATIO): Define.
23977 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
23978 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
23979
23980 2014-04-14 Richard Biener <rguenther@suse.de>
23981
23982 PR middle-end/55022
23983 * fold-const.c (negate_expr_p): Don't negate directional rounding
23984 division.
23985 (fold_negate_expr): Likewise.
23986
23987 2014-04-14 Richard Biener <rguenther@suse.de>
23988
23989 PR tree-optimization/59817
23990 PR tree-optimization/60453
23991 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
23992 recursion to catch all CHRECs in the scalar evolution and restrict
23993 the predicate for the remains appropriately.
23994
23995 2014-04-12 Catherine Moore <clm@codesourcery.com>
23996
23997 * config/mips/constraints.md: Add new register constraint "kb".
23998 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
23999 (*movhi_internal): Likewise.
24000 (*movqi_internal): Likewise.
24001 * config/mips/mips.h (M16_STORE_REGS): New register class.
24002 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24003 (REG_CLASS_CONTENTS): Likewise.
24004 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24005
24006 2014-04-11 Tobias Burnus <burnus@net-b.de>
24007
24008 PR c/60194
24009 * doc/invoke.texi (-Wformat-signedness): Document it.
24010 (Wformat=2): Mention that this enables -Wformat-signedness.
24011
24012 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24013
24014 * common/config/epiphany/epiphany-common.c
24015 (epiphany_option_optimization_table): Enable section anchors by
24016 default at -O1 or higher.
24017 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24018 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24019 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24020 carries no extra cost.
24021 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24022 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24023 * config/epiphany/predicates.md (memclob_operand): New predicate.
24024 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24025 Use memclob_operand predicate and X constraint for operand 3.
24026
24027 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24028
24029 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24030 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24031 its operands.
24032
24033 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24034
24035 PR rtl-optimization/60651
24036 * mode-switching.c (optimize_mode_switching): Make sure to emit
24037 sets of a lower numbered entity before sets of a higher numbered
24038 entity to a mode of the same or lower priority.
24039 When creating a seginfo for a basic block that starts with a code
24040 label, move the insertion point past the code label.
24041 (new_seginfo): Document and enforce requirement that
24042 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24043 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24044 * doc/tm.texi: Regenerate.
24045
24046 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24047
24048 PR target/60811
24049 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24050
24051 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24052
24053 * BASE-VER: Set to 4.10.0.
24054
24055 2014-04-11 Tobias Burnus <burnus@net-b.de>
24056
24057 PR other/59055
24058 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24059 * doc/gcc.texi (Service): Update description in the @menu
24060 * doc/invoke.texi (Option Summary): Remove misplaced and
24061 duplicated @menu.
24062
24063 2014-04-11 Steve Ellcey <sellcey@mips.com>
24064 Jakub Jelinek <jakub@redhat.com>
24065
24066 PR middle-end/60556
24067 * expr.c (convert_move): Use emit_store_flag_force instead of
24068 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24069 argument to it.
24070
24071 2014-04-11 Richard Biener <rguenther@suse.de>
24072
24073 PR middle-end/60797
24074 * varasm.c (assemble_alias): Avoid endless error reporting
24075 recursion by setting TREE_ASM_WRITTEN.
24076
24077 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24078
24079 * config/s390/s390.md: Add a splitter for NOT rtx.
24080
24081 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24082
24083 PR rtl-optimization/60663
24084 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24085
24086 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24087 Jakub Jelinek <jakub@redhat.com>
24088
24089 PR lto/60567
24090 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24091 flag from decl_node to node.
24092
24093 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24094
24095 PR debug/60655
24096 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24097 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24098 ameliorating the cases where it can be.
24099
24100 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24101
24102 Revert
24103 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24104
24105 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24106 (loadsync_<mode>): Change mode.
24107 (load_quadpti, store_quadpti): New.
24108 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24109 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24110 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24111
24112 2014-04-09 Cong Hou <congh@google.com>
24113
24114 PR testsuite/60773
24115 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24116 documentation.
24117
24118 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24119
24120 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24121 instead of vnor to exploit possible fusion opportunity in the
24122 future.
24123 (altivec_expand_vec_perm_const_le): Likewise.
24124
24125 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24126
24127 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24128 (loadsync_<mode>): Change mode.
24129 (load_quadpti, store_quadpti): New.
24130 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24131 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24132
24133 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24134
24135 PR target/60763
24136 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24137 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24138 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24139
24140 2014-04-08 Richard Biener <rguenther@suse.de>
24141
24142 PR middle-end/60706
24143 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24144 a 64bit widest int print double-int similar to on HWI64 hosts.
24145
24146 2014-04-08 Richard Biener <rguenther@suse.de>
24147
24148 PR tree-optimization/60785
24149 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24150 default defs properly.
24151
24152 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24153
24154 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24155 (Weffc++): Likewise.
24156
24157 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24158
24159 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24160 set completep to false rather than true.
24161
24162 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24163
24164 PR target/60504
24165 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24166 ARM_TARGET2_DWARF_FORMAT.
24167
24168 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24169
24170 PR target/60609
24171 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24172 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24173 ADDR_DIFF_VEC.
24174
24175 2014-04-07 Richard Biener <rguenther@suse.de>
24176
24177 PR tree-optimization/60766
24178 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24179 (may_eliminate_iv): Convert cand_value_at result to desired type.
24180
24181 2014-04-07 Jason Merrill <jason@redhat.com>
24182
24183 PR c++/60731
24184 * common.opt (-fno-gnu-unique): Add.
24185 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24186
24187 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24188
24189 * haifa-sched.c: Fix outdated function reference and minor
24190 grammar errors in introductory comment.
24191
24192 2014-04-07 Richard Biener <rguenther@suse.de>
24193
24194 PR middle-end/60750
24195 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24196 for noreturn calls.
24197 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24198
24199 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24200
24201 PR debug/55794
24202 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24203 size accounting for thunks.
24204 (pa_asm_output_mi_thunk): Use final_start_function() and
24205 final_end_function() to output function start and end directives.
24206
24207 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24208
24209 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24210 device specific ISA/ feature information. Remove short_sp and
24211 errata_skip ds. Add avr_device_specific_features enum to have device
24212 specific info.
24213 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24214 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24215 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24216 updated device specific info.
24217 * config/avr/avr-mcus.def: Merge device specific details to
24218 dev_attribute field.
24219 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24220 errata_skip.
24221 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24222 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24223 assembler if RMW isa supported by current device.
24224 * config/avr/genmultilib.awk: Update as device info structure changed.
24225 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24226
24227 2014-04-04 Cong Hou <congh@google.com>
24228
24229 PR tree-optimization/60656
24230 * tree-vect-stmts.c (supportable_widening_operation):
24231 Fix a bug that elements in a vector with vect_used_by_reduction
24232 property are incorrectly reordered when the operation on it is not
24233 consistant with the one in reduction operation.
24234
24235 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24236
24237 PR rtl-optimization/60155
24238 * gcse.c (record_set_data): New function.
24239 (single_set_gcse): New function.
24240 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24241 (hoist_code): Likewise.
24242 (get_pressure_class_and_nregs): Likewise.
24243
24244 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24245
24246 * explow.c (probe_stack_range): Emit a final optimization blockage.
24247
24248 2014-04-04 Anthony Green <green@moxielogic.com>
24249
24250 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24251 typos.
24252
24253 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24254
24255 PR ipa/59626
24256 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24257 flags are set only during streaming.
24258 * ipa.c (process_references, walk_polymorphic_call_targets,
24259 symtab_remove_unreachable_nodes): Drop bodies of always inline
24260 after early inlining.
24261 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24262
24263 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24264 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24265
24266 PR debug/60655
24267 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24268 containing a NOT.
24269
24270 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24271
24272 PR bootstrap/60743
24273 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24274 duration.
24275 (cortex_a53_fdivd): Likewise.
24276
24277 2014-04-04 Martin Jambor <mjambor@suse.cz>
24278
24279 PR ipa/60640
24280 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24281 Adjust all callers.
24282 * cgraph.c (clone_of_p): Also return true if thunks match.
24283 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24284 cgraph_function_or_thunk_node and an obsolete comment.
24285 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24286 file.
24287 (build_function_decl_skip_args): Likewise.
24288 (set_new_clone_decl_and_node_flags): New function.
24289 (duplicate_thunk_for_node): Likewise.
24290 (redirect_edge_duplicating_thunks): Likewise.
24291 (cgraph_clone_node): New parameter args_to_skip, pass it to
24292 redirect_edge_duplicating_thunks which is called instead of
24293 cgraph_redirect_edge_callee.
24294 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24295 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24296
24297 2014-04-04 Jeff Law <law@redhat.com>
24298
24299 PR target/60657
24300 * config/arm/predicates.md (const_int_I_operand): New predicate.
24301 (const_int_M_operand): Similarly.
24302 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24303 const_int_operand.
24304 (insv_t2, extv_reg, extzv_t2): Likewise.
24305 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24306 (pop_multiple_with_writeback_and_return): Likewise.
24307 (vfp_pop_multiple_with_writeback): Likewise
24308
24309 2014-04-04 Richard Biener <rguenther@suse.de>
24310
24311 PR ipa/60746
24312 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24313 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24314 non-GIMPLE_LABELs.
24315 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24316 * gimplify.c (gimple_add_tmp_var_fn): New function.
24317 * gimple-expr.h (create_tmp_reg_fn): Declare.
24318 * gimple-expr.c (create_tmp_reg_fn): New function.
24319 * gimple-low.c (record_vars_into): Don't change cfun.
24320 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24321 code generation without cfun.
24322
24323 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24324
24325 PR bootstrap/60719
24326 * Makefile.in (install-driver): Fix shell scripting.
24327
24328 2014-04-03 Cong Hou <congh@google.com>
24329
24330 PR tree-optimization/60505
24331 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24332 threshold of number of iterations below which no vectorization
24333 will be done.
24334 * tree-vect-loop.c (new_loop_vec_info):
24335 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24336 * tree-vect-loop.c (vect_analyze_loop_operations):
24337 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24338 * tree-vect-loop.c (vect_transform_loop):
24339 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24340 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24341 of iterations of the loop and see if we should build the epilogue.
24342
24343 2014-04-03 Richard Biener <rguenther@suse.de>
24344
24345 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24346 (streamer_tree_cache_create): Adjust.
24347 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24348 to allow optional nodes array.
24349 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24350 (streamer_tree_cache_append): Likewise.
24351 (streamer_tree_cache_create): Create nodes array optionally
24352 as specified by parameter.
24353 * lto-streamer-out.c (create_output_block): Avoid maintaining
24354 the node array in the writer cache.
24355 (DFS_write_tree): Remove assertion.
24356 (produce_asm_for_decls): Free the out decl state hash table early.
24357 * lto-streamer-in.c (lto_data_in_create): Adjust for
24358 streamer_tree_cache_create prototype change.
24359
24360 2014-04-03 Richard Biener <rguenther@suse.de>
24361
24362 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24363 set TREE_CHAIN to NULL_TREE.
24364
24365 2014-04-03 Richard Biener <rguenther@suse.de>
24366
24367 PR tree-optimization/60740
24368 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24369 over all GIMPLE_COND operands.
24370
24371 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24372
24373 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24374 (Weffc++): Remove Scott's numbering, merge lists and reference
24375 Wnon-virtual-dtor.
24376
24377 2014-04-03 Nick Clifton <nickc@redhat.com>
24378
24379 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24380 properly.
24381
24382 2014-04-03 Martin Jambor <mjambor@suse.cz>
24383
24384 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24385 mention gcc_unreachable before failing.
24386 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24387 removed symbols.
24388
24389 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24390
24391 PR ipa/60659
24392 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24393 inconsistent code and instead mark the context inconsistent.
24394 (possible_polymorphic_call_targets): For inconsistent contexts
24395 return empty complete list.
24396
24397 2014-04-02 Anthony Green <green@moxielogic.com>
24398
24399 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24400 (extendqisi2, extendhisi2): Define.
24401 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24402 (WCHAR_TYPE): Change to unsigned int.
24403
24404 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24405
24406 PR tree-optimization/60733
24407 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24408 insertion point for PHI candidates to be the end of the feeding
24409 block for the PHI argument.
24410
24411 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24412
24413 PR rtl-optimization/60650
24414 * lra-constraints.c (process_alt_operands): Decrease reject for
24415 earlyclobber matching.
24416
24417 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24418
24419 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24420
24421 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24422
24423 * config/spu/spu.c (pad_bb): Do not crash when the last
24424 insn is CODE_FOR_blockage.
24425
24426 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24427
24428 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24429 lies outside the target mode.
24430
24431 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24432
24433 PR target/60735
24434 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24435 software floating point or no floating point registers, do not
24436 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24437 in GPRs that occurs after we tested for GPRs that would never be
24438 true.
24439
24440 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24441 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24442 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24443 specifically allow DDmode, since that does not use the SPE SIMD
24444 instructions.
24445
24446 2014-04-02 Richard Biener <rguenther@suse.de>
24447
24448 PR middle-end/60729
24449 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24450 MODE_INTs. Properly use negv_optab.
24451 (expand_abs): Likewise.
24452
24453 2014-04-02 Richard Biener <rguenther@suse.de>
24454
24455 PR bootstrap/60719
24456 * Makefile.in (install-driver): Guard extra installs with special
24457 names properly.
24458
24459 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
24460
24461 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24462 Document vec_vgbbd.
24463
24464 2014-04-01 Richard Henderson <rth@redhat.com>
24465
24466 PR target/60704
24467 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24468 alternative enabled before register allocation.
24469
24470 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
24471
24472 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24473 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24474 typo.
24475 (nios2_large_got_address): Remove unneeded 'sym' parameter.
24476 (nios2_got_address): Update nios2_large_got_address call site.
24477 (nios2_delegitimize_address): New function.
24478 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24479 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24480 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24481
24482 2014-04-01 Martin Husemann <martin@duskware.de>
24483
24484 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24485 for -mabi=32.
24486
24487 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
24488
24489 PR rtl-optimization/60604
24490 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24491 check from register_operand.
24492 (register_operand): Redefine in terms of general_operand.
24493 (nonmemory_operand): Use register_operand for the non-constant cases.
24494
24495 2014-04-01 Richard Biener <rguenther@suse.de>
24496
24497 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24498
24499 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
24500
24501 * doc/invoke.texi (mapp-regs): Clarify.
24502
24503 2014-03-31 Ulrich Drepper <drepper@gmail.com>
24504
24505 * config/i386/avx512fintrin.h (__v32hi): Define type.
24506 (__v64qi): Likewise.
24507 (_mm512_set1_epi8): Define.
24508 (_mm512_set1_epi16): Define.
24509 (_mm512_set4_epi32): Define.
24510 (_mm512_set4_epi64): Define.
24511 (_mm512_set4_pd): Define.
24512 (_mm512_set4_ps): Define.
24513 (_mm512_setr4_epi64): Define.
24514 (_mm512_setr4_epi32): Define.
24515 (_mm512_setr4_pd): Define.
24516 (_mm512_setr4_ps): Define.
24517 (_mm512_setzero_epi32): Define.
24518
24519 2014-03-31 Martin Jambor <mjambor@suse.cz>
24520
24521 PR middle-end/60647
24522 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24523 callsite_arguments_match_p. Updated all callers. Also check types of
24524 corresponding formal parameters and actual arguments.
24525 (not_all_callers_have_enough_arguments_p) Renamed to
24526 some_callers_have_mismatched_arguments_p.
24527
24528 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24529
24530 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24531
24532 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24533
24534 PR target/60034
24535 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24536 section anchor.
24537
24538 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24539
24540 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24541 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24542 Split out
24543 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24544 Use FMAMODE_NOVF512 mode iterator.
24545 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24546 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24547 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24548 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24549 Split out
24550 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24551 Use VF_128_256 mode iterator.
24552 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24553 Ditto.
24554
24555 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24556
24557 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24558 static chain if needed.
24559
24560 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24561
24562 PR target/60697
24563 * lra-constraints.c (index_part_to_reg): New.
24564 (process_address): Use it.
24565
24566 2014-03-27 Jeff Law <law@redhat.com>
24567 Jakub Jelinek <jakub@redhat.com>
24568
24569 PR target/60648
24570 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24571 gen_rtx_{PLUS,MULT} to build up the address expression.
24572
24573 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24574 creating non-canonical RTL.
24575
24576 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24577
24578 PR ipa/60243
24579 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24580 functions; reorganize to make cheap checks first.
24581 (inline_small_functions): Do not estimate growth when dumping;
24582 it is expensive.
24583 * ipa-inline.h (inline_summary): Add min_size.
24584 (growth_likely_positive): New function.
24585 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24586 (set_cond_stmt_execution_predicate): Cleanup.
24587 (estimate_edge_size_and_time): Compute min_size.
24588 (estimate_calls_size_and_time): Likewise.
24589 (estimate_node_size_and_time): Likewise.
24590 (inline_update_overall_summary): Update min_size.
24591 (do_estimate_edge_time): Likewise.
24592 (do_estimate_edge_size): Update.
24593 (do_estimate_edge_hints): Update.
24594 (growth_likely_positive): New function.
24595
24596 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24597
24598 PR target/60693
24599 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24600 also if addr has VOIDmode.
24601
24602 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24603
24604 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24605 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24606 Declare extern.
24607 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24608 instructions as well as AdvancedSIMD loads.
24609
24610 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24611
24612 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24613 Use crypto_aese type.
24614 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24615 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24616 crypto_aese, crypto_aesmc. Move to types.md.
24617 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24618 crypto_aesmc.
24619 * config/arm/iterators.md (crypto_type): Likewise.
24620
24621 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24622
24623 * cgraph.c: Include expr.h and tree-dfa.h.
24624 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24625 remove LHS.
24626
24627 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24628
24629 PR target/60675
24630 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24631 regs from checking multi-reg pseudos.
24632
24633 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24634
24635 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24636
24637 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24638
24639 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24640 if it would clobber the stack pointer, even temporarily.
24641
24642 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24643
24644 * mode-switching.c: Make small adjustments to the top comment.
24645
24646 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24647
24648 * config/rs6000/constraints.md (wD constraint): New constraint to
24649 match the constant integer to get the top DImode/DFmode out of a
24650 vector in a VSX register.
24651
24652 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24653 match the constant integer to get the top DImode/DFmode out of a
24654 vector in a VSX register.
24655
24656 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24657 for ISA 2.07.
24658
24659 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24660 vbpermq builtins.
24661
24662 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24663 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24664
24665 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24666 Optimize vec_extract of 64-bit values, where the value being
24667 extracted is in the top word, where we can use scalar
24668 instructions. Add direct move and store support. Combine the big
24669 endian/little endian vector select load support into a single insn.
24670 (vsx_extract_<mode>_internal1): Likewise.
24671 (vsx_extract_<mode>_internal2): Likewise.
24672 (vsx_extract_<mode>_load): Likewise.
24673 (vsx_extract_<mode>_store): Likewise.
24674 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24675 combined into vsx_extract_<mode>_load.
24676 (vsx_extract_<mode>_one_le): Likewise.
24677
24678 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24679 define the top 64-bit vector element.
24680
24681 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24682 constraint.
24683
24684 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24685 Document vec_vbpermq builtin.
24686
24687 PR target/60672
24688 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24689 enable use of xxsldwi and xxpermdi builtin functions.
24690 (vec_xxpermdi): Likewise.
24691
24692 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24693 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24694
24695 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24696
24697 PR rtl-optimization/60650
24698 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24699 first_p. Use it.
24700 (find_spills_for): New.
24701 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24702 Spill all pseudos on the second iteration.
24703
24704 2014-03-27 Marek Polacek <polacek@redhat.com>
24705
24706 PR c/50347
24707 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24708 types.
24709
24710 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24711
24712 * config/s390/s390.c (s390_can_use_return_insn): Check for
24713 call-saved FPRs on 31 bit.
24714
24715 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24716
24717 PR middle-end/60682
24718 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24719 if they need regimplification, just drop them instead of
24720 calling gimple_regimplify_operands on them.
24721
24722 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
24723
24724 PR target/60580
24725 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
24726 (aarch64_frame_pointer_required): Adjust logic.
24727 (aarch64_can_eliminate): Adjust logic.
24728 (aarch64_override_options_after_change): Adjust logic.
24729
24730 2014-03-27 Dehao Chen <dehao@google.com>
24731
24732 * ipa-inline.c (early_inliner): Update node's inline info.
24733
24734 2014-03-26 Dehao Chen <dehao@google.com>
24735
24736 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
24737 compiler inserted conditional jumps for NAN float check.
24738
24739 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24740
24741 * ubsan.h (ubsan_create_data): Change second argument's type
24742 to const location_t *.
24743 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
24744 _("<unknown>").
24745 (ubsan_create_data): Change second argument to const location_t *PLOC.
24746 Create Loc field whenever PLOC is non-NULL.
24747 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
24748 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
24749 callers.
24750
24751 PR other/59545
24752 * real.c (real_to_integer2): Change type of low to UHWI.
24753
24754 2014-03-26 Tobias Burnus <burnus@net-b.de>
24755
24756 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
24757 (CILK_SELF_SPECS): New define.
24758 (driver_self_specs): Use it.
24759
24760 2014-03-26 Richard Biener <rguenther@suse.de>
24761
24762 * tree-pretty-print.c (percent_K_format): Implement special
24763 case for LTO and its stripped down BLOCK tree.
24764
24765 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24766
24767 PR sanitizer/60636
24768 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
24769
24770 * tree-vrp.c (simplify_internal_call_using_ranges): If only
24771 one range is range_int_cst_p, but not both, at least optimize
24772 addition/subtraction of 0 and multiplication by 0 or 1.
24773 * gimple-fold.c (gimple_fold_call): Fold
24774 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
24775 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
24776 INTEGER_CSTs, try to fold at least x * 0 and y - y.
24777
24778 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
24779
24780 PR rtl-optimization/60452
24781 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
24782 <case REG>: Return 1 for invalid offsets from the frame pointer.
24783
24784 2014-03-26 Marek Polacek <polacek@redhat.com>
24785
24786 PR c/37428
24787 * doc/extend.texi (C Extensions): Mention variable-length arrays in
24788 a structure/union.
24789
24790 2014-03-26 Marek Polacek <polacek@redhat.com>
24791
24792 PR c/39525
24793 * doc/extend.texi (Designated Inits): Describe what happens to omitted
24794 field members.
24795
24796 2014-03-26 Marek Polacek <polacek@redhat.com>
24797
24798 PR other/59545
24799 * ira-color.c (update_conflict_hard_regno_costs): Perform the
24800 multiplication in unsigned type.
24801
24802 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24803
24804 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
24805
24806 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24807
24808 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
24809
24810 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24811
24812 PR ipa/60315
24813 * cif-code.def (UNREACHABLE) New code.
24814 * ipa-inline.c (inline_small_functions): Skip edges to
24815 __builtlin_unreachable.
24816 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
24817 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
24818 predicate to __bulitin_unreachable.
24819 (set_cond_stmt_execution_predicate): Fix issue when
24820 invert_tree_comparison returns ERROR_MARK.
24821 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
24822 propagate to inline clones.
24823 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
24824 to unreachable.
24825 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
24826 * cgraphclones.c (cgraph_clone_node): If call destination is already
24827 ureachable, do not redirect it back.
24828 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
24829 unreachable.
24830
24831 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24832
24833 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
24834 Do not modify inline clones.
24835
24836 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24837
24838 * config/i386/i386.md (general_sext_operand): New mode attr.
24839 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
24840 don't generate (sign_extend (const_int)).
24841 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
24842 operands[2]. Use We constraint instead of <i> and
24843 <general_sext_operand> predicate instead of <general_operand>.
24844 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
24845 * config/i386/constraints.md (We): New constraint.
24846 * config/i386/predicates.md (x86_64_sext_operand,
24847 sext_operand): New predicates.
24848
24849 2014-03-25 Martin Jambor <mjambor@suse.cz>
24850
24851 PR ipa/60600
24852 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
24853 inconsistent devirtualizations to __builtin_unreachable.
24854
24855 2014-03-25 Marek Polacek <polacek@redhat.com>
24856
24857 PR c/35449
24858 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
24859
24860 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
24861
24862 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
24863 order of elements for big-endian.
24864
24865 2014-03-25 Richard Biener <rguenther@suse.de>
24866
24867 PR middle-end/60635
24868 * gimplify-me.c (gimple_regimplify_operands): Update the
24869 re-gimplifed stmt.
24870
24871 2014-03-25 Martin Jambor <mjambor@suse.cz>
24872
24873 PR ipa/59176
24874 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
24875 (lto_output_varpool_node): Likewise.
24876 (input_overwrite_node): Likewise.
24877 (input_varpool_node): Likewise.
24878
24879 2014-03-25 Richard Biener <rguenther@suse.de>
24880
24881 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
24882 (run_gcc): Likewise.
24883
24884 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24885
24886 * combine.c (simplify_compare_const): Add MODE argument.
24887 Handle mode_width 0 as very large mode_width.
24888 (try_combine, simplify_comparison): Adjust callers.
24889
24890 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
24891 type to avoid signed integer overflow.
24892 * explow.c (plus_constant): Likewise.
24893
24894 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
24895
24896 * doc/generic.texi: Correct typos.
24897
24898 2014-03-24 Tobias Burnus <burnus@net-b.de>
24899
24900 * doc/invoke.texi (-flto): Expand section about
24901 using static libraries with LTO.
24902
24903 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24904
24905 PR rtl-optimization/60501
24906 * optabs.def (addptr3_optab): New optab.
24907 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
24908 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
24909 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
24910
24911 * lra.c (emit_add3_insn): Use the addptr pattern if available.
24912
24913 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
24914
24915 2014-03-24 Ulrich Drepper <drepper@gmail.com>
24916
24917 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
24918 _mm512_set1_pd.
24919
24920 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
24921 (_mm256_undefined_ps): Define.
24922 (_mm256_undefined_pd): Define.
24923 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
24924 (_mm_undefined_pd): Define.
24925 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
24926 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
24927 (_mm512_undefined_ps): Define.
24928 (_mm512_undefined_pd): Define.
24929 Use _mm*_undefined_*.
24930 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
24931
24932 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
24933
24934 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
24935 (lshr_simd): DI mode added.
24936 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
24937 (aarch64_ushr_simddi): Likewise.
24938 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
24939 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
24940 (vshrd_n_u64): Likewise.
24941
24942 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24943
24944 * Makefile.in (s-macro_list): Depend on cc1.
24945
24946 2014-03-23 Teresa Johnson <tejohnson@google.com>
24947
24948 * ipa-utils.c (ipa_print_order): Use specified dump file.
24949
24950 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
24951
24952 PR rtl-optimization/60601
24953 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
24954
24955 * gcc.c (eval_spec_function): Initialize save_growing_value.
24956
24957 2014-03-22 Jakub Jelinek <jakub@redhat.com>
24958
24959 PR sanitizer/60613
24960 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
24961 code == MINUS_EXPR, never swap op0 with op1.
24962
24963 * toplev.c (init_local_tick): Avoid signed integer multiplication
24964 overflow.
24965 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
24966 shift by first operand's bitsize.
24967
24968 2014-03-21 Jakub Jelinek <jakub@redhat.com>
24969
24970 PR target/60610
24971 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
24972 redefine to 1 or 0.
24973 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
24974 TARGET_ISA_64BIT_P(x).
24975
24976 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24977
24978 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
24979 pattern for vector nor instead of subtract from splat(-1).
24980 (altivec_expand_vec_perm_const_le): Likewise.
24981
24982 2014-03-21 Richard Henderson <rth@twiddle.net>
24983
24984 PR target/60598
24985 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
24986 related insns after epilogue_completed.
24987
24988 2014-03-21 Martin Jambor <mjambor@suse.cz>
24989
24990 PR ipa/59176
24991 * cgraph.h (symtab_node): New flag body_removed.
24992 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
24993 when removing bodies.
24994 * symtab.c (dump_symtab_base): Dump body_removed flag.
24995 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
24996 had their bodies removed.
24997
24998 2014-03-21 Martin Jambor <mjambor@suse.cz>
24999
25000 PR ipa/60419
25001 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25002 in the border.
25003
25004 2014-03-21 Richard Biener <rguenther@suse.de>
25005
25006 PR tree-optimization/60577
25007 * tree-core.h (struct tree_base): Document nothrow_flag use
25008 in DECL_NONALIASED.
25009 * tree.h (DECL_NONALIASED): New.
25010 (may_be_aliased): Adjust.
25011 * coverage.c (build_var): Set DECL_NONALIASED.
25012
25013 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25014
25015 * expr.c (expand_expr_real_1): Remove outdated comment.
25016
25017 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25018
25019 PR middle-end/60597
25020 * ira.c (adjust_cleared_regs): Call copy_rtx on
25021 *reg_equiv[REGNO (loc)].src_p before passing it to
25022 simplify_replace_fn_rtx.
25023
25024 PR target/60568
25025 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25026 into CONST, put pic register as first operand of PLUS. Use
25027 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25028
25029 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25030
25031 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25032
25033 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25034
25035 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25036 around for store forwarding issue in the FPU on the UT699.
25037 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25038 loads and operations if -mfix-ut699 is specified.
25039 (divtf3_hq): Tweak attribute.
25040 (sqrttf2_hq): Likewise.
25041
25042 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25043
25044 * calls.c (store_one_arg): Remove incorrect const qualification on the
25045 type of the temporary.
25046 * cfgexpand.c (expand_return): Likewise.
25047 * expr.c (expand_constructor): Likewise.
25048 (expand_expr_real_1): Likewise.
25049
25050 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25051
25052 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25053 of parts.
25054
25055 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25056
25057 PR target/60039
25058 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25059
25060 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25061
25062 * config/arm/aarch-common-protos.h
25063 (alu_cost_table): Fix spelling of "extend".
25064 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25065
25066 2014-03-19 Richard Biener <rguenther@suse.de>
25067
25068 PR middle-end/60553
25069 * tree-core.h (tree_type_common): Re-order pointer members
25070 to reduce recursion depth during GC walks.
25071
25072 2014-03-19 Marek Polacek <polacek@redhat.com>
25073
25074 PR sanitizer/60569
25075 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25076 before accessing it.
25077
25078 2014-03-19 Richard Biener <rguenther@suse.de>
25079
25080 PR lto/59543
25081 * lto-streamer-in.c (input_function): In WPA stage do not drop
25082 debug stmts.
25083
25084 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25085
25086 PR tree-optimization/60559
25087 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25088 with build_zero_cst assignment.
25089
25090 2014-03-18 Kai Tietz <ktietz@redhat.com>
25091
25092 PR rtl-optimization/56356
25093 * sdbout.c (sdbout_parms): Verify that parms'
25094 incoming argument is valid.
25095 (sdbout_reg_parms): Likewise.
25096
25097 2014-03-18 Richard Henderson <rth@redhat.com>
25098
25099 PR target/60562
25100 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25101 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25102 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25103
25104 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25105
25106 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25107 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25108 Italicize plugin event names in description. Explain that
25109 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25110 Remind that no GCC functions should be called after PLUGIN_FINISH.
25111 Explain what pragmas with expansion are.
25112
25113 2014-03-18 Martin Liska <mliska@suse.cz>
25114
25115 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25116 gimple call statement is update.
25117 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25118 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25119
25120 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25121
25122 PR sanitizer/60557
25123 * ubsan.c (ubsan_instrument_unreachable): Call
25124 initialize_sanitizer_builtins.
25125 (ubsan_pass): Likewise.
25126
25127 PR sanitizer/60535
25128 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25129 varpool_finalize_decl instead of rest_of_decl_compilation.
25130
25131 2014-03-18 Richard Biener <rguenther@suse.de>
25132
25133 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25134 by using bitmap_and_compl instead of bitmap_and_compl_into.
25135 (df_rd_transfer_function): Likewise.
25136
25137 2014-03-18 Richard Biener <rguenther@suse.de>
25138
25139 * doc/lto.texi (fresolution): Fix typo.
25140
25141 2014-03-18 Richard Biener <rguenther@suse.de>
25142
25143 * doc/invoke.texi (flto): Update for changes in 4.9.
25144
25145 2014-03-18 Richard Biener <rguenther@suse.de>
25146
25147 * doc/loop.texi: Remove section on the removed lambda framework.
25148 Update loop docs with recent changes in preserving loop structure.
25149
25150 2014-03-18 Richard Biener <rguenther@suse.de>
25151
25152 * doc/lto.texi (-fresolution): Document.
25153
25154 2014-03-18 Richard Biener <rguenther@suse.de>
25155
25156 * doc/contrib.texi: Adjust my name.
25157
25158 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25159
25160 PR ipa/58721
25161 * internal-fn.c: Include diagnostic-core.h.
25162 (expand_BUILTIN_EXPECT): New function.
25163 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25164 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25165 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25166 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25167 IFN_BUILTIN_EXPECT.
25168 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25169 Revert 3 argument __builtin_expect code.
25170 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25171 * gimple-fold.c (gimple_fold_call): Likewise.
25172 * tree.h (fold_builtin_expect): New prototype.
25173 * builtins.c (build_builtin_expect_predicate): Add predictor
25174 argument, if non-NULL, create 3 argument __builtin_expect.
25175 (fold_builtin_expect): No longer static. Add ARG2 argument,
25176 pass it through to build_builtin_expect_predicate.
25177 (fold_builtin_2): Adjust caller.
25178 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25179 * internal-fn.def (BUILTIN_EXPECT): New.
25180
25181 2014-03-18 Tobias Burnus <burnus@net-b.de>
25182
25183 PR ipa/58721
25184 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25185 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25186 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25187
25188 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25189
25190 PR ipa/58721
25191 * predict.c (combine_predictions_for_bb): Fix up formatting.
25192 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25193 fill what it points to if non-NULL.
25194 (tree_predict_by_opcode): Adjust caller, use the predictor.
25195 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25196
25197 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25198
25199 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25200 proper constant for the store mode.
25201
25202 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25203
25204 * symtab.c (change_decl_assembler_name): Fix transparent alias
25205 chain construction.
25206
25207 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25208
25209 * config/aarch64/aarch64.c: Correct the comments about the
25210 aarch64 stack layout.
25211
25212 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25213
25214 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25215 check for GF_OMP_FOR_KIND_FOR.
25216
25217 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25218
25219 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25220 ymm and zmm register names.
25221
25222 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25223
25224 PR target/60516
25225 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25226 note creation for the 2010-08-31 changes.
25227
25228 2014-03-17 Marek Polacek <polacek@redhat.com>
25229
25230 PR middle-end/60534
25231 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25232 as -fno-tree-loop-vectorize.
25233 (expand_omp_simd): Likewise.
25234
25235 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25236
25237 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25238 (eligible_for_call_delay): New prototype.
25239 * config/sparc/sparc.c (tls_call_delay): Rename into...
25240 (eligible_for_call_delay): ...this. Return false if the instruction
25241 cannot be put in the delay slot of a branch.
25242 (eligible_for_restore_insn): Simplify.
25243 (eligible_for_return_delay): Return false if the instruction cannot be
25244 put in the delay slot of a branch and simplify.
25245 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25246 put in the delay slot of a branch.
25247 * config/sparc/sparc.md (fix_ut699): New attribute.
25248 (tls_call_delay): Delete.
25249 (in_call_delay): Reimplement.
25250 (eligible_for_sibcall_delay): Rename into...
25251 (in_sibcall_delay): ...this.
25252 (eligible_for_return_delay): Rename into...
25253 (in_return_delay): ...this.
25254 (in_branch_delay): Reimplement.
25255 (in_uncond_branch_delay): Delete.
25256 (in_annul_branch_delay): Delete.
25257
25258 2014-03-14 Richard Henderson <rth@redhat.com>
25259
25260 PR target/60525
25261 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25262 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25263 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25264 (floathi splitters): Remove.
25265 (float<SWI48x>xf2): New pattern.
25266 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25267 code that tried to handle DImode for 32-bit, but which was excluded
25268 by the pattern's condition. Drop allocation of stack temporary.
25269 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25270 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25271 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25272 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25273 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25274 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25275 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25276 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25277 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25278 (*float<SWI48x><X87MODEF>2_i387): Remove.
25279 (all float _with_temp splitters): Remove.
25280 (*float<SWI48x><MODEF>2_i387): New pattern.
25281 (*float<SWI48><MODEF>2_sse): New pattern.
25282 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25283 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25284
25285 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25286 Marek Polacek <polacek@redhat.com>
25287
25288 PR middle-end/60484
25289 * common.opt (dump_base_name_prefixed): New Variable.
25290 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25291 if x_dump_base_name_prefixed is already set, set it at the end.
25292
25293 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25294
25295 PR rtl-optimization/60508
25296 * lra-constraints.c (get_reload_reg): Add new parameter
25297 in_subreg_p.
25298 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25299 Pass the new parameter values.
25300
25301 2014-03-14 Richard Biener <rguenther@suse.de>
25302
25303 * common.opt: Revert unintented changes from r205065.
25304 * opts.c: Likewise.
25305
25306 2014-03-14 Richard Biener <rguenther@suse.de>
25307
25308 PR middle-end/60518
25309 * cfghooks.c (split_block): Properly adjust all loops the
25310 block was a latch of.
25311
25312 2014-03-14 Martin Jambor <mjambor@suse.cz>
25313
25314 PR lto/60461
25315 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25316 and simplify it.
25317
25318 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25319
25320 PR target/59396
25321 * config/avr/avr.c (avr_set_current_function): Pass function name
25322 through default_strip_name_encoding before sanity checking instead
25323 of skipping the first char of the assembler name.
25324
25325 2014-03-13 Richard Henderson <rth@redhat.com>
25326
25327 PR debug/60438
25328 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25329 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25330 * config/i386/i386-protos.h: Likewise.
25331 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25332 in the expander instead of a splitter.
25333 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25334 any possibility of requiring a memory.
25335 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25336 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25337 (fp branch splitters): Update for ix86_split_fp_branch.
25338 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25339 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25340 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25341 (*fop_<MODEF>_2_i387): Remove f/r alternative.
25342 (*fop_<MODEF>_3_i387): Likewise.
25343 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25344 (splitters for the fop_* register patterns): Remove.
25345 (fscalexf4_i387): Rename from *fscalexf4_i387.
25346 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25347
25348 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25349
25350 PR tree-optimization/59779
25351 * tree-dfa.c (get_ref_base_and_extent): Use double_int
25352 type for bitsize and maxsize instead of HOST_WIDE_INT.
25353
25354 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
25355
25356 PR rtl-optimization/57320
25357 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25358 the CFG after thread_prologue_and_epilogue_insns.
25359
25360 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
25361
25362 PR rtl-optimization/57189
25363 * lra-constraints.c (process_alt_operands): Disfavor spilling
25364 vector pseudos.
25365
25366 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25367
25368 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25369
25370 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25371
25372 PR tree-optimization/59025
25373 PR middle-end/60418
25374 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25375 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25376
25377 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25378
25379 PR target/60486
25380 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25381 calls of avr_out_plus_1.
25382
25383 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25384
25385 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25386 BB's single pred and update the father loop's latch info later.
25387
25388 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25389
25390 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25391 (VEC_M): Likewise.
25392 (VEC_N): Likewise.
25393 (VEC_R): Likewise.
25394 (VEC_base): Likewise.
25395 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25396 registers, we need to swap double words in little endian mode.
25397
25398 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25399 to be a container mode for 128-bit integer operations added in ISA
25400 2.07. Unlike TImode and PTImode, the preferred register set is
25401 the Altivec/VMX registers for the 128-bit operations.
25402
25403 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25404 declarations.
25405 (rs6000_split_128bit_ok_p): Likewise.
25406
25407 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25408 macros for creating ISA 2.07 normal and overloaded builtin
25409 functions with 3 arguments.
25410 (BU_P8V_OVERLOAD_3): Likewise.
25411 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25412 for use as overloaded functions.
25413 (VPERM_1TI_UNS): Likewise.
25414 (VSEL_1TI): Likewise.
25415 (VSEL_1TI_UNS): Likewise.
25416 (ST_INTERNAL_1ti): Likewise.
25417 (LD_INTERNAL_1ti): Likewise.
25418 (XXSEL_1TI): Likewise.
25419 (XXSEL_1TI_UNS): Likewise.
25420 (VPERM_1TI): Likewise.
25421 (VPERM_1TI_UNS): Likewise.
25422 (XXPERMDI_1TI): Likewise.
25423 (SET_1TI): Likewise.
25424 (LXVD2X_V1TI): Likewise.
25425 (STXVD2X_V1TI): Likewise.
25426 (VEC_INIT_V1TI): Likewise.
25427 (VEC_SET_V1TI): Likewise.
25428 (VEC_EXT_V1TI): Likewise.
25429 (EQV_V1TI): Likewise.
25430 (NAND_V1TI): Likewise.
25431 (ORC_V1TI): Likewise.
25432 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25433 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25434 overloaded builtin.
25435 (VADDUQM): Likewise.
25436 (VSUBCUQ): Likewise.
25437 (VADDEUQM): Likewise.
25438 (VADDECUQ): Likewise.
25439 (VSUBEUQM): Likewise.
25440 (VSUBECUQ): Likewise.
25441
25442 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25443 __int128_t and __uint128_t types.
25444 (__uint128_type): Likewise.
25445 (altivec_categorize_keyword): Add support for vector __int128_t,
25446 vector __uint128_t, vector __int128, and vector unsigned __int128
25447 as a container type for TImode operations that need to be done in
25448 VSX/Altivec registers.
25449 (rs6000_macro_to_expand): Likewise.
25450 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25451 to support 128-bit integer instructions vaddcuq, vadduqm,
25452 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25453 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25454
25455 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25456 for V1TImode, and set up preferences to use VSX/Altivec registers.
25457 Setup VSX reload handlers.
25458 (rs6000_debug_reg_global): Likewise.
25459 (rs6000_init_hard_regno_mode_ok): Likewise.
25460 (rs6000_preferred_simd_mode): Likewise.
25461 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25462 (easy_altivec_constant): Likewise.
25463 (output_vec_const_move): Likewise.
25464 (rs6000_expand_vector_set): Convert V1TImode set and extract to
25465 simple move.
25466 (rs6000_expand_vector_extract): Likewise.
25467 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25468 addressing.
25469 (rs6000_const_vec): Add support for V1TImode.
25470 (rs6000_emit_le_vsx_load): Swap double words when loading or
25471 storing TImode/V1TImode.
25472 (rs6000_emit_le_vsx_store): Likewise.
25473 (rs6000_emit_le_vsx_move): Likewise.
25474 (rs6000_emit_move): Add support for V1TImode.
25475 (altivec_expand_ld_builtin): Likewise.
25476 (altivec_expand_st_builtin): Likewise.
25477 (altivec_expand_vec_init_builtin): Likewise.
25478 (altivec_expand_builtin): Likewise.
25479 (rs6000_init_builtins): Add support for V1TImode type. Add
25480 support for ISA 2.07 128-bit integer builtins. Define type names
25481 for the VSX/Altivec vector types.
25482 (altivec_init_builtins): Add support for overloaded vector
25483 functions with V1TImode type.
25484 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25485 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25486 external function.
25487 (rs6000_split_128bit_ok_p): Likewise.
25488 (rs6000_handle_altivec_attribute): Create V1TImode from vector
25489 __int128_t and vector __uint128_t.
25490
25491 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25492 and mode attributes.
25493 (VSX_M): Likewise.
25494 (VSX_M2): Likewise.
25495 (VSm): Likewise.
25496 (VSs): Likewise.
25497 (VSr): Likewise.
25498 (VSv): Likewise.
25499 (VS_scalar): Likewise.
25500 (VS_double): Likewise.
25501 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25502
25503 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25504 we support the ISA 2.07 128-bit integer arithmetic instructions.
25505 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25506 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25507 and TImode types for use with the builtin functions.
25508 (V1TI_type_node): Likewise.
25509 (unsigned_V1TI_type_node): Likewise.
25510 (intTI_type_internal_node): Likewise.
25511 (uintTI_type_internal_node): Likewise.
25512
25513 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25514 128-bit builtin functions.
25515 (UNSPEC_VADDEUQM): Likewise.
25516 (UNSPEC_VADDECUQ): Likewise.
25517 (UNSPEC_VSUBCUQ): Likewise.
25518 (UNSPEC_VSUBEUQM): Likewise.
25519 (UNSPEC_VSUBECUQ): Likewise.
25520 (VM): Add V1TImode to vector mode iterators.
25521 (VM2): Likewise.
25522 (VI_unit): Likewise.
25523 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25524 (altivec_vaddcuq): Likewise.
25525 (altivec_vsubuqm): Likewise.
25526 (altivec_vsubcuq): Likewise.
25527 (altivec_vaddeuqm): Likewise.
25528 (altivec_vaddecuq): Likewise.
25529 (altivec_vsubeuqm): Likewise.
25530 (altivec_vsubecuq): Likewise.
25531
25532 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25533 mode iterators.
25534 (BOOL_128): Likewise.
25535 (BOOL_REGS_OUTPUT): Likewise.
25536 (BOOL_REGS_OP1): Likewise.
25537 (BOOL_REGS_OP2): Likewise.
25538 (BOOL_REGS_UNARY): Likewise.
25539 (BOOL_REGS_AND_CR0): Likewise.
25540
25541 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25542 128-bit integer builtin support.
25543 (vec_vadduqm): Likewise.
25544 (vec_vaddecuq): Likewise.
25545 (vec_vaddeuqm): Likewise.
25546 (vec_vsubecuq): Likewise.
25547 (vec_vsubeuqm): Likewise.
25548 (vec_vsubcuq): Likewise.
25549 (vec_vsubuqm): Likewise.
25550
25551 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25552 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25553 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25554 128-bit integer add/subtract to ISA 2.07.
25555
25556 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25557
25558 * config/arc/arc.c (arc_predicate_delay_insns):
25559 Fix third argument passed to conditionalize_nonjump.
25560
25561 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25562
25563 * config/aarch64/aarch64-builtins.c
25564 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25565 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25566 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25567 instead of __builtin_lfloor.
25568 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25569
25570 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25571
25572 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25573 (tree_ssa_ifcombine_bb_1): New function.
25574 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25575 is an empty forwarder block to then_bb or vice versa and then_bb
25576 and else_bb are effectively swapped.
25577
25578 2014-03-12 Christian Bruel <christian.bruel@st.com>
25579
25580 PR target/60264
25581 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25582 REG_CFA_DEF_CFA note.
25583 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25584 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25585
25586 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25587
25588 PR tree-optimization/60454
25589 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25590
25591 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25592
25593 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25594 Do not define target_cpu_default2 to generic.
25595 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25596 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25597 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25598
25599 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25600 Marc Glisse <marc.glisse@inria.fr>
25601
25602 PR tree-optimization/60502
25603 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25604 instead of build_low_bits_mask.
25605
25606 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25607
25608 PR middle-end/60482
25609 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25610 if there are multiple uses, but op doesn't live on E edge.
25611 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25612 clobber stmts before __builtin_unreachable.
25613
25614 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25615
25616 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25617 hard_frame_pointer_rtx.
25618 * cse.c (cse_insn): Remove volatile check.
25619 * cselib.c (cselib_process_insn): Likewise.
25620 * dse.c (scan_insn): Likewise.
25621
25622 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25623
25624 * config/arc/arc.c (conditionalize_nonjump): New function,
25625 broken out of ...
25626 (arc_ifcvt): ... this.
25627 (arc_predicate_delay_insns): Use it.
25628
25629 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25630
25631 * config/arc/predicates.md (extend_operand): During/after reload,
25632 allow const_int_operand.
25633 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25634 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25635 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25636 to "i".
25637 (umulsi3_highpart_i): Likewise.
25638
25639 2014-03-11 Richard Biener <rguenther@suse.de>
25640
25641 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25642 Add asserts to guard possible wrong-code bugs.
25643
25644 2014-03-11 Richard Biener <rguenther@suse.de>
25645
25646 PR tree-optimization/60429
25647 PR tree-optimization/60485
25648 * tree-ssa-structalias.c (set_union_with_increment): Properly
25649 take into account all fields that overlap the shifted vars.
25650 (do_sd_constraint): Likewise.
25651 (do_ds_constraint): Likewise.
25652 (get_constraint_for_ptr_offset): Likewise.
25653
25654 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25655
25656 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25657 (nios2_compute_frame_layout):
25658 Add calculation of cfun->machine->fp_save_offset.
25659 (nios2_expand_prologue): Correct setting of frame pointer register
25660 in prologue.
25661 (nios2_expand_epilogue): Update recovery of stack pointer from
25662 frame pointer accordingly.
25663 (nios2_initial_elimination_offset): Update calculation of offset
25664 for eliminating to HARD_FRAME_POINTER_REGNUM.
25665
25666 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25667
25668 PR ipa/60457
25669 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25670 cgraph_get_create_node on VAR_DECLs.
25671
25672 2014-03-10 Richard Biener <rguenther@suse.de>
25673
25674 PR middle-end/60474
25675 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25676
25677 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25678
25679 * config/vms/vms.opt (vms_float_format): New variable.
25680
25681 2014-03-08 Tobias Burnus <burnus@net-b.de>
25682
25683 * doc/invoke.texi (-fcilkplus): Update implementation status.
25684
25685 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25686 Richard Biener <rguenther@suse.de>
25687
25688 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25689 consistently accross all TUs.
25690 (run_gcc): Enable -fshort-double automatically at link at link-time
25691 and disallow override.
25692
25693 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25694
25695 PR target/58271
25696 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25697 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25698 if they can't be used.
25699
25700 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25701
25702 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25703 for Solaris 11/x86 ld.
25704 * configure: Regenerate.
25705
25706 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25707
25708 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25709 (LIB_TLS_SPEC): Save as ld_tls_libs.
25710 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25711 (HAVE_AS_IX86_TLSLDM): New test.
25712 * configure, config.in: Regenerate.
25713 * config/i386/i386.c (legitimize_tls_address): Fall back to
25714 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25715 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25716 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25717 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25718
25719 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25720
25721 * common.opt (fira-loop-pressure): Mark as optimization.
25722
25723 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
25724
25725 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
25726 an OpenMP mappable type.
25727
25728 2014-03-06 Matthias Klose <doko@ubuntu.com>
25729
25730 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
25731 MULTILIB_OSDIRNAMES is not defined.
25732
25733 2014-03-06 Jakub Jelinek <jakub@redhat.com>
25734 Meador Inge <meadori@codesourcery.com>
25735
25736 PR target/58595
25737 * config/arm/arm.c (arm_tls_symbol_p): Remove.
25738 (arm_legitimize_address): Call legitimize_tls_address for any
25739 arm_tls_referenced_p expression, handle constant addend. Call it
25740 before testing for !TARGET_ARM.
25741 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
25742
25743 2014-03-06 Richard Biener <rguenther@suse.de>
25744
25745 PR middle-end/60445
25746 PR lto/60424
25747 PR lto/60427
25748 Revert
25749 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25750
25751 * tree-streamer.c (record_common_node): Assert we don't record
25752 nodes with type double.
25753 (preload_common_node): Skip type double, complex double and double
25754 pointer since it is now frontend dependent due to fshort-double option.
25755
25756 2014-03-06 Richard Biener <rguenther@suse.de>
25757
25758 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
25759 or -fno-lto is specified and the linker has full plugin support.
25760 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
25761 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
25762 * lto-wrapper.c (merge_and_complain): Merge compile-time
25763 optimization levels.
25764 (run_gcc): And pass it through to the link options.
25765
25766 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
25767
25768 PR debug/60381
25769 Revert:
25770 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25771 PR debug/59992
25772 * cselib.c (remove_useless_values): Skip to avoid quadratic
25773 behavior if the condition moved from...
25774 (cselib_process_insn): ... here holds.
25775
25776 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25777
25778 PR plugins/59335
25779 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
25780 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
25781
25782 PR plugins/59335
25783 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
25784 (TM_H): Add x86-tune.def.
25785
25786 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25787
25788 * config/aarch64/aarch64.c (generic_tunings):
25789 Use cortexa57_extra_costs.
25790
25791 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25792
25793 PR lto/60404
25794 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
25795 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
25796 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
25797 cost for in_lto_p.
25798
25799 2014-03-04 Heiher <r@hev.cc>
25800
25801 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
25802 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
25803
25804 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
25805
25806 * config/i386/predicates.md (const2356_operand): Change to ...
25807 (const2367_operand): ... this.
25808 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
25809 const2367_operand.
25810 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25811 (*avx512pf_scatterpf<mode>sf): Ditto.
25812 (avx512pf_scatterpf<mode>df): Ditto.
25813 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25814 (*avx512pf_scatterpf<mode>df): Ditto.
25815 * config/i386/i386.c (ix86_expand_builtin): Update
25816 incorrect hint operand error message.
25817
25818 2014-03-04 Richard Biener <rguenther@suse.de>
25819
25820 * lto-section-in.c (lto_get_section_data): Fix const cast.
25821
25822 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25823
25824 * tree-streamer.c (record_common_node): Assert we don't record
25825 nodes with type double.
25826 (preload_common_node): Skip type double, complex double and double
25827 pointer since it is now frontend dependent due to fshort-double option.
25828
25829 2014-03-04 Richard Biener <rguenther@suse.de>
25830
25831 PR lto/60405
25832 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
25833 (lto_input_toplevel_asms): Likewise.
25834 * lto-section-in.c (lto_get_section_data): Instead do it here
25835 for every section.
25836
25837 2014-03-04 Richard Biener <rguenther@suse.de>
25838
25839 PR tree-optimization/60382
25840 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
25841 dead PHIs a reduction.
25842
25843 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
25844
25845 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
25846 hint value.
25847 (_mm_prefetch): Move out of GCC target("sse") pragma.
25848 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
25849 GCC target("prfchw") pragma.
25850 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
25851 for locality <= 2.
25852 * config/i386/i386.c (ix86_option_override_internal): Enable
25853 -mprfchw with -mprefetchwt1.
25854
25855 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25856
25857 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
25858 Mark as varying.
25859
25860 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25861
25862 * opts.h (CL_PCH_IGNORE): Define.
25863 * targhooks.c (option_affects_pch_p):
25864 Return false for options that have CL_PCH_IGNORE set.
25865 * opt-functions.awk: Process PchIgnore.
25866 * doc/options.texi: Document PchIgnore.
25867
25868 * config/arc/arc.opt (misize): Add PchIgnore property.
25869
25870 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25871
25872 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
25873 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
25874 constraint on constants to permit them being loaded into
25875 GENERAL_REGS or BASE_REGS.
25876
25877 2014-03-03 Nick Clifton <nickc@redhat.com>
25878
25879 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
25880 anti-cacnonical alternatives.
25881 (negandhi3_real): New pattern.
25882 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
25883
25884 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25885
25886 * config/avr/avr-mcus.def: Remove atxmega16x1.
25887 * config/avr/avr-tables.opt: Regenerate.
25888 * config/avr/t-multilib: Regenerate.
25889 * doc/avr-mmcu.texi: Regenerate.
25890
25891 2014-03-03 Tobias Grosser <tobias@grosser.es>
25892 Mircea Namolaru <mircea.namolaru@inria.fr>
25893
25894 PR tree-optimization/58028
25895 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
25896 scalar dimensions.
25897
25898 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25899
25900 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
25901 not handled by recognizers.
25902
25903 2014-03-03 Jakub Jelinek <jakub@redhat.com>
25904
25905 PR middle-end/60175
25906 * function.c (expand_function_end): Don't emit
25907 clobber_return_register sequence if clobber_after is a BARRIER.
25908 * cfgexpand.c (construct_exit_block): Append instructions before
25909 return_label to prev_bb.
25910
25911 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25912
25913 * config/rs6000/constraints.md: Document reserved use of "wc".
25914
25915 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25916
25917 PR ipa/60150
25918 * ipa.c (function_and_variable_visibility): When dissolving comdat
25919 group, also set all symbols to local.
25920
25921 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25922
25923 PR ipa/60306
25924
25925 Revert:
25926 2013-12-14 Jan Hubicka <jh@suse.cz>
25927 PR middle-end/58477
25928 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
25929
25930 2014-03-02 Jon Beniston <jon@beniston.com>
25931
25932 PR bootstrap/48230
25933 PR bootstrap/50927
25934 PR bootstrap/52466
25935 PR target/46898
25936 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
25937 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
25938 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
25939 (simple_return, *simple_return): New patterns
25940 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
25941 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
25942
25943 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
25944
25945 * dwarf2out.c (gen_subprogram_die): Tidy.
25946
25947 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
25948
25949 PR target/60071
25950 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
25951 (*mov_t_msb_neg_negc): ... this new insn.
25952
25953 2014-02-28 Jason Merrill <jason@redhat.com>
25954
25955 PR c++/58678
25956 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
25957 function.
25958
25959 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
25960
25961 PR c++/60314
25962 * dwarf2out.c (decltype_auto_die): New static.
25963 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
25964 (gen_type_die_with_usage): Handle 'decltype(auto)'.
25965 (is_cxx_auto): Likewise.
25966
25967 2014-02-28 Ian Bolton <ian.bolton@arm.com>
25968
25969 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
25970 we are not using general regs only.
25971
25972 2014-02-28 Richard Biener <rguenther@suse.de>
25973
25974 PR target/60280
25975 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
25976 previous fix and only allow to remove trivial pre-headers
25977 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
25978 (remove_forwarder_block): Properly update the latch of a loop.
25979
25980 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25981
25982 PR debug/59992
25983 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
25984 (cselib_preserved_hash_table): New.
25985 (preserve_constants_and_equivs): Move preserved vals to it.
25986 (cselib_find_slot): Look it up first.
25987 (cselib_init): Initialize it.
25988 (cselib_finish): Release it.
25989 (dump_cselib_table): Dump it.
25990
25991 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25992
25993 PR debug/59992
25994 * cselib.c (remove_useless_values): Skip to avoid quadratic
25995 behavior if the condition moved from...
25996 (cselib_process_insn): ... here holds.
25997
25998 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25999
26000 PR debug/57232
26001 * var-tracking.c (vt_initialize): Apply the same condition to
26002 preserve the CFA base value.
26003
26004 2014-02-28 Joey Ye <joey.ye@arm.com>
26005
26006 PR target/PR60169
26007 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26008 if reload in progress or completed.
26009
26010 2014-02-28 Tobias Burnus <burnus@net-b.de>
26011
26012 PR middle-end/60147
26013 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26014 NAMELIST_DECL.
26015
26016 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26017
26018 * doc/tm.texi.in (Condition Code Status): Update documention for
26019 relative locations of cc0-setter and cc0-user.
26020
26021 2014-02-27 Jeff Law <law@redhat.com>
26022
26023 PR rtl-optimization/52714
26024 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26025 into two independent simple sets, if I3 is a jump, ensure the
26026 pattern we place into I3 is a (set (pc) ...).
26027
26028 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26029 Jeff Law <law@redhat.com>
26030
26031 PR rtl-optimization/49847
26032 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26033 are in different blocks.
26034 * doc/tm.texi (Condition Code Status): Update documention for
26035 relative locations of cc0-setter and cc0-user.
26036
26037 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26038
26039 PR target/59222
26040 * lra.c (lra_emit_add): Check SUBREG too.
26041
26042 2014-02-27 Andreas Schwab <schwab@suse.de>
26043
26044 * config/m68k/m68k.c (m68k_option_override): Disable
26045 -flive-range-shrinkage for classic m68k.
26046 (m68k_override_options_after_change): Likewise.
26047
26048 2014-02-27 Marek Polacek <polacek@redhat.com>
26049
26050 PR middle-end/59223
26051 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26052 -Wmaybe-uninitialized.
26053
26054 2014-02-27 Alan Modra <amodra@gmail.com>
26055
26056 PR target/57936
26057 * reload1.c (emit_input_reload_insns): When reload_override_in,
26058 set old to rl->in_reg when rl->in_reg is a subreg.
26059
26060 2014-02-26 Richard Biener <rguenther@suse.de>
26061
26062 PR bootstrap/60343
26063 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26064
26065 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26066
26067 * common/config/i386/predicates.md (const1256_operand): Remove.
26068 (const2356_operand): New.
26069 (const_1_to_2_operand): Remove.
26070 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26071 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26072 (*avx512pf_gatherpf<mode>sf): Ditto.
26073 (avx512pf_gatherpf<mode>df): Ditto.
26074 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26075 (*avx512pf_gatherpf<mode>df): Ditto.
26076 (avx512pf_scatterpf<mode>sf): Ditto.
26077 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26078 (*avx512pf_scatterpf<mode>sf): Ditto.
26079 (avx512pf_scatterpf<mode>df): Ditto.
26080 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26081 (*avx512pf_scatterpf<mode>df): Ditto.
26082 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26083
26084 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26085
26086 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26087 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26088 (_mm512_mask_testn_epi64_mask): Move to ...
26089 * config/i386/avx512cdintrin.h: Here.
26090 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26091 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26092 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26093 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26094 TARGET_AVX512F from TARGET_AVX512CD.
26095
26096 2014-02-26 Richard Biener <rguenther@suse.de>
26097
26098 PR ipa/60327
26099 * ipa.c (walk_polymorphic_call_targets): Properly guard
26100 call to inline_update_overall_summary.
26101
26102 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26103
26104 PR target/60280
26105 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26106 and latches only if requested. Fix latch if it is removed.
26107 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26108 LOOPS_HAVE_PREHEADERS.
26109
26110 2014-02-25 Andrew Pinski <apinski@cavium.com>
26111
26112 * builtins.c (expand_builtin_thread_pointer): Create a new target
26113 when the target is NULL.
26114
26115 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26116
26117 PR rtl-optimization/60317
26118 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26119 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26120 * lra-assigns.c: Include params.h.
26121 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26122 other reload pseudos considerations.
26123
26124 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26125
26126 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26127 to use canonical form for nor<mode>3.
26128
26129 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26130
26131 PR target/55426
26132 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26133 conversions.
26134
26135 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26136
26137 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26138 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26139 (ix86_handle_option): Handle OPT_mprefetchwt1.
26140 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26141 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26142 PREFETCHWT1 CPUID.
26143 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26144 OPTION_MASK_ISA_PREFETCHWT1.
26145 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26146 (PTA_PREFETCHWT1): New.
26147 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26148 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26149 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26150 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26151 (*prefetch_avx512pf_<mode>_: Change into ...
26152 (*prefetch_prefetchwt1_<mode>: This.
26153 * config/i386/i386.opt (mprefetchwt1): New.
26154 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26155 (_mm_prefetch): Handle intent to write.
26156 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26157
26158 2014-02-25 Richard Biener <rguenther@suse.de>
26159
26160 PR middle-end/60291
26161 * emit-rtl.c (mem_attrs_htab): Remove.
26162 (mem_attrs_htab_hash): Likewise.
26163 (mem_attrs_htab_eq): Likewise.
26164 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26165 (init_emit_once): Do not allocate mem_attrs_htab.
26166
26167 2014-02-25 Richard Biener <rguenther@suse.de>
26168
26169 PR lto/60319
26170 * lto-opts.c (lto_write_options): Output non-explicit conservative
26171 -fwrapv, -fno-trapv and -fno-strict-overflow.
26172 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26173 (run_gcc): And pass them through.
26174
26175 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26176
26177 * sel-sched.c (calculate_new_fences): New parameter ptime.
26178 Calculate it as a maximum over all fence cycles.
26179 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26180 Print the final schedule timing when sched_verbose.
26181
26182 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26183
26184 PR rtl-optimization/60292
26185 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26186 bit fot the fence instruction.
26187
26188 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26189
26190 * calls.h: Fix typo in comment.
26191
26192 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26193
26194 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26195 adjusting offsetable addresses.
26196
26197 2014-02-24 Guozhi Wei <carrot@google.com>
26198
26199 * sparseset.h (sparseset_pop): Fix the wrong index.
26200
26201 2014-02-24 Walter Lee <walt@tilera.com>
26202
26203 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26204 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26205 triplet.
26206 * common/config/tilegx/tilegx-common.c
26207 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26208 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26209 (LINK_SPEC): Ditto.
26210 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26211 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26212 (tilegx_gimplify_va_arg_expr): Handle big endian.
26213 (tilegx_expand_unaligned_load): Ditto.
26214 (tilegx_expand_unaligned_store): Ditto.
26215 (TARGET_RETURN_IN_MSB): New.
26216 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26217 (TARGET_ENDIAN_DEFAULT): New.
26218 (TARGET_BIG_ENDIAN): Handle big endian.
26219 (BYTES_BIG_ENDIAN): Ditto.
26220 (WORDS_BIG_ENDIAN): Ditto.
26221 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26222 (ENDIAN_SPEC): New.
26223 (EXTRA_SPECS): New.
26224 * config/tilegx/tilegx.md (extv): Handle big endian.
26225 (extzv): Ditto.
26226 (insn_st<n>): Ditto.
26227 (insn_st<n>_add<bitsuffix>): Ditto.
26228 (insn_stnt<n>): Ditto.
26229 (insn_stnt<n>_add<bitsuffix>):Ditto.
26230 (vec_interleave_highv8qi): Handle big endian.
26231 (vec_interleave_highv8qi_be): New.
26232 (vec_interleave_highv8qi_le): New.
26233 (insn_v1int_h): Handle big endian.
26234 (vec_interleave_lowv8qi): Handle big endian.
26235 (vec_interleave_lowv8qi_be): New.
26236 (vec_interleave_lowv8qi_le): New.
26237 (insn_v1int_l): Handle big endian.
26238 (vec_interleave_highv4hi): Handle big endian.
26239 (vec_interleave_highv4hi_be): New.
26240 (vec_interleave_highv4hi_le): New.
26241 (insn_v2int_h): Handle big endian.
26242 (vec_interleave_lowv4hi): Handle big endian.
26243 (vec_interleave_lowv4hi_be): New.
26244 (vec_interleave_lowv4hi_le): New.
26245 (insn_v2int_l): Handle big endian.
26246 (vec_interleave_highv2si): Handle big endian.
26247 (vec_interleave_highv2si_be): New.
26248 (vec_interleave_highv2si_le): New.
26249 (insn_v4int_h): Handle big endian.
26250 (vec_interleave_lowv2si): Handle big endian.
26251 (vec_interleave_lowv2si_be): New.
26252 (vec_interleave_lowv2si_le): New.
26253 (insn_v4int_l): Handle big endian.
26254 * config/tilegx/tilegx.opt (mbig-endian): New option.
26255 (mlittle-endian): New option.
26256 * doc/install.texi: Document tilegxbe-linux.
26257 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26258
26259 2014-02-24 Martin Jambor <mjambor@suse.cz>
26260
26261 PR ipa/60266
26262 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26263 there are no parameter descriptors.
26264
26265 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26266
26267 PR rtl-optimization/60268
26268 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26269 initialization to ...
26270 (sched_rgn_init): ... here.
26271 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26272
26273 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26274
26275 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26276 names.
26277
26278 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26279
26280 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26281 definition.
26282
26283 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26284
26285 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26286 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26287
26288 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26289
26290 * config/microblaze/predicates.md: Add cmp_op predicate.
26291 * config/microblaze/microblaze.md: Add branch_compare instruction
26292 which uses cmp_op predicate and emits cmp insn before branch.
26293 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26294 to microblaze_expand_conditional_branch and consolidate logic.
26295 (microblaze_expand_conditional_branch): emit branch_compare
26296 insn instead of handling cmp op separate from branch insn.
26297
26298 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26299
26300 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26301 to permit subregs.
26302
26303 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26304
26305 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26306 define_insn with define_expand and new define_insn
26307 *altivec_lve<VI_char>x_internal.
26308 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26309 and new define_insn *altivec_stve<VI_char>x_internal.
26310 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26311 prototype.
26312 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26313 lve*x built-ins.
26314 (altivec_expand_stvex_be): New function.
26315
26316 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26317
26318 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26319 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26320 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26321 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26322
26323 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26324
26325 PR target/60298
26326 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26327 instead of emit_move_insn.
26328
26329 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26330
26331 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26332 vspltw with vsldoi.
26333 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26334 gen_altivec_vsumsws.
26335
26336 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26337
26338 * config/rs6000/altivec.md (altivec_lvxl): Rename as
26339 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26340 (altivec_lvxl_<mode>): New define_expand incorporating
26341 -maltivec=be semantics where needed.
26342 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26343 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26344 semantics where needed.
26345 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26346 (altivec_stvx_<mode>): New define_expand incorporating
26347 -maltivec=be semantics where needed.
26348 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26349 VM2 iterator instead of V4SI.
26350 (altivec_stvxl_<mode>): New define_expand incorporating
26351 -maltivec=be semantics where needed.
26352 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26353 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26354 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26355 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26356 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26357 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26358 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26359 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26360 ALTIVEC_BUILTIN_STVXL.
26361 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26362 (altivec_expand_stvx_be): Likewise.
26363 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26364 (altivec_expand_lvx_be): Likewise.
26365 (altivec_expand_stvx_be): Likewise.
26366 (altivec_expand_builtin): Add cases for
26367 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26368 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26369 (altivec_init_builtins): Add definitions for
26370 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26371 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26372
26373 2014-02-21 Catherine Moore <clm@codesourcery.com>
26374
26375 * doc/invoke.texi (mvirt, mno-virt): Document.
26376 * config/mips/mips.opt (mvirt): New option.
26377 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26378
26379 2014-02-21 Richard Biener <rguenther@suse.de>
26380
26381 PR tree-optimization/60276
26382 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26383 (STMT_VINFO_MIN_NEG_DIST): New macro.
26384 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26385 STMT_VINFO_MIN_NEG_DIST.
26386 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26387 made for negative dependence distances still hold.
26388
26389 2014-02-21 Richard Biener <rguenther@suse.de>
26390
26391 PR middle-end/60291
26392 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26393 DECL_INITIAL for globals not in the current function context.
26394
26395 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26396
26397 PR tree-optimization/56490
26398 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26399 * tree-ssa-uninit.c: Include params.h.
26400 (compute_control_dep_chain): Add num_calls argument, return false
26401 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26402 num_calls to recursive call.
26403 (find_predicates): Change dep_chain into normal array,
26404 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26405 variable and adjust compute_control_dep_chain caller.
26406 (find_def_preds): Likewise.
26407
26408 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26409
26410 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26411 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26412
26413 2014-02-21 Nick Clifton <nickc@redhat.com>
26414
26415 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26416 (pushhi1): Likewise.
26417 (popqi1): Add mode to pre_dec.
26418 (pophi1): Likewise.
26419
26420 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26421
26422 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26423 mode for mask of V8SFmode permutation.
26424
26425 2014-02-20 Richard Henderson <rth@redhat.com>
26426
26427 PR c++/60272
26428 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26429 a new pseudo for OLDVAL.
26430
26431 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26432
26433 PR target/57896
26434 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26435 gen_reg_rtx if d->testing_p.
26436 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26437 if d->testing_p and we will certainly return true.
26438 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26439 if d->testing_p.
26440
26441 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26442
26443 * emit-rtl.c (gen_reg_rtx): Assert that
26444 crtl->emit.regno_pointer_align_length is non-zero.
26445
26446 2014-02-20 Richard Henderson <rth@redhat.com>
26447
26448 PR c++/60272
26449 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26450 on failure the store back into EXPECT.
26451
26452 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
26453 Sandra Loosemore <sandra@codesourcery.com>
26454
26455 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26456 * config/nios2/nios2.c (nios2_function_profiler): Add
26457 -fPIC (flag_pic == 2) support.
26458 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26459 (nios2_large_offset_p): New function.
26460 (nios2_unspec_reloc_p): Move up position, update to use
26461 nios2_large_offset_p.
26462 (nios2_unspec_address): Remove function.
26463 (nios2_unspec_offset): New function.
26464 (nios2_large_got_address): New function.
26465 (nios2_got_address): Add large offset support.
26466 (nios2_legitimize_tls_address): Update usage of removed and new
26467 functions.
26468 (nios2_symbol_binds_local_p): New function.
26469 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26470 (nios2_legitimize_address): Update to use nios2_large_offset_p.
26471 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26472 (nios2_print_operand): Merge H/L processing, add hiadj/lo
26473 processing for (const (unspec ...)).
26474 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26475
26476 2014-02-20 Richard Biener <rguenther@suse.de>
26477
26478 * tree-cfg.c (replace_uses_by): Mark altered BBs before
26479 doing the substitution.
26480 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26481
26482 2014-02-20 Martin Jambor <mjambor@suse.cz>
26483
26484 PR ipa/55260
26485 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26486 info when checking whether lattices are bottom.
26487
26488 2014-02-20 Richard Biener <rguenther@suse.de>
26489
26490 PR middle-end/60221
26491 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26492 regions at -O0.
26493
26494 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
26495
26496 PR ipa/58555
26497 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26498 parameter specifying the scaling.
26499 (inline_call): Update.
26500 (want_inline_recursively): Guard division by zero.
26501 (recursive_inlining): Update.
26502 * ipa-inline.h (clone_inlined_nodes): Update.
26503
26504 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26505
26506 PR target/60204
26507 * config/i386/i386.c (classify_argument): Pass structures of size
26508 64 bytes or less in register.
26509
26510 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26511 Kirill Yukhin <kirill.yukhin@intel.com>
26512
26513 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26514 (_mm_rcp28_round_ss): Ditto.
26515 (_mm_rsqrt28_round_sd): Ditto.
26516 (_mm_rsqrt28_round_ss): Ditto.
26517 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26518 (_mm_rcp14_round_ss): Ditto.
26519 (_mm_rsqrt14_round_sd): Ditto.
26520 (_mm_rsqrt14_round_ss): Ditto.
26521 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26522 the first input operand, get rid of match_dup.
26523 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26524 attribute to sse.
26525 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26526 Ditto.
26527 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26528 operand as the first input operand, set type attribute.
26529 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26530 Set type attribute.
26531 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26532 operand as the first input operand, set type attribute.
26533
26534 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26535
26536 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26537 bit of zero.
26538
26539 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26540
26541 PR target/60207
26542 * config/i386/i386.c (construct_container): Remove TFmode check
26543 for X86_64_INTEGER_CLASS.
26544
26545 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
26546
26547 PR target/59794
26548 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26549 only when -Wpsabi is enabled.
26550
26551 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26552
26553 PR target/59799
26554 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26555 passing arrays in registers are the same as for structs, so remove the
26556 special case for them.
26557
26558 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26559
26560 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26561 destination type, extract only the valid bits if the source type is not
26562 integral and has a different mode.
26563
26564 2014-02-19 Richard Biener <rguenther@suse.de>
26565
26566 PR ipa/60243
26567 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26568 for all calls.
26569
26570 2014-02-19 Richard Biener <rguenther@suse.de>
26571
26572 PR ipa/60243
26573 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26574 (ipa_modify_call_arguments): Emit an argument load explicitely and
26575 preserve virtual SSA form there and for the replacement call.
26576 Do not update SSA form nor free dominance info.
26577
26578 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26579
26580 * ipa.c (function_and_variable_visibility): Also clear WEAK
26581 flag when disolving COMDAT_GROUP.
26582
26583 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26584
26585 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26586 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26587 not devirtualizing.
26588 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26589 do more sanity checks.
26590 (detect_type_change): Return true when giving up early.
26591 (compute_complex_assign_jump_func): Fix type parameter of
26592 ipa_set_ancestor_jf.
26593 (compute_complex_ancestor_jump_func): Likewise.
26594 (update_jump_functions_after_inlining): Fix updating of
26595 ancestor function.
26596 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26597
26598 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26599
26600 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26601 inline clones when edge disappears.
26602
26603 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26604
26605 PR target/60203
26606 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26607 Split 64-bit moves into 2 patterns. Do not allow the use of
26608 direct move for TDmode in little endian, since the decimal value
26609 has little endian bytes within a word, but the 64-bit pieces are
26610 ordered in a big endian fashion, and normal subreg's of TDmode are
26611 not allowed.
26612 (mov<mode>_64bit_dm): Likewise.
26613 (movtd_64bit_nodm): Likewise.
26614
26615 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26616
26617 PR tree-optimization/60174
26618 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26619 statement of an SSA_NAME that occurs in an abnormal PHI node.
26620
26621 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26622
26623 PR sanitizer/60142
26624 * final.c (SEEN_BB): Remove.
26625 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26626 (final_scan_insn): Don't force_source_line on second
26627 NOTE_INSN_BASIC_BLOCK.
26628
26629 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26630
26631 PR target/60205
26632 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26633 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26634 (type_natural_mode): Warn ABI change when %zmm register is not
26635 available for AVX512F vector value passing.
26636
26637 2014-02-18 Kai Tietz <ktietz@redhat.com>
26638
26639 PR target/60193
26640 * config/i386/i386.c (ix86_expand_prologue): Use value in
26641 rax register as displacement when restoring %r10 or %rax.
26642 Fix wrong offset when restoring both registers.
26643
26644 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26645
26646 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26647 assertion with conditional return.
26648
26649 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26650 Uros Bizjak <ubizjak@gmail.com>
26651
26652 PR driver/60233
26653 * config/i386/driver-i386.c (host_detect_local_cpu): If
26654 YMM state is not saved by the OS, also clear has_f16c. Move
26655 CPUID 0x80000001 handling before YMM state saving checking.
26656
26657 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26658
26659 PR rtl-optimization/58960
26660 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26661 factored out from ...
26662 (sched_init): ... here.
26663 (free_global_sched_pressure_data): New, factored out from ...
26664 (sched_finish): ... here.
26665 * sched-int.h (free_global_sched_pressure_data): Declare.
26666 * sched-rgn.c (nr_regions_initial): New static global.
26667 (haifa_find_rgns): Initialize it.
26668 (schedule_region): Disable sched-pressure for the newly
26669 generated regions.
26670
26671 2014-02-17 Richard Biener <rguenther@suse.de>
26672
26673 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26674 release SSA defs of pattern stmts.
26675
26676 2014-02-17 Richard Biener <rguenther@suse.de>
26677
26678 * tree-inline.c (expand_call_inline): Release the virtual
26679 operand defined by the call we are about to inline.
26680
26681 2014-02-17 Richard Biener <rguenther@suse.de>
26682
26683 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26684
26685 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26686 Ilya Tocar <ilya.tocar@intel.com>
26687
26688 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26689 arguments order in builtin.
26690 (_mm512_permutexvar_epi64): Ditto.
26691 (_mm512_mask_permutexvar_epi64): Ditto
26692 (_mm512_maskz_permutexvar_epi32): Ditto
26693 (_mm512_permutexvar_epi32): Ditto
26694 (_mm512_mask_permutexvar_epi32): Ditto
26695
26696 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26697
26698 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26699 (p8_vmrgow): Likewise.
26700
26701 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26702
26703 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26704 endian targets.
26705
26706 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26707
26708 PR target/60203
26709 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26710 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26711 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26712 using direct move instructions on ISA 2.07. Also adjust
26713 instruction length for 64-bit.
26714 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26715 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26716
26717 2014-02-15 Alan Modra <amodra@gmail.com>
26718
26719 PR target/58675
26720 PR target/57935
26721 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26722 find_replacement on parts of insn rtl that might be reloaded.
26723
26724 2014-02-15 Richard Biener <rguenther@suse.de>
26725
26726 PR tree-optimization/60183
26727 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
26728 (tree_ssa_phiprop): Calculate and free post-dominators.
26729
26730 2014-02-14 Jeff Law <law@redhat.com>
26731
26732 PR rtl-optimization/60131
26733 * ree.c (get_extended_src_reg): New function.
26734 (combine_reaching_defs): Use it rather than assuming location of REG.
26735 (find_and_remove_re): Verify first operand of extension is
26736 a REG before adding the insns to the copy list.
26737
26738 2014-02-14 Roland McGrath <mcgrathr@google.com>
26739
26740 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
26741 * configure: Regenerated.
26742 * config.in: Regenerated.
26743 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
26744 instead of ASM_SHORT.
26745
26746 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
26747 Richard Earnshaw <rearnsha@arm.com>
26748
26749 PR rtl-optimization/59535
26750 * lra-constraints.c (process_alt_operands): Encourage alternative
26751 when unassigned pseudo class is superset of the alternative class.
26752 (inherit_reload_reg): Don't inherit when optimizing for code size.
26753 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
26754 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
26755 modes not less than 4 for Thumb1.
26756
26757 2014-02-14 Kyle McMartin <kyle@redhat.com>
26758
26759 PR pch/60010
26760 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
26761
26762 2014-02-14 Richard Biener <rguenther@suse.de>
26763
26764 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
26765 (get_frame_arg): Drop the assert with langhook types_compatible_p.
26766 Do not strip INDIRECT_REFs.
26767
26768 2014-02-14 Richard Biener <rguenther@suse.de>
26769
26770 PR lto/60179
26771 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
26772 DECL_FUNCTION_SPECIFIC_TARGET.
26773 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
26774 * tree-streamer-out.c (pack_ts_target_option): Remove.
26775 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
26776 (write_ts_function_decl_tree_pointers): Do not stream
26777 DECL_FUNCTION_SPECIFIC_TARGET.
26778 * tree-streamer-in.c (unpack_ts_target_option): Remove.
26779 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
26780 (lto_input_ts_function_decl_tree_pointers): Do not stream
26781 DECL_FUNCTION_SPECIFIC_TARGET.
26782
26783 2014-02-14 Jakub Jelinek <jakub@redhat.com>
26784
26785 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
26786 (get_initial_def_for_induction, vectorizable_induction): Ignore
26787 debug stmts when looking for exit_phi.
26788 (vectorizable_live_operation): Fix up condition.
26789
26790 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26791
26792 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
26793 nreverse() because it changes the content of original tree list.
26794
26795 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26796
26797 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
26798 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
26799
26800 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26801
26802 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
26803 GNU coding standards.
26804
26805 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26806
26807 PR debug/60152
26808 * dwarf2out.c (gen_subprogram_die): Don't call
26809 add_calling_convention_attribute if subr_die is old_die.
26810
26811 2014-02-13 Sharad Singhai <singhai@google.com>
26812
26813 * doc/optinfo.texi: Fix order of nodes.
26814
26815 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
26816
26817 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
26818 operands[2], not operands[3].
26819
26820 2014-02-13 Richard Biener <rguenther@suse.de>
26821
26822 PR bootstrap/59878
26823 * doc/install.texi (ISL): Update recommended version to 0.12.2,
26824 mention the possibility of an in-tree build.
26825 (CLooG): Update recommended version to 0.18.1, mention the
26826 possibility of an in-tree build and clarify that the ISL
26827 bundled with CLooG does not work.
26828
26829 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26830
26831 PR target/43546
26832 * expr.c (compress_float_constant): If x is a hard register,
26833 extend into a pseudo and then move to x.
26834
26835 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
26836
26837 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
26838 caused by bad second argument to warning_at() with -mhotpatch and
26839 nested functions (e.g. with gfortran).
26840
26841 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
26842
26843 * opts.c (option_name): Remove "enabled by default" rider.
26844
26845 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
26846
26847 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
26848
26849 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
26850 Uros Bizjak <ubizjak@gmail.com>
26851
26852 PR target/60151
26853 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
26854 * configure: Regenerated.
26855
26856 2014-02-12 Richard Biener <rguenther@suse.de>
26857
26858 * vec.c (vec_prefix::calculate_allocation): Move as
26859 inline variant to vec.h.
26860 (vec_prefix::calculate_allocation_1): New out-of-line version.
26861 * vec.h (vec_prefix::calculate_allocation_1): Declare.
26862 (vec_prefix::m_has_auto_buf): Rename to ...
26863 (vec_prefix::m_using_auto_storage): ... this.
26864 (vec_prefix::calculate_allocation): Inline the easy cases
26865 and dispatch to calculate_allocation_1 which doesn't need the
26866 prefix address.
26867 (va_heap::reserve): Use gcc_checking_assert.
26868 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
26869 m_using_auto_storage.
26870 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
26871 member and adjust.
26872 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
26873 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
26874 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
26875
26876 2014-02-12 Richard Biener <rguenther@suse.de>
26877
26878 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
26879 when we found a dependence.
26880
26881 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
26882
26883 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
26884 common code...
26885 (maybe_fold_stmt): ... into this new function.
26886 * omp-low.c (lower_omp): Update comment.
26887
26888 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
26889 last use.
26890
26891 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
26892 dereference.
26893
26894 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
26895
26896 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
26897 identifiers in comments.
26898 (cortexa53_extra_costs): Likewise.
26899 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
26900 (cortexa7_extra_costs): Likewise.
26901 (cortexa12_extra_costs): Likewise.
26902 (cortexa15_extra_costs): Likewise.
26903 (v7m_extra_costs): Likewise.
26904
26905 2014-02-12 Richard Biener <rguenther@suse.de>
26906
26907 PR middle-end/60092
26908 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
26909 of posix_memalign being successful.
26910 (lower_stmt): Restrict lowering of posix_memalign to when
26911 -ftree-bit-ccp is enabled.
26912
26913 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26914
26915 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
26916 arg_loc.
26917 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26918
26919 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
26920
26921 PR rtl-optimization/60116
26922 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
26923 other_insn once the combination has been validated.
26924
26925 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
26926
26927 PR lto/59468
26928 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
26929 and wrapper.
26930 * ipa-devirt.c: Include demangle.h
26931 (odr_violation_reported): New static variable.
26932 (add_type_duplicate): Update odr_violations.
26933 (maybe_record_node): Add completep parameter; update it.
26934 (record_target_from_binfo): Add COMPLETEP parameter;
26935 update it as needed.
26936 (possible_polymorphic_call_targets_1): Likewise.
26937 (struct polymorphic_call_target_d): Add nonconstruction_targets;
26938 rename FINAL to COMPLETE.
26939 (record_targets_from_bases): Sanity check we found the binfo;
26940 fix COMPLETEP updating.
26941 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
26942 parameter, fix computing of COMPLETEP.
26943 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
26944 at LTO time do demangling.
26945 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
26946 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
26947 parameter.
26948 (gimple_get_virt_method_for_binfo): Likewise.
26949 * gimple-fold.h (gimple_get_virt_method_for_binfo,
26950 gimple_get_virt_method_for_vtable): Update prototypes.
26951
26952 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
26953
26954 PR target/49008
26955 * genautomata.c (add_presence_absence): Fix typo with
26956 {final_}presence_list.
26957
26958 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26959
26960 PR target/60137
26961 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
26962 for VSX/Altivec vectors that land in GPR registers.
26963
26964 2014-02-11 Richard Henderson <rth@redhat.com>
26965 Jakub Jelinek <jakub@redhat.com>
26966
26967 PR debug/59776
26968 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
26969 around drhs if type conversion to lacc->type is not useless.
26970
26971 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26972
26973 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
26974 tuning struct.
26975 (cortex-a57.cortex-a53): Likewise.
26976 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
26977
26978 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26979
26980 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
26981 arm_restrict_it.
26982
26983 2014-02-11 Renlin Li <Renlin.Li@arm.com>
26984
26985 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
26986 add_options_for_arm_vfp3.
26987
26988 2014-02-11 Jeff Law <law@redhat.com>
26989
26990 PR middle-end/54041
26991 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
26992 object with an undesirable mode.
26993
26994 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26995
26996 PR libgomp/60107
26997 * config/i386/sol2-9.h: New file.
26998 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
26999 *-*-solaris2.9*): Use it.
27000
27001 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27002
27003 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27004 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27005
27006 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27007
27008 * config/microblaze/microblaze.c: Extend mcpu version format
27009
27010 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27011
27012 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27013
27014 2014-02-10 Richard Henderson <rth@redhat.com>
27015
27016 PR target/59927
27017 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27018 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27019 ms-abi vs -mno-accumulate-outgoing-args.
27020 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27021 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27022 respect to ms-abi.
27023
27024 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27025
27026 PR middle-end/60080
27027 * cfgexpand.c (expand_asm_operands): Attach source location to
27028 ASM_INPUT rtx objects.
27029 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27030
27031 2014-02-10 Nick Clifton <nickc@redhat.com>
27032
27033 * config/mn10300/mn10300.c (popcount): New function.
27034 (mn10300_expand_prologue): Include saved registers in stack usage
27035 count.
27036
27037 2014-02-10 Jeff Law <law@redhat.com>
27038
27039 PR middle-end/52306
27040 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27041 when changing the SET_DEST of a prior insn to avoid an input reload.
27042
27043 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27044
27045 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27046 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27047 -mcall-openbsd, or -mcall-linux.
27048 (CC1_ENDIAN_BIG_SPEC): Remove.
27049 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27050 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27051 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27052 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27053 and %cc1_endian_default.
27054 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27055
27056 2014-02-10 Richard Biener <rguenther@suse.de>
27057
27058 PR tree-optimization/60115
27059 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27060 MEM_REF handling. Properly verify that the accesses are not
27061 out of the objects bound.
27062
27063 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27064
27065 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27066 coretex to cortex.
27067
27068 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27069
27070 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27071 proper constants and fix formatting.
27072 (possible_polymorphic_call_targets): Fix formatting.
27073
27074 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27075 Ilya Tocar <ilya.tocar@intel.com>
27076
27077 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27078 (_mm512_loadu_epi32): Renamed into...
27079 (_mm512_loadu_si512): This.
27080 (_mm512_storeu_epi32): Renamed into...
27081 (_mm512_storeu_si512): This.
27082 (_mm512_maskz_ceil_ps): Removed.
27083 (_mm512_maskz_ceil_pd): Ditto.
27084 (_mm512_maskz_floor_ps): Ditto.
27085 (_mm512_maskz_floor_pd): Ditto.
27086 (_mm512_floor_round_ps): Ditto.
27087 (_mm512_floor_round_pd): Ditto.
27088 (_mm512_ceil_round_ps): Ditto.
27089 (_mm512_ceil_round_pd): Ditto.
27090 (_mm512_mask_floor_round_ps): Ditto.
27091 (_mm512_mask_floor_round_pd): Ditto.
27092 (_mm512_mask_ceil_round_ps): Ditto.
27093 (_mm512_mask_ceil_round_pd): Ditto.
27094 (_mm512_maskz_floor_round_ps): Ditto.
27095 (_mm512_maskz_floor_round_pd): Ditto.
27096 (_mm512_maskz_ceil_round_ps): Ditto.
27097 (_mm512_maskz_ceil_round_pd): Ditto.
27098 (_mm512_expand_pd): Ditto.
27099 (_mm512_expand_ps): Ditto.
27100 * config/i386/i386.c (ix86_builtins): Remove
27101 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27102 (bdesc_args): Ditto.
27103 * config/i386/predicates.md (const1256_operand): New.
27104 (const_1_to_2_operand): Ditto.
27105 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27106 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27107 (*avx512pf_gatherpf<mode>sf): Ditto.
27108 (avx512pf_gatherpf<mode>df): Ditto.
27109 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27110 (*avx512pf_gatherpf<mode>df): Ditto.
27111 (avx512pf_scatterpf<mode>sf): Ditto.
27112 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27113 (*avx512pf_scatterpf<mode>sf): Ditto.
27114 (avx512pf_scatterpf<mode>df): Ditto.
27115 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27116 (*avx512pf_scatterpf<mode>df): Ditto.
27117 (avx512f_expand<mode>): Removed.
27118 (<shift_insn><mode>3<mask_name>): Change predicate type.
27119
27120 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27121
27122 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27123 not at the end of datarefs vector use ordered_remove to avoid
27124 reordering datarefs vector.
27125
27126 PR c/59984
27127 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27128 mark local addressable non-static vars as GOVD_PRIVATE
27129 instead of GOVD_LOCAL.
27130 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27131 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27132 than copying them.
27133
27134 PR middle-end/60092
27135 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27136 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27137 assume_aligned or alloc_align attributes.
27138 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27139 arguments. Handle also assume_aligned and alloc_align attributes.
27140 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27141 calls to functions with assume_aligned or alloc_align attributes.
27142 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27143
27144 2014-02-08 Terry Guo <terry.guo@arm.com>
27145
27146 * doc/invoke.texi: Document ARM -march=armv7e-m.
27147
27148 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27149
27150 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27151 flag on __cilkrts_rethrow builtin.
27152
27153 PR ipa/60026
27154 * ipa-cp.c (determine_versionability): Fail at -O0
27155 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27156 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27157
27158 Revert:
27159 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27160
27161 PR ipa/60026
27162 * tree-inline.c (copy_forbidden): Fail for
27163 __attribute__((optimize (0))) functions.
27164
27165 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27166
27167 * varpool.c: Include pointer-set.h.
27168 (varpool_remove_unreferenced_decls): Variables in other partitions
27169 will not be output; be however careful to not lose information
27170 about partitioning.
27171
27172 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27173
27174 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27175 lookup in the vtable constructor.
27176
27177 2014-02-07 Jeff Law <law@redhat.com>
27178
27179 PR target/40977
27180 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27181 define_insn_and_split.
27182
27183 * ipa-inline.c (inline_small_functions): Fix typos.
27184
27185 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27186
27187 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27188 (s390_can_use_return_insn): Declare.
27189 * config/s390/s390.h (EPILOGUE_USES): Define.
27190 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27191 instructions.
27192 (s390_chunkify_start): Handle return JUMP_LABELs.
27193 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27194 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27195 (s390_can_use_return_insn): New functions.
27196 (s390_fix_long_loop_prediction): Handle conditional returns.
27197 (TARGET_SET_UP_BY_PROLOGUE): Define.
27198 * config/s390/s390.md (ANY_RETURN): New code iterator.
27199 (*creturn, *csimple_return, return, simple_return): New patterns.
27200
27201 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27202
27203 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27204 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27205 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27206 REG_CFA_RESTORE list when deciding not to restore a register.
27207
27208 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27209
27210 * config/s390/s390.c: Include tree-pass.h and context.h.
27211 (s390_early_mach): New function, split out from...
27212 (s390_emit_prologue): ...here.
27213 (pass_data_s390_early_mach): New pass structure.
27214 (pass_s390_early_mach): New class.
27215 (s390_option_override): Create and register early_mach pass.
27216 Move to end of file.
27217
27218 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27219
27220 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27221 to match for the exit block.
27222
27223 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27224
27225 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27226 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27227 Reject misaligned operands.
27228
27229 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27230
27231 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27232
27233 2014-02-07 Richard Biener <rguenther@suse.de>
27234
27235 PR middle-end/60092
27236 * gimple-low.c (lower_builtin_posix_memalign): New function.
27237 (lower_stmt): Call it to lower posix_memalign in a way
27238 to make alignment info accessible.
27239
27240 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27241
27242 PR c++/60082
27243 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27244 __builtin_setjmp_receiver.
27245
27246 2014-02-07 Richard Biener <rguenther@suse.de>
27247
27248 PR middle-end/60092
27249 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27250 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27251 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27252 Handle BUILT_IN_POSIX_MEMALIGN.
27253 (find_func_clobbers): Likewise.
27254 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27255 (call_may_clobber_ref_p_1): Likewise.
27256
27257 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27258
27259 PR ipa/59918
27260 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27261 sanity check.
27262
27263 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27264
27265 PR ipa/59469
27266 * lto-cgraph.c (lto_output_node): Use
27267 symtab_get_symbol_partitioning_class.
27268 (lto_output_varpool_node): likewise.
27269 (symtab_get_symbol_partitioning_class): Move here from
27270 lto/lto-partition.c
27271 * cgraph.h (symbol_partitioning_class): Likewise.
27272 (symtab_get_symbol_partitioning_class): Declare.
27273
27274 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27275
27276 * ggc.h (ggc_internal_cleared_alloc): New macro.
27277 * vec.h (vec_safe_copy): Handle memory stats.
27278 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27279 * target-globals.c (save_target_globals): Likewise.
27280
27281 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27282
27283 PR target/60077
27284 * expr.c (emit_move_resolve_push): Export; be bit more selective
27285 on when to clear alias set.
27286 * expr.h (emit_move_resolve_push): Declare.
27287 * function.h (struct function): Add tail_call_marked.
27288 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27289 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27290 * config/i386/i386.md (TImode move expander): De not call
27291 ix86_expand_push.
27292 (FP push expanders): Preserve memory attributes.
27293 * config/i386/sse.md (push<mode>1): Remove.
27294 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27295 (ix86_expand_push): Remove.
27296 * config/i386/mmx.md (push<mode>1): Remove.
27297
27298 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27299
27300 PR rtl-optimization/60030
27301 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27302 lopart with paradoxical subreg before shifting it up by hprec.
27303
27304 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27305
27306 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27307 Remove extra newline at end of file.
27308 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27309 (arm_issue_rate): Handle cortexa57.
27310 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27311 (cortex-a57.cortex-a53): Likewise.
27312
27313 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27314
27315 PR target/59575
27316 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27317 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27318 bitmask.
27319 (arm_expand_prologue): Adjust all callers.
27320 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27321 info, registers also at the lowest numbered registers side. Use
27322 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27323 XEXP.
27324
27325 PR debug/59992
27326 * var-tracking.c (adjust_mems): Before adding a SET to
27327 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27328
27329 2014-02-06 Alan Modra <amodra@gmail.com>
27330
27331 PR target/60032
27332 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27333 change SDmode to DDmode when lra_in_progress.
27334
27335 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27336
27337 PR middle-end/59150
27338 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27339 free_data_ref on the dr first, and before goto again also set dr
27340 to the next dr. For simd_lane_access, free old datarefs[i] before
27341 overwriting it. For get_vectype_for_scalar_type failure, don't
27342 free_data_ref if simd_lane_access.
27343
27344 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27345
27346 PR target/60062
27347 * tree.h (opts_for_fn): New inline function.
27348 (opt_for_fn): Define.
27349 * config/i386/i386.c (ix86_function_regparm): Use
27350 opt_for_fn (decl, optimize) instead of optimize.
27351
27352 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
27353
27354 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27355 for SYMBOL_REF in large memory model.
27356
27357 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27358
27359 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27360 and crypto support.
27361 (cortex-a57): Likewise.
27362 (cortex-a57.cortex-a53): Likewise.
27363
27364 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27365 Kugan Vivekanandarajah <kuganv@linaro.org>
27366
27367 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27368 unaligned_access.
27369 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27370
27371 2014-02-06 Richard Biener <rguenther@suse.de>
27372
27373 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27374 set_loop_copy and initialize_original_copy_tables.
27375
27376 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27377
27378 * config/aarch64/aarch64-simd.md
27379 (aarch64_ashr_simddi): Change QI to SI.
27380
27381 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27382 Jakub Jelinek <jakub@redhat.com>
27383
27384 PR middle-end/60013
27385 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27386 of the dataflow.
27387
27388 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27389
27390 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27391 CODE_FOR_altivec_vpku[hw]um to
27392 CODE_FOR_altivec_vpku[hw]um_direct.
27393 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27394 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27395 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27396 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27397
27398 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27399
27400 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27401 generation for -maltivec=be.
27402 (altivec_vsumsws): Simplify redundant test.
27403
27404 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27405
27406 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27407 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27408 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27409 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27410 gen_altivec_vpkuwum.
27411 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27412 BYTES_BIG_ENDIAN.
27413 (altivec_vpks<VI_char>ss): Likewise.
27414 (altivec_vpks<VI_char>us): Likewise.
27415 (altivec_vpku<VI_char>us): Likewise.
27416 (altivec_vpku<VI_char>um): Likewise.
27417 (altivec_vpku<VI_char>um_direct): New (copy of
27418 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27419 internal use).
27420 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27421 target is little endian and -maltivec=be is not specified.
27422 (*altivec_vupkhs<VU_char>_direct): New (copy of
27423 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27424 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27425 target is little endian and -maltivec=be is not specified.
27426 (*altivec_vupkls<VU_char>_direct): New (copy of
27427 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27428 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27429 little endian and -maltivec=be is not specified.
27430 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27431 little endian and -maltivec=be is not specified.
27432
27433 2014-02-05 Richard Henderson <rth@redhat.com>
27434
27435 PR debug/52727
27436 * combine-stack-adj.c: Revert r206943.
27437 * sched-int.h (struct deps_desc): Add last_args_size.
27438 * sched-deps.c (init_deps): Initialize it.
27439 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27440 contain REG_ARGS_SIZE notes.
27441
27442 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27443
27444 * lto-cgraph.c (asm_nodes_output): Make global.
27445 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27446 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27447 (driver_handle_option): Handle OPT_fwpa.
27448
27449 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27450
27451 PR ipa/59947
27452 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27453 a comment typo and formatting issue. If odr_hash hasn't been
27454 created, return vNULL and set *completep to false.
27455
27456 PR middle-end/57499
27457 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27458 bb with no successors.
27459
27460 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
27461
27462 PR target/59718
27463 * doc/invoke.texi (-march): Clarify documentation for ARM.
27464 (-mtune): Likewise.
27465 (-mcpu): Likewise.
27466
27467 2014-02-05 Richard Biener <rguenther@suse.de>
27468
27469 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27470 when not vectorizing because of too many alias checks.
27471 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27472 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27473
27474 2014-02-05 Nick Clifton <nickc@redhat.com>
27475
27476 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27477 accept extended registers in any mode when compiling for the MN10300.
27478
27479 2014-02-05 Yury Gribov <y.gribov@samsung.com>
27480
27481 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27482 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27483 sanitization attributes.
27484 (can_inline_edge_p): Likewise.
27485 (sanitize_attrs_match_for_inline_p): New function.
27486
27487 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27488
27489 * ipa-prop.c (detect_type_change): Shor circuit testing of
27490 type changes on THIS pointer.
27491
27492 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
27493
27494 PR target/59777
27495 * config/pa/pa.c (legitimize_tls_address): Return original address
27496 if not passed a SYMBOL_REF rtx.
27497 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27498 addresses.
27499 (pa_emit_move_sequence): Simplify TLS source operands.
27500 (pa_legitimate_constant_p): Reject all TLS constants.
27501 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27502 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27503
27504 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27505
27506 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27507 groups when we know they are controlled by LTO.
27508 * varasm.c (default_binds_local_p_1): If object is in other partition,
27509 it will be resolved locally.
27510
27511 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27512
27513 * config/host-linux.c (linux_gt_pch_use_address): Don't
27514 use SSIZE_MAX because it is not always defined.
27515
27516 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27517
27518 PR bootstrap/59913
27519 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27520 threshold for pseudo splitting.
27521 (update_ebb_live_info): Process call argument hard registers and
27522 hard registers from insn definition too.
27523 (max_small_class_regs_num): New constant.
27524 (inherit_in_ebb): Update live hard regs through EBBs. Update
27525 reloads_num only for small register classes. Don't split for
27526 outputs of jumps.
27527
27528 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27529
27530 PR ipa/60058
27531 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27532 is non-null.
27533
27534 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27535
27536 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27537 visibility is safe.
27538
27539 2014-02-04 Marek Polacek <polacek@redhat.com>
27540
27541 * gdbinit.in (pel): Define.
27542
27543 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27544
27545 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27546 behavior.
27547
27548 2014-02-04 Richard Biener <rguenther@suse.de>
27549
27550 PR lto/59723
27551 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27552 in function context local.
27553 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27554 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27555 similar to LTO_imported_decl_ref.
27556
27557 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27558
27559 PR tree-optimization/60002
27560 * cgraphclones.c (build_function_decl_skip_args): Clear
27561 DECL_LANG_SPECIFIC.
27562
27563 PR tree-optimization/60023
27564 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27565 false to gsi_replace.
27566 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27567 has been in some EH region and vec_stmt could throw, add
27568 vec_stmt into the same EH region.
27569 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27570 has no lhs, ignore it.
27571 * internal-fn.c (expand_MASK_LOAD): Likewise.
27572
27573 PR ipa/60026
27574 * tree-inline.c (copy_forbidden): Fail for
27575 __attribute__((optimize (0))) functions.
27576
27577 PR other/58712
27578 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27579 is set, copy one less argument.
27580 (expand_simd_clones): Don't subtract clone_info->inbranch
27581 from simd_clone_struct_alloc argument.
27582
27583 PR rtl-optimization/57915
27584 * recog.c (simplify_while_replacing): If all unary/binary/relational
27585 operation arguments are constant, attempt to simplify those.
27586
27587 PR middle-end/59261
27588 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27589 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27590
27591 2014-02-04 Richard Biener <rguenther@suse.de>
27592
27593 PR tree-optimization/60012
27594 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27595 TBAA disambiguation to all DDRs.
27596
27597 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27598
27599 PR target/59788
27600 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27601 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27602
27603 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27604
27605 PR ipa/59882
27606 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27607
27608 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27609
27610 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27611 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27612
27613 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27614
27615 PR ipa/59831
27616 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27617 to figure out targets of polymorphic calls with known decl.
27618 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27619 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27620 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27621 (get_polymorphic_call_info): ... here.
27622 (get_polymorphic_call_info_from_invariant): New function.
27623
27624 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27625
27626 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27627 lookup via vtable pointer; check for type consistency
27628 and turn inconsitent facts into UNREACHABLE.
27629 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27630 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27631 type inconsistent querries; return UNREACHABLE instead.
27632
27633 2014-02-03 Richard Henderson <rth@twiddle.net>
27634
27635 PR tree-opt/59924
27636 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27637 already processed this node.
27638 (normalize_one_pred_1): Pass along mark_set.
27639 (normalize_one_pred): Create and destroy a pointer_set_t.
27640 (normalize_one_pred_chain): Likewise.
27641
27642 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27643
27644 PR gcov-profile/58602
27645 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27646
27647 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27648
27649 PR ipa/59831
27650 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27651 -fno-devirtualize; try to devirtualize by the knowledge of
27652 virtual table pointer given by aggregate propagation.
27653 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27654 (ipa_print_node_jump_functions): Dump also offset that
27655 is relevant for polymorphic calls.
27656 (determine_known_aggregate_parts): Add arg_type parameter; use it
27657 instead of determining the type from pointer type.
27658 (ipa_compute_jump_functions_for_edge): Update call of
27659 determine_known_aggregate_parts.
27660 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27661 (gimple_get_virt_method_for_binfo): ... here; simplify using
27662 vtable_pointer_value_to_vtable.
27663 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27664 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27665 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27666 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27667 POINTER_PLUS_EXPR.
27668 (vtable_pointer_value_to_binfo): ... here.
27669 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27670
27671 2014-02-03 Teresa Johnson <tejohnson@google.com>
27672
27673 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27674 redef of outer loop index variable.
27675
27676 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27677
27678 PR c++/53017
27679 PR c++/59211
27680 * doc/extend.texi (Function Attributes): Typo.
27681
27682 2014-02-03 Cong Hou <congh@google.com>
27683
27684 PR tree-optimization/60000
27685 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27686 if the vectorized statement is a store. A store statement can only
27687 appear at the end of pattern statements.
27688
27689 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27690
27691 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27692 (ix86_option_override_internal): Default long double to 64-bit for
27693 32-bit Bionic and to 128-bit for 64-bit Bionic.
27694
27695 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27696 TARGET_LONG_DOUBLE_128 is true.
27697 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27698
27699 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27700 (mlong-double-64): Negate -mlong-double-128.
27701 (mlong-double-128): New option.
27702
27703 * config/i386/i386-c.c (ix86_target_macros): Define
27704 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27705
27706 * doc/invoke.texi: Document -mlong-double-128.
27707
27708 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27709
27710 PR rtl-optimization/60024
27711 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27712
27713 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27714
27715 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27716
27717 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27718
27719 PR rtl-optimization/57662
27720 * sel-sched.c (code_motion_path_driver): Do not mark already not
27721 existing blocks in the visiting bitmap.
27722
27723 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27724
27725 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
27726 on the insn being emitted.
27727
27728 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
27729 Will Deacon <will.deacon@arm.com>
27730
27731 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
27732
27733 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27734
27735 * config/arm/arm-tables.opt: Regenerate.
27736
27737 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27738
27739 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
27740 for vector types other than V16QImode.
27741 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
27742 define_expand, and call altivec_expand_vec_perm_le when producing
27743 code with little endian element order.
27744 (*altivec_vperm_<mode>_internal): New insn having previous
27745 behavior of altivec_vperm_<mode>.
27746 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
27747 altivec_expand_vec_perm_le when producing code with little endian
27748 element order.
27749 (*altivec_vperm_<mode>_uns_internal): New insn having previous
27750 behavior of altivec_vperm_<mode>_uns.
27751
27752 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27753
27754 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
27755 (altivec_vsumsws): Add handling for -maltivec=be with a little
27756 endian target.
27757 (altivec_vsumsws_direct): New.
27758 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
27759 gen_altivec_vsumsws.
27760
27761 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27762
27763 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
27764 vtable_pointer_value_to_binfo): New functions.
27765 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
27766 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
27767
27768 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
27769
27770 * config/nios2/nios2.md (load_got_register): Initialize GOT
27771 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
27772 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
27773
27774 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27775
27776 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
27777 preserverd by passthrough, do not propagate the type.
27778
27779 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27780
27781 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
27782 (mips_atomic_assign_expand_fenv): New function.
27783 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27784
27785 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27786
27787 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
27788 (__builtin_mips_set_fcsr): Likewise.
27789 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
27790 MIPS_USI_FTYPE_VOID.
27791 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
27792 (mips16_expand_set_fcsr): Likewise.
27793 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
27794 (mips16_set_fcsr_stub): Likewise.
27795 (mips16_get_fcsr_one_only_stub): New class.
27796 (mips16_set_fcsr_one_only_stub): Likewise.
27797 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
27798 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
27799 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
27800 (hard_float): New availability predicate.
27801 (mips_builtins): Add get_fcsr and set_fcsr.
27802 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
27803 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
27804 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
27805 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
27806 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
27807 patterns.
27808
27809 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27810
27811 * config/mips/mips.c (mips_one_only_stub): New class.
27812 (mips_need_mips16_rdhwr_p): Replace with...
27813 (mips16_rdhwr_stub): ...this new variable.
27814 (mips16_stub_call_address): New function.
27815 (mips16_rdhwr_one_only_stub): New class.
27816 (mips_expand_thread_pointer): Use mips16_stub_call_address.
27817 (mips_output_mips16_rdhwr): Delete.
27818 (mips_finish_stub): New function.
27819 (mips_code_end): Use it to handle rdhwr stubs.
27820
27821 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
27822
27823 PR target/60017
27824 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
27825 when calculating size of integer atomic types.
27826
27827 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
27828
27829 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
27830
27831 2014-02-01 Jakub Jelinek <jakub@redhat.com>
27832
27833 PR tree-optimization/60003
27834 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
27835 * profile.c (branch_prob): Use gimple_call_builtin_p
27836 to check for BUILT_IN_SETJMP_RECEIVER.
27837 * tree-inline.c (copy_bb): Call notice_special_calls.
27838
27839 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
27840
27841 PR bootstrap/59985
27842 * lra-constraints.c (process_alt_operands): Update reload_sum only
27843 on the first pass.
27844
27845 2014-01-31 Richard Henderson <rth@redhat.com>
27846
27847 PR middle-end/60004
27848 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
27849 until after else_eh is processed.
27850
27851 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27852
27853 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
27854 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
27855 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
27856 in smmintrin.h, remove them.
27857 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
27858 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
27859 * config/i386/i386.md (ROUND_SAE): Fix value.
27860 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
27861 (const48_operand): New.
27862 * config/i386/subst.md (round), (round_expand): Use
27863 const_4_or_8_to_11_operand.
27864 (round_saeonly), (round_saeonly_expand): Use const48_operand.
27865
27866 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27867
27868 * config/i386/constraints.md (Yk): Swap meaning with k.
27869 * config/i386/i386.md (movhi_internal): Change Yk to k.
27870 (movqi_internal): Ditto.
27871 (*k<logic><mode>): Ditto.
27872 (*andhi_1): Ditto.
27873 (*andqi_1): Ditto.
27874 (kandn<mode>): Ditto.
27875 (*<code>hi_1): Ditto.
27876 (*<code>qi_1): Ditto.
27877 (kxnor<mode>): Ditto.
27878 (kortestzhi): Ditto.
27879 (kortestchi): Ditto.
27880 (kunpckhi): Ditto.
27881 (*one_cmplhi2_1): Ditto.
27882 (*one_cmplqi2_1): Ditto.
27883 * config/i386/sse.md (): Change k to Yk.
27884 (avx512f_load<mode>_mask): Ditto.
27885 (avx512f_blendm<mode>): Ditto.
27886 (avx512f_store<mode>_mask): Ditto.
27887 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
27888 (avx512f_storedqu<mode>_mask): Ditto.
27889 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
27890 Ditto.
27891 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
27892 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
27893 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
27894 (avx512f_maskcmp<mode>3): Ditto.
27895 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
27896 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
27897 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
27898 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
27899 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
27900 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
27901 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
27902 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
27903 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
27904 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
27905 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
27906 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
27907 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
27908 (vec_extract_lo_<mode>_maskm): Ditto.
27909 (vec_extract_hi_<mode>_maskm): Ditto.
27910 (avx512f_vternlog<mode>_mask): Ditto.
27911 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
27912 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
27913 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
27914 (avx512f_<code>v8div16qi2_mask): Ditto.
27915 (avx512f_<code>v8div16qi2_mask_store): Ditto.
27916 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
27917 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
27918 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
27919 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
27920 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27921 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27922 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27923 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27924 (avx512cd_maskb_vec_dupv8di): Ditto.
27925 (avx512cd_maskw_vec_dupv16si): Ditto.
27926 (avx512f_vpermi2var<mode>3_maskz): Ditto.
27927 (avx512f_vpermi2var<mode>3_mask): Ditto.
27928 (avx512f_vpermi2var<mode>3_mask): Ditto.
27929 (avx512f_vpermt2var<mode>3_maskz): Ditto.
27930 (*avx512f_gathersi<mode>): Ditto.
27931 (*avx512f_gathersi<mode>_2): Ditto.
27932 (*avx512f_gatherdi<mode>): Ditto.
27933 (*avx512f_gatherdi<mode>_2): Ditto.
27934 (*avx512f_scattersi<mode>): Ditto.
27935 (*avx512f_scatterdi<mode>): Ditto.
27936 (avx512f_compress<mode>_mask): Ditto.
27937 (avx512f_compressstore<mode>_mask): Ditto.
27938 (avx512f_expand<mode>_mask): Ditto.
27939 * config/i386/subst.md (mask): Change k to Yk.
27940 (mask_scalar_merge): Ditto.
27941 (sd): Ditto.
27942
27943 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
27944
27945 * doc/extend.texi (Vector Extensions): Document ?: in C++.
27946
27947 2014-01-31 Richard Biener <rguenther@suse.de>
27948
27949 PR middle-end/59990
27950 * builtins.c (fold_builtin_memory_op): Make sure to not
27951 use a floating-point mode or a boolean or enumeral type for
27952 the copy operation.
27953
27954 2014-01-30 DJ Delorie <dj@redhat.com>
27955
27956 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
27957 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
27958 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
27959 whenever main() has an epilogue.
27960
27961 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27962
27963 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
27964 unused variable "field".
27965 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
27966 (vsx_mergeh_<mode>): Likewise.
27967 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
27968 (altivec_vmrghh): Likewise.
27969 (altivec_vmrghw): Likewise.
27970 (altivec_vmrglb): Likewise.
27971 (altivec_vmrglh): Likewise.
27972 (altivec_vmrglw): Likewise.
27973 (altivec_vspltb): Add missing uses.
27974 (altivec_vsplth): Likewise.
27975 (altivec_vspltw): Likewise.
27976 (altivec_vspltsf): Likewise.
27977
27978 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27979
27980 PR target/59923
27981 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
27982 frame related instructions.
27983
27984 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
27985
27986 PR rtl-optimization/59959
27987 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
27988 any reload of register whose subreg is invalid.
27989
27990 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27991
27992 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
27993 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
27994 Add missing return type - void.
27995
27996 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27997
27998 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
27999 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28000 remove element index adjustment for endian (now handled in vsx.md
28001 and altivec.md).
28002 (altivec_expand_vec_perm_const): Use
28003 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28004 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28005 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28006 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28007 define_expand and a new define_insn *altivec_vspltb_internal;
28008 adjust for -maltivec=be on a little endian target.
28009 (altivec_vspltb_direct): New.
28010 (altivec_vsplth): Divide into a define_expand and a new
28011 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28012 little endian target.
28013 (altivec_vsplth_direct): New.
28014 (altivec_vspltw): Divide into a define_expand and a new
28015 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28016 little endian target.
28017 (altivec_vspltw_direct): New.
28018 (altivec_vspltsf): Divide into a define_expand and a new
28019 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28020 a little endian target.
28021
28022 2014-01-30 Richard Biener <rguenther@suse.de>
28023
28024 PR tree-optimization/59993
28025 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28026 can propagate form the earlier stmt and avoid the transform
28027 when the intermediate result is needed.
28028
28029 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28030
28031 * README.Portability: Fix typo.
28032
28033 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28034
28035 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28036 comparison_operator with ordered_comparison_operator.
28037
28038 2014-01-30 Nick Clifton <nickc@redhat.com>
28039
28040 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28041 Rename to mn10300_store_multiple_regs.
28042 * config/mn10300/mn10300.c: Likewise.
28043 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28044 store_multiple_regs.
28045 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28046 Call mn10300_store_multiple_regs.
28047
28048 2014-01-30 Nick Clifton <nickc@redhat.com>
28049 DJ Delorie <dj@redhat.com>
28050
28051 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28052 %fp 2 to keep registers after it properly word-aligned.
28053 (rl78_alloc_physical_registers_umul): Handle the case where both
28054 input operands are the same.
28055
28056 2014-01-30 Richard Biener <rguenther@suse.de>
28057
28058 PR tree-optimization/59903
28059 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28060 check properly.
28061
28062 2014-01-30 Jason Merrill <jason@redhat.com>
28063
28064 PR c++/59633
28065 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28066
28067 PR c++/59645
28068 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28069
28070 2014-01-30 Richard Biener <rguenther@suse.de>
28071
28072 PR tree-optimization/59951
28073 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28074
28075 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28076
28077 PR target/59784
28078 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28079 SFmode to DFmode case.
28080
28081 2014-01-29 DJ Delorie <dj@redhat.com>
28082
28083 * config/msp430/msp430.opt (-minrt): New.
28084 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28085 if -minrt given.
28086 (ENDFILE_SPEC): Likewise.
28087
28088 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28089
28090 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28091 (estimate_function_body_sizes): Use it.
28092
28093 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28094
28095 PR c++/58561
28096 * dwarf2out.c (is_cxx_auto): New.
28097 (is_base_type): Use it.
28098 (gen_type_die_with_usage): Likewise.
28099
28100 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28101
28102 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28103 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28104 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28105 -maltivec=be with LE targets.
28106 (vsx_mergeh_<mode>): Likewise.
28107 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28108 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28109 (altivec_vmrghb): Replace with define_expand and new
28110 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28111 (altivec_vmrghb_direct): New define_insn.
28112 (altivec_vmrghh): Replace with define_expand and new
28113 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28114 (altivec_vmrghh_direct): New define_insn.
28115 (altivec_vmrghw): Replace with define_expand and new
28116 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28117 (altivec_vmrghw_direct): New define_insn.
28118 (*altivec_vmrghsf): Adjust for endianness.
28119 (altivec_vmrglb): Replace with define_expand and new
28120 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28121 (altivec_vmrglb_direct): New define_insn.
28122 (altivec_vmrglh): Replace with define_expand and new
28123 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28124 (altivec_vmrglh_direct): New define_insn.
28125 (altivec_vmrglw): Replace with define_expand and new
28126 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28127 (altivec_vmrglw_direct): New define_insn.
28128 (*altivec_vmrglsf): Adjust for endianness.
28129 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28130 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28131 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28132 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28133 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28134 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28135 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28136 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28137
28138 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28139
28140 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28141 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28142 whitespace.
28143
28144 2014-01-29 Richard Biener <rguenther@suse.de>
28145
28146 PR tree-optimization/58742
28147 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28148 associate_pointerplus_align.
28149 (associate_pointerplus_diff): New function.
28150 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28151 and associate_pointerplus_diff.
28152
28153 2014-01-29 Richard Biener <rguenther@suse.de>
28154
28155 * lto-streamer.h (LTO_major_version): Bump to 3.
28156 (LTO_minor_version): Reset to 0.
28157
28158 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28159
28160 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28161 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28162 (arm_file_start): Generate correct asm header for armv7ve.
28163 * config/arm/bpabi.h: Add multilib support for armv7ve.
28164 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28165 and cortex-a15 to armv7ve.
28166 * config/arm/t-aprofile: Add multilib support for armv7ve.
28167 * doc/invoke.texi: Document -march=armv7ve.
28168
28169 2014-01-29 Richard Biener <rguenther@suse.de>
28170
28171 PR tree-optimization/58742
28172 * tree-ssa-forwprop.c (associate_plusminus): Return true
28173 if we changed sth, defer EH cleanup to ...
28174 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28175 (simplify_mult): New function.
28176
28177 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28178
28179 PR middle-end/59917
28180 PR tree-optimization/59920
28181 * tree.c (build_common_builtin_nodes): Remove
28182 __builtin_setjmp_dispatcher initialization.
28183 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28184 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28185 instead of gsi_after_labels + manually skipping debug stmts.
28186 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28187 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28188 * tree-inline.c (copy_edges_for_bb): Remove
28189 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28190 argument. Ignore computed_goto_p stmts. Don't call
28191 make_abnormal_goto_edges. If a call might need abnormal edges
28192 for non-local gotos, see if it already has an edge to
28193 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28194 with true argument, don't do anything then, otherwise add
28195 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28196 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28197 caller.
28198 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28199 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28200 (lower_stmt): Don't set data->calls_builtin_setjmp.
28201 (lower_builtin_setjmp): Adjust comment.
28202 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28203 * tree-cfg.c (found_computed_goto): Remove.
28204 (factor_computed_gotos): Remove.
28205 (make_goto_expr_edges): Return bool, true for computed gotos.
28206 Don't call make_abnormal_goto_edges.
28207 (build_gimple_cfg): Don't set found_computed_goto, don't call
28208 factor_computed_gotos.
28209 (computed_goto_p): No longer static.
28210 (make_blocks): Don't set found_computed_goto.
28211 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28212 (make_edges): If make_goto_expr_edges returns true, push bb
28213 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28214 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28215 vector. Record mapping between bbs and OpenMP regions if there
28216 are any, adjust make_gimple_omp_edges caller. Call
28217 handle_abnormal_edges.
28218 (make_abnormal_goto_edges): Remove.
28219 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28220 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28221 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28222 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28223 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28224 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28225 filling *region also set *region_idx to (*region)->entry->index.
28226
28227 PR other/58712
28228 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28229 For REGs set ORIGINAL_REGNO.
28230
28231 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28232
28233 * doc/md.texi: Mention that a target shouldn't implement
28234 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28235 than hi/lo pair.
28236
28237 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28238
28239 PR tree-optimization/59594
28240 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28241 a copy of the datarefs vector rather than the vector itself.
28242
28243 2014-01-28 Jason Merrill <jason@redhat.com>
28244
28245 PR c++/53756
28246 * dwarf2out.c (auto_die): New static.
28247 (gen_type_die_with_usage): Handle C++1y 'auto'.
28248 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28249 on definition.
28250
28251 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28252
28253 PR target/59672
28254 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28255 (SPEC_X32): Likewise.
28256 (SPEC_64): Likewise.
28257 * config/i386/i386.c (ix86_option_override_internal): Turn off
28258 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28259 for TARGET_16BIT.
28260 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28261 * config/i386/i386.h (TARGET_16BIT): New macro.
28262 (TARGET_16BIT_P): Likewise.
28263 * config/i386/i386.opt: Add m16.
28264 * doc/invoke.texi: Document -m16.
28265
28266 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28267
28268 PR preprocessor/59935
28269 * input.c (location_get_source_line): Bail out on when line number
28270 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28271
28272 2014-01-28 Richard Biener <rguenther@suse.de>
28273
28274 PR tree-optimization/58742
28275 * tree-ssa-forwprop.c (associate_plusminus): Handle
28276 pointer subtraction of the form (T)(P + A) - (T)P.
28277
28278 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28279
28280 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28281 at const_int_cost.
28282
28283 2014-01-28 Richard Biener <rguenther@suse.de>
28284
28285 Revert
28286 2014-01-28 Richard Biener <rguenther@suse.de>
28287
28288 PR rtl-optimization/45364
28289 PR rtl-optimization/59890
28290 * var-tracking.c (local_get_addr_clear_given_value): Handle
28291 already cleared slot.
28292 (val_reset): Handle not allocated local_get_addr_cache.
28293 (vt_find_locations): Use post-order on the inverted CFG.
28294
28295 2014-01-28 Richard Biener <rguenther@suse.de>
28296
28297 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28298
28299 2014-01-28 Richard Biener <rguenther@suse.de>
28300
28301 PR rtl-optimization/45364
28302 PR rtl-optimization/59890
28303 * var-tracking.c (local_get_addr_clear_given_value): Handle
28304 already cleared slot.
28305 (val_reset): Handle not allocated local_get_addr_cache.
28306 (vt_find_locations): Use post-order on the inverted CFG.
28307
28308 2014-01-28 Alan Modra <amodra@gmail.com>
28309
28310 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28311 * configure.ac <recursive call for build != host>: Define
28312 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28313 and LD_FOR_BUILD too.
28314 * configure: Regenerate.
28315
28316 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28317
28318 * config/i386/i386.c (get_builtin_code_for_version): Separate
28319 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28320 Broadwell from Haswell.
28321
28322 2014-01-27 Steve Ellcey <sellcey@mips.com>
28323
28324 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28325 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28326 * config/mips/mips.c (mips_option_override): Change setting
28327 of TARGET_DSP.
28328 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28329 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28330 Change from Mask to Var.
28331
28332 2014-01-27 Jeff Law <law@redhat.com>
28333
28334 * ipa-inline.c (inline_small_functions): Fix typo.
28335
28336 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
28337
28338 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28339 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28340 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28341 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28342 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28343 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28344 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28345 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28346 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28347 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28348 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28349 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28350 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28351 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28352 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28353 (_mm512_storeu_epi64): Ditto.
28354 (_mm512_cmpge_epi32_mask): Ditto.
28355 (_mm512_cmpge_epu32_mask): Ditto.
28356 (_mm512_cmpge_epi64_mask): Ditto.
28357 (_mm512_cmpge_epu64_mask): Ditto.
28358 (_mm512_cmple_epi32_mask): Ditto.
28359 (_mm512_cmple_epu32_mask): Ditto.
28360 (_mm512_cmple_epi64_mask): Ditto.
28361 (_mm512_cmple_epu64_mask): Ditto.
28362 (_mm512_cmplt_epi32_mask): Ditto.
28363 (_mm512_cmplt_epu32_mask): Ditto.
28364 (_mm512_cmplt_epi64_mask): Ditto.
28365 (_mm512_cmplt_epu64_mask): Ditto.
28366 (_mm512_cmpneq_epi32_mask): Ditto.
28367 (_mm512_cmpneq_epu32_mask): Ditto.
28368 (_mm512_cmpneq_epi64_mask): Ditto.
28369 (_mm512_cmpneq_epu64_mask): Ditto.
28370 (_mm512_expand_pd): Ditto.
28371 (_mm512_expand_ps): Ditto.
28372 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28373 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28374 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28375 * config/i386/i386.c (ix86_builtins): Add
28376 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28377 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28378 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28379 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28380 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28381 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28382 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28383 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28384 IX86_BUILTIN_PMOVUSQW512_MEM.
28385 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28386 __builtin_ia32_pmovsqd512mem_mask,
28387 __builtin_ia32_pmovqd512mem_mask,
28388 __builtin_ia32_pmovusqw512mem_mask,
28389 __builtin_ia32_pmovsqw512mem_mask,
28390 __builtin_ia32_pmovqw512mem_mask,
28391 __builtin_ia32_pmovusdw512mem_mask,
28392 __builtin_ia32_pmovsdw512mem_mask,
28393 __builtin_ia32_pmovdw512mem_mask,
28394 __builtin_ia32_pmovqb512mem_mask,
28395 __builtin_ia32_pmovusqb512mem_mask,
28396 __builtin_ia32_pmovsqb512mem_mask,
28397 __builtin_ia32_pmovusdb512mem_mask,
28398 __builtin_ia32_pmovsdb512mem_mask,
28399 __builtin_ia32_pmovdb512mem_mask.
28400 (bdesc_args): Add __builtin_ia32_expanddf512,
28401 __builtin_ia32_expandsf512.
28402 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28403 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28404 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28405 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28406 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28407 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28408 (avx512f_<code>v8div16qi2_mask_store): This.
28409 (avx512f_expand<mode>): New.
28410
28411 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28412
28413 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28414 New.
28415 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28416 (_mm512_prefetch_i32scatter_pd): Ditto.
28417 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28418 (_mm512_prefetch_i64scatter_pd): Ditto.
28419 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28420 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28421 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28422 (_mm512_prefetch_i32scatter_ps): Ditto.
28423 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28424 (_mm512_prefetch_i64scatter_ps): Ditto.
28425 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28426 * config/i386/i386-builtin-types.def: Define
28427 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28428 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28429 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28430 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28431 IX86_BUILTIN_SCATTERPFQPD.
28432 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28433 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28434 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28435 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28436 __builtin_ia32_scatterpfqps.
28437 (ix86_expand_builtin): Expand new built-ins.
28438 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28439 fix memory access data type.
28440 (*avx512pf_gatherpf<mode>_mask): Ditto.
28441 (*avx512pf_gatherpf<mode>): Ditto.
28442 (avx512pf_scatterpf<mode>): Ditto.
28443 (*avx512pf_scatterpf<mode>_mask): Ditto.
28444 (*avx512pf_scatterpf<mode>): Ditto.
28445 (GATHER_SCATTER_SF_MEM_MODE): New.
28446 (avx512pf_gatherpf<mode>df): Ditto.
28447 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28448 (*avx512pf_scatterpf<mode>df): Ditto.
28449
28450 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28451
28452 PR bootstrap/59934
28453 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28454 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28455 reached.
28456
28457 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28458
28459 * common/config/arm/arm-common.c
28460 (arm_rewrite_mcpu): Handle multiple names.
28461 * config/arm/arm.h
28462 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28463
28464 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28465
28466 * gimple-builder.h (create_gimple_tmp): Delete.
28467
28468 2014-01-27 Christian Bruel <christian.bruel@st.com>
28469
28470 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28471 words comparisons.
28472
28473 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
28474
28475 * config/pa/pa.md (call): Generate indirect long calls to non-local
28476 functions when outputing 32-bit code.
28477 (call_value): Likewise except for special call to buggy powf function.
28478
28479 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28480 portable runtime and PIC indirect calls.
28481 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28482 and PIC call sequences. Use ldo instead of blr to set return register
28483 in PIC call sequence.
28484
28485 2014-01-25 Walter Lee <walt@tilera.com>
28486
28487 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28488 avoid clobbering a live register.
28489
28490 2014-01-25 Walter Lee <walt@tilera.com>
28491
28492 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28493 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28494 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28495 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28496
28497 2014-01-25 Walter Lee <walt@tilera.com>
28498
28499 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28500 arguments on even registers.
28501 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28502 STACK_BOUNDARY.
28503 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28504 (BIGGEST_ALIGNMENT): Ditto.
28505 (BIGGEST_FIELD_ALIGNMENT): Ditto.
28506
28507 2014-01-25 Walter Lee <walt@tilera.com>
28508
28509 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28510 insns before bundling.
28511 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28512
28513 2014-01-25 Walter Lee <walt@tilera.com>
28514
28515 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28516 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28517 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28518
28519 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28520
28521 * config/mips/constraints.md (kl): Delete.
28522 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28523 define expands, using...
28524 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28525 instructions for MIPS16.
28526 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28527 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28528
28529 2014-01-25 Walter Lee <walt@tilera.com>
28530
28531 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28532 (clzdi2): Ditto.
28533 (ffsdi2): Ditto.
28534
28535 2014-01-25 Walter Lee <walt@tilera.com>
28536
28537 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28538 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28539
28540 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28541
28542 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28543 Handle XOR.
28544
28545 2014-01-25 Jakub Jelinek <jakub@redhat.com>
28546
28547 * print-rtl.c (in_call_function_usage): New var.
28548 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28549 EXPR_LIST mode as mode and not as reg note name.
28550
28551 PR middle-end/59561
28552 * cfgloopmanip.c (copy_loop_info): If
28553 loop->warned_aggressive_loop_optimizations, make sure
28554 the flag is set in target loop too.
28555
28556 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28557
28558 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28559 flag_cilkplus.
28560 * builtins.def: Likewise.
28561 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28562 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28563 * ira.c (ira_setup_eliminable_regset): Likewise.
28564 * omp-low.c (gate_expand_omp): Likewise.
28565 (execute_lower_omp): Likewise.
28566 (diagnose_sb_0): Likewise.
28567 (gate_diagnose_omp_blocks): Likewise.
28568 (simd_clone_clauses_extract): Likewise.
28569 (gate): Likewise.
28570
28571 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28572
28573 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28574 correction for little endian...
28575 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28576 here.
28577
28578 2014-01-24 Jeff Law <law@redhat.com>
28579
28580 PR tree-optimization/59919
28581 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28582 for non-returning calls.
28583
28584 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28585
28586 * common/config/aarch64/aarch64-common.c
28587 (aarch64_rewrite_mcpu): Handle multiple names.
28588 * config/aarch64/aarch64.h
28589 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28590
28591 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28592
28593 * input.c (add_file_to_cache_tab): Handle the case where fopen
28594 returns NULL.
28595
28596 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28597
28598 PR target/59929
28599 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28600 from push operand if code of push isn't PRE_DEC.
28601
28602 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28603
28604 PR target/59909
28605 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28606 -mquad-memory-atomic. Update -mquad-memory documentation to say
28607 it is only used for non-atomic loads/stores.
28608
28609 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28610 -mquad-memory or -mquad-memory-atomic switches.
28611
28612 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28613 -mquad-memory-atomic to ISA 2.07 support.
28614
28615 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28616 to separate support of normal quad word memory operations (ldq, stq)
28617 from the atomic quad word memory operations.
28618
28619 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28620 support to separate non-atomic quad word operations from atomic
28621 quad word operations. Disable non-atomic quad word operations in
28622 little endian mode so that we don't have to swap words after the
28623 load and before the store.
28624 (quad_load_store_p): Add comment about atomic quad word support.
28625 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28626 options printed with -mdebug=reg.
28627
28628 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28629 -mquad-memory-atomic as the test for whether we have quad word
28630 atomic instructions.
28631 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28632 or -mp8-vector are used, allow byte/half-word atomic operations.
28633
28634 * config/rs6000/sync.md (load_lockedti): Insure that the address
28635 is a proper indexed or indirect address for the lqarx instruction.
28636 On little endian systems, swap the hi/lo registers after the lqarx
28637 instruction.
28638 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28639 insure the address is valid for the lqarx instruction.
28640 (store_conditionalti): Insure that the address is a proper indexed
28641 or indirect address for the stqcrx. instruction. On little endian
28642 systems, swap the hi/lo registers before doing the stqcrx.
28643 instruction.
28644 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28645 insure the address is valid for the stqcrx. instruction.
28646
28647 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28648 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28649 type of quad memory support is available.
28650
28651 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28652
28653 PR regression/59915
28654 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28655 there is a danger of looping.
28656
28657 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28658
28659 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28660 force flag_ira_loop_pressure if set via command line.
28661
28662 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28663
28664 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28665 (ashr_simd): New builtin handling DI mode.
28666 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28667 (aarch64_sshr_simddi): New match pattern.
28668 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28669 (vshrd_n_s64): Likewise.
28670 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28671
28672 2014-01-23 Nick Clifton <nickc@redhat.com>
28673
28674 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28675 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28676 favour of mcu specific scripts.
28677 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28678 430x multilibs.
28679
28680 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28681 Alex Velenko <Alex.Velenko@arm.com>
28682
28683 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28684 (vaddv_s16): Likewise.
28685 (vaddv_s32): Likewise.
28686 (vaddv_u8): Likewise.
28687 (vaddv_u16): Likewise.
28688 (vaddv_u32): Likewise.
28689 (vaddvq_s8): Likewise.
28690 (vaddvq_s16): Likewise.
28691 (vaddvq_s32): Likewise.
28692 (vaddvq_s64): Likewise.
28693 (vaddvq_u8): Likewise.
28694 (vaddvq_u16): Likewise.
28695 (vaddvq_u32): Likewise.
28696 (vaddvq_u64): Likewise.
28697 (vaddv_f32): Likewise.
28698 (vaddvq_f32): Likewise.
28699 (vaddvq_f64): Likewise.
28700 (vmaxv_f32): Likewise.
28701 (vmaxv_s8): Likewise.
28702 (vmaxv_s16): Likewise.
28703 (vmaxv_s32): Likewise.
28704 (vmaxv_u8): Likewise.
28705 (vmaxv_u16): Likewise.
28706 (vmaxv_u32): Likewise.
28707 (vmaxvq_f32): Likewise.
28708 (vmaxvq_f64): Likewise.
28709 (vmaxvq_s8): Likewise.
28710 (vmaxvq_s16): Likewise.
28711 (vmaxvq_s32): Likewise.
28712 (vmaxvq_u8): Likewise.
28713 (vmaxvq_u16): Likewise.
28714 (vmaxvq_u32): Likewise.
28715 (vmaxnmv_f32): Likewise.
28716 (vmaxnmvq_f32): Likewise.
28717 (vmaxnmvq_f64): Likewise.
28718 (vminv_f32): Likewise.
28719 (vminv_s8): Likewise.
28720 (vminv_s16): Likewise.
28721 (vminv_s32): Likewise.
28722 (vminv_u8): Likewise.
28723 (vminv_u16): Likewise.
28724 (vminv_u32): Likewise.
28725 (vminvq_f32): Likewise.
28726 (vminvq_f64): Likewise.
28727 (vminvq_s8): Likewise.
28728 (vminvq_s16): Likewise.
28729 (vminvq_s32): Likewise.
28730 (vminvq_u8): Likewise.
28731 (vminvq_u16): Likewise.
28732 (vminvq_u32): Likewise.
28733 (vminnmv_f32): Likewise.
28734 (vminnmvq_f32): Likewise.
28735 (vminnmvq_f64): Likewise.
28736
28737 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28738
28739 * config/aarch64/aarch64-simd.md
28740 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
28741 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
28742 (*aarch64_mul3_elt<mode>): Likewise.
28743 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
28744 (*aarch64_mul3_elt_to_64v2df): Likewise.
28745 (*aarch64_mla_elt<mode>): Likewise.
28746 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28747 (*aarch64_mls_elt<mode>): Likewise.
28748 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28749 (*aarch64_fma4_elt<mode>): Likewise.
28750 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28751 (*aarch64_fma4_elt_to_64v2df): Likewise.
28752 (*aarch64_fnma4_elt<mode>): Likewise.
28753 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28754 (*aarch64_fnma4_elt_to_64v2df): Likewise.
28755 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
28756 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
28757 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28758 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28759 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
28760 (aarch64_sqdmull_lane<mode>_internal): Likewise.
28761 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
28762
28763 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
28764
28765 * config/aarch64/aarch64-simd.md
28766 (aarch64_be_checked_get_lane<mode>): New define_expand.
28767 * config/aarch64/aarch64-simd-builtins.def
28768 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
28769 New builtin definition.
28770 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
28771 Use new safe be builtin.
28772
28773 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28774
28775 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
28776 New define_insn.
28777 (aarch64_be_st1<mode>): Likewise.
28778 (aarch_ld1<VALL:mode>): Define_expand modified.
28779 (aarch_st1<VALL:mode>): Likewise.
28780 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
28781 (UNSPEC_ST1): Likewise.
28782
28783 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
28784
28785 * config/microblaze/microblaze.md: Add trap insn and attribute
28786
28787 2014-01-23 Dodji Seketeli <dodji@redhat.com>
28788
28789 PR preprocessor/58580
28790 * input.h (location_get_source_line): Take an additional line_size
28791 parameter.
28792 (void diagnostics_file_cache_fini): Declare new function.
28793 * input.c (struct fcache): New type.
28794 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
28795 New static constants.
28796 (diagnostic_file_cache_init, total_lines_num)
28797 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
28798 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
28799 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
28800 (get_next_line, read_next_line, goto_next_line, read_line_num):
28801 New static function definitions.
28802 (diagnostic_file_cache_fini): New function.
28803 (location_get_source_line): Take an additional output line_len
28804 parameter. Re-write using lookup_or_add_file_to_cache_tab and
28805 read_line_num.
28806 * diagnostic.c (diagnostic_finish): Call
28807 diagnostic_file_cache_fini.
28808 (adjust_line): Take an additional input parameter for the length
28809 of the line, rather than calculating it with strlen.
28810 (diagnostic_show_locus): Adjust the use of
28811 location_get_source_line and adjust_line with respect to their new
28812 signature. While displaying a line now, do not stop at the first
28813 null byte. Rather, display the zero byte as a space and keep
28814 going until we reach the size of the line.
28815 * Makefile.in: Add vec.o to OBJS-libcommon
28816
28817 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28818 Ilya Tocar <ilya.tocar@intel.com>
28819
28820 * config/i386/avx512fintrin.h (_mm512_kmov): New.
28821 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
28822 (__builtin_ia32_kmov16): Ditto.
28823 * config/i386/i386.md (UNSPEC_KMOV): New.
28824 (kmovw): Ditto.
28825
28826 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28827
28828 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
28829 (_mm512_storeu_si512): Ditto.
28830
28831 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
28832
28833 PR target/52125
28834 * rtl.h (get_referenced_operands): Declare.
28835 * recog.c (get_referenced_operands): New function.
28836 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
28837 operands have been referenced when recording LO_SUM references.
28838
28839 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
28840
28841 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
28842
28843 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28844
28845 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
28846 Enable for generic and recent AMD targets.
28847
28848 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28849
28850 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
28851 ARG_SIZE note when adjustment was eliminated.
28852
28853 2014-01-22 Jeff Law <law@redhat.com>
28854
28855 PR tree-optimization/59597
28856 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
28857 in file. Accept new argument REGISTERING and use it to modify
28858 dump output appropriately.
28859 (register_jump_thread): Corresponding changes.
28860 (mark_threaded_blocks): Reinstate code to cancel unprofitable
28861 thread paths involving joiner blocks. Add code to dump cancelled
28862 jump threading paths.
28863
28864 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
28865
28866 PR rtl-optimization/59477
28867 * lra-constraints.c (inherit_in_ebb): Process call for living hard
28868 regs. Update reloads_num and potential_reload_hard_regs for all insns.
28869
28870 2014-01-22 Tom Tromey <tromey@redhat.com>
28871
28872 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
28873 PARAMS.
28874 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
28875
28876 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28877
28878 PR rtl-optimization/59896
28879 * lra-constraints.c (process_alt_operands): Check unused note for
28880 matched operands of insn with no output reloads.
28881
28882 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
28883
28884 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
28885 (mips_move_from_gpr_cost): Likewise.
28886
28887 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28888
28889 PR rtl-optimization/59858
28890 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
28891 ira_class_hard_regs_num.
28892 (process_alt_operands): Increase reject for dying matched operand.
28893
28894 2014-01-21 Jakub Jelinek <jakub@redhat.com>
28895
28896 PR target/59003
28897 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
28898 smaller than size, perform several stores or loads and stores
28899 at dst + count - size to store or copy all of size bytes, rather
28900 than just last modesize bytes.
28901
28902 2014-01-20 DJ Delorie <dj@redhat.com>
28903
28904 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
28905 that CLOBBERs are REGs before propogating their values.
28906
28907 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
28908
28909 PR middle-end/59789
28910 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
28911 (cgraph_inline_failed_type): New function.
28912 * cgraph.h (DEFCIFCODE): Add type.
28913 (cgraph_inline_failed_type_t): New enum.
28914 (cgraph_inline_failed_type): New prototype.
28915 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
28916 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28917 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
28918 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
28919 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
28920 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
28921 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
28922 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
28923 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
28924 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
28925 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
28926 OPTIMIZATION_MISMATCH.
28927 * tree-inline.c (expand_call_inline): Emit errors during
28928 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
28929
28930 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28931
28932 PR target/59685
28933 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
28934 mode attribute in insn output.
28935
28936 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
28937
28938 * output.h (output_constant): Delete.
28939 * varasm.c (output_constant): Make private.
28940
28941 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
28942
28943 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
28944
28945 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28946
28947 PR middle-end/59860
28948 * tree.h (fold_builtin_strcat): New prototype.
28949 * builtins.c (fold_builtin_strcat): No longer static. Add len
28950 argument, if non-NULL, don't call c_strlen. Optimize
28951 directly into __builtin_memcpy instead of __builtin_strcpy.
28952 (fold_builtin_2): Adjust fold_builtin_strcat caller.
28953 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
28954
28955 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28956
28957 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28958 for SImode_address_operand operands, having only a REG argument.
28959
28960 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
28961
28962 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
28963 loader name using mbig-endian.
28964 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
28965
28966 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28967
28968 * doc/invoke.texi (-march): Clarify documentation for AArch64.
28969 (-mtune): Likewise.
28970 (-mcpu): Likewise.
28971
28972 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
28973
28974 * config/aarch64/aarch64-protos.h
28975 (aarch64_cannot_change_mode_class_ptr): Declare.
28976 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
28977 aarch64_cannot_change_mode_class_ptr): New.
28978 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
28979 backend hook aarch64_cannot_change_mode_class.
28980
28981 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28982
28983 * common/config/aarch64/aarch64-common.c
28984 (aarch64_handle_option): Don't handle any option order logic here.
28985 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
28986 selected_cpu, warn on architecture version mismatch.
28987 (aarch64_override_options): Fix parsing order for option strings.
28988
28989 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28990 Iain Sandoe <iain@codesourcery.com>
28991
28992 PR bootstrap/59496
28993 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
28994 warning. Amend comment to reflect current functionality.
28995
28996 2014-01-20 Richard Biener <rguenther@suse.de>
28997
28998 PR middle-end/59860
28999 * builtins.c (fold_builtin_strcat): Remove case better handled
29000 by tree-ssa-strlen.c.
29001
29002 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29003
29004 * config/aarch64/aarch64.opt
29005 (mcpu, march, mtune): Make case-insensitive.
29006
29007 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29008
29009 PR target/59880
29010 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29011 if operands[1] is a REG or ZERO_EXTEND of a REG.
29012
29013 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29014
29015 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29016
29017 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29018
29019 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29020 long non-pic millicode calls.
29021
29022 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29023
29024 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29025
29026 2014-01-19 Kito Cheng <kito@0xlab.org>
29027
29028 * builtins.c (expand_movstr): Check movstr expand done or fail.
29029
29030 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29031 H.J. Lu <hongjiu.lu@intel.com>
29032
29033 PR target/59379
29034 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29035 to DImode for zero-extended addresses.
29036
29037 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29038
29039 PR rtl-optimization/57763
29040 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29041 on the new indirect jump_insn and increment LABEL_NUSES (label).
29042
29043 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29044
29045 PR bootstrap/59580
29046 PR bootstrap/59583
29047 * config.gcc (x86_archs): New variable.
29048 (x86_64_archs): Likewise.
29049 (x86_cpus): Likewise.
29050 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29051 --with-arch/--with-cpu= options.
29052 Support --with-arch=/--with-cpu={nehalem,westmere,
29053 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29054
29055 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29056
29057 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29058 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29059
29060 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29061
29062 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29063
29064 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29065
29066 PR target/58944
29067 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29068 clear cpp_get_options (parse_in)->warn_unused_macros for
29069 ix86_target_macros_internal with cpp_define.
29070
29071 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29072
29073 * jump.c (delete_related_insns): Keep (use (insn))s.
29074 * reorg.c (redundant_insn): Check for barriers too.
29075
29076 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29077
29078 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29079
29080 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29081
29082 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29083 call to $$dyncall when TARGET_LONG_CALLS is true.
29084
29085 2014-01-17 Jeff Law <law@redhat.com>
29086
29087 * ree.c (combine_set_extension): Temporarily disable test for
29088 changing number of hard registers.
29089
29090 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29091
29092 PR middle-end/58125
29093 * ipa-inline-analysis.c (inline_free_summary):
29094 Do not free summary of aliases.
29095
29096 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29097
29098 PR middle-end/59706
29099 * gimplify.c (gimplify_expr): Use create_tmp_var
29100 instead of create_tmp_var_raw. If cond doesn't have
29101 integral type, don't add the IFN_ANNOTATE builtin at all.
29102
29103 2014-01-17 Martin Jambor <mjambor@suse.cz>
29104
29105 PR ipa/59736
29106 * ipa-cp.c (prev_edge_clone): New variable.
29107 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29108 Also resize prev_edge_clone vector.
29109 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29110 (ipcp_edge_removal_hook): New function.
29111 (ipcp_driver): Register ipcp_edge_removal_hook.
29112
29113 2014-01-17 Andrew Pinski <apinski@cavium.com>
29114 Steve Ellcey <sellcey@mips.com>
29115
29116 PR target/59462
29117 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29118 of operator mode.
29119
29120 2014-01-17 Jeff Law <law@redhat.com>
29121
29122 PR middle-end/57904
29123 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29124 so that pass_ccp runs first.
29125
29126 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29127
29128 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29129 (ix86_adjust_cost): Use !TARGET_XXX.
29130 (do_reorder_for_imul): Likewise.
29131 (swap_top_of_ready_list): Likewise.
29132 (ix86_sched_reorder): Likewise.
29133
29134 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29135
29136 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29137 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29138 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29139 (intel_memset): New. Duplicate slm_memset.
29140 (intel_cost): New. Duplicate slm_cost.
29141 (m_INTEL): New macro.
29142 (processor_target_table): Add "intel".
29143 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29144 with PROCESSOR_INTEL for "intel".
29145 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29146 PROCESSOR_SILVERMONT.
29147 (ix86_issue_rate): Likewise.
29148 (ix86_adjust_cost): Likewise.
29149 (ia32_multipass_dfa_lookahead): Likewise.
29150 (swap_top_of_ready_list): Likewise.
29151 (ix86_sched_reorder): Likewise.
29152 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29153 instead of TARGET_OPT_AGU.
29154 * config/i386/i386.h (TARGET_INTEL): New.
29155 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29156 (processor_type): Add PROCESSOR_INTEL.
29157 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29158 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29159
29160 2014-01-17 Marek Polacek <polacek@redhat.com>
29161
29162 PR c/58346
29163 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29164 size is zero.
29165
29166 2014-01-17 Richard Biener <rguenther@suse.de>
29167
29168 PR tree-optimization/46590
29169 * opts.c (default_options_table): Add entries for
29170 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29171 all enabled at -O1 but not for -Og.
29172 * common.opt (fbranch-count-reg): Remove Init(1).
29173 (fmove-loop-invariants): Likewise.
29174 (ftree-pta): Likewise.
29175
29176 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29177
29178 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29179 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29180 decls to at least the GCC 4.8 used alignments.
29181
29182 PR fortran/59440
29183 * tree-nested.c (convert_nonlocal_reference_stmt,
29184 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29185 of GIMPLE_BIND stmts, adjust associated decls.
29186
29187 2014-01-17 Richard Biener <rguenther@suse.de>
29188
29189 PR tree-optimization/46590
29190 * vec.h (vec<>::bseach): New member function implementing
29191 binary search according to C89 bsearch.
29192 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29193 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29194 bitmap pointer again. Make accesses_in_loop a flat array.
29195 (mem_ref_obstack): New global.
29196 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29197 (mark_ref_stored): Likewise.
29198 (ref_indep_loop_p_2): Likewise.
29199 (set_ref_stored_in_loop): New helper function.
29200 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29201 (memref_free): Adjust.
29202 (record_mem_ref_loc): Simplify.
29203 (gather_mem_refs_stmt): Adjust.
29204 (sort_locs_in_loop_postorder_cmp): New function.
29205 (analyze_memory_references): Sort accesses_in_loop after
29206 loop postorder number.
29207 (find_ref_loc_in_loop_cmp): New function.
29208 (for_all_locs_in_loop): Find relevant cluster of locs in
29209 accesses_in_loop and iterate without recursion.
29210 (execute_sm): Avoid uninit warning.
29211 (struct ref_always_accessed): Simplify.
29212 (ref_always_accessed::operator ()): Likewise.
29213 (ref_always_accessed_p): Likewise.
29214 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29215 loop postorder numbers here.
29216 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29217 numbers.
29218
29219 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29220
29221 PR c++/57945
29222 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29223 on decls for which assemble_alias has been called.
29224
29225 2014-01-17 Nick Clifton <nickc@redhat.com>
29226
29227 * config/msp430/msp430.opt: (mcpu): New option.
29228 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29229 (msp430_option_override): Parse target_cpu. If the MCU name
29230 matches a generic string, clear target_mcu.
29231 (msp430_attr): Allow numeric interrupt values up to 63.
29232 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29233 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29234 option.
29235 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29236 Add mcpu matches.
29237 * config/msp430/msp430.md (popm): Use %J rather than %I.
29238 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29239 (addhi_cy_i): Use immediate_operand for operand 2.
29240 * doc/invoke.texi: Document -mcpu option.
29241
29242 2014-01-17 Richard Biener <rguenther@suse.de>
29243
29244 PR rtl-optimization/38518
29245 * df.h (df_analyze_loop): Declare.
29246 * df-core.c: Include cfgloop.h.
29247 (df_analyze_1): Split out main part of df_analyze.
29248 (df_analyze): Adjust.
29249 (loop_inverted_post_order_compute): New function.
29250 (loop_post_order_compute): Likewise.
29251 (df_analyze_loop): New function avoiding whole-function
29252 postorder computes.
29253 * loop-invariant.c (find_defs): Use df_analyze_loop.
29254 (find_invariants): Adjust.
29255 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29256
29257 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29258
29259 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29260 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29261
29262 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29263
29264 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29265 traversal when removing references.
29266
29267 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29268
29269 PR ipa/59775
29270 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29271
29272 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29273
29274 PR middle-end/56791
29275 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29276 pushing a reload for an autoinc when we had previously reloaded an
29277 inner part of the address.
29278
29279 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29280
29281 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29282 field.
29283 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29284 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29285 when not giving up or versioning for alias only because of
29286 loop->safelen.
29287 (vect_analyze_data_ref_dependences): Set to true.
29288 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29289 is a GIMPLE_PHI.
29290 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29291 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29292 to the condition.
29293
29294 PR middle-end/58344
29295 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29296
29297 PR target/59839
29298 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29299 operand 0 predicate for gathers, use a new pseudo as subtarget.
29300
29301 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29302
29303 PR middle-end/59609
29304 * lra-constraints.c (process_alt_operands): Add printing debug info.
29305 Check absence of input/output reloads for matched operands too.
29306
29307 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29308
29309 PR rtl-optimization/59835
29310 * ira.c (ira_init_register_move_cost): Increase cost for
29311 impossible modes.
29312
29313 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29314
29315 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29316
29317 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29318
29319 PR target/59780
29320 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29321 non-register objects. Use gen_(high/low)part more consistently.
29322 Fix assertions.
29323
29324 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29325
29326 PR target/59844
29327 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29328 endian support, remove tests for WORDS_BIG_ENDIAN.
29329 (p8_mfvsrd_3_<mode>): Likewise.
29330 (reload_gpr_from_vsx<mode>): Likewise.
29331 (reload_gpr_from_vsxsf): Likewise.
29332 (p8_mfvsrd_4_disf): Likewise.
29333
29334 2014-01-16 Richard Biener <rguenther@suse.de>
29335
29336 PR rtl-optimization/46590
29337 * lcm.c (compute_antinout_edge): Use postorder iteration.
29338 (compute_laterin): Use inverted postorder iteration.
29339
29340 2014-01-16 Nick Clifton <nickc@redhat.com>
29341
29342 PR middle-end/28865
29343 * varasm.c (output_constant): Return the number of bytes actually
29344 emitted.
29345 (output_constructor_array_range): Update the field size with the
29346 number of bytes emitted by output_constant.
29347 (output_constructor_regular_field): Likewise. Also do not
29348 complain if the total number of bytes emitted is now greater
29349 than the expected fieldpos.
29350 * output.h (output_constant): Update prototype and descriptive comment.
29351
29352 2014-01-16 Marek Polacek <polacek@redhat.com>
29353
29354 PR middle-end/59827
29355 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29356 it is error_mark_node.
29357
29358 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
29359
29360 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29361 VALID_AVX256_REG_OR_OI_MODE.
29362
29363 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29364
29365 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29366 current procedure should be profiled.
29367
29368 2014-01-15 Andrew Pinski <apinski@cavium.com>
29369
29370 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29371 of moving from/to the STACK_REG register class.
29372
29373 2014-01-15 Richard Henderson <rth@redhat.com>
29374
29375 PR debug/54694
29376 * reginfo.c (global_regs_decl): Globalize.
29377 * rtl.h (global_regs_decl): Declare.
29378 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29379 reserved via global_regs.
29380
29381 2014-01-15 Teresa Johnson <tejohnson@google.com>
29382
29383 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29384
29385 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29386
29387 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29388 and vmulosh rather than call gen_vec_widen_smult_*.
29389 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29390 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29391 (vec_widen_smult_even_v16qi): Likewise.
29392 (vec_widen_umult_even_v8hi): Likewise.
29393 (vec_widen_smult_even_v8hi): Likewise.
29394 (vec_widen_umult_odd_v16qi): Likewise.
29395 (vec_widen_smult_odd_v16qi): Likewise.
29396 (vec_widen_umult_odd_v8hi): Likewise.
29397 (vec_widen_smult_odd_v8hi): Likewise.
29398 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29399 vmuloub rather than call gen_vec_widen_umult_*.
29400 (vec_widen_umult_lo_v16qi): Likewise.
29401 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29402 vmulosb rather than call gen_vec_widen_smult_*.
29403 (vec_widen_smult_lo_v16qi): Likewise.
29404 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29405 rather than call gen_vec_widen_umult_*.
29406 (vec_widen_umult_lo_v8hi): Likewise.
29407 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29408 rather than call gen_vec_widen_smult_*.
29409 (vec_widen_smult_lo_v8hi): Likewise.
29410
29411 2014-01-15 Jeff Law <law@redhat.com>
29412
29413 PR tree-optimization/59747
29414 * ree.c (find_and_remove_re): Properly handle case where a second
29415 eliminated extension requires widening a copy created for elimination
29416 of a prior extension.
29417 (combine_set_extension): Ensure that the number of hard regs needed
29418 for a destination register does not change when we widen it.
29419
29420 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29421
29422 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29423 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29424 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29425 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29426 (avr-*-rtems*): Likewise.
29427 (bfin*-rtems*): Likewise.
29428 (moxie-*-rtems*): Likewise.
29429 (h8300-*-rtems*): Likewise.
29430 (i[34567]86-*-rtems*): Likewise.
29431 (lm32-*-rtems*): Likewise.
29432 (m32r-*-rtems*): Likewise.
29433 (m68k-*-rtems*): Likewise.
29434 (microblaze*-*-rtems*): Likewise.
29435 (mips*-*-rtems*): Likewise.
29436 (powerpc-*-rtems*): Likewise.
29437 (sh-*-rtems*): Likewise.
29438 (sparc-*-rtems*): Likewise.
29439 (sparc64-*-rtems*): Likewise.
29440 (v850-*-rtems*): Likewise.
29441 (m32c-*-rtems*): Likewise.
29442
29443 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29444
29445 PR rtl-optimization/59511
29446 * ira.c (ira_init_register_move_cost): Use memory costs for some
29447 cases of register move cost calculations.
29448 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29449 instead of BB frequency.
29450 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29451 * lra-assigns.c (find_hard_regno_for): Ditto.
29452
29453 2014-01-15 Richard Biener <rguenther@suse.de>
29454
29455 PR tree-optimization/59822
29456 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29457 (vectorizable_load): Use it to hoist defs of uses of invariant
29458 loads out of the loop.
29459
29460 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
29461 Kugan Vivekanandarajah <kuganv@linaro.org>
29462
29463 PR target/59695
29464 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29465 truncation.
29466
29467 2014-01-15 Richard Biener <rguenther@suse.de>
29468
29469 PR rtl-optimization/59802
29470 * lcm.c (compute_available): Use inverted postorder to seed
29471 the initial worklist.
29472
29473 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29474
29475 PR target/59803
29476 * config/s390/s390.c (s390_preferred_reload_class): Don't return
29477 ADDR_REGS for invalid symrefs in non-PIC code.
29478
29479 2014-01-15 Jakub Jelinek <jakub@redhat.com>
29480
29481 PR other/58712
29482 * builtins.c (determine_block_size): Initialize *probable_max_size
29483 even if len_rtx is CONST_INT.
29484
29485 2014-01-14 Andrew Pinski <apinski@cavium.com>
29486
29487 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29488 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29489 (cortexa53_tunings): Likewise.
29490 (aarch64_sched_issue_rate): New function.
29491 (TARGET_SCHED_ISSUE_RATE): Define.
29492
29493 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29494
29495 * ira-costs.c (find_costs_and_classes): Add missed
29496 ira_init_register_move_cost_if_necessary.
29497
29498 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29499
29500 PR target/59787
29501 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29502
29503 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
29504
29505 PR target/59794
29506 * config/i386/i386.c (type_natural_mode): Add a bool parameter
29507 to indicate if type is used for function return value. Warn ABI
29508 change if the vector mode isn't available for function return value.
29509 (ix86_function_arg_advance): Pass false to type_natural_mode.
29510 (ix86_function_arg): Likewise.
29511 (ix86_gimplify_va_arg): Likewise.
29512 (function_arg_32): Don't warn ABI change.
29513 (ix86_function_value): Pass true to type_natural_mode.
29514 (ix86_return_in_memory): Likewise.
29515 (ix86_struct_value_rtx): Removed.
29516 (TARGET_STRUCT_VALUE_RTX): Likewise.
29517
29518 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29519
29520 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29521 converting a conditional jump into a conditional return.
29522
29523 2014-01-14 Richard Biener <rguenther@suse.de>
29524
29525 PR tree-optimization/58921
29526 PR tree-optimization/59006
29527 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29528 hoisting invariant stmts.
29529 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29530 invariant loads on the preheader edge if possible.
29531
29532 2014-01-14 Joey Ye <joey.ye@arm.com>
29533
29534 * doc/plugin.texi (Building GCC plugins): Update to C++.
29535
29536 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29537
29538 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29539 (_mm_rcp28_round_ss): Ditto.
29540 (_mm_rsqrt28_round_sd): Ditto.
29541 (_mm_rsqrt28_round_ss): Ditto.
29542 (_mm_rcp28_sd): Ditto.
29543 (_mm_rcp28_ss): Ditto.
29544 (_mm_rsqrt28_sd): Ditto.
29545 (_mm_rsqrt28_ss): Ditto.
29546 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29547 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29548 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29549 (IX86_BUILTIN_RCP28SD): Ditto.
29550 (IX86_BUILTIN_RCP28SS): Ditto.
29551 (IX86_BUILTIN_RSQRT28SD): Ditto.
29552 (IX86_BUILTIN_RSQRT28SS): Ditto.
29553 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29554 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29555 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29556 (ix86_expand_special_args_builtin): Expand new FTYPE.
29557 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29558 (srcp14<mode>): Make insn unary.
29559 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29560 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29561 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29562 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29563 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29564 Fix rounding: make it SAE only.
29565 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29566 Ditto.
29567 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29568 Ditto.
29569 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29570 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29571 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29572 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29573 (round_saeonly_mask_scalar_operand4): Ditto.
29574 (round_saeonly_mask_scalar_op3): Ditto.
29575 (round_saeonly_mask_scalar_op4): Ditto.
29576
29577 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29578
29579 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29580 Implement -maltivec=be for vec_insert and vec_extract.
29581
29582 2014-01-10 DJ Delorie <dj@redhat.com>
29583
29584 * config/msp430/msp430.md (call_internal): Don't allow memory
29585 references with SP as the base register.
29586 (call_value_internal): Likewise.
29587 * config/msp430/constraints.md (Yc): New. For memory references
29588 that don't use SP as a base register.
29589
29590 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29591 "an integer without a # prefix"
29592 * config/msp430/msp430.md (epilogue_helper): Use it.
29593
29594 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29595
29596 PR target/59617
29597 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29598 AVX512F gather builtins.
29599 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29600 on gather decls with INTEGER_TYPE masktype.
29601 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29602 directly into the builtin rather than hoisting it before loop.
29603
29604 PR tree-optimization/59387
29605 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29606 (scev_const_prop): If folded_casts and type has undefined overflow,
29607 use force_gimple_operand instead of force_gimple_operand_gsi and
29608 for each added stmt if it is assign with
29609 arith_code_with_undefined_signed_overflow, call
29610 rewrite_to_defined_overflow.
29611 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29612 gimple-fold.h instead.
29613 (arith_code_with_undefined_signed_overflow,
29614 rewrite_to_defined_overflow): Moved to ...
29615 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29616 rewrite_to_defined_overflow): ... here. No longer static.
29617 Include gimplify-me.h.
29618 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29619 rewrite_to_defined_overflow): New prototypes.
29620
29621 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29622
29623 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29624
29625 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29626
29627 * builtins.c (get_object_alignment_2): Minor tweak.
29628 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29629
29630 2014-01-13 Christian Bruel <christian.bruel@st.com>
29631
29632 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29633 optimized non constant lengths.
29634
29635 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29636
29637 PR libgomp/59194
29638 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29639 load as __atomic_load_N if possible.
29640
29641 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29642
29643 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29644 target parameter.
29645 (rs6000_expand_builtin): Adjust call.
29646
29647 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29648
29649 PR target/58115
29650 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29651 * config/rs6000/rs6000.c: Include target-globals.h.
29652 (rs6000_set_current_function): Instead of doing target_reinit
29653 unconditionally, use save_target_globals_default_opts and
29654 restore_target_globals.
29655
29656 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29657 FPSCR.
29658 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29659 (rs6000_expand_builtin): Handle mffs and mtfsf.
29660 (rs6000_init_builtins): Define mffs and mtfsf.
29661 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29662 (rs6000_mffs): New pattern.
29663 (rs6000_mtfsf): New pattern.
29664
29665 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29666
29667 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29668 Start narrowing with START. Apply candidate-use pair
29669 and check overall cost in narrowing.
29670 (iv_ca_prune): Pass new argument.
29671
29672 2014-01-10 Jeff Law <law@redhat.com>
29673
29674 PR middle-end/59743
29675 * ree.c (combine_reaching_defs): Ensure the defining statement
29676 occurs before the extension when optimizing extensions with
29677 different source and destination hard registers.
29678
29679 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29680
29681 PR ipa/58585
29682 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29683 vtables into the type inheritance graph.
29684
29685 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29686
29687 PR rtl-optimization/59754
29688 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29689 modes in the REGNO != REGNO case.
29690
29691 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29692
29693 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29694
29695 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29696
29697 PR tree-optimization/59745
29698 * tree-predcom.c (tree_predictive_commoning_loop): Call
29699 free_affine_expand_cache if giving up because components is NULL.
29700
29701 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29702 GC in payload of target_globals struct instead of allocating them on
29703 the heap and the larger structs separately using GC.
29704 * target-globals.h (struct target_globals): Make regs, hard_regs,
29705 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29706 of GTY((skip)) and change type to void *.
29707 (reset_target_globals): Cast loads from those fields to corresponding
29708 types.
29709
29710 2014-01-10 Steve Ellcey <sellcey@mips.com>
29711
29712 PR plugins/59335
29713 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29714 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29715 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29716
29717 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29718
29719 PR target/59744
29720 * aarch64-modes.def (CC_Zmode): New flags mode.
29721 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
29722 represents an equality.
29723 (aarch64_get_condition_code): Handle CC_Zmode.
29724 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
29725
29726 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29727
29728 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
29729 extraction in good case.
29730
29731 2014-01-10 Richard Biener <rguenther@suse.de>
29732
29733 PR tree-optimization/59374
29734 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
29735 checking after SLP discovery. Mark stmts not participating
29736 in any SLP instance properly.
29737
29738 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29739
29740 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
29741 when handling a SET rtx.
29742
29743 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29744
29745 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
29746 (cortex-a57): Likewise.
29747 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
29748
29749 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29750
29751 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
29752 non-iwmmxt builtins.
29753
29754 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29755
29756 PR ipa/58252
29757 PR ipa/59226
29758 * ipa-devirt.c record_target_from_binfo): Take as argument
29759 stack of binfos and lookup matching one for virtual inheritance.
29760 (possible_polymorphic_call_targets_1): Update.
29761
29762 2014-01-10 Huacai Chen <chenhc@lemote.com>
29763
29764 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
29765 kernel strings for Loongson-2E/2F/3A.
29766
29767 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29768
29769 PR middle-end/59670
29770 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
29771 is_gimple_call before calling gimple_call_internal_p.
29772
29773 2014-01-09 Steve Ellcey <sellcey@mips.com>
29774
29775 * Makefile.in (TREE_FLOW_H): Remove.
29776 (TREE_SSA_H): Add file names from tree-flow.h.
29777 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
29778 * tree.h: Remove tree-flow.h reference.
29779 * hash-table.h: Remove tree-flow.h reference.
29780 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
29781 reference with tree-ssa-loop.h.
29782
29783 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29784
29785 * doc/invoke.texi: Add -maltivec={be,le} options, and document
29786 default element-order behavior for -maltivec.
29787 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
29788 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
29789 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
29790 when targeting big endian, at least for now.
29791 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
29792
29793 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29794
29795 PR middle-end/47735
29796 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
29797 var satisfies use_register_for_decl, just take into account type
29798 alignment, rather than decl alignment.
29799
29800 PR tree-optimization/59622
29801 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
29802 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
29803 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
29804 Don't devirtualize for inplace at all. For targets.length () == 1,
29805 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
29806
29807 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29808
29809 * config/i386/i386.md (cpu): Remove the unused btver1.
29810
29811 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29812
29813 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
29814
29815 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29816
29817 PR target/58115
29818 * tree-core.h (struct target_globals): New forward declaration.
29819 (struct tree_target_option): Add globals field.
29820 * tree.h (TREE_TARGET_GLOBALS): Define.
29821 (prepare_target_option_nodes_for_pch): New prototype.
29822 * target-globals.h (struct target_globals): Define even if
29823 !SWITCHABLE_TARGET.
29824 * tree.c (prepare_target_option_node_for_pch,
29825 prepare_target_option_nodes_for_pch): New functions.
29826 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
29827 * config/i386/i386.c: Include target-globals.h.
29828 (ix86_set_current_function): Instead of doing target_reinit
29829 unconditionally, use save_target_globals_default_opts and
29830 restore_target_globals.
29831
29832 2014-01-09 Richard Biener <rguenther@suse.de>
29833
29834 PR tree-optimization/59715
29835 * tree-cfg.h (split_critical_edges): Declare.
29836 * tree-cfg.c (split_critical_edges): Export.
29837 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
29838
29839 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
29840
29841 * cfgexpand.c (expand_stack_vars): Optionally disable
29842 asan stack protection.
29843 (expand_used_vars): Likewise.
29844 (partition_stack_vars): Likewise.
29845 * asan.c (asan_emit_stack_protection): Optionally disable
29846 after return stack usage.
29847 (instrument_derefs): Optionally disable memory access instrumentation.
29848 (instrument_builtin_call): Likewise.
29849 (instrument_strlen_call): Likewise.
29850 (asan_protect_global): Optionally disable global variables protection.
29851 * doc/invoke.texi: Added doc for new options.
29852 * params.def: Added new options.
29853 * params.h: Likewise.
29854
29855 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29856
29857 PR rtl-optimization/59724
29858 * ifcvt.c (cond_exec_process_if_block): Don't call
29859 flow_find_head_matching_sequence with 0 longest_match.
29860 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
29861 non-active insns if !stop_after.
29862 (try_head_merge_bb): Revert 2014-01-07 changes.
29863
29864 2014-01-08 Jeff Law <law@redhat.com>
29865
29866 * ree.c (get_sub_rtx): New function, extracted from...
29867 (merge_def_and_ext): Here.
29868 (combine_reaching_defs): Use get_sub_rtx.
29869
29870 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
29871
29872 * cgraph.h (varpool_variable_node): Do not choke on null node.
29873
29874 2014-01-08 Catherine Moore <clm@codesourcery.com>
29875
29876 * config/mips/mips.md (simple_return): Attempt to use JRC
29877 for microMIPS.
29878 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
29879
29880 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29881
29882 PR rtl-optimization/59137
29883 * reorg.c (steal_delay_list_from_target): Call update_block for
29884 elided insns.
29885 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
29886
29887 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29888
29889 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
29890 two duplicate entries.
29891
29892 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29893
29894 Revert:
29895 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
29896
29897 * config/mips/mips.c (mips_truncated_op_cost): New function.
29898 (mips_rtx_costs): Adjust test for BADDU.
29899 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
29900
29901 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
29902
29903 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
29904 (*baddu_si): ...this new pattern.
29905
29906 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29907
29908 PR ipa/59722
29909 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
29910
29911 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
29912
29913 PR middle-end/57748
29914 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
29915 inner_reference_p.
29916 (expand_expr, expand_normal): Adjust.
29917 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
29918 inner_reference_p. Use inner_reference_p to expand inner references.
29919 (store_expr): Adjust.
29920 * cfgexpand.c (expand_call_stmt): Adjust.
29921
29922 2014-01-08 Rong Xu <xur@google.com>
29923
29924 * gcov-io.c (gcov_var): Move from gcov-io.h.
29925 (gcov_position): Ditto.
29926 (gcov_is_error): Ditto.
29927 (gcov_rewrite): Ditto.
29928 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
29929 only part to libgcc/libgcov.h.
29930
29931 2014-01-08 Marek Polacek <polacek@redhat.com>
29932
29933 PR middle-end/59669
29934 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
29935
29936 2014-01-08 Marek Polacek <polacek@redhat.com>
29937
29938 PR sanitizer/59667
29939 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
29940
29941 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29942
29943 PR rtl-optimization/59649
29944 * stor-layout.c (get_mode_bounds): For BImode return
29945 0 and STORE_FLAG_VALUE.
29946
29947 2014-01-08 Richard Biener <rguenther@suse.de>
29948
29949 PR middle-end/59630
29950 * gimple.h (is_gimple_builtin_call): Remove.
29951 (gimple_builtin_call_types_compatible_p): New.
29952 (gimple_call_builtin_p): New overload.
29953 * gimple.c (is_gimple_builtin_call): Remove.
29954 (validate_call): Rename to ...
29955 (gimple_builtin_call_types_compatible_p): ... this and export. Also
29956 check return types.
29957 (validate_type): New static function.
29958 (gimple_call_builtin_p): New overload and adjust.
29959 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
29960 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
29961 (gimple_fold_stmt_to_constant_1): Likewise.
29962 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
29963
29964 2014-01-08 Richard Biener <rguenther@suse.de>
29965
29966 PR middle-end/59471
29967 * gimplify.c (gimplify_expr): Gimplify register-register type
29968 VIEW_CONVERT_EXPRs to separate stmts.
29969
29970 2014-01-07 Jeff Law <law@redhat.com>
29971
29972 PR middle-end/53623
29973 * ree.c (combine_set_extension): Handle case where source
29974 and destination registers in an extension insn are different.
29975 (combine_reaching_defs): Allow source and destination registers
29976 in extension to be different under limited circumstances.
29977 (add_removable_extension): Remove restriction that the
29978 source and destination registers in the extension are the same.
29979 (find_and_remove_re): Emit a copy from the extension's
29980 destination to its source after the defining insn if
29981 the source and destination registers are different.
29982
29983 PR middle-end/59285
29984 * ifcvt.c (merge_if_block): If we are merging a block with more than
29985 one successor with a block with no successors, remove any BARRIER
29986 after the second block.
29987
29988 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
29989
29990 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
29991
29992 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
29993
29994 PR target/59652
29995 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
29996 for 14-bit register offsets when INT14_OK_STRICT is false.
29997
29998 2014-01-07 Roland Stigge <stigge@antcom.de>
29999 Michael Meissner <meissner@linux.vnet.ibm.com>
30000
30001 PR 57386/target
30002 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30003 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30004
30005 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30006
30007 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30008 -mcpu.
30009
30010 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30011
30012 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30013 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30014 rtx is const0_rtx or not.
30015
30016 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30017
30018 PR target/58115
30019 * target-globals.c (save_target_globals): Remove this_fn_optab
30020 handling.
30021 * toplev.c: Include optabs.h.
30022 (target_reinit): Temporarily restore the global options if another
30023 set of options are in force.
30024
30025 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30026
30027 PR rtl-optimization/58668
30028 * cfgcleanup.c (flow_find_cross_jump): Don't count
30029 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30030 to determine what is counted.
30031 (flow_find_head_matching_sequence): Use active_insn_p to determine
30032 what is counted.
30033 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30034 counting change.
30035 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30036 determine what is counted.
30037
30038 PR tree-optimization/59643
30039 * tree-predcom.c (split_data_refs_to_components): If one dr is
30040 read and one write, determine_offset fails and the write isn't
30041 in the bad component, just put the read into the bad component.
30042
30043 2014-01-07 Mike Stump <mikestump@comcast.net>
30044 Jakub Jelinek <jakub@redhat.com>
30045
30046 PR pch/59436
30047 * tree-core.h (struct tree_optimization_option): Change optabs
30048 type from unsigned char * to void *.
30049 * optabs.c (init_tree_optimization_optabs): Adjust
30050 TREE_OPTIMIZATION_OPTABS initialization.
30051
30052 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30053
30054 PR target/59644
30055 * config/i386/i386.h (struct machine_function): Add
30056 no_drap_save_restore field.
30057 * config/i386/i386.c (ix86_save_reg): Use
30058 !cfun->machine->no_drap_save_restore instead of
30059 crtl->stack_realign_needed.
30060 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30061 this function clears frame_pointer_needed. Set
30062 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30063 and DRAP reg is needed.
30064
30065 2014-01-06 Marek Polacek <polacek@redhat.com>
30066
30067 PR c/57773
30068 * doc/implement-c.texi: Mention that other integer types are
30069 permitted as bit-field types in strictly conforming mode.
30070
30071 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30072
30073 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30074 is newly allocated.
30075
30076 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30077
30078 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30079
30080 2014-01-06 Martin Jambor <mjambor@suse.cz>
30081
30082 PR ipa/59008
30083 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30084 to int.
30085 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30086
30087 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30088
30089 PR debug/59350
30090 PR debug/59510
30091 * var-tracking.c (add_stores): Preserve the value of the source even if
30092 we don't record the store.
30093
30094 2014-01-06 Terry Guo <terry.guo@arm.com>
30095
30096 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30097
30098 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30099
30100 PR bootstrap/59541
30101 * config/darwin.c (darwin_function_section): Adjust return values to
30102 correspond to optimisation changes made in r206070.
30103
30104 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30105
30106 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30107 from prefetch_block tune setting.
30108 (nocona_cost): Correct size of prefetch block to 64.
30109
30110 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30111
30112 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30113 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30114 used to save the static chain register in the computation of the offset
30115 from which the FP registers need to be restored.
30116
30117 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30118
30119 PR tree-optimization/59519
30120 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30121 ICE if get_current_def (current_new_name) is already non-NULL, as long
30122 as it is a phi result of some other phi in *new_exit_bb that has
30123 the same argument.
30124
30125 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30126 or vmovdqu* for misaligned_operand.
30127 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30128 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30129 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30130 aligned_mem for AVX512F masked aligned load and store builtins and for
30131 non-temporal moves.
30132
30133 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30134
30135 PR tree-optimization/59651
30136 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30137 Address range for negative step should be added by TYPE_SIZE_UNIT.
30138
30139 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30140
30141 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30142 overlapping registers also for registers other than the stack pointer.
30143
30144 2014-01-03 Marek Polacek <polacek@redhat.com>
30145
30146 PR other/59661
30147 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30148 __builtin_FILE.
30149
30150 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30151
30152 PR target/59625
30153 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30154 asm goto as jump.
30155
30156 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30157 (push splitter): Use <P:MODE_SIZE> instead of
30158 GET_MODE_SIZE (<P:MODE>mode).
30159 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30160 (mov -1, reg peephole2): Likewise.
30161 * config/i386/sse.md (*mov<mode>_internal,
30162 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30163 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30164 *<code><mode>3, *andnot<mode>3<mask_name>,
30165 <mask_codefor><code><mode>3<mask_name>): Likewise.
30166 * config/i386/subst.md (mask_mode512bit_condition,
30167 sd_mask_mode512bit_condition): Likewise.
30168
30169 2014-01-02 Xinliang David Li <davidxl@google.com>
30170
30171 PR tree-optimization/59303
30172 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30173 (dump_predicates): Better output format.
30174 (pred_equal_p): New function.
30175 (is_neq_relop_p): Ditto.
30176 (is_neq_zero_form_p): Ditto.
30177 (pred_expr_equal_p): Ditto.
30178 (pred_neg_p): Ditto.
30179 (simplify_pred): Ditto.
30180 (simplify_preds_2): Ditto.
30181 (simplify_preds_3): Ditto.
30182 (simplify_preds_4): Ditto.
30183 (simplify_preds): Ditto.
30184 (push_pred): Ditto.
30185 (push_to_worklist): Ditto.
30186 (get_pred_info_from_cmp): Ditto.
30187 (is_degenerated_phi): Ditto.
30188 (normalize_one_pred_1): Ditto.
30189 (normalize_one_pred): Ditto.
30190 (normalize_one_pred_chain): Ditto.
30191 (normalize_preds): Ditto.
30192 (normalize_cond_1): Remove function.
30193 (normalize_cond): Ditto.
30194 (is_gcond_subset_of): Ditto.
30195 (is_subset_of_any): Ditto.
30196 (is_or_set_subset_of): Ditto.
30197 (is_and_set_subset_of): Ditto.
30198 (is_norm_cond_subset_of): Ditto.
30199 (pred_chain_length_cmp): Ditto.
30200 (convert_control_dep_chain_into_preds): Type change.
30201 (find_predicates): Ditto.
30202 (find_def_preds): Ditto.
30203 (destroy_predicates_vecs): Ditto.
30204 (find_matching_predicates_in_rest_chains): Ditto.
30205 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30206 (is_pred_expr_subset): Ditto.
30207 (is_pred_chain_subset_of): Ditto.
30208 (is_included_in): Ditto.
30209 (is_superset_of): Ditto.
30210
30211 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30212
30213 Update copyright years.
30214
30215 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30216
30217 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30218 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30219 config/arc/arc.md, config/arc/arc.opt,
30220 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30221 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30222 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30223 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30224 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30225 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30226 vtable-verify.c, vtable-verify.h: Use the standard form for the
30227 copyright notice.
30228
30229 2014-01-02 Tobias Burnus <burnus@net-b.de>
30230
30231 * gcc.c (process_command): Update copyright notice dates.
30232 * gcov-dump.c: Ditto.
30233 * gcov.c: Ditto.
30234 * doc/cpp.texi: Bump @copying's copyright year.
30235 * doc/cppinternals.texi: Ditto.
30236 * doc/gcc.texi: Ditto.
30237 * doc/gccint.texi: Ditto.
30238 * doc/gcov.texi: Ditto.
30239 * doc/install.texi: Ditto.
30240 * doc/invoke.texi: Ditto.
30241
30242 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30243
30244 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30245
30246 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30247
30248 * config/i386/sse.md (*mov<mode>_internal): Guard
30249 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30250
30251 PR rtl-optimization/59647
30252 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30253 new_rtx into UNSIGNED_FLOAT rtxes.
30254 \f
30255 Copyright (C) 2014 Free Software Foundation, Inc.
30256
30257 Copying and distribution of this file, with or without modification,
30258 are permitted in any medium without royalty provided the copyright
30259 notice and this notice are preserved.